/* ============================================
   El Torero Mexicano — Restaurant Website Styles
   Created By: Fatima M Napoles
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    --sandwood: #F5EBE0;
    --sandwood-light: rgb(250, 235, 222);
    --sandwood-dark: #D4C4A8;

--maroon: #9B0808;
    --maroon-light: #A52A2A;
    --maroon-dark: #5C0015;

    --mexican-green: #1D8348;
    --mexican-green-light: #166537;
    --mexican-green-dark: rgb(0, 77, 53);

    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-dark: rgb(55, 55, 55);
--gray: #555555;
--gray-light: #767676;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
    --font-accent: 'Dancing Script', cursive;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.18);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --radius-full: 9999px;

    --navbar-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
    font-family: var(--font-body);
    background-color: var(--sandwood);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Prevent body scroll when mobile nav is open */
body.nav-open {
    overflow: hidden;
}

::selection {
    background-color: var(--maroon);
    color: var(--white);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sandwood-light); }
::-webkit-scrollbar-thumb {
    background: var(--maroon);
    border-radius: var(--radius-full);
    border: 2px solid var(--sandwood-light);
}
::-webkit-scrollbar-thumb:hover { background: var(--maroon-dark); }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--maroon);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; font-size: 1rem; }

.accent-text {
    font-family: var(--font-accent);
    color: var(--mexican-green);
}

a {
    color: var(--maroon);
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Underline links inside body text for accessibility */
p a, li a:not(.nav-link):not(.btn):not(.social-icon), .footer-description a, .breadcrumb a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover { color: var(--mexican-green); }

/* ============================================
   UTILITIES
   ============================================ */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section { padding: var(--spacing-xl) 0; }

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--maroon);
    margin: var(--spacing-sm) auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--mexican-green);
    display: block;
    margin-bottom: 0.5rem;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }

/* Accessible links - underline on hover for body text links */
p a, .footer-description a, .breadcrumb a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transition: left 0.5s ease;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: var(--maroon);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(159, 8, 8, 0.3);
}

.btn-primary:hover {
    background: var(--maroon-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(159, 8, 8, 0.4);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
    background: var(--mexican-green-light);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 77, 53, 0.3);
}

.btn-secondary:hover {
    background: var(--mexican-green-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 77, 53, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--maroon);
    border: 2px solid var(--maroon);
}

.btn-outline:hover {
    background-color: var(--maroon);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(159, 8, 8, 0.3);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--maroon);
    transform: translateY(-3px);
}

.btn-sm { padding: 0.6rem 1.5rem; font-size: 0.78rem; letter-spacing: 1.5px; }
.btn-lg { padding: 1.1rem 3rem; font-size: 0.95rem; letter-spacing: 2.5px; }

/* ============================================
   English --> Spanish translation
   ============================================ */

.btn-lang {
    background: var(--maroon);
    border: 2px solid var(--maroon);
    color: var(--white);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

.btn-lang:hover {
    background: var(--maroon-dark);
    border-color: var(--maroon-dark);
    color: var(--white);
    transform: translateY(-1px);
}

/* Navbar scroll = Color change */
.navbar.scrolled .btn-lang {
    background: var(--maroon);
    border-color: var(--maroon);
    color: var(--white);
}

.navbar.scrolled .btn-lang:hover {
    background: var(--maroon-dark);
    border-color: var(--maroon-dark);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    background-color: rgb(34, 33, 33);
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background-color: rgba(245, 235, 224, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.875rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: filter var(--transition-medium);
}

.navbar.scrolled .nav-logo-img { filter: none; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-link { color: var(--gray-dark); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mexican-green-light);
    transition: width var(--transition-medium);
    border-radius: var(--radius-full);
}

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

.nav-link:hover,
.nav-link.active { color: var(--mexican-green-light); }

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--maroon-light); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    /* Larger touch target on mobile */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 28px;
    height: 2.5px;
    background-color: var(--maroon);
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
    display: block;
}

.navbar.scrolled .nav-toggle span { background-color: var(--maroon); }

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

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

/* ============================================
   HERO SECTION —
   ============================================ */

.hero {
    position: relative;
    height: 80vh;          /* Was 100vh — now shorter so next section peeks in */
    min-height: 560px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image-wrapper picture,
.hero-image-wrapper .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 0 var(--spacing-md);
    max-width: 900px;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--sandwood-light);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
    z-index: 2;
}

.hero-scroll-icon {
    width: 28px;
    height: 48px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 14px;
    position: relative;
}

.hero-scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* ============================================
   PAGE HEADERS
   ============================================ */

.page-header {
    position: relative;
    height: 50vh;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    /* Disabled fixed/parallax on all — broken on iOS */
    background-attachment: scroll;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.page-header-subtitle {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--sandwood-light);
    margin-bottom: 0.5rem;
    display: block;
}

.page-header-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1rem;
}

/* ============================================
   PAGE HEADER — VIDEO VARIANT (about.html)
   ============================================ */

.page-header--video {
    /* Remove background-image styling; video fills the space */
    background-image: none !important;
    background: #111;
    overflow: hidden;
}

.page-header__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    /* Pointer events off so overlay gets clicks */
    pointer-events: none;
}

/* The ::before overlay already sits at z-index:1; content at z-index:2 — perfect */

/* ============================================
   BREADCRUMB WOOO
   ============================================ */

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--sandwood-light);
}

.breadcrumb a { color: var(--sandwood-light); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-separator { color: var(--sandwood); }

/* ============================================
   GALLERY
   ============================================ */

.gallery-grid { display: grid; gap: 1.5rem; }
.gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* photo layout */
.gallery-showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 340px 220px;
    gap: 0.75rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gs-feature  { grid-column: 1; grid-row: 1 / span 2; border-radius: var(--radius-md) 0 0 var(--radius-md); }
.gs-tall     { grid-column: 2 / span 2; grid-row: 1; border-radius: 0 var(--radius-md) 0 0; }
.gs-small-top    { grid-column: 2; grid-row: 2; }
.gs-small-bottom { grid-column: 3; grid-row: 2; border-radius: 0 0 var(--radius-md) 0; }

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-medium);
}

.gallery-item:hover { box-shadow: var(--shadow-md); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(92,0,21,0.85) 0%, rgba(92,0,21,0.15) 50%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem 1.5rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    transform: translateY(16px);
    transition: transform var(--transition-medium);
}

.gallery-item:hover .gallery-item-title { transform: translateY(0); }

/* Photo Strip */
.photo-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.photo-strip::-webkit-scrollbar { height: 6px; }

.photo-strip-item {
    flex: 0 0 300px;
    height: 400px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* Image + Text Row */
.image-text-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 2rem;
}

.image-text-row:nth-child(even) .image-text-image { order: 2; }

.image-text-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-text-image img { width: 100%; display: block; }

.image-text-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--mexican-green-light);
    border-radius: var(--radius-md);
    z-index: -1;
}

.image-text-content h3 { margin-bottom: 1rem; }

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
    backdrop-filter: blur(4px);
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    text-align: center;
    color: rgba(255,255,255,0.85);
    padding: 1rem;
    font-size: 1rem;
    font-style: italic;
}

.lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover { color: var(--maroon-light); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 1rem;
    transition: all var(--transition-fast);
    user-select: none;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    color: var(--white);
    background: rgba(159, 8, 8, 0.6);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ============================================
   MENU CAROUSEL — TRUE SLIDING CAROUSEL
   ============================================ */

.menu-carousel-section {
    background: var(--sandwood-light);
    padding: var(--spacing-xl) 0;
}

/* Outer wrapper: clips the sliding track */
.menu-carousel {
    position: relative;
    overflow: hidden;
    /* Side padding reveals partial next/prev cards as a peek hint */
    padding: 0 0 1rem;
    margin: 0 -0.5rem;
}

/* The sliding track — JS sets transform on this */
.menu-carousel-track {
    display: flex;
    gap: 0;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.menu-carousel-track.dragging {
    transition: none;
    cursor: grabbing;
}

/* Each card: width is set by JS via --cards-visible CSS var */
.menu-carousel-item {
    flex: 0 0 calc((100% / var(--cards-visible, 3)) - 1.5rem);
    margin: 0 0.75rem;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.menu-carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.menu-carousel-image { position: relative; height: 230px; overflow: hidden; }

.menu-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    pointer-events: none; /* prevent drag issues */
}

.menu-carousel-item:hover .menu-carousel-image img { transform: scale(1.06); }

.menu-carousel-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--maroon);
    color: var(--white);
    padding: 0.3rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
}

.menu-carousel-badge:empty { display: none; }

.menu-carousel-content { padding: 1.5rem; }
.menu-carousel-category { font-family: var(--font-accent); font-size: 1rem; color: var(--mexican-green-light); margin-bottom: 0.25rem; display: block; }
.menu-carousel-title { font-size: 1.3rem; color: var(--maroon); margin-bottom: 0.5rem; }
.menu-carousel-description { font-size: 0.87rem; color: var(--gray); margin-bottom: 1.25rem; line-height: 1.65; }
.menu-carousel-footer { display: flex; justify-content: space-between; align-items: center; }
.menu-carousel-price { font-size: 1.4rem; font-weight: 700; color: var(--maroon); }

/* ---- Arrow Buttons ---- */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--maroon);
    color: var(--maroon);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--maroon);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(159, 8, 8, 0.35);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* ---- Dot Indicators ---- */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sandwood-dark);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.carousel-dot.active {
    background: var(--maroon);
    transform: scale(1.35);
    width: 28px;
    border-radius: 5px;
}

/* ============================================
   MENU GRID
   ============================================ */

.menu-categories { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }

.menu-category-btn {
    padding: 0.65rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--maroon);
    color: var(--maroon);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-pill);
    min-height: 44px;
}

.menu-category-btn:hover,
.menu-category-btn.active {
    background: var(--maroon);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(159,8,8,0.3);
    transform: translateY(-2px);
}

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }

.menu-item {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    border: 1px solid rgba(0,0,0,0.04);
}

.menu-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.menu-item-image { height: 210px; overflow: hidden; cursor: pointer; }

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.menu-item:hover .menu-item-image img { transform: scale(1.06); }
.menu-item-content { padding: 1.5rem; }
.menu-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.menu-item-name { font-size: 1.2rem; color: var(--maroon); margin: 0; }
.menu-item-price { font-size: 1.2rem; font-weight: 700; color: var(--mexican-green-dark); white-space: nowrap; }
.menu-item-description { font-size: 0.88rem; color: var(--gray); margin-bottom: 1rem; line-height: 1.6; }
.menu-item-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.menu-tag {
    padding: 0.25rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    background-color: var(--sandwood-light);
    color: var(--gray-dark);
}

.menu-tag.spicy { background-color: var(--maroon-light); color: var(--white); }
.menu-tag.vegetarian { background-color: var(--mexican-green-light); color: var(--white); }
.menu-tag.popular { background-color: #F4C430; color: var(--black); }

/* ============================================
   ORDER ONLINE PAGE
   ============================================ */

.order-cta-section {
    background: var(--maroon-dark);
    padding: var(--spacing-lg) 0;
}

/* Hero variant — used on order.html as the main section */
.order-cta-hero {
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 5rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.order-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.order-cta-left .section-subtitle { color: rgba(255,255,255,0.6); }
.order-cta-left h1,
.order-cta-left h2 { color: var(--white); margin-bottom: 1rem; }
.order-cta-left p { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 2rem; line-height: 1.8; }

.order-cta-title {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.order-cta-right { display: flex; flex-direction: column; gap: 1rem; }

.order-platform-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-pill);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.order-platform-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
    transform: translateX(6px);
}

.order-platform-btn img { height: 32px; width: auto; object-fit: contain; }

/* Order steps */
.order-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 4rem; }
.order-step { text-align: center; position: relative; }
.order-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--maroon);
    opacity: 0.3;
}
.order-step:last-child::after { display: none; }
.order-step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--maroon);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(159,8,8,0.3);
}
.order-step-title { font-size: 1.15rem; color: var(--maroon); margin-bottom: 0.5rem; }
.order-step-description { font-size: 0.88rem; color: var(--gray); }

/* Forms */
.order-form-section {
    background-color: var(--sandwood-light);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.order-form { display: grid; gap: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.form-label { font-weight: 600; color: var(--gray-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

.form-input,
.form-select,
.form-textarea {
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--sandwood-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: var(--white);
    color: var(--gray-dark);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 2px solid var(--maroon);
    outline-offset: 2px;
    border-color: var(--mexican-green-light);
    box-shadow: 0 0 0 4px rgba(29, 131, 72, 0.1);
}

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

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-intro-image { position: relative; }

.about-intro-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-intro-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--mexican-green-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--maroon-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.stat-item { text-align: center; color: var(--white); }
.stat-number { font-family: var(--font-display); font-size: 3rem; font-weight: 700; display: block; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.85; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }

.team-member {
    text-align: center;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    border: 1px solid rgba(0,0,0,0.04);
}

.team-member:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.team-member-image { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 0 auto 1.25rem; border: 4px solid var(--mexican-green-light); }
.team-member-image img { width: 100%; height: 100%; object-fit: cover; }
.team-member-name { font-size: 1.2rem; color: var(--maroon); margin-bottom: 0.25rem; }
.team-member-role { font-family: var(--font-accent); font-size: 1rem; color: var(--mexican-green-light); margin-bottom: 1rem; }
.team-member-bio { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--maroon);
    opacity: 0.3;
    border-radius: var(--radius-full);
}

.timeline-item { display: flex; margin-bottom: 3rem; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
    width: 45%;
    background-color: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.timeline-item:nth-child(odd)  .timeline-content { margin-right: 5%; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 5%; }
.timeline-year  { font-family: var(--font-display); font-size: 1.4rem; color: var(--maroon); margin-bottom: 0.5rem; }
.timeline-title { font-size: 1rem; color: var(--mexican-green-light); margin-bottom: 0.5rem; }

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--maroon);
    border: 3px solid var(--sandwood-light);
    box-shadow: 0 2px 8px rgba(159,8,8,0.4);
}

/* ============================================
   LOCATIONS PAGE
   ============================================ */

.locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }

.location-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: 1px solid rgba(0,0,0,0.04);
}

.location-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.location-card-image { height: 210px; overflow: hidden; }

.location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.location-card:hover .location-card-image img { transform: scale(1.08); }
.location-card-content { padding: 1.75rem; }
.location-card-name { font-size: 1.4rem; color: var(--maroon); margin-bottom: 1rem; }
.location-card-info { margin-bottom: 1rem; }

.location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.location-info-icon { width: 20px; color: var(--mexican-green-light); flex-shrink: 0; }
.location-card-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }
.location-card-actions .btn { flex: 1; padding: 0.7rem; font-size: 0.78rem; }

.map-section { position: relative; height: 500px; margin-top: 4rem; }

.map-container {
    width: 100%;
    height: 100%;
    background-color: var(--sandwood-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe { width: 100%; height: 100%; border: none; }

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials-section {
    background: var(--maroon-dark);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle ambient glow in background */
.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 15% 60%, rgba(255,255,255,0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-section .section-subtitle { color: rgba(255,255,255,0.7); }
.testimonials-section h2 { color: var(--white); }

/* Works for both class names used across pages */
.testimonials-grid,
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Staggered entrance animation */
.testimonials-grid .testimonial,
.testimonials-slider .testimonial {
    opacity: 0;
    transform: translateY(32px);
    animation: testimonialIn 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonials-grid .testimonial:nth-child(1),
.testimonials-slider .testimonial:nth-child(1) { animation-delay: 0.1s; }
.testimonials-grid .testimonial:nth-child(2),
.testimonials-slider .testimonial:nth-child(2) { animation-delay: 0.27s; }
.testimonials-grid .testimonial:nth-child(3),
.testimonials-slider .testimonial:nth-child(3) { animation-delay: 0.44s; }

@keyframes testimonialIn {
    to { opacity: 1; transform: translateY(0); }
}

.testimonial {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    position: relative;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}

.testimonial:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 28px 72px rgba(0,0,0,0.6);
    background: rgba(255,255,255,0.09);
    transition: all var(--transition-medium);
}

/* Large decorative opening quote */
.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5.5rem;
    font-family: var(--font-display);
    color: rgba(255,255,255,0.07);
    line-height: 1;
    pointer-events: none;
}

/* 5-star row */
.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 0.85rem;
    color: #F4C430;
    font-size: 0.85rem;
}

.testimonial-quote {
    color: rgba(255,255,255,0.92);
    font-size: 0.97rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
    font-style: italic;
    flex: 1; /* pushes author to bottom of card */
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.testimonial-author-image {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.25);
}

.testimonial-author-image img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-author-info { display: flex; flex-direction: column; gap: 0.15rem; }

.testimonial-author-name {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
}

.testimonial-author-title {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    display: block;
}

/* ============================================
   FEATURES
   ============================================ */

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

.feature-box {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--maroon);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
    transform-origin: left;
}

.feature-box:hover::before { transform: scaleX(1); }
.feature-box:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--maroon);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(159,8,8,0.2);
}

.feature-title { font-size: 1.2rem; color: var(--maroon); margin-bottom: 0.75rem; }
.feature-description { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }

/* ============================================
   NEWSLETTER / CTA SECTION
   ============================================ */

.newsletter-section {
    background: var(--maroon-dark);
    padding: var(--spacing-lg) 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-text h3 { color: var(--white); font-size: 2rem; margin-bottom: 0.5rem; }
.newsletter-text p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin: 0; }

.newsletter-form { display: flex; gap: 0.75rem; }

.newsletter-input {
    padding: 1rem 1.5rem;
    width: 300px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-input:focus {
    outline: 2px solid var(--maroon);
    outline-offset: 2px;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}

.newsletter-btn {
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--maroon-dark);
    padding: 1rem 1.75rem;
    border: 2px solid var(--white);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all var(--transition-fast);
}

.newsletter-btn:hover { background: transparent; color: var(--white); transform: translateY(-2px); }

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #222222;
    color: var(--white);
    padding-top: 0;
}

.footer-top-bar {
    background: var(--maroon-dark);
    padding: 0.75rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.8);
}

.footer-tagline i { font-size: 0.7rem; opacity: 0.6; margin: 0 0.5rem; }

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: start;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo { margin-bottom: 1.25rem; }

.footer-logo-img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-description {
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-social { display: flex; gap: 0.75rem; }

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--maroon);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(159,8,8,0.4);
    border-color: transparent;
}

.footer-column h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--maroon-light);
    border-radius: var(--radius-full);
}

.footer-hours { display: flex; flex-direction: column; }

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.88rem;
}

.hours-row:last-child { border-bottom: none; }
.hours-day { color: rgba(255,255,255,0.5); }
.hours-time { color: var(--white); font-weight: 500; }

.footer-map-column { display: flex; flex-direction: column; }

.footer-map-inner {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    height: 200px;
    margin-bottom: 1rem;
}

.footer-map-container { width: 100%; height: 100%; }

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(50%) brightness(0.8);
    transition: filter var(--transition-medium);
    display: block;
}

.footer-map-inner:hover .footer-map-container iframe { filter: grayscale(0%) brightness(1); }

.footer-map-buttons { display: flex; gap: 0.6rem; }

.footer-map-buttons .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.7rem 1rem;
    justify-content: center;
}

.footer-bottom { padding: 1.5rem 0; background-color: rgba(0,0,0,0.2); }

.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.footer-copyright { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin: 0; }
.footer-copyright a { color: rgba(255,255,255,0.9); transition: color var(--transition-fast); }
.footer-copyright a:hover { color: var(--white); }

.footer-bottom-links { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.footer-bottom-links a { color: var(--maroon-light); transition: color var(--transition-fast); }
.footer-bottom-links a:hover { color: var(--white); }

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scrollDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50%       { transform: translateX(-50%) translateY(10px); opacity: 0.4; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE — 1200px
   ============================================ */

@media (max-width: 1200px) {
    .gallery-showcase {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 180px 180px;
    }
    .gs-feature {
        grid-column: 1 / span 2;
        grid-row: 1;
        border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    }
    .gs-tall      { grid-column: 1; grid-row: 2; border-radius: 0 !important; }
    .gs-small-top { grid-column: 2; grid-row: 2; border-radius: 0 !important; }
    .gs-small-bottom {
        grid-column: 1 / span 2;
        grid-row: 3;
        border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    }
}

/* ============================================
   RESPONSIVE — 992px (Tablet / Mobile Nav)
   ============================================ */

@media (max-width: 992px) {
    /* ---- Mobile nav drawer ---- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background-color: var(--sandwood-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: right var(--transition-medium);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        overflow-y: auto;
        padding: 2rem 1rem;
    }

    .nav-menu.active { right: 0; }

    /* Links in open drawer are dark, regardless of scroll state */
    .nav-link,
    .navbar .nav-menu .nav-link { color: var(--gray-dark); font-size: 1.1rem; }

    .nav-toggle { display: flex; }

    /* Layouts */
    .about-intro,
    .image-text-row { grid-template-columns: 1fr; gap: 2rem; }
    .image-text-row:nth-child(even) .image-text-image { order: 0; }
    .order-steps { grid-template-columns: repeat(2, 1fr); }
    .order-step::after { display: none; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    /* Carousel → 2 cards visible on tablet */
    .menu-carousel-item { flex: 0 0 calc((100% / 2) - 1.5rem); }
    /* Testimonials → stacked on tablet */
    .testimonials-grid,
    .testimonials-slider { grid-template-columns: 1fr; }

    /* Footer */
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; align-items: center; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-logo-img { margin: 0 auto; }
    .footer-map-column { grid-column: span 2; }
    .footer-map-inner { height: 220px; }

    /* Order CTA */
    .order-cta-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .order-platform-btn { justify-content: center; }
    .order-platform-btn:hover { transform: translateY(-3px); }
}

/* ============================================
   RESPONSIVE — 768px (Mobile)
   ============================================ */

@media (max-width: 768px) {
    /* Hero */
    .hero {
        height: 75vh;
        min-height: 480px;
    }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 300px; }

    /* Page headers */
    .page-header {
        min-height: 280px;
        height: 40vh;
    }

    /* Video header — reduce height on mobile */
    .page-header--video {
        min-height: 260px;
        height: 38vh;
    }

    /* Photo strip: show partial next card as hint */
    .photo-strip-item { flex: 0 0 80vw; height: 260px; }

    /* Gallery */
    .gallery-grid-3,
    .gallery-grid-4 { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { grid-column: span 1; align-items: center; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
    .footer-map-column { grid-column: span 1; }
    .footer-map-inner { height: 180px; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
    .hours-row { justify-content: center; gap: 1.5rem; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; gap: 1rem; }
    .order-form-section { padding: 1.5rem; }

    /* Newsletter */
    .newsletter-content { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; width: 100%; }
    .newsletter-input { width: 100%; }
    .newsletter-text h3 { font-size: 1.5rem; }

    /* Timeline */
    .timeline::before { left: 0; }
    .timeline-item,
    .timeline-item:nth-child(even) { flex-direction: column; }
    .timeline-content { width: 90%; margin-left: 10% !important; margin-right: 0 !important; }
    .timeline-marker { left: 0; transform: translateX(-50%); }

    /* Lightbox nav — keep within viewport */
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    /* Buttons in nav drawer */
    .btn-lang { margin: 0.5rem 0; }

    /* Order page */
    .order-cta-hero {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + 2rem);
        padding-bottom: 3rem;
    }
}

/* ============================================
   RESPONSIVE — 576px (Small Mobile)
   ============================================ */

@media (max-width: 576px) {
    :root { --spacing-xl: 3rem; }

    .container { padding: 0 1rem; }
    .section { padding: 2.5rem 0; }
    .menu-carousel-section { padding: 2rem 0; }

    h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }

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

    .order-steps { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem; }
    .stat-number { font-size: 2.2rem; }

    /* Carousel → 1 card on small mobile */
    .menu-carousel-item { flex: 0 0 calc(100% - 1.5rem); }
    .menu-grid { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: 1fr; }

    .photo-strip-item { flex: 0 0 90vw; height: 240px; }

    /* Make all primary/outline CTAs full-width in small viewports */
    .section .btn + .btn,
    .newsletter-content .btn { width: 100%; text-align: center; }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
    .navbar, .footer, .lightbox, .nav-overlay { display: none !important; }
    body { background: white; color: black; }
}