/* ============================================
   Carolina's Taquitos — Styles
   Palette: Terracotta + Sand
   Typography: Lora (serif) + DM Sans (sans)
============================================ */

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

:root {
    --color-terracotta: #B85C38;
    --color-terracotta-dark: #9A4B2C;
    --color-terracotta-light: #D4845E;
    --color-sand: #F5E6D3;
    --color-sand-light: #FAF3EB;
    --color-sand-dark: #E8D5C0;
    --color-charcoal: #1A1410;
    --color-charcoal-light: #2D241C;
    --color-warm-gray: #6B5E54;
    --color-warm-gray-light: #9A8D83;
    --color-cream: #FFFDF9;
    --color-white: #FFFFFF;

    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(26, 20, 16, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 20, 16, 0.1);
    --shadow-lg: 0 8px 32px rgba(26, 20, 16, 0.12);
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ---------- SKIP LINK ---------- */
.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: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 253, 249, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 92, 56, 0.1);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

/* ---------- LOGO ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-terracotta);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-charcoal);
    letter-spacing: -0.01em;
}

/* ---------- NAV ---------- */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-warm-gray);
    transition: color 0.2s ease;
    position: relative;
}

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

.main-nav a:hover,
.main-nav a:focus {
    color: var(--color-terracotta);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-terracotta);
    color: var(--color-white);
    border-color: var(--color-terracotta);
}

.btn--primary:hover,
.btn--primary:focus {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn--ghost:hover,
.btn--ghost:focus {
    background: var(--color-white);
    color: var(--color-charcoal);
    border-color: var(--color-white);
}

.btn--outline {
    background: transparent;
    color: var(--color-terracotta);
    border-color: var(--color-terracotta);
}

.btn--outline:hover,
.btn--outline:focus {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.btn--nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

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

/* ---------- NAV TOGGLE ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 101;
}

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

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

.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;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-charcoal);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/29251136/pexels-photo-29251136.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    transform: scale(1.05);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 20, 16, 0.82) 0%,
        rgba(26, 20, 16, 0.65) 50%,
        rgba(154, 75, 44, 0.4) 100%
    );
}

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

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta-light);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

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

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

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

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 253, 249, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255, 253, 249, 0.5), 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); }
}

/* ---------- SECTIONS ---------- */
.section {
    padding: var(--space-3xl) 0;
}

.section--dark {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.section--sand {
    background: var(--color-sand);
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-sm);
}

.section-eyebrow--light {
    color: var(--color-terracotta-light);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-charcoal);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

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

.section-title em {
    font-style: italic;
    color: var(--color-terracotta);
}

.section-title--light em {
    color: var(--color-terracotta-light);
}

.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-warm-gray);
}

.section-subtitle--light {
    color: rgba(255, 253, 249, 0.65);
}

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

.about-images {
    position: relative;
    min-height: 500px;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-float {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream);
}

.about-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    padding: var(--space-md) 0;
}

.about-text .section-title {
    margin-bottom: var(--space-lg);
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-sand-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-warm-gray-light);
}

/* ---------- MENU ---------- */
.menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.menu-category {
    background: rgba(255, 253, 249, 0.05);
    border: 1px solid rgba(255, 253, 249, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color 0.3s ease;
}

.menu-category:hover {
    border-color: rgba(184, 92, 56, 0.3);
}

.menu-category-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 253, 249, 0.1);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.menu-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-white);
}

.menu-item-desc {
    font-size: 0.875rem;
    color: rgba(255, 253, 249, 0.5);
    line-height: 1.5;
}

.menu-note {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 253, 249, 0.35);
    font-style: italic;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item--large {
    grid-column: 1 / 8;
    grid-row: 1 / 2;
    min-height: 400px;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--wide) {
    min-height: 200px;
}

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

/* ---------- VISIT ---------- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.visit-info {
    padding: var(--space-xl) 0;
}

.visit-info .section-title {
    margin-bottom: var(--space-xl);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.visit-detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: var(--radius-md);
    color: var(--color-terracotta);
    box-shadow: var(--shadow-sm);
}

.visit-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-warm-gray-light);
    margin-bottom: 0.25rem;
}

.visit-detail p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-charcoal);
}

.visit-detail a {
    color: var(--color-terracotta);
    font-weight: 500;
    transition: color 0.2s ease;
}

.visit-detail a:hover {
    color: var(--color-terracotta-dark);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    font-size: 0.9375rem;
}

.visit-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 450px;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--color-charcoal);
    color: rgba(255, 253, 249, 0.6);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 253, 249, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-brand .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 280px;
    color: rgba(255, 253, 249, 0.5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 253, 249, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-terracotta-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.footer-contact a {
    color: var(--color-terracotta-light);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 253, 249, 0.3);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .menu-categories {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item--large {
        grid-column: 1 / 7;
    }

    .gallery-item--wide {
        grid-column: 4 / 13;
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 5rem;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 253, 249, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: var(--space-lg);
        border-bottom: 1px solid rgba(184, 92, 56, 0.1);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        gap: var(--space-md);
    }

    .main-nav a {
        font-size: 1.125rem;
        color: var(--color-charcoal);
    }

    .main-nav a::after {
        display: none;
    }

    .btn--nav {
        margin-top: var(--space-sm);
    }

    .hero-content {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

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

    .about-images {
        min-height: 350px;
        order: -1;
    }

    .about-img-float {
        right: -10px;
        bottom: -20px;
    }

    .about-stats {
        gap: var(--space-lg);
    }

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

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

    .gallery-item--large,
    .gallery-item--wide {
        grid-column: 1 / -1;
    }

    .gallery-item--large {
        min-height: 250px;
    }

    .gallery-item--wide {
        min-height: 200px;
    }

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

    .visit-map {
        min-height: 300px;
        order: -1;
    }

    .visit-map iframe {
        min-height: 300px;
    }

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

    .hero-scroll {
        display: none;
    }
}

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

    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

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

    .gallery-item--large,
    .gallery-item--wide {
        min-height: 200px;
    }

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

    .visit-actions .btn {
        width: 100%;
    }
}
