/* =========================================================
   BETA FOOD — MODERN DESIGN SYSTEM
   Rebuilt stylesheet: same class names as before (so the
   existing cart / checkout / meal-builder JS keeps working),
   completely new visual language.
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
    --primary: #8c2f2f;
    --primary-dark: #6b2323;
    --primary-light: #f4e3e1;
    --accent: #2e5339;
    --accent-dark: #1f3b28;
    --gold: #a9863f;

    --bg: #fffaf7;
    --surface: #ffffff;
    --surface-2: #f7ede9;
    --text: #232323;
    --text-muted: #6b6459;
    --border: #eadfd7;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(35, 40, 50, 0.07);
    --shadow-md: 0 10px 30px rgba(35, 40, 50, 0.12);
    --shadow-lg: 0 24px 60px rgba(35, 40, 50, 0.18);

    --font: "Poppins", system-ui, sans-serif;
    --nav-h: 62px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* subtle grain texture, tileable, used as an overlay */
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* Dark mode now follows the visitor's OS/browser setting automatically
   (no manual toggle) via prefers-color-scheme, further down this file. */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1c1613;
        --surface: #241c18;
        --surface-2: #2b221d;
        --text: #f3ece6;
        --text-muted: #b8a99c;
        --border: #3a2e27;
        --primary-light: #3a2320;
        --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    }
}

/* ---------- 2. RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--grain);
    opacity: 0.035;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2;
}
body.dark::before { mix-blend-mode: overlay; opacity: 0.06; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
p { color: var(--text-muted); }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--primary); color: #fff; padding: 12px 20px;
    z-index: 10000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

section h2 {
    font-size: clamp(28px, 4vw, 40px);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
section h2 span { color: var(--accent); }
.section-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 48px;
    font-size: 15.5px;
}

/* ---------- 3. LOADER ---------- */
#loader {
    position: fixed; inset: 0; z-index: 100000;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader img {
    width: 72px; height: 72px; object-fit: contain;
    animation: loaderPulse 1.1s ease-in-out infinite;
}
#loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.6; }
}

/* ---------- 4b. ANNOUNCEMENT BAR ---------- */
#announcement-bar {
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 40px 8px 14px;
    position: relative;
    z-index: 1001;
}
#announcement-bar span { letter-spacing: 0.2px; }
@media (max-width: 480px) {
    #announcement-bar { font-size: 11.5px; padding: 7px 36px 7px 10px; }
    .status-badge {
        max-width: calc(100% - 8px);
        white-space: normal;
        text-align: left;
        font-size: 12.5px;
        padding: 7px 14px;
    }
    .hero .btn, .hero .cta-glow {
        font-size: 14.5px;
        padding: 14px 22px;
    }
}
#announcement-bar .close-announcement {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.85;
    line-height: 1;
    padding: 4px;
}
#announcement-bar .close-announcement:hover { opacity: 1; }

/* ---------- 4. NAVIGATION ---------- */
nav {
    background: rgba(140, 47, 47, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--nav-h);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

nav img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: rgba(255,255,255,0.88);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

nav a:hover { color: #fff; background: rgba(255,255,255,0.12); }

nav a.active {
    color: #8c2f2f;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: rgba(255,255,255,0.12); }

.cart-icon {
    position: relative;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    transition: transform var(--transition), background var(--transition);
}
.cart-icon:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

#cart-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 19px; height: 19px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--primary);
}

/* theme toggle removed — site now follows the OS/browser color-scheme automatically */

/* CART PANEL (JS toggles this with display:block/none directly) */
.cart-box {
    display: none;
    position: absolute;
    top: 80px;
    right: 20px;
    width: min(400px, 92vw);
    max-height: 85vh;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    padding: 24px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2000;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    animation: cartIn 0.25s ease;
}
@keyframes cartIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.cart-box h3 {
    font-size: 22px;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.cart-box h3::before { content: "🛒"; }

#cart-items { flex: 1; margin-bottom: 16px; }
#cart-items p { color: var(--text-muted); text-align: center; padding: 40px 0; }

.cart-item, .cart-meal {
    background: var(--surface-2);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
}
.food-name { font-weight: 600; color: var(--text); }
.food-qty { font-size: 13px; color: var(--text-muted); }
.remove-btn, .remove-meal {
    background: none;
    border: none;
    color: var(--accent-dark);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
}
.remove-btn:hover, .remove-meal:hover { text-decoration: underline; }

.cart-meal-header { font-weight: 700; margin-bottom: 6px; display: flex; justify-content: space-between; }
.cart-meal-item { font-size: 13.5px; color: var(--text-muted); padding-left: 6px; }
.cart-meal-total { font-weight: 700; margin-top: 8px; text-align: right; color: var(--primary); }

.cart-box h4 {
    display: flex; justify-content: space-between;
    padding-top: 14px;
    border-top: 2px dashed var(--border);
    font-size: 18px;
}

.checkout-btn, .btn, #place-order, #payment-done, #copy-account, #add-built-meal, .order-menu-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 8px 20px rgba(46, 83, 57, 0.35);
}
.checkout-btn:hover, .btn:hover, #place-order:hover, #payment-done:hover, #copy-account:hover, #add-built-meal:hover, .order-menu-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(46, 83, 57, 0.45);
}
.checkout-btn { width: 100%; margin-top: 14px; }

/* CHECKOUT FORM (JS toggles class "open" AND inline display) */
.checkout-form {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px dashed var(--border);
}
.checkout-form.open { display: flex; }
.checkout-form input, .checkout-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition);
}
.checkout-form input:focus, .checkout-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.checkout-form textarea { min-height: 70px; resize: vertical; }
#place-order { width: 100%; }
#cancel-order {
    width: 100%;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}
#cancel-order:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--text-muted);
    transform: none;
    box-shadow: none;
}

/* PAYMENT POPUP (MODAL) — JS toggles inline display:block/none directly */
.payment-popup {
    display: none;
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    padding: 30px 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    text-align: center;
    animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.9) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.payment-popup h2 { font-size: 20px; margin-bottom: 8px; }
.payment-popup hr { border: none; border-top: 1px dashed var(--border); margin: 14px 0; }
.payment-popup p { margin: 4px 0; }
#account-number {
    font-weight: 700;
    color: var(--primary);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 6px;
}
.payment-check {
    display: flex; align-items: center; gap: 8px;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
}
#payment-done { width: 100%; margin-top: 12px; }

.popup-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 20, 15, 0.55);
    backdrop-filter: blur(2px);
    z-index: 2500;
    display: none;
}
.popup-overlay.active { display: block; }

/* ---------- 5. WHATSAPP FLOAT ---------- */
.whatsapp {
    position: fixed;
    bottom: 26px;
    left: 22px;
    width: 58px; height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 900;
    animation: waPulse 2.4s ease-in-out infinite;
}
.whatsapp:hover { transform: scale(1.08); }
@keyframes waPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.15); }
}

/* ---------- 6. HERO ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    overflow: hidden;
    background: var(--primary-dark);
}
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 20s infinite;
}
.hero-slide::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 14, 12, 0.28) 0%, rgba(20, 14, 12, 0.2) 45%, rgba(20, 14, 12, 0.48) 100%);
}
.hero-slide:nth-child(1) { background-image: url("../images/hero.jpg"); animation-delay: 0s; }
.hero-slide:nth-child(2) { background-image: url("../images/hero1.jpg"); animation-delay: 5s; }
.hero-slide:nth-child(3) { background-image: url("../images/hero2.jpg"); animation-delay: 10s; }
.hero-slide:nth-child(4) { background-image: url("../images/hero3.jpg"); animation-delay: 15s; }
@keyframes heroFade {
    0% { opacity: 0; }
    4% { opacity: 1; }
    21% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; opacity: 0; }
    .hero-slide:nth-child(1) { opacity: 1; }
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 20% 20%, rgba(140,47,47,0.18), transparent 45%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 2px, transparent 2px, transparent 14px);
    pointer-events: none;
}
.hero h1 {
    color: #fff;
    font-size: clamp(34px, 6vw, 62px);
    max-width: 820px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 8px 30px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}
.hero p {
    color: rgba(255,255,255,0.95);
    max-width: 560px;
    margin: 18px 0 32px;
    font-size: 17px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}
.hero .btn, .hero .cta-glow {
    font-size: 16px;
    padding: 16px 34px;
    position: relative;
    z-index: 2;
}
.cta-glow-active {
    animation: ctaPulse 1.8s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(46,83,57,0.4); }
    50% { box-shadow: 0 8px 32px rgba(46,83,57,0.65), 0 0 0 8px rgba(46,83,57,0.15); }
}
.scroll-down {
    position: absolute;
    bottom: 28px;
    color: rgba(255,255,255,0.8);
    font-size: 20px;
    animation: bounce 2s infinite;
    z-index: 2;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Open/Closed status badge (new feature) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 2;
}
.status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 0 3px rgba(61,220,132,0.25);
}
.status-badge.closed .status-dot { background: #ff5c5c; box-shadow: 0 0 0 3px rgba(255,92,92,0.25); }

/* ---------- 7. FEATURE STRIP (new) ---------- */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: -46px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}
.feature-card {
    background: var(--surface);
    background-image: var(--grain);
    background-blend-mode: multiply;
    border-radius: var(--radius-md);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card i {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 10px;
}
.feature-card h4 { font-size: 15px; margin-bottom: 4px; }
.feature-card p { font-size: 12.5px; margin: 0; }

/* ---------- 8. ABOUT ---------- */
.about {
    max-width: 780px;
    margin: 0 auto;
    padding: 90px 24px;
    text-align: center;
}
.about h2 { margin-bottom: 18px; }
.about p { font-size: 16.5px; }

/* ---------- 9. OPENING HOURS ---------- */
.hours {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 64px 24px;
    position: relative;
    overflow: hidden;
}
.hours::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08), transparent 50%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 12px);
}
.hours h2 { color: #fff; margin-bottom: 22px; position: relative; }
.hours p { color: rgba(255,255,255,0.9); margin: 6px 0; position: relative; font-size: 15.5px; }
.hours strong { color: var(--gold); }

/* ---------- 10. MENU / BUILD YOUR MEAL ---------- */
.menu {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 24px 100px;
}
.menu h2 { text-align: center; }
.menu-intro {
    text-align: center;
    max-width: 480px;
    margin: 0 auto 44px;
}

.meal-category {
    margin-bottom: 44px;
    background: var(--surface);
    background-image: var(--grain);
    background-blend-mode: multiply;
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.meal-category h3 {
    font-size: 19px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.meal-category.water-option {
    background: var(--primary-light);
    border: 1px dashed var(--primary);
}
.water-note {
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}

.meal-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.meal-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    padding: 10px;
    border: 1px solid transparent;
    transition: all var(--transition);
}
.meal-option:hover { border-color: var(--primary); transform: translateY(-2px); }
.meal-option { position: relative; }
.meal-badge {
    position: absolute;
    top: -8px;
    left: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    box-shadow: 0 3px 8px rgba(46,83,57,0.45);
    letter-spacing: 0.2px;
    z-index: 2;
}
.meal-option img {
    width: 64px; height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.meal-option > div:not(.quantity-control) { flex: 1; min-width: 0; }
.meal-option h4 { font-size: 14.5px; }
.meal-option p { font-size: 13px; color: var(--primary); font-weight: 600; margin: 0; }

.quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    padding: 4px;
    border: 1px solid var(--border);
}
.quantity-minus, .quantity-plus {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition), background var(--transition);
}
.quantity-minus:hover, .quantity-plus:hover { background: var(--accent); transform: scale(1.1); }
.quantity { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }

#add-built-meal, .keep-cart-open {
    display: block;
    margin: 10px auto 0;
    min-width: 240px;
}

/* MEAL PREVIEW (live summary shown above the Add-to-Cart button) */
#meal-preview {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin: 0 0 18px;
}
#meal-preview h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
#meal-preview-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
#meal-preview-images img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
#meal-preview-items {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
}
#meal-preview h4 {
    font-size: 15px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
}
#meal-preview-total { color: var(--accent-dark); font-weight: 700; }

/* Food grid (menu.html style-listing cards, if used) */
.food-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.food-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.food-card img { height: 170px; width: 100%; object-fit: cover; }
.food-card h3 { padding: 14px 16px 4px; font-size: 16px; }
.food-card p { padding: 0 16px 16px; }

/* FILTER / SEARCH (new-ready if present) */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}
.filter-btn {
    background: var(--surface);
    border: 1.5px solid var(--border);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    color: var(--text);
    transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

#search {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 30px;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    font-family: var(--font);
    font-size: 14px;
    background: var(--surface);
    color: var(--text);
}
#search:focus { outline: none; border-color: var(--primary); }

/* ---------- 11. TESTIMONIALS ---------- */
.testimonials { padding: 90px 24px; background: var(--surface-2); }
.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1050px;
    margin: 0 auto;
}
.testimonial {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
}
.testimonial::before {
    content: "\201C";
    font-size: 60px;
    color: var(--primary-light);
    position: absolute;
    top: 6px; left: 16px;
    font-family: Georgia, serif;
    z-index: 0;
}
.testimonial p { position: relative; z-index: 1; font-style: italic; color: var(--text); margin-bottom: 14px; }
.testimonial-stars { color: var(--gold); font-size: 13px; margin-bottom: 8px; position: relative; z-index: 1; }
.testimonial h4 { font-size: 14px; color: var(--accent-dark); }

/* ---------- 12. GALLERY / CONTACT / REVIEWS ---------- */
.gallery { padding: 90px 24px; text-align: center; }
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}
.gallery-container img {
    border-radius: var(--radius-md);
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.gallery-container img:hover { transform: scale(1.04); }

.contact { max-width: 1000px; margin: 0 auto; padding: 90px 24px; }
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
}
.map-container iframe { width: 100%; height: 340px; border: none; display: block; }

.customer-reviews { max-width: 760px; margin: 0 auto; padding: 90px 24px; }
.review-intro { text-align: center; margin-bottom: 34px; }
.review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface);
    padding: 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}
.review-form input, .review-form textarea {
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
}
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--primary); }
.star-rating { display: flex; gap: 6px; font-size: 22px; color: var(--border); cursor: pointer; }
.star-rating i.active, .star-rating i:hover { color: var(--gold); }
.review-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.rating-text { color: var(--gold); font-size: 14px; margin-bottom: 4px; }
.delete-review { background: none; border: none; color: var(--accent-dark); cursor: pointer; font-size: 12.5px; }
.no-reviews { text-align: center; color: var(--text-muted); padding: 30px 0; }

/* ---------- 13. FOOTER ---------- */
footer {
    background: #1c130d;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 12px);
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 48px 24px 32px;
    position: relative;
}
footer h3 { color: #fff; margin-bottom: 6px; }
footer p { color: rgba(255,255,255,0.7); font-size: 13.5px; margin: 3px 0; }
footer a { color: var(--gold); font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ---------- 14. BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 22px;
    width: 48px; height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }

/* ---------- 15. RECEIPT (JS toggles inline display:block/none) ---------- */
#receipt-container {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10,20,15,0.7);
    z-index: 5000;
    padding: 40px 16px;
    overflow-y: auto;
}
#receipt {
    background: #fff;
    color: #1f2a24;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    padding: 26px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
/* Receipt is a printable ticket — always light, regardless of site theme */
/* Receipt is a printable ticket — text stays fixed dark colors always,
   regardless of the site's light/dark theme, so nothing washes out. */
#receipt, #receipt p, #receipt h2, #receipt h3, #receipt h4, #receipt span, #receipt strong {
    color: #1f2a24;
}
.receipt-header { text-align: center; margin-bottom: 12px; }
.receipt-header img { width: 50px; margin: 0 auto 8px; }
.receipt-header h2 { font-size: 18px; }
.receipt-header p { font-size: 12px; color: #7a7268 !important; }
.receipt-header span { font-size: 11px; letter-spacing: 2px; color: #7a7268 !important; }
.receipt-divider { border-top: 1px dashed #ccc; margin: 12px 0; }
.receipt-info p { font-size: 12.5px; color: #4a453e !important; }
.receipt-customer h3, .receipt-payment h3 { font-size: 12.5px; letter-spacing: 1px; margin-bottom: 6px; color: var(--primary) !important; }
.receipt-customer p, .receipt-payment p { color: #4a453e !important; }
.receipt-item { display: flex; justify-content: space-between; padding: 3px 0; }
.receipt-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; }
.receipt-footer { text-align: center; margin-top: 14px; }
.receipt-footer p { color: #7a7268 !important; font-size: 12px; }
.payment-confirmed { color: var(--accent-dark) !important; font-weight: 700; }
#receipt-actions {
    display: flex; gap: 10px; margin: 16px auto 0; flex-wrap: wrap; justify-content: center;
    max-width: 380px;
}
#receipt-actions button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}
#receipt-actions button:hover { background: var(--accent); }

/* ---------- 16. NEW: TOAST NOTIFICATIONS ---------- */
#toast-stack {
    position: fixed;
    top: calc(var(--nav-h) + 14px);
    right: 18px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}
.bf-toast {
    background: var(--surface);
    color: var(--text);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    font-weight: 500;
    animation: toastIn 0.3s ease;
}
.bf-toast.leaving { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- 17. NEW: SCROLL PROGRESS BAR ---------- */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    z-index: 100001;
    transition: width 0.1s linear;
}

/* ---------- 18. NEW: STICKY MOBILE ORDER BAR ---------- */
#mobile-order-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.1);
    padding: 10px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 950;
    transform: translateY(100%);
    transition: transform var(--transition);
}
#mobile-order-bar.show { transform: translateY(0); }
#mobile-order-bar .mob-info { font-size: 13px; }
#mobile-order-bar .mob-info strong { display: block; color: var(--primary); font-size: 15px; }
#mobile-order-bar button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13.5px;
}

/* ---------- 19. NEW: FAQ ACCORDION ---------- */
.faq { max-width: 760px; margin: 0 auto; padding: 90px 24px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}
.faq-question i { transition: transform var(--transition); color: var(--primary); }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 14px;
}
.faq-item.open .faq-answer { max-height: 240px; padding: 0 20px 18px; }

/* ---------- 20. RESPONSIVE ---------- */
@media (max-width: 900px) {
    .feature-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; order: 3; }
    .cart-icon { order: 2; }
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    .nav-links.active { max-height: 400px; }
    .nav-links a { padding: 14px 16px; border-radius: var(--radius-sm); }
    .cart-box { max-width: 100%; }
    #mobile-order-bar { display: flex; }
    .hero { padding-bottom: 90px; }

    /* Lift other floating buttons above the sticky mobile order bar
       so nothing overlaps it (WhatsApp float, back-to-top, and the
       "scroll to Add Meal" arrow created dynamically by script.js) */
    .whatsapp { bottom: 92px; }
    .back-to-top { bottom: 92px; }
    #floating-arrow { bottom: 92px !important; }
}

@media (max-width: 600px) {
    nav { padding: 6px 16px; }
    nav img { height: 34px; }
    .hero { min-height: 78vh; }
    .feature-strip { grid-template-columns: 1fr 1fr; margin-top: -30px; }
    .feature-card { padding: 16px 10px; }
    .meal-option { flex-wrap: wrap; }
}

@media (max-width: 420px) {
    .meal-options { grid-template-columns: 1fr; }
}

/* ---------- 20b. PAGE HERO BANNERS (About / Contact / Reviews) ---------- */
.about-hero, .contact-hero, .reviews-hero {
    position: relative;
    overflow: hidden;
}
.about-hero::after, .contact-hero::after, .reviews-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(140,47,47,0.22), transparent 55%);
    pointer-events: none;
}
.about-hero h1, .contact-hero h1, .reviews-hero h1,
.about-hero p, .contact-hero p, .reviews-hero p,
.about-hero i, .contact-hero i, .reviews-hero i {
    color: #fff !important;
    position: relative;
}

/* ---------- 20c. STAR RATING (span.star in review form) ---------- */
.star {
    cursor: pointer;
    font-size: 24px;
    opacity: 0.35;
    filter: grayscale(1);
    transition: all var(--transition);
    display: inline-block;
}
.star:hover, .star.active {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.15);
}
.rating-summary {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border);
}

/* ---------- 21. PRINT (receipt) ---------- */
@media print {
    body * { visibility: hidden; }
    #receipt, #receipt * { visibility: visible; }
    #receipt { position: absolute; top: 0; left: 0; }
    #receipt-actions { display: none; }
}
