/* ================================================================
   IRON PIT BBQ II — styles.css
   Warm & rustic smokehouse theme
   Mobile-first. Breakpoints: 480 / 768 / 1024 / 1280
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,600&family=Inter:wght@400;500;600;700&family=Caveat:wght@500;700&display=swap');

/* ============================================================
   1. DESIGN TOKENS — CSS custom properties
   ============================================================ */
:root {
    /* Palette — warm, rustic, smokehouse */
    --color-primary:     #8B2500;   /* deep ember / smoked brick */
    --color-primary-600: #7a1f00;
    --color-primary-400: #b13e18;

    --color-accent:      #D4A24C;   /* amber / mustard gold */
    --color-accent-600:  #b6873a;

    --color-bg:          #FAF3E7;   /* parchment cream */
    --color-surface:     #FFFBF2;   /* elevated card surface */
    --color-surface-2:   #F2E7D3;   /* muted surface / filters */

    --color-text:        #2B1F14;   /* dark roasted cocoa */
    --color-text-muted:  #6B5A46;   /* softened copy */
    --color-border:      #E4D6BD;   /* warm divider */

    --color-success:     #4F7A3A;
    --color-danger:      #A52A2A;

    /* Semantic surfaces */
    --color-header-bg:   rgba(255, 251, 242, 0.82);
    --color-overlay:     rgba(43, 31, 20, 0.55);
    --color-shadow:      rgba(60, 30, 10, 0.18);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #8B2500 0%, #b13e18 55%, #d46a2a 100%);
    --grad-accent:  linear-gradient(135deg, #D4A24C 0%, #b6873a 100%);
    --grad-hero:    linear-gradient(180deg, rgba(43,31,20,0.15) 0%, rgba(43,31,20,0.35) 45%, rgba(43,31,20,0.75) 100%);

    /* Typography */
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-accent:  'Caveat', 'Brush Script MT', cursive;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px var(--color-shadow);
    --shadow-md: 0 4px 14px var(--color-shadow);
    --shadow-lg: 0 14px 36px var(--color-shadow);
    --shadow-xl: 0 22px 60px rgba(60, 30, 10, 0.28);

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur-fast: 0.18s;
    --dur:      0.25s;
    --dur-slow: 0.4s;

    /* Layout */
    --container-max: 1280px;
    --header-height: 64px;

    /* Safe-area insets (notched devices) */
    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-right:  env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left:   env(safe-area-inset-left, 0px);
}

/* ----- Dark theme overrides ----- */
[data-theme='dark'] {
    --color-primary:     #E06B3A;
    --color-primary-600: #c85a2d;
    --color-primary-400: #f18a5d;

    --color-accent:      #E9B765;
    --color-accent-600:  #c99a4d;

    --color-bg:          #1A1209;
    --color-surface:     #241810;
    --color-surface-2:   #2E2014;

    --color-text:        #F5E8D3;
    --color-text-muted:  #B6A58B;
    --color-border:      #3A2918;

    --color-header-bg:   rgba(26, 18, 9, 0.82);
    --color-overlay:     rgba(0, 0, 0, 0.65);
    --color-shadow:      rgba(0, 0, 0, 0.55);

    --grad-primary: linear-gradient(135deg, #a3380e 0%, #e06b3a 55%, #f1a268 100%);
    --grad-hero:    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.85) 100%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --color-primary:     #E06B3A;
        --color-primary-600: #c85a2d;
        --color-primary-400: #f18a5d;

        --color-accent:      #E9B765;
        --color-accent-600:  #c99a4d;

        --color-bg:          #1A1209;
        --color-surface:     #241810;
        --color-surface-2:   #2E2014;

        --color-text:        #F5E8D3;
        --color-text-muted:  #B6A58B;
        --color-border:      #3A2918;

        --color-header-bg:   rgba(26, 18, 9, 0.82);
        --color-overlay:     rgba(0, 0, 0, 0.65);
        --color-shadow:      rgba(0, 0, 0, 0.55);

        --grad-primary: linear-gradient(135deg, #a3380e 0%, #e06b3a 55%, #f1a268 100%);
        --grad-hero:    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.85) 100%);
    }
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    background-image:
        radial-gradient(at 20% 0%, rgba(212, 162, 76, 0.08) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 37, 0, 0.06) 0, transparent 50%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-left:  var(--safe-left);
    padding-right: var(--safe-right);
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg, video, iframe {
    display: block;
    max-width: 100%;
    height: auto;
}

button { font: inherit; color: inherit; cursor: pointer; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-primary-600); text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-text);
    margin: 0 0 var(--space-4);
    letter-spacing: -0.01em;
}

p { margin: 0 0 var(--space-4); }

::selection { background: var(--color-accent); color: var(--color-text); }

/* Focus-visible for accessibility */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Screen reader helpers */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   3. LAYOUT PRIMITIVES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-7) 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-6);
}

.section-title {
    font-size: clamp(1.75rem, 4vw + 1rem, 2.75rem);
    margin-bottom: var(--space-3);
}

.section-lede {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 1.25rem;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-2);
}
[data-theme='dark'] .eyebrow { color: var(--color-accent); }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.7rem 1.3rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    color: var(--color-text);
    transition:
        transform var(--dur-fast) var(--ease),
        box-shadow var(--dur) var(--ease),
        background var(--dur) var(--ease),
        color var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
    white-space: nowrap;
    user-select: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--grad-primary);
    color: #FFF8EC;
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.btn-primary:hover { box-shadow: var(--shadow-lg); color: #FFF8EC; filter: brightness(1.05); }
.btn-primary:active { filter: brightness(0.95); box-shadow: var(--shadow-sm); }

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--color-primary);
    color: #FFF8EC;
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 0.95rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-add {
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
}

/* Icon buttons (header controls) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-text);
    position: relative;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover {
    background: var(--color-surface-2);
    color: var(--color-primary);
}

/* ============================================================
   5. HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-header-bg);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding-top: var(--safe-top);
    transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-display);
}
.brand:hover { text-decoration: none; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--grad-primary);
    color: #FFF8EC;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}
.brand-sub {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Theme toggle: show/hide sun/moon */
.theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

/* Cart badge */
.cart-toggle { position: relative; }
.cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--color-primary);
    color: #FFF8EC;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(30%, -30%);
    border: 2px solid var(--color-surface);
    transition: transform var(--dur) var(--ease);
}
.cart-badge:empty,
.cart-badge[data-count='0'],
.cart-badge[hidden] { display: none; }

/* Hamburger icon */
.nav-toggle { display: inline-flex; }
.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute; left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }
.nav-toggle[aria-expanded='true'] .hamburger { background: transparent; }
.nav-toggle[aria-expanded='true'] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .hamburger::after  { top: 0; transform: rotate(-45deg); }

/* Mobile nav (base) */
.primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: var(--space-3) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.nav-link {
    display: block;
    padding: 0.85rem var(--space-3);
    font-weight: 600;
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-link:hover,
.nav-link.is-active {
    background: var(--color-surface-2);
    color: var(--color-primary);
    text-decoration: none;
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 82vh;
    min-height: 82svh;
    display: flex;
    align-items: flex-end;
    padding: var(--space-8) 0 var(--space-7);
    overflow: hidden;
    color: #FFF8EC;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-image {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 8s var(--ease);
}
.hero:hover .hero-image { transform: scale(1.1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.hero .eyebrow { color: var(--color-accent); }

.hero-headline {
    font-size: clamp(2.25rem, 8vw + 0.5rem, 4.5rem);
    line-height: 1.05;
    color: #FFF8EC;
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.015em;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
    color: rgba(255, 248, 236, 0.92);
    max-width: 560px;
    margin: 0 auto var(--space-6);
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-6);
}

.hero-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
    justify-content: center;
    color: rgba(255, 248, 236, 0.88);
    font-size: 0.92rem;
}
.hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
.hero-meta strong { color: var(--color-accent); }

/* ============================================================
   7. SPECIALS
   ============================================================ */
.specials-section {
    background:
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-2) 100%);
}

.specials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.special-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5) var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    overflow: hidden;
}
.special-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad-primary);
}
.special-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.special-badge {
    display: inline-block;
    background: var(--grad-accent);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-3);
}

.special-name {
    font-size: 1.4rem;
    margin-bottom: var(--space-2);
}

.special-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-4);
}

.special-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding-top: var(--space-3);
    border-top: 1px dashed var(--color-border);
}

.special-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
}
[data-theme='dark'] .special-price { color: var(--color-accent); }

.special-avail {
    font-family: var(--font-accent);
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* ============================================================
   8. MENU FILTERS & GRID
   ============================================================ */
.menu-filters {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--space-2) var(--space-4);
    margin: 0 calc(var(--space-4) * -1) var(--space-6);
    scroll-snap-type: x proximity;
}
.menu-filters::-webkit-scrollbar { display: none; }

.filter-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.55rem 1.15rem;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition:
        background var(--dur) var(--ease),
        color var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        transform var(--dur-fast) var(--ease),
        box-shadow var(--dur) var(--ease);
}
.filter-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}
.filter-chip.is-active,
.filter-chip[aria-selected='true'] {
    background: var(--grad-primary);
    border-color: transparent;
    color: #FFF8EC;
    box-shadow: var(--shadow-sm);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.menu-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.menu-card.is-hidden { display: none; }

.menu-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-surface-2);
}
.menu-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.menu-card:hover .menu-media img {
    transform: scale(1.08);
}

.menu-tag {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--grad-accent);
    color: var(--color-text);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.menu-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: var(--space-5);
    gap: var(--space-2);
}

.menu-name {
    font-size: 1.2rem;
    margin: 0 0 var(--space-1);
}

.menu-desc {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    margin: 0 0 var(--space-4);
    flex: 1 1 auto;
}

.menu-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px dashed var(--color-border);
}

.menu-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-primary);
}
[data-theme='dark'] .menu-price { color: var(--color-accent); }

/* ============================================================
   9. ABOUT
   ============================================================ */
.about-section {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    gap: var(--space-6);
    align-items: center;
}

.about-media {
    position: relative;
    margin: 0;
}
.about-portrait {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
.about-caption {
    margin-top: var(--space-3);
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-align: center;
}

.about-copy p { font-size: 1.02rem; color: var(--color-text); }

.stats-row {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}
.stat {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}
[data-theme='dark'] .stat-num { color: var(--color-accent); }
.stat-label {
    display: block;
    margin-top: var(--space-2);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   10. VISIT
   ============================================================ */
.visit-grid {
    display: grid;
    gap: var(--space-5);
}
.visit-info {
    display: grid;
    gap: var(--space-4);
}

.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.info-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-accent);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.hours-table th,
.hours-table td {
    padding: var(--space-2) 0;
    text-align: left;
    border-bottom: 1px dashed var(--color-border);
}
.hours-table th { font-weight: 600; color: var(--color-text); }
.hours-table td { color: var(--color-text-muted); }
.hours-table tr.is-today th,
.hours-table tr.is-today td {
    color: var(--color-primary);
    font-weight: 700;
}
[data-theme='dark'] .hours-table tr.is-today th,
[data-theme='dark'] .hours-table tr.is-today td { color: var(--color-accent); }

.hours-note {
    margin-top: var(--space-4);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.info-address {
    font-style: normal;
    line-height: 1.7;
    margin-bottom: var(--space-4);
}
.info-link { font-weight: 600; }

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    min-height: 320px;
    background: var(--color-surface-2);
}
.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

/* ============================================================
   11. CONTACT
   ============================================================ */
.contact-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-2) 100%);
}
.contact-grid {
    display: grid;
    gap: var(--space-6);
}

.contact-direct {
    list-style: none;
    padding: 0;
    margin: var(--space-5) 0 0;
    display: grid;
    gap: var(--space-3);
}
.contact-direct li {
    display: flex;
    flex-direction: column;
    padding: var(--space-3) 0;
    border-bottom: 1px dashed var(--color-border);
}
.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}
.contact-value { font-weight: 600; font-size: 1rem; }

.contact-form {
    background: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.form-row {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-2);
    color: var(--color-text);
}
.form-optional {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem var(--space-3);
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.form-input::placeholder { color: var(--color-text-muted); opacity: 0.7; }
.form-input:hover { border-color: var(--color-primary-400); }
.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 37, 0, 0.18);
    background: var(--color-surface);
}
[data-theme='dark'] .form-input:focus {
    box-shadow: 0 0 0 3px rgba(224, 107, 58, 0.25);
}
.form-input:invalid:not(:placeholder-shown) { border-color: var(--color-danger); }

textarea.form-input { resize: vertical; min-height: 120px; line-height: 1.55; }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236B5A46' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-7);
}

.form-status {
    min-height: 1.5em;
    margin: var(--space-3) 0 0;
    font-size: 0.9rem;
    color: var(--color-success);
}
.form-status[data-state='error'] { color: var(--color-danger); }

/* ============================================================
   12. CART DRAWER
   ============================================================ */
.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--color-overlay);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}
.cart-backdrop.is-open {
    opacity: 1;
}
.cart-backdrop[hidden] { display: none; }

.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    height: 100dvh;
    width: 100%;
    max-width: 100%;
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
    z-index: 160;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow) var(--ease);
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    padding-right: var(--safe-right);
}
.cart-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border);
}
.cart-title {
    font-size: 1.35rem;
    margin: 0;
}

.cart-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: var(--space-4) var(--space-5);
}

.cart-empty {
    color: var(--color-text-muted);
    text-align: center;
    padding: var(--space-7) var(--space-4);
    font-family: var(--font-accent);
    font-size: 1.25rem;
}
.cart-items:not(:empty) ~ .cart-empty,
.cart-body:has(.cart-items:not(:empty)) .cart-empty { display: none; }

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "name remove"
        "qty  price";
    gap: var(--space-2) var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    align-items: center;
}
.cart-item-name { grid-area: name; font-weight: 600; }
.cart-item-price {
    grid-area: price;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-primary);
    text-align: right;
}
[data-theme='dark'] .cart-item-price { color: var(--color-accent); }
.cart-item-remove {
    grid-area: remove;
    width: 28px; height: 28px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cart-item-remove:hover {
    background: var(--color-danger);
    border-color: var(--color-danger);
    color: #FFF8EC;
}

.cart-qty {
    grid-area: qty;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 2px;
    width: fit-content;
}
.qty-btn {
    width: 28px; height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    transition: background var(--dur) var(--ease);
}
.qty-btn:hover { background: var(--color-surface-2); color: var(--color-primary); }
.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.92rem;
}

.cart-foot {
    border-top: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-5) var(--space-5);
    background: var(--color-surface-2);
}

.cart-totals {
    margin: 0 0 var(--space-4);
}
.totals-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-1) 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}
.totals-row dt, .totals-row dd { margin: 0; }
.totals-row--grand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 900;
    padding-top: var(--space-3);
    margin-top: var(--space-2);
    border-top: 2px solid var(--color-border);
}
.totals-row--grand dd { color: var(--color-primary); }
[data-theme='dark'] .totals-row--grand dd { color: var(--color-accent); }

.cart-foot-note {
    margin: var(--space-3) 0 0;
    font-family: var(--font-accent);
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, var(--color-surface-2) 0%, #2B1F14 120%);
    color: #F5E8D3;
    margin-top: var(--space-8);
    padding-top: var(--space-7);
}
[data-theme='dark'] .site-footer {
    background: linear-gradient(180deg, var(--color-surface) 0%, #0F0A05 100%);
}

.footer-grid {
    display: grid;
    gap: var(--space-6);
    padding-bottom: var(--space-7);
}

.footer-brand .brand-name { color: #F5E8D3; font-size: 1.4rem; }
.footer-brand .brand-sub  { color: var(--color-accent); }

.footer-blurb {
    max-width: 340px;
    color: rgba(245, 232, 211, 0.78);
    font-size: 0.95rem;
    margin-top: var(--space-3);
}

.footer-social {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.footer-social a {
    color: #F5E8D3;
    font-size: 0.9rem;
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border: 1px solid rgba(245, 232, 211, 0.2);
    border-radius: var(--radius-pill);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-text);
    text-decoration: none;
}

.footer-heading {
    font-family: var(--font-display);
    color: var(--color-accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-2);
}
.footer-nav a,
.footer-contact a {
    color: rgba(245, 232, 211, 0.82);
    font-size: 0.95rem;
}
.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-contact address {
    font-style: normal;
    line-height: 1.75;
    color: rgba(245, 232, 211, 0.82);
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 232, 211, 0.12);
    padding: var(--space-4) 0;
}
.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(245, 232, 211, 0.65);
}
.footer-bottom a { color: var(--color-accent); }

.footer-credit {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}
.footer-credit-label {
    color: rgba(245, 232, 211, 0.55);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.kustom-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(212, 162, 76, 0.35);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.kustom-link:hover,
.kustom-link:focus-visible {
    color: var(--color-text);
    background: var(--color-accent);
    border-color: var(--color-accent);
    text-decoration: none;
    transform: translateY(-1px);
}
.kustom-mark {
    transition: transform 220ms ease;
}
.kustom-link:hover .kustom-mark,
.kustom-link:focus-visible .kustom-mark {
    transform: rotate(72deg);
}

/* ============================================================
   14. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ----- 480px+ ----- */
@media (min-width: 480px) {
    .container { padding: 0 var(--space-5); }

    .hero-cta { gap: var(--space-4); }

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

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

    .stats-row { grid-template-columns: repeat(3, 1fr); }

    .cart-item {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "name qty price remove";
    }
    .cart-item { gap: var(--space-3); }
    .cart-item-remove { justify-self: center; }
}

/* ----- 768px+ (tablet) ----- */
@media (min-width: 768px) {
    :root { --header-height: 72px; }

    .container { padding: 0 var(--space-6); }

    .section { padding: var(--space-8) 0; }

    /* Horizontal desktop nav */
    .nav-toggle { display: none; }
    .primary-nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .nav-list {
        flex-direction: row;
        padding: 0;
        gap: var(--space-1);
    }
    .nav-link {
        padding: 0.5rem var(--space-3);
        font-size: 0.95rem;
    }
    .nav-link:hover { background: transparent; }
    .nav-link {
        position: relative;
    }
    .nav-link::after {
        content: '';
        position: absolute;
        left: 50%; bottom: 4px;
        width: 0; height: 2px;
        background: var(--color-primary);
        transition: width var(--dur) var(--ease), left var(--dur) var(--ease);
    }
    [data-theme='dark'] .nav-link::after { background: var(--color-accent); }
    .nav-link:hover::after,
    .nav-link.is-active::after {
        width: calc(100% - 2 * var(--space-3));
        left: var(--space-3);
    }

    .hero {
        min-height: 88vh;
        min-height: 88svh;
        align-items: center;
        padding: var(--space-9) 0;
    }

    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }

    .specials-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }

    .about-grid {
        grid-template-columns: 5fr 7fr;
        gap: var(--space-8);
    }

    .stats-row { grid-template-columns: repeat(5, 1fr); }

    .visit-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: var(--space-6);
    }
    .visit-map { min-height: 480px; }
    .visit-map iframe { min-height: 480px; }

    .contact-grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-7); }

    .cart-drawer { max-width: 420px; }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ----- 1024px+ (desktop) ----- */
@media (min-width: 1024px) {
    .container { padding: 0 var(--space-6); }

    .section { padding: var(--space-9) 0; }

    .nav-list { gap: var(--space-2); }
    .nav-link { padding: 0.5rem var(--space-4); }

    .specials-grid { grid-template-columns: repeat(4, 1fr); }

    .menu-grid { grid-template-columns: repeat(3, 1fr); }

    .hero-headline { font-size: clamp(3rem, 6vw + 0.5rem, 5rem); }

    .cart-drawer { max-width: 400px; }
}

/* ----- 1280px+ (large desktop) ----- */
@media (min-width: 1280px) {
    .menu-grid { grid-template-columns: repeat(4, 1fr); }

    .hero-content { max-width: 860px; }

    .section-title { font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem); }
}

/* ============================================================
   15. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .hero:hover .hero-image,
    .menu-card:hover .menu-media img { transform: none; }
}

/* ============================================================
   16. PRINT
   ============================================================ */
@media print {
    :root {
        --color-bg: #fff;
        --color-surface: #fff;
        --color-text: #000;
        --color-text-muted: #444;
        --color-border: #ccc;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .site-header,
    .site-footer,
    .hero-cta,
    .cart-drawer,
    .cart-backdrop,
    .cart-toggle,
    .theme-toggle,
    .nav-toggle,
    .menu-filters,
    .btn-add,
    .contact-form button,
    .visit-map,
    .hero-media,
    .hero-overlay {
        display: none !important;
    }

    main { display: block; }
    .section { padding: 1cm 0; page-break-inside: avoid; }

    .hero {
        min-height: auto;
        color: #000;
        padding: 1cm 0;
        background: none;
    }
    .hero-content { max-width: none; text-align: left; }
    .hero-headline { color: #000; text-shadow: none; font-size: 24pt; }
    .hero-subtitle { color: #333; }

    .menu-grid,
    .specials-grid {
        display: block;
        columns: 2;
        column-gap: 1.2cm;
    }
    .menu-card,
    .special-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 0.6cm;
    }
    .menu-media { display: none; }

    a { color: #000; text-decoration: underline; }
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555;
    }
}
