/* Google Font Import for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

/* --- Root Variables --- */
:root {
    --primary-color: #A52A2A; /* Rustic Red/Maroon (Spanish/Tapas feel) */
    --secondary-color: #FFD700; /* Gold/Yellow Accent (Peruvian feel) */
    --text-color: #333;
    --bg-color: #f0f0f0; /* Lighter background for contrast */
    --header-height: 70px; 
}

/* --- General and Typography --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: white; /* Set body to white for cleaner look, use bg-color for sections */
    scroll-behavior: smooth;
}

h1, h2 {
    font-weight: 700;
}

/* --- Header Styling --- */
.main-header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px; /* More padding */
    height: var(--header-height);
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
}

.logo {
    font-size: 1.8em; 
    font-weight: 900; 
    color: var(--primary-color);
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 25px; /* Better spacing */
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

/* CTA Button Styling (Reservar/WhatsApp) */
.cta-reservas {
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-reservas:hover {
    background-color: #8B0000;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none; 
}

/* --- Hero Section --- */
.hero-section {
    padding-top: var(--header-height); 
    height: 90vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Requires assets/hero-bg.jpg to be uploaded for background image to work */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('assets/hero-bg.jpg') center center/cover no-repeat;
    background-attachment: fixed; /* Parallax effect for modern feel */
    color: white;
}

.hero-content {
    padding: 20px;
}

.hero-content h1 {
    font-size: 4em; 
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.2em;
}

.cta-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    margin-top: 30px;
    font-weight: 900;
    text-transform: uppercase;
}

/* --- General Content Section --- */
.content-section {
    padding: 80px 20px; /* More vertical space */
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 60px;
    font-size: 2.5em;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.dish-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.dish-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.dish-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* --- CTA Banner Section --- */
.cta-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 20px;
}

.cta-banner h2 {
    color: white;
    font-size: 2.5em;
}

.cta-banner .large-cta {
    font-size: 1.2em;
    padding: 15px 40px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin-bottom: 20px;
}

.cta-banner .large-cta:hover {
    background-color: #e5c100;
}

/* --- Footer --- */
footer {
    background-color: #222; /* Darker footer */
    color: #ccc;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

/* --- SCROLL REVEAL ANIMATIONS (The "Slide-In" Effect) --- */

/* 1. Define the animation keyframes */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 2. Define the hidden/animated-once state */
.reveal-target {
    /* All elements start invisible */
    opacity: 0;
}

/* 3. This class is added by JavaScript when the element is visible */
.reveal-target.animate {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

/* Apply staggered animations for slide-in effect */
.menu-grid .dish-card.animate:nth-child(1),
.menu-grid .dish-card.animate:nth-child(3) {
    animation-name: slideInFromLeft;
    animation-delay: 0.2s; /* Subtle delay */
}

.menu-grid .dish-card.animate:nth-child(2),
.menu-grid .dish-card.animate:nth-child(4) {
    animation-name: slideInFromRight;
    animation-delay: 0.3s; /* Subtle delay */
}

/* Apply a general slide-up for other targets */
.content-section h2.animate,
.cta-banner.animate,
#about.content-section p.animate {
    animation-name: slideInFromLeft;
    animation-duration: 1s;
}

/* --- Mobile Adjustments (Quick and Dirty Responsiveness) --- */
@media (max-width: 768px) {
    .main-header {
        padding: 0 15px;
    }
    .desktop-nav {
        display: none; /* Hide desktop menu on small screens */
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
}
