/* ========================================
   Ensenada Baja Tacos — Styles
   Deep Navy + Warm Gold palette
   ======================================== */

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

:root {
    --navy:        #0f1c3f;
    --navy-light:  #1a2d5a;
    --navy-dark:   #091229;
    --gold:        #d4a017;
    --gold-light:  #f0c040;
    --gold-pale:   #fdf3d7;
    --cream:       #faf6ef;
    --cream-dark:  #f0e8d8;
    --white:       #ffffff;
    --text-dark:   #1a1a2e;
    --text-mid:    #4a4a5a;
    --text-light:  #7a7a8a;
    --shadow-sm:   0 2px 8px rgba(15, 28, 63, 0.08);
    --shadow-md:   0 8px 30px rgba(15, 28, 63, 0.12);
    --shadow-lg:   0 16px 50px rgba(15, 28, 63, 0.16);
    --radius-sm:   12px;
    --radius-md:   20px;
    --radius-lg:   28px;
    --font-body:   'DM Sans', system-ui, sans-serif;
    --font-display:'Playfair Display', Georgia, serif;
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--cream);
    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;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    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, 160, 23, 0.35);
}

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

.btn-nav {
    background: var(--gold);
    color: var(--navy-dark);
    padding: 10px 22px;
    font-size: 0.88rem;
}
.btn-nav:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 28, 63, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(15, 28, 63, 0.97);
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}
.logo-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links a {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    align-items: center;
    justify-content: center;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger {
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

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

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(212,160,23,0.12) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(26,45,90,0.6) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(10px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,160,23,0.15);
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(212,160,23,0.25);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
}
.hero-headline .text-gold {
    color: var(--gold);
}

.hero-sub {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

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

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    aspect-ratio: 520/620;
}
.hero-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating stat cards */
.float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}
.float-card--top {
    top: 8%;
    right: -10%;
    animation-delay: 0s;
}
.float-card--mid {
    top: 45%;
    left: -8%;
    animation-delay: 1.3s;
}
.float-card--bot {
    bottom: 10%;
    right: -5%;
    animation-delay: 2.6s;
}
.float-card-icon {
    font-size: 1.4rem;
    line-height: 1;
}
.float-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
}
.float-card-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

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

/* Wave divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ── Section shared ── */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.text-gold { color: var(--gold); }

/* ── Menu ── */
.menu-section {
    background: var(--cream);
}

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

.menu-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.menu-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 400/260;
}
.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-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.menu-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.menu-card-desc {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.65;
}

.menu-note {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-mid);
    font-weight: 500;
}

/* ── About ── */
.about-section {
    background: var(--white);
}

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

.about-img-stack {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 500/600;
}
.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-float {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 60%;
    aspect-ratio: 400/280;
    border: 5px solid var(--white);
}
.about-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-stat {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}
.about-stat-num { font-size: 1.6rem; }
.about-stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-light);
}

.about-content .section-title {
    text-align: left;
}

.about-p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gold-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.about-feature strong {
    display: block;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 2px;
}
.about-feature span {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ── Testimonials ── */
.testimonials-section {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 80% 20%, rgba(212,160,23,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-section .section-tag { color: var(--gold-light); }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .section-desc { color: rgba(255,255,255,0.6); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 32px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-name {
    display: block;
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
}
.testimonial-location {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* ── Visit ── */
.visit-section {
    background: var(--cream);
}

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

.visit-info .section-title { text-align: left; }
.visit-desc {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 36px;
}

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

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

.visit-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.visit-detail strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 4px;
}
.visit-detail span,
.visit-detail a {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
}
.visit-detail a:hover { color: var(--gold); text-decoration: underline; }

.btn-map {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-map:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,28,63,0.3);
}

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

.visit-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.visit-form-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.visit-form-sub {
    font-size: 0.92rem;
    color: var(--text-mid);
    margin-bottom: 28px;
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}
.form-input::placeholder { color: var(--text-light); }
.form-input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212,160,23,0.12);
}

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

.form-success {
    text-align: center;
    padding: 32px 20px;
}
.form-success-icon {
    width: 64px;
    height: 64px;
    background: var(--gold-pale);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 16px;
}
.form-success-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 8px;
}
.form-success-text {
    font-size: 0.92rem;
    color: var(--text-mid);
}

/* ── Footer ── */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.6);
    padding: 60px 0 0;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-brand .logo-icon { font-size: 2rem; }
.footer-brand .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}
.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
}
.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    font-size: 0.82rem;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Start below-fold reveals in visible state for no-JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-card { padding: 36px; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
    .hero-img-main { aspect-ratio: 480/400; }
    .float-card--top { right: 0; }
    .float-card--mid { left: 0; }
    .float-card--bot { right: 0; }

    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(15,28,63,0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px;
        border-radius: var(--radius-sm);
    }
    .nav-toggle { display: flex; }

    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-card { padding: 28px; }
    .hero-headline { font-size: clamp(1.6rem, 6vw, 2.4rem); }
    .float-card { display: none; }

    .about-grid { grid-template-columns: 1fr; }
    .about-img-stack { max-width: 400px; margin: 0 auto; }
    .about-content .section-title { text-align: center; }
    .about-p { text-align: center; }
    .about-features { align-items: center; }

    .menu-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .visit-grid { grid-template-columns: 1fr; }
    .visit-info .section-title { text-align: center; }
    .visit-desc { text-align: center; }
    .visit-details { align-items: center; }
    .visit-detail { flex-direction: column; text-align: center; }
    .btn-map { margin: 0 auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 70px 0; }
    .hero-card { padding: 24px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .visit-form-card { padding: 24px; }
}
