/* style.css */
:root {
    --bg-color: #0a0a0a; /* Deep black/grey */
    --card-bg: #141414;
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    --accent-gold: #c5a059; /* Metallic Gold from flyer */
    --accent-hover: #e0b86e;
    --font-heading: 'Cinzel', serif; /* Elegant, similar to flyer */
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Header & Nav */
header {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    filter: invert(100%);
}

nav ul {
    display: flex;
    gap: 15px; /* Reduced from 20px to fit more items */
    list-style: none;
    flex-wrap: wrap; /* Allows wrapping if screen is too narrow but not mobile yet */
    justify-content: flex-end;
}

nav a {
    font-size: 0.85rem; /* Slightly smaller to fit "Troperos por el mundo" */
    font-weight: bold;
    color: var(--text-main);
    text-transform: uppercase; /* Makes it cleaner */
}

nav a:hover {
    color: var(--accent-gold);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('res/hero-bg.jpg'); /* Need a placeholder hero image */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px black;
}

.hero p {
    font-size: 1.5rem;
    color: #ddd;
}

/* General Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent-gold);
    color: #000;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 1rem;
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* Cards (for Dogs) */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dog-card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.dog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.dog-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    /* Disable default browser image dragging */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Disable text selection on images */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.dog-info {
    padding: 1.5rem;
    text-align: center;
}

.dog-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.dog-info .location {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
}

.dog-info .parents {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Carousel Styles --- */
/* Hide the ugly scrollbar */
.dog-card > div {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    /* scroll-behavior: smooth;  <-- REMOVED THIS LINE TO FIX DRAGGING LAG */
}
.dog-card > div::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Dots container */
.carousel-dots {
    position: absolute;
    top: 275px; /* Overlays just above the bottom of the 300px image */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none; /* Prevents container from blocking clicks on image */
}

/* Individual dot */
.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    pointer-events: auto; /* Restores clicks specifically on the dots */
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--accent-gold);
    transform: scale(1.2);
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: #222;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-gold);
    outline: none;
}

/* Footer */
footer {
    background-color: #050505;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #333;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    nav ul {
        display: none; /* JS will toggle this */
        flex-direction: column;
        width: 100%;
        background-color: rgba(0,0,0,0.95);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--accent-gold);
    }

    nav ul.active {
        display: flex;
    }

    .hero h1 { font-size: 2rem; }
}