/* ============================================
   TAQUERIA JUQUILITA 2 — Style System
   Deep Navy (#0B1D3A) + Warm Gold (#D4A843)
   Playfair Display + Inter
   ============================================ */

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

:root {
    --navy: #0B1D3A;
    --navy-light: #132D54;
    --navy-dark: #060F1F;
    --gold: #D4A843;
    --gold-light: #E8C478;
    --gold-dark: #B8912E;
    --cream: #FDF8F0;
    --cream-dark: #F5EDE0;
    --white: #FFFFFF;
    --text-dark: #0B1D3A;
    --text-light: #FDF8F0;
    --text-muted: #5A6B7E;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream);
    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;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--navy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 16px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--navy);
    margin-bottom: 24px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 32px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 14px 32px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-nav {
    background: var(--gold);
    color: var(--navy);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.btn-nav:hover {
    background: var(--gold-light);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.site-header.scrolled {
    background: rgba(11, 29, 58, 0.97);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    padding-bottom: 24px;
}

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

.logo-main {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

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

.primary-nav a:not(.btn-nav) {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
    position: relative;
}

.primary-nav a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}

.primary-nav a:not(.btn-nav):hover {
    color: var(--white);
}

.primary-nav a:not(.btn-nav):hover::after {
    width: 100%;
}

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

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy-dark);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 15, 31, 0.85) 0%,
        rgba(11, 29, 58, 0.7) 50%,
        rgba(11, 29, 58, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 140px 0 100px;
    max-width: 720px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-headline br {
    display: none;
}

.hero-subhead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    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.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Intro Strip --- */
.intro-strip {
    background: var(--navy);
    padding: 48px 0;
}

.intro-grid {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.intro-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 200px;
}

.intro-icon {
    flex-shrink: 0;
}

.intro-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 2px;
}

.intro-item span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.menu-section .section-header {
    text-align: center;
    margin-bottom: 64px;
}

.menu-section .section-divider {
    margin-left: auto;
    margin-right: auto;
}

.menu-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 56px;
}

.menu-cat-btn {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 28px;
    border: 2px solid var(--navy);
    border-radius: 100px;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.menu-cat-btn:hover,
.menu-cat-btn.active {
    background: var(--navy);
    color: var(--white);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.menu-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(11, 29, 58, 0.06);
    transition: all 0.4s var(--ease-out);
}

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

.menu-item-img {
    height: 220px;
    overflow: hidden;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.menu-item:hover .menu-item-img img {
    transform: scale(1.08);
}

.menu-item-body {
    padding: 24px;
}

.menu-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.menu-item-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.menu-item-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(212, 168, 67, 0.15);
    padding: 4px 10px;
    border-radius: 100px;
}

.menu-item-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.menu-note {
    text-align: center;
    margin-top: 48px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

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

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: 8px;
    overflow: hidden;
    border: 6px solid var(--navy);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

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

.about-content .section-title {
    color: var(--white);
}

.about-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Visit Section --- */
.visit-section {
    padding: 120px 0;
    background: var(--cream-dark);
}

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

.visit-info .section-title {
    margin-bottom: 40px;
}

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

.visit-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.visit-icon {
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--gold-dark);
    transition: color 0.2s;
}

.visit-detail a:hover {
    color: var(--navy);
}

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

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(11, 29, 58, 0.12);
    min-height: 450px;
}

/* --- Footer --- */
.site-footer {
    background: var(--navy-dark);
    padding: 80px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact a {
    color: var(--gold);
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

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

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

    .about-img-secondary {
        right: -20px;
        bottom: -24px;
    }

    .visit-grid {
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .about-images {
        max-width: 500px;
    }

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

    .visit-map {
        min-height: 350px;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--navy-dark);
        padding: 100px 40px 40px;
        transition: right 0.4s var(--ease-out);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .primary-nav.open {
        right: 0;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .primary-nav a:not(.btn-nav) {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .btn-nav {
        margin-top: 16px;
    }

    .hero-content {
        padding: 120px 0 80px;
    }

    .hero-headline br {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .intro-grid {
        gap: 32px;
    }

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

    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 16px;
    }

    .about-stats {
        gap: 24px;
    }

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

    .visit-actions {
        flex-direction: column;
    }

    .visit-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .menu-categories {
        gap: 8px;
    }

    .menu-cat-btn {
        padding: 8px 20px;
        font-size: 0.8125rem;
    }

    .hero-scroll {
        display: none;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}
