/* ========================================
   LOS LOCALES BAJA GRILL & CANTINA
   Vibrant Modern — Terracotta + Sand
   ======================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-terracotta: #C0573E;
    --color-terracotta-dark: #9E432F;
    --color-terracotta-light: #D4755D;
    --color-sand: #F5E6D3;
    --color-sand-light: #FAF3EB;
    --color-sand-dark: #E8D5BF;
    --color-charcoal: #1A1A1A;
    --color-dark: #2C2C2C;
    --color-text: #3A3A3A;
    --color-text-light: #6B6B6B;
    --color-white: #FFFFFF;
    --color-cream: #FFF9F5;

    --font-display: 'Syne', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.08);
    --shadow-md: 0 8px 30px rgba(26, 26, 26, 0.12);
    --shadow-lg: 0 16px 50px rgba(26, 26, 26, 0.15);
    --shadow-accent: 0 8px 30px rgba(192, 87, 62, 0.3);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
}
.skip-link:focus {
    top: var(--space-sm);
}

.center { text-align: center; }

/* ---------- Section Shared ---------- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: var(--shadow-accent);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(192, 87, 62, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover,
.btn-outline:focus-visible {
    background: var(--color-white);
    color: var(--color-terracotta);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 230, 211, 0.6);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
    gap: var(--space-md);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}
.logo--white .logo-text { color: var(--color-white); }
.logo--white .logo-sub { color: rgba(255, 255, 255, 0.8); }

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--color-charcoal);
}
.logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
}
.nav-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition);
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    transition: width var(--transition);
}
.nav-list a:hover { color: var(--color-terracotta); }
.nav-list a:hover::after { width: 100%; }

.btn-nav { display: none; }

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
    margin-left: auto;
}
.mobile-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}
.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}
.mobile-menu nav a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-charcoal);
}
.mobile-menu nav a:hover { color: var(--color-terracotta); }
.mobile-menu .btn {
    margin-top: var(--space-sm);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(44, 44, 44, 0.6) 50%,
        rgba(192, 87, 62, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    max-width: 860px;
}

.hero-badge {
    display: inline-block;
    background: rgba(192, 87, 62, 0.2);
    border: 1px solid rgba(192, 87, 62, 0.5);
    color: var(--color-terracotta-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}
.accent-text {
    color: var(--color-terracotta-light);
    display: inline;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.hero-shape {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}
.hero-shape--top-right {
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: var(--color-terracotta);
    border-radius: 50%;
    opacity: 0.12;
}
.hero-shape--bottom-left {
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: var(--color-sand);
    border-radius: 50%;
    opacity: 0.1;
}

/* ---------- About ---------- */
.about {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-visual {
    position: relative;
}
.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--color-terracotta);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.3;
}

.about-content .lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-charcoal);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}
.about-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--color-sand);
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-terracotta);
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

/* ---------- Menu ---------- */
.menu {
    padding: var(--space-3xl) 0;
    background: var(--color-sand-light);
    position: relative;
}
.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--color-terracotta) 0px,
        var(--color-terracotta) 40px,
        var(--color-sand-dark) 40px,
        var(--color-sand-dark) 80px
    );
}

.section-header {
    margin-bottom: var(--space-2xl);
}
.section-header.center { text-align: center; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.menu-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.menu-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.menu-card--featured .menu-card-img {
    height: 100%;
    min-height: 300px;
}

.menu-card-accent {
    display: none;
}
.menu-card--featured .menu-card-accent {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--color-terracotta);
}

.menu-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.menu-card-body {
    padding: var(--space-md);
}
.menu-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    background: rgba(192, 87, 62, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-sm);
}
.menu-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-xs);
}
.menu-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.menu-cta {
    text-align: center;
}
.menu-cta .btn { margin-bottom: var(--space-sm); }
.menu-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}
.gallery-item-overlay span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
}

/* ---------- Highlight Strip ---------- */
.highlight-strip {
    padding: var(--space-2xl) 0;
    background: var(--color-terracotta);
    position: relative;
    overflow: hidden;
}
.highlight-strip::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.highlight-strip::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}
.highlight-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    margin-top: 2px;
}
.highlight-item h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}
.highlight-item p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--color-sand-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-info .contact-desc {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}
.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-terracotta);
    margin-top: 2px;
}
.contact-details strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    margin-bottom: 0.15rem;
}
.contact-details span {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-terracotta);
    font-weight: 500;
    transition: color var(--transition);
}
.contact-link:hover { color: var(--color-terracotta-dark); }
.contact-link span {
    font-size: 0.95rem;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.map-link {
    display: block;
    position: relative;
}
.map-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition);
}
.map-link:hover .map-img {
    transform: scale(1.03);
}
.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: var(--space-md) var(--space-md) var(--space-sm);
    text-align: center;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}
.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--color-sand-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-sand-light);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(192, 87, 62, 0.15);
    background: var(--color-white);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(192, 87, 62, 0.1);
    border: 1px solid rgba(192, 87, 62, 0.3);
    color: var(--color-terracotta-dark);
    font-weight: 500;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
}
.form-success svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-terracotta);
}
.form-success.show {
    display: flex;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-nav a,
.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--color-terracotta-light); }
.footer-contact li {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .menu-card--featured {
        grid-template-columns: 1fr;
    }
    .menu-card--featured .menu-card-img {
        min-height: 220px;
    }
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .hero-headline {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn { width: 100%; max-width: 280px; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .about-visual { order: -1; }
    .about-stats {
        gap: var(--space-md);
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

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

    .about-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-wrap {
        padding: var(--space-md);
    }
}
