/* ============================================
   TIJUANA BAR — Styles
   Emerald Green + Cream · Clean Minimalist
   ============================================ */

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

:root {
    --emerald-950: #042f23;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #fafaf5;
    --cream-100: #f5f5ee;
    --cream-200: #e8e8dc;
    --cream-300: #d4d4c4;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 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;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--stone-800);
    background-color: var(--cream-50);
}

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

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

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

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    color: var(--stone-900);
    margin-bottom: 24px;
}

.accent-italic {
    font-style: italic;
    color: var(--emerald-800);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-900);
    color: #fff;
    border-color: var(--emerald-900);
}

.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--stone-700);
    border-color: var(--stone-300);
}

.btn-ghost:hover {
    border-color: var(--emerald-700);
    color: var(--emerald-800);
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: background 0.3s var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(250, 250, 245, 0.95);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.06);
}

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

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--emerald-900);
    letter-spacing: -0.01em;
}

.nav-logo svg {
    flex-shrink: 0;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--stone-600);
    letter-spacing: 0.01em;
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--emerald-800);
}

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

.nav-cta {
    background: var(--emerald-900);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--emerald-800);
    transform: translateY(-1px);
}

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

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(4, 47, 35, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-smooth), visibility 0.3s;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--cream-50);
    padding: 100px 40px 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.nav-overlay-link {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--stone-800);
    padding: 12px 0;
    border-bottom: 1px solid var(--cream-200);
    transition: color 0.2s, padding-left 0.2s;
}

.nav-overlay-link:hover {
    color: var(--emerald-800);
    padding-left: 8px;
}

.nav-overlay-cta {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald-900);
    color: #fff;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-family: var(--font-sans);
    align-self: flex-start;
    transition: background 0.2s;
}

.nav-overlay-cta:hover {
    background: var(--emerald-800);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 35, 0.92) 0%,
        rgba(6, 78, 59, 0.85) 40%,
        rgba(4, 72, 53, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    text-align: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 56px 48px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(26px, 4.5vw, 52px);
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-accent {
    font-style: italic;
    color: rgba(167, 243, 208, 0.9);
}

.hero-sub {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-actions .btn-primary {
    background: #fff;
    color: var(--emerald-900);
    border-color: #fff;
}

.hero-actions .btn-primary:hover {
    background: var(--cream-100);
    border-color: var(--cream-100);
}

.hero-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Floating Stat Cards */
.hero-stats {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.stat-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--emerald-900);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--stone-500);
    line-height: 1.5;
    white-space: nowrap;
}

.stat-card--left {
    top: 18%;
    left: 5%;
}

.stat-card--right {
    top: 22%;
    right: 5%;
}

.stat-card--bottom {
    bottom: 15%;
    left: 8%;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

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

/* --- Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.about-image {
    border-radius: 16px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: transform 0.6s var(--ease-out);
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-content {
    padding: 20px 0;
}

.about-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--stone-600);
    margin-bottom: 20px;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--cream-200);
    font-size: 13px;
    color: var(--stone-500);
    letter-spacing: 0.02em;
}

.about-signature svg {
    color: var(--emerald-700);
    opacity: 0.6;
}

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

.menu-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.menu-intro {
    font-size: 15px;
    color: var(--stone-500);
    line-height: 1.7;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.menu-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 14px;
    color: var(--stone-500);
    background: transparent;
    border: 1px solid var(--stone-200);
    border-radius: 100px;
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.menu-tab:hover {
    color: var(--emerald-800);
    border-color: var(--emerald-300);
}

.menu-tab.active {
    background: var(--emerald-900);
    color: #fff;
    border-color: var(--emerald-900);
}

.menu-panel {
    display: none;
    max-width: 720px;
    margin: 0 auto;
}

.menu-panel.active {
    display: block;
    animation: fadeIn 0.3s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
    display: grid;
    gap: 0;
}

.menu-item {
    display: grid;
    grid-template-columns: 1px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--cream-200);
}

.menu-item:first-child {
    border-top: 1px solid var(--cream-200);
}

.menu-item-line {
    background: var(--cream-300);
    border-radius: 1px;
}

.menu-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--stone-900);
}

.menu-item-desc {
    font-size: 14px;
    color: var(--stone-500);
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    font-size: 13px;
    color: var(--stone-400);
    margin-top: 40px;
    font-style: italic;
}

/* --- Gallery --- */
.gallery {
    padding: 120px 0;
    background: var(--cream-50);
}

.gallery-header {
    text-align: center;
    max-width: 480px;
    margin: 0 auto 56px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--cream-200);
}

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

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

.gallery-item--tall {
    grid-column: 1 / 6;
    grid-row: 1 / 3;
    min-height: 500px;
}

.gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
    grid-column: span 3;
    min-height: 240px;
}

.gallery-item--wide {
    grid-column: 6 / 13;
    grid-row: 2 / 3;
    min-height: 240px;
}

/* --- Visit --- */
.visit {
    padding: 120px 0;
    background: var(--emerald-900);
    color: #fff;
}

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

.visit-info .section-eyebrow {
    color: rgba(167, 243, 208, 0.7);
}

.visit-info .section-title {
    color: #fff;
    margin-bottom: 32px;
}

.visit-address {
    font-style: normal;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
}

.visit-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(167, 243, 208, 0.9);
    margin-bottom: 40px;
    transition: color 0.2s;
}

.visit-phone:hover {
    color: #a7f3d0;
}

.visit-hours {
    margin-bottom: 40px;
}

.visit-hours h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    margin-bottom: 16px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.hours-row span:first-child {
    color: rgba(255, 255, 255, 0.55);
}

.hours-row span:last-child {
    color: rgba(255, 255, 255, 0.85);
}

.visit .btn-primary {
    background: #fff;
    color: var(--emerald-900);
    border-color: #fff;
}

.visit .btn-primary:hover {
    background: var(--cream-100);
    border-color: var(--cream-100);
}

/* Contact Form */
.visit-form-wrap {
    padding-top: 8px;
}

.visit-form-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(12px);
}

.visit-form-card h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}

.form-intro {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    color: #fff;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(167, 243, 208, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    font-size: 14px;
    color: #6ee7b7;
}

/* --- Footer --- */
.footer {
    background: var(--emerald-950);
    color: rgba(255, 255, 255, 0.5);
    padding: 64px 0 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: #fff;
}

.footer-brand p,
.footer-brand a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-brand a:hover {
    color: rgba(167, 243, 208, 0.7);
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .stat-card--left {
        top: 15%;
        left: 3%;
    }
    .stat-card--right {
        top: 18%;
        right: 3%;
    }
    .stat-card--bottom {
        bottom: 12%;
        left: 5%;
    }
}

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

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-card {
        padding: 40px 28px;
        border-radius: 20px;
    }

    .hero-headline {
        font-size: clamp(24px, 6vw, 36px);
    }

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

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

    .hero-stats {
        display: none;
    }

    .hero-scroll {
        bottom: 20px;
    }

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

    .about-image {
        order: -1;
    }

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

    .menu-tabs {
        flex-wrap: wrap;
    }

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

    .gallery-item--tall {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 300px;
    }

    .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
        grid-column: span 1;
        min-height: 200px;
    }

    .gallery-item--wide {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 200px;
    }

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

    .visit-form-card {
        padding: 28px;
    }
}

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

    .hero-card {
        padding: 32px 20px;
    }

    .about,
    .menu,
    .gallery,
    .visit {
        padding: 80px 0;
    }

    .menu-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-tab {
        justify-content: center;
    }

    .footer-inner {
        gap: 24px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-bg img {
        transition: none;
    }

    .about-image img {
        transition: none;
    }

    .gallery-item img {
        transition: none;
    }
}
