/* ========================================
   Julie's Antojitos — Styles
   Palette: Midnight Blue (#0A1F3F) + Mint (#A8D5C8)
   Fonts: Cormorant Garamond + Montserrat
======================================== */

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

:root {
    --midnight: #0A1F3F;
    --midnight-light: #132D54;
    --midnight-deeper: #061429;
    --mint: #A8D5C8;
    --mint-light: #C5E6DA;
    --mint-dark: #7FB8A5;
    --cream: #F7F5F0;
    --cream-dark: #EDE9E0;
    --white: #FFFFFF;
    --text-dark: #0A1F3F;
    --text-light: #F7F5F0;
    --text-muted: #5A7A9A;
    --gold: #C9A84C;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --nav-height: 80px;
    --section-padding: clamp(80px, 12vw, 140px);
    --container-max: 1200px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -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(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 48px);
}

/* ========================================
   Typography
======================================== */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--midnight);
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 36px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--mint);
    color: var(--midnight);
}

.btn-primary:hover {
    background-color: var(--mint-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 31, 63, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Navbar
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background-color: rgba(10, 31, 63, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(168, 213, 200, 0.15);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 68px;
    background-color: rgba(6, 20, 41, 0.98);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 48px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background-color: var(--mint);
    color: var(--midnight);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-mark {
    transform: rotate(-5deg) scale(1.05);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(247, 245, 240, 0.75);
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-cta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--midnight);
    background-color: var(--mint);
    padding: 10px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--mint-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ========================================
   Hero
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--midnight-deeper);
    background-image: url('https://images.pexels.com/photos/5864548/pexels-photo-5864548.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: calc(var(--nav-height) + 40px) clamp(24px, 4vw, 48px) 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(6, 20, 41, 0.92) 0%,
        rgba(10, 31, 63, 0.85) 50%,
        rgba(19, 45, 84, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 28px;
}

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

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(247, 245, 240, 0.7);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 48px;
}

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

.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(247, 245, 240, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

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

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

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

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 8vw, 80px);
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 36px);
    margin-bottom: clamp(48px, 6vw, 80px);
}

.menu-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(10, 31, 63, 0.06);
    transition: all 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(10, 31, 63, 0.12);
}

.menu-card-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.menu-card-body {
    padding: clamp(24px, 3vw, 36px);
}

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

.menu-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.menu-cta {
    text-align: center;
    padding: clamp(32px, 5vw, 56px);
    background-color: var(--midnight);
    border-radius: 8px;
}

.menu-cta p {
    font-size: 1.05rem;
    color: rgba(247, 245, 240, 0.75);
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
}

.menu-cta .btn-primary {
    background-color: var(--mint);
}

/* ========================================
   About Section
======================================== */
.about-section {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 31, 63, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content > p {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-item svg {
    flex-shrink: 0;
    color: var(--mint-dark);
    margin-top: 2px;
}

.value-item h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--midnight);
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   Location Section
======================================== */
.location-section {
    padding: var(--section-padding) 0;
    background-color: var(--cream);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: stretch;
}

.location-info {
    padding: clamp(32px, 4vw, 56px);
    background-color: var(--midnight);
    border-radius: 8px;
    color: var(--white);
}

.location-info .section-eyebrow {
    color: var(--mint);
}

.location-info .section-title {
    color: var(--white);
}

.location-desc {
    font-size: 1.02rem;
    color: rgba(247, 245, 240, 0.7);
    line-height: 1.85;
    margin-bottom: 40px;
}

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

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

.contact-item svg {
    flex-shrink: 0;
    color: var(--mint);
    margin-top: 3px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(247, 245, 240, 0.5);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--mint-light);
}

.location-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 20px 60px rgba(10, 31, 63, 0.12);
}

/* ========================================
   Contact Section
======================================== */
.contact-section {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.contact-text .section-title {
    margin-bottom: 20px;
}

.contact-text > p {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.85;
}

.contact-form-wrapper {
    background-color: var(--cream);
    border-radius: 8px;
    padding: clamp(32px, 4vw, 48px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--midnight);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--white);
    border: 1.5px solid rgba(10, 31, 63, 0.12);
    border-radius: 4px;
    padding: 14px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--mint-dark);
    box-shadow: 0 0 0 3px rgba(168, 213, 200, 0.3);
}

.form-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(40px, 6vw, 64px) 24px;
    gap: 16px;
}

.form-success svg {
    color: var(--mint-dark);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--midnight);
}

.form-success p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: var(--midnight-deeper);
    color: var(--white);
    padding: clamp(60px, 8vw, 100px) 0 clamp(32px, 4vw, 48px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: clamp(40px, 6vw, 80px);
    margin-bottom: clamp(48px, 6vw, 72px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-mark {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
}

.footer-logo span {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(247, 245, 240, 0.6);
    line-height: 1.75;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a,
.footer-contact li a,
.footer-contact li {
    font-size: 0.92rem;
    color: rgba(247, 245, 240, 0.6);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-links li a:hover,
.footer-contact li a:hover {
    color: var(--mint-light);
}

.footer-bottom {
    border-top: 1px solid rgba(247, 245, 240, 0.1);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(247, 245, 240, 0.35);
}

/* ========================================
   Mobile Navigation
======================================== */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background-color: var(--midnight-deeper);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1rem;
        color: rgba(247, 245, 240, 0.85);
    }

    .nav-cta {
        font-size: 0.9rem;
        padding: 14px 32px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid,
    .location-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        aspect-ratio: 4/3;
    }

    .location-map {
        min-height: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ========================================
   Reduced Motion
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .menu-card {
        opacity: 1;
    }
}

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

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