/* ============================================
   Tacos Los Huaches — Styles
   Color Palette: Deep Navy (#0a1628) + Warm Gold (#c8a45a)
   Fonts: Cormorant Garamond + Inter
   ============================================ */

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

:root {
    --navy: #0a1628;
    --navy-light: #132038;
    --navy-mid: #1a2d4a;
    --gold: #c8a45a;
    --gold-light: #d4b76e;
    --gold-pale: #f5e6c4;
    --cream: #faf8f4;
    --cream-dark: #f0ece4;
    --white: #ffffff;
    --text-primary: #0a1628;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --text-inverse: #f5f0e8;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

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

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

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--navy);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
}

.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(200, 164, 90, 0.25);
}

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

.btn-ghost:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    transform: translateY(-2px);
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.5s var(--ease-out);
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 164, 90, 0.15);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold) !important;
    border: 1px solid var(--gold);
    padding: 10px 22px;
    transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--navy) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--white);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 8px;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--white);
    padding: 16px 0;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
}

.mobile-menu-cta {
    margin-top: 24px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 14px 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
}

.mobile-menu.active .mobile-menu-link,
.mobile-menu.active .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-cta { transition-delay: 0.25s; }

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(200, 164, 90, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 30%, rgba(200, 164, 90, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(10, 22, 40, 1) 0%, rgba(19, 32, 56, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    color: var(--white);
    margin-bottom: 28px;
    line-height: 1.1;
}

.hero-title-line {
    display: block;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.hero-title-line:first-child {
    animation-delay: 0.35s;
}

.hero-title-line:last-child {
    animation-delay: 0.5s;
    font-style: italic;
    color: var(--gold-light);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-image {
    position: relative;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 0.5s forwards;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.9) contrast(1.05);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(200, 164, 90, 0.2);
    border-radius: 4px;
    z-index: -1;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(200, 164, 90, 0.15);
    border-radius: 50%;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
    opacity: 0;
}

.hero-scroll svg {
    animation: bounce 2s ease-in-out infinite;
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background: var(--cream);
}

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

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

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.category-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--navy);
    white-space: nowrap;
}

.category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-item {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

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

.menu-item-dots {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(to right, var(--navy) 0, var(--navy) 3px, transparent 3px, transparent 7px);
    opacity: 0.15;
}

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

.menu-note {
    text-align: center;
    margin-top: 64px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* --- Story Section --- */
.story-section {
    padding: 120px 0;
    background: var(--white);
}

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

.story-image-col img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.95) contrast(1.02);
}

.story-content .section-title {
    margin-bottom: 32px;
}

.story-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
}

.story-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.story-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--navy);
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(10, 22, 40, 0.1);
}

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

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

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

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

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

.visit-detail-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 164, 90, 0.3);
    border-radius: 50%;
    color: var(--gold);
}

.visit-detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.visit-detail-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.visit-detail-value {
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.6;
}

.visit-detail-value a {
    color: var(--navy);
    transition: color 0.3s ease;
}

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

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

.visit-map {
    position: relative;
}

.visit-map img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    filter: brightness(0.92) contrast(1.03);
}

.visit-map-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    padding: 12px 20px;
    border-radius: 3px;
    transition: all 0.3s var(--ease-out);
}

.visit-map-link:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: var(--navy);
    overflow: hidden;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 50% at 30% 50%, rgba(200, 164, 90, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 70% 50%, rgba(200, 164, 90, 0.06) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-eyebrow {
    margin-bottom: 20px;
}

.cta-title {
    color: var(--white);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

/* --- Footer --- */
.footer {
    background: var(--navy);
    padding: 64px 0 0;
    border-top: 1px solid rgba(200, 164, 90, 0.1);
}

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

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

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold);
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

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

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

.footer-phone {
    font-size: 0.95rem;
    color: var(--gold);
    transition: color 0.3s ease;
}

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

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-hours p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

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

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-image img {
        height: 450px;
    }

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

    .story-grid {
        gap: 48px;
    }

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

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

    .nav-toggle {
        display: flex;
    }

    .nav-inner {
        height: 70px;
    }

    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .hero-content {
        padding: 80px 24px 60px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero-image img {
        height: 350px;
    }

    .hero-scroll {
        display: none;
    }

    .menu-section {
        padding: 80px 0;
    }

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

    .section-header {
        margin-bottom: 48px;
    }

    .story-section {
        padding: 80px 0;
    }

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

    .story-image-col img {
        height: 400px;
    }

    .story-stats {
        flex-wrap: wrap;
    }

    .visit-section {
        padding: 80px 0;
    }

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

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

    .cta-section {
        padding: 80px 0;
    }

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

    .footer-bottom {
        padding: 20px 0;
    }
}

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

    .hero-content {
        padding: 60px 20px 40px;
    }

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

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

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

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

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