/* ============================================
   Lala Burger — Site Styles
   Warm cream base, black header/footer, mustard accent
   ============================================ */

:root {
    --bg: #faf6ef;
    --paper: #ffffff;
    --ink: #1a1612;
    --muted: #6b6258;
    --line: #e7dece;
    --dark: #121110;
    --dark-2: #1d1b18;
    --accent: #e3a52b;
    --accent-dark: #c28a17;
    --red: #b8321f;
    --radius: 8px;
    --container: 1180px;
    --strip-height: 0px;
    --header-h: 80px;
    --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--strip-height) + var(--header-h) + 70px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 20px; }

.kicker { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); }
.display { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent;
    font: 700 0.95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { border-color: rgba(255,255,255,0.7); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Status strip (injected by api/statusManager.js) ---------- */
.status-strip {
    background: var(--dark-2); color: #fff; font-size: 0.85rem; font-weight: 500;
    padding: 8px 0; text-align: center; position: fixed; top: 0; left: 0; width: 100%; z-index: 1100;
}
.status-strip.open { background: #1f6b43; }
.status-strip.closed { background: var(--red); }
.status-strip.error { background: #6b5316; }
.status-strip-inner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.status-strip-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff !important; }
.countdown-timer { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: var(--strip-height); left: 0; right: 0; z-index: 1000; height: var(--header-h); background: #000; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; }
.brand img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-family: var(--font-display); font-size: 1rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; border-bottom-color: var(--accent); }
.nav-order-btn { padding: 11px 20px; }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); width: 44px; height: 44px; color: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

main { padding-top: calc(var(--strip-height) + var(--header-h)); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: #000 url('https://images.unsplash.com/photo-1561758033-d89a9ad46330?auto=format&fit=crop&w=2000&q=70') center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.58); }
.hero-inner { position: relative; min-height: min(78vh, 680px); display: flex; flex-direction: column; justify-content: center; padding-block: 80px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); max-width: 720px; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .kicker { color: var(--accent); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.hero-meta span, .hero-meta a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.hero-meta svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.hero-meta a:hover { color: #fff; text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(60px, 8vw, 96px); }
.section-white { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 6px; }
.section-head p { color: var(--muted); max-width: 460px; margin-top: 8px; }

/* ---------- Featured dishes (home) ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dish-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.dish-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eee5d6; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dish-card:hover .dish-media img { transform: scale(1.04); }
.dish-badge { position: absolute; top: 12px; left: 12px; background: var(--dark); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.dish-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.dish-head h3 { font-size: 1.1rem; font-weight: 700; }
.dish-price { font-weight: 700; font-size: 1.1rem; color: var(--accent-dark); white-space: nowrap; }
.dish-body p { color: var(--muted); font-size: 0.93rem; }

.skeleton { min-height: 280px; border-radius: var(--radius); background: #efe7da; animation: blink 1.2s ease-in-out infinite alternate; }
@keyframes blink { to { opacity: .55; } }
.menu-empty { color: var(--muted); text-align: center; padding: 2rem 0; grid-column: 1 / -1; }
.menu-empty a { color: var(--accent-dark); }
.center-cta { text-align: center; margin-top: 40px; }

/* ---------- Photo split (home) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 6px 0 16px; }
.split p { color: var(--muted); margin-bottom: 14px; max-width: 480px; }
.split .btn { margin-top: 10px; }

/* ---------- Info cards ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.info-card .icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--accent); margin-bottom: 10px; }
.info-card .icon svg { width: 20px; height: 20px; }
.info-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; }
.info-card .value { font-size: 1.05rem; }
.info-card .value a { text-decoration: none; }
.info-card .value a:hover { text-decoration: underline; }
.info-card .sub { color: var(--muted); font-size: 0.92rem; }
.info-card .link { margin-top: auto; padding-top: 10px; color: var(--ink); font-weight: 700; font-size: 0.92rem; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Page header (menu / contact) ---------- */
.page-header { position: relative; color: #fff; background: #000 center / cover no-repeat; }
.page-header::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.page-header .container { position: relative; padding-block: clamp(56px, 9vw, 100px); }
.page-header h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 8px 0 10px; }
.page-header .kicker { color: var(--accent); }
.page-header p { color: rgba(255,255,255,0.85); max-width: 520px; }
.page-header-menu { background-image: url('https://images.unsplash.com/photo-1550547660-d9450f859349?auto=format&fit=crop&w=2000&q=70'); }
.page-header-contact { background-image: url('https://images.unsplash.com/photo-1586190848861-99aa4a171e90?auto=format&fit=crop&w=2000&q=70'); }

/* ---------- Menu page ---------- */
.menu-tabs-wrap { position: sticky; top: calc(var(--strip-height) + var(--header-h)); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.menu-tabs { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab { flex-shrink: 0; padding: 9px 18px; border-radius: var(--radius); border: 1px solid var(--line); font-weight: 700; font-size: 0.92rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.menu-tab:hover { border-color: var(--ink); }
.menu-tab.active { background: var(--dark); border-color: var(--dark); color: #fff; }

.menu-body { padding-block: 20px 90px; }
.menu-loading { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 40px; }
.menu-section { padding-top: 44px; }
.menu-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.menu-section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.menu-section-count { color: var(--muted); font-size: 0.92rem; }
.menu-section-desc { color: var(--muted); margin: -10px 0 20px; }
.menu-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.menu-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.menu-item-media { aspect-ratio: 4 / 3; background: #eee5d6; overflow: hidden; }
.menu-item-media img { width: 100%; height: 100%; object-fit: cover; }
.menu-item-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.menu-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.menu-item-head h3 { font-size: 1.06rem; font-weight: 700; }
.menu-item-price { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
.menu-item-body p { color: var(--muted); font-size: 0.9rem; }
.menu-item-sizes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.menu-item-sizes li { font-size: 0.8rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.menu-item-sizes li span { color: var(--ink); font-weight: 700; }
.menu-item-order { margin-top: auto; padding-top: 10px; align-self: flex-start; font-weight: 700; font-size: 0.9rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.order-banner { margin-top: 64px; padding: clamp(28px, 5vw, 44px); border-radius: var(--radius); background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.order-banner h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.order-banner p { color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.hours-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.hours-card h2 { font-size: 2rem; margin-bottom: 4px; }
.hours-card .api-today-hours { color: var(--muted); display: block; margin-bottom: 14px; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row .time { text-align: right; font-variant-numeric: tabular-nums; }
.hours-row.today { font-weight: 700; }
.hours-row.today .day::after { content: 'Today'; margin-left: 8px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--accent); color: var(--dark); vertical-align: 2px; }
.closed-day { color: var(--red) !important; }
.map-wrap { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: #eee5d6; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: rgba(255,255,255,0.72); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.8fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 170px; height: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; max-width: 260px; }
.site-footer h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .footer-contact a { text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: 14px; font-size: 0.95rem; }
.footer-contact .label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); }
.footer-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; }
.footer-hours li .time { text-align: right; font-variant-numeric: tabular-nums; }
.footer-hours li.today { color: var(--accent); font-weight: 700; }
.loading-line { color: rgba(128,128,128,0.8); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-credits { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Floating order button (mobile) / back to top ---------- */
.floating-order { display: none; }
.back-to-top { position: fixed; right: 18px; bottom: 20px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top svg { width: 20px; height: 20px; }

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

body.ordering-disabled [data-order-url] { opacity: 0.5; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .dish-grid, .menu-list, .menu-loading { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .info-grid .info-card:last-child { grid-column: 1 / -1; }
    .contact-grid, .split { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    :root { --header-h: 68px; }
    .brand img { height: 52px; }
    .nav-toggle { display: block; }
    .nav { position: fixed; top: calc(var(--strip-height) + var(--header-h)); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 22px; background: #000; border-top: 1px solid rgba(255,255,255,0.1); display: none; }
    .nav-open .nav { display: flex; }
    .nav-links { flex-direction: column; gap: 0; }
    .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-links a.active { border-bottom-color: rgba(255,255,255,0.1); color: var(--accent); }
    .nav-order-btn { margin-top: 16px; padding: 15px; }
    .floating-order { display: inline-flex; position: fixed; left: 16px; right: 76px; bottom: 18px; z-index: 900; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
    .site-footer { padding-bottom: 80px; }
}

@media (max-width: 560px) {
    .dish-grid, .menu-list, .menu-loading, .info-grid, .footer-grid { grid-template-columns: 1fr; }
    .info-grid .info-card:last-child { grid-column: auto; }
    .hero-inner { min-height: 0; padding-block: 64px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .map-wrap { aspect-ratio: 4 / 3; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; }
}
