/* ============================================
   Tacos Los Toxicos — Editorial Style Stylesheet
   Forest Green + Off-White Palette
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-900: #0d2818;
    --green-800: #143d24;
    --green-700: #1a4f2e;
    --green-600: #22633a;
    --green-500: #2d7a48;
    --green-400: #4a9e66;
    --green-100: #c8e6d0;
    --green-50:  #e8f5eb;

    --off-white: #f5f2eb;
    --off-white-light: #faf8f4;
    --cream: #ede8dc;

    --text-dark: #1a1a1a;
    --text-medium: #3a3a3a;
    --text-light: #6b6b6b;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --max-width: 1200px;
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 40, 24, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s ease;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.nav-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--green-400);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-900);
    background: var(--green-400);
    padding: 10px 22px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--green-300, #6bbf82);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 40, 24, 0.72) 0%,
        rgba(13, 40, 24, 0.55) 50%,
        rgba(13, 40, 24, 0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: 24px;
    padding: 8px 0;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 8vw, 7.5rem);
    font-weight: 900;
    line-height: 1.02;
    color: #ffffff;
    margin-bottom: 28px;
    max-width: 800px;
}

.hero-headline em {
    font-style: italic;
    color: var(--green-400);
}

.hero-sub {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 16px 36px;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: none;
}

.btn-primary {
    background: var(--green-500);
    color: #ffffff;
    border-color: var(--green-500);
}

.btn-primary:hover {
    background: var(--green-600);
    border-color: var(--green-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 122, 72, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.btn-light {
    background: #ffffff;
    color: var(--green-900);
    border-color: #ffffff;
}

.btn-light:hover {
    background: var(--green-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ---------- Hero Scroll Indicator ---------- */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ---------- Intro Strip ---------- */
.intro-strip {
    background: var(--green-900);
    padding: 48px 24px;
}

.intro-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: center;
}

.intro-item {
    text-align: center;
}

.intro-label {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.intro-item p {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.intro-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    align-self: center;
}

/* ---------- Section Shared ---------- */
.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-500);
    margin-bottom: 16px;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--green-900);
    margin-bottom: 20px;
}

.section-headline em {
    font-style: italic;
    color: var(--green-600);
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.65;
    font-weight: 300;
}

/* ---------- Menu Section ---------- */
.menu-section {
    padding: 120px 0;
    background: var(--off-white-light);
}

.menu-section .container {
    text-align: center;
}

.menu-section .section-sub {
    margin: 0 auto 64px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.menu-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.menu-card-img {
    height: 240px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img img {
    transform: scale(1.06);
}

.menu-card-body {
    padding: 32px 28px;
    text-align: left;
}

.menu-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 12px;
}

.menu-card-body > p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.menu-list {
    list-style: none;
}

.menu-list li {
    font-size: 0.88rem;
    color: var(--text-medium);
    padding: 8px 0;
    border-bottom: 1px solid var(--cream);
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green-500);
    border-radius: 50%;
    flex-shrink: 0;
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

.menu-note-link {
    color: var(--green-600);
    font-weight: 500;
    border-bottom: 1px solid var(--green-300, #6bbf82);
    transition: border-color 0.2s;
}

.menu-note-link:hover {
    border-color: var(--green-600);
}

/* ---------- About Section ---------- */
.about-section {
    padding: 120px 0;
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-headline {
    margin-bottom: 28px;
}

.about-text p {
    font-size: 1.02rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin-bottom: 20px;
}

.about-signature {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--cream);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-signature-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 700;
    color: var(--green-800);
}

.about-signature-location {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-images {
    position: relative;
    height: 600px;
}

.about-img-main {
    width: 75%;
    height: 80%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    position: absolute;
    top: 0;
    left: 0;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-float {
    width: 55%;
    height: 45%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    position: absolute;
    bottom: 0;
    right: 0;
    border: 4px solid var(--off-white);
}

.about-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Gallery Section ---------- */
.gallery-section {
    padding: 100px 0 80px;
    background: var(--green-900);
}

.gallery-section .container {
    text-align: center;
    margin-bottom: 56px;
}

.gallery-section .section-tag {
    color: var(--green-400);
}

.gallery-section .section-headline {
    color: #ffffff;
}

.gallery-section .section-headline em {
    color: var(--green-400);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: auto;
}

.gallery-item:nth-child(1) {
    grid-row: span 2;
    aspect-ratio: 5/6;
}

.gallery-item:nth-child(4) {
    grid-row: span 2;
    aspect-ratio: 5/6;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ---------- Contact Section ---------- */
.contact-section {
    padding: 120px 0;
    background: var(--off-white-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-headline {
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item svg {
    color: var(--green-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.contact-item a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--green-600);
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    height: 460px;
}

/* ---------- CTA Strip ---------- */
.cta-strip {
    padding: 100px 0;
    background: var(--green-800);
    text-align: center;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.1;
}

.cta-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--green-900);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 280px;
}

.footer-nav,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav strong,
.footer-contact strong {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: 4px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.04em;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .about-grid {
        gap: 48px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        grid-row: span 1;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(13, 40, 24, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    .nav-menu.open {
        max-height: 400px;
        padding: 24px 0;
    }

    .nav-link {
        padding: 14px 24px;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }

    .nav-cta {
        margin: 8px 24px 0;
        display: block;
        text-align: center;
    }

    .hero-headline {
        font-size: clamp(2.6rem, 12vw, 4.5rem);
    }

    .intro-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .intro-divider {
        display: none;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        height: 400px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-map {
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .intro-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4) {
        aspect-ratio: 4/3;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
