﻿/*
 * Twins Smash Burger â€” design system (plan/02-design-system.md, Session 2A).
 *
 * Approved direction (docs/DESIGN.md Â§3): a warm, locally flavoured,
 * image-led museum ordering system. The food is the exhibit; ordering
 * affordances stay visible.
 *
 * The ONLY palette values are the two token blocks below (docs/DESIGN.md Â§6).
 * The preview's WhatsApp green (#25d366) and --good greens are outside the
 * approved palettes and are intentionally not introduced: CTAs use --orange.
 * Food-illustration colors inside the intro (bun caramel, patty, cheese,
 * sauce, lettuce) are sanctioned by plan/02-design-system.md Â§5 and appear
 * only inside the intro component.
 *
 * Logical properties everywhere â€” nothing pinned to a physical side, so
 * dir="rtl" and dir="ltr" mirror automatically.
 */

/* ---------- 1. Tokens (exact approved palettes) ---------- */
:root {
  --bg: #f2e6cf;
  --surface: #fffaf2;
  --surface-2: #f7edd9;
  --ink: #3b2612;
  --muted: #6c5336;
  --line: #dcc9a6;
  --accent: #7a4b1e;
  --orange: #f25c19;
  /* Orange as TEXT fails 4.5:1 on light surfaces (2.69â€“3.3:1); the darker
     approved accent passes (â‰ˆ5.9:1). Dark theme keeps orange text (7.0:1 âœ“).
     Orange backgrounds for CTAs are unchanged (brand moment; see P5 report). */
  --orange-text: var(--accent);
  --shadow: 0 18px 44px rgba(70, 45, 20, .13);

  /* Direction-aware drawer offset (physical transforms are dir-flipped here). */
  --drawer-off: -110%;
  /* Mobile navigation geometry (sticky row below the header). */
  --mobile-header-h: 65px;
}

[data-theme="dark"] {
  --bg: #1b140e;
  --surface: #241a12;
  --surface-2: #2e2117;
  --ink: #f8edda;
  --muted: #cdb99c;
  --line: #4a3625;
  --accent: #f2c078;
  --orange: #ff7a3d;
  --orange-text: var(--orange);
  --shadow: 0 18px 44px rgba(0, 0, 0, .35);
}

html[dir="ltr"] { --drawer-off: 110%; }

/* ---------- 2. Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 Tahoma, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
body.intro-active { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute;
  inset-inline-start: 10px;
  top: -60px;
  z-index: 200;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 10px; }

/* Visually hidden but available to assistive tech (cart live region). */
.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. Shared bits ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn.primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.wa { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; }
/* Restrained feedback for the main CTAs; disabled buttons stay inert. */
.btn.primary:hover:not(:disabled):not(.disabled),
.btn.wa:hover:not(:disabled):not(.disabled) { filter: brightness(.9); }
.btn.primary:active:not(:disabled):not(.disabled),
.btn.wa:active:not(:disabled):not(.disabled) { filter: brightness(.82); }
.btn.ghost:hover:not(:disabled):not(.disabled) {
  background: var(--surface-2);
  border-color: var(--orange-text);
  color: var(--orange-text);
}
.btn.ghost:active:not(:disabled):not(.disabled) { background: var(--bg); }

.slot-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: center;
  padding: 8px;
  word-break: break-word;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px clamp(16px, 5vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 900;
}
.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-nav ul { display: flex; gap: 12px; align-items: center; }
.site-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  opacity: .78;
  padding: 6px 2px;
}
.site-nav a:hover { opacity: 1; }
.controls { display: flex; gap: 7px; align-items: center; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover { background: var(--surface); border-color: var(--orange-text); color: var(--orange-text); }
.icon-btn:active { background: var(--bg); }

/* Mobile-only navigation row. The desktop .site-nav is never restyled. */
.mobile-persistent-nav { display: none; }
.mobile-persistent-nav ul { list-style: none; }
@media (max-width: 820px) {
  .mobile-persistent-nav {
    display: block;
    position: sticky;
    top: var(--mobile-header-h);
    z-index: 49;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding-inline: clamp(10px, 4vw, 18px);
  }
  .mobile-persistent-nav ul {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mobile-persistent-nav ul::-webkit-scrollbar { display: none; }
  .mobile-persistent-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
    opacity: .82;
  }
  .mobile-persistent-nav a[aria-current="page"] {
    opacity: 1;
    color: var(--orange-text);
    box-shadow: inset 0 -2px 0 var(--orange);
  }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
  padding: clamp(36px, 7vw, 84px) clamp(18px, 7vw, 86px);
  background: radial-gradient(circle at 70% 35%, var(--surface), var(--bg) 70%);
}
html[dir="ltr"] .hero { background: radial-gradient(circle at 30% 35%, var(--surface), var(--bg) 70%); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  color: var(--orange-text);
  border: 1px solid var(--orange);
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 14px;
  opacity: .9;
}
h1 { font-size: clamp(38px, 6.5vw, 76px); margin-bottom: 12px; font-weight: 900; }
.lead {
  font-size: clamp(20px, 2.8vw, 31px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.8;
  margin-bottom: 12px;
}
.sub { color: var(--muted); max-width: 620px; margin-bottom: 22px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.mosaic .main, .mosaic .tile {
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mosaic .main { grid-row: 1 / 3; min-height: 390px; box-shadow: var(--shadow); }
.mosaic .tile { min-height: 185px; }
.mosaic .slot-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

/* ---------- 5b. Hero cart summary (in-flow, dedicated column) ----------
 * Desktop: two-part Hero composition. The cart occupies its own outer-side
 * column (physical left in RTL, physical right in LTR); the remaining area
 * holds the original hero content (copy + art). The panel is in normal flow,
 * scrolls with the Hero, and never overlays content. Mobile keeps the
 * existing drawer/FAB behavior. */
.hero {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
}
.hero-cart {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}
.hero-content {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px;
  align-items: center;
}
body.panel-hidden .hero { grid-template-columns: minmax(0, 1fr); }
body.panel-hidden .hero-cart { display: none; }
body.panel-hidden .hero-content { grid-column: 1; grid-row: 1; }
/* Show control appears in the hero corner when the summary is hidden. */
.panel-toggle.hero-show-summary {
  display: inline-flex;
  position: absolute;
  top: 24px;
  bottom: auto;
  inset-inline-start: 24px;
  inset-inline-end: auto;
  z-index: 5;
}
@media (max-width: 1099px) {
  .hero,
  html[dir="rtl"] .hero,
  body.panel-hidden .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-cart,
  body.panel-hidden .hero-cart { display: contents; }
  .hero-content {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }
  .hero-show-summary { display: none !important; }
}

/* ---------- 6. Panels & price list (Concept B) ---------- */
section.panel { padding: clamp(44px, 7vw, 82px) clamp(18px, 7vw, 86px); }
/* Internal pages borrow the hero's warm opening glow on their first panel.
   Background-only: no extra layer, no layout change, no overflow. */
main:is(.page-menu, .page-contact, .page-about, .page-privacy, .page-order) > section.panel:first-child {
  background: radial-gradient(circle at 70% 8%, var(--surface), var(--bg) 62%);
}
html[dir="ltr"] main:is(.page-menu, .page-contact, .page-about, .page-privacy, .page-order) > section.panel:first-child {
  background: radial-gradient(circle at 30% 8%, var(--surface), var(--bg) 62%);
}
h2 { font-size: clamp(26px, 4vw, 42px); margin-bottom: 8px; font-weight: 900; }
/* Category headings are now accordion buttons. The h2 keeps the original
   rhythm; the button keeps the original accent underline and type weight. */
.cat-heading { margin: 34px 0 8px; font-size: inherit; font-weight: inherit; }
.cat-title {
  display: inline-flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  color: var(--accent);
  background: none;
  border: 0;
  border-bottom: 3px solid var(--accent);
  min-height: 44px;
  padding: 10px 0 8px;
  text-align: start;
  cursor: pointer;
}
.cat-title::after { content: '+'; font-size: 18px; line-height: 1; }
.cat-title[aria-expanded="true"]::after { content: '\2212'; }
.cat-title:hover { color: var(--orange-text); }
.price-list { border-top: 1px solid var(--line); }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px dashed var(--line);
}
.price-row .name { font-weight: 900; font-size: 15px; }
.price-row .row-desc {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  max-width: 640px;
}
.price-row .dots {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
}
.price-row .price { font-weight: 900; white-space: nowrap; }

/* Step 16: read-only delivery information. Reuses the price-list rhythm. */
.delivery-panel .delivery-meta { margin: 6px 0; color: var(--muted); font-size: 14px; }
.delivery-panel .delivery-meta strong { color: var(--text); }
.delivery-panel .price-row.delivery-area .price { color: var(--accent); }
.delivery-panel .delivery-note { margin-top: 18px; color: var(--muted); font-size: 13px; }
.add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--orange);
  background: var(--surface);
  color: var(--orange-text);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.add:hover { background: var(--orange); color: #fff; }
/* Brief, language-neutral confirmation after a successful add. */
.add.added { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- 7. Featured dish (Concept A) ---------- */
.featured {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* On the dedicated featured page this section is first under the header,
   whose own bottom rule already supplies the divider. Homepage keeps its rule. */
main > section.featured:first-child { border-top: 0; }
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.quote {
  font-size: clamp(23px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.7;
  border-inline-start: 4px solid var(--orange);
  padding-inline-start: 16px;
  margin-bottom: 12px;
}
.dish-image {
  position: relative;
  min-height: 330px;
  border: 8px solid var(--surface);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dish-image .slot-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.plaque {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
}

/* ---------- 7b. Image slot variant mapping (P5) â€” THE single mapping point ----------
 * White variants â†” light theme; black variants â†” dark theme;
 * right-facing (r) â†” Arabic RTL; left-facing (l) â†” English LTR.
 * Hidden variants carry loading="lazy" and stay unfetched until their
 * theme/direction combination becomes active. */
.slot-variants { position: absolute; inset: 0; }
.slot-variants img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops per the briefs' safe areas. */
}
:root[dir="rtl"]:not([data-theme="dark"]) .slot-variants img.v-r.v-white { display: block; }
:root[dir="rtl"][data-theme="dark"] .slot-variants img.v-r.v-black { display: block; }
:root[dir="ltr"]:not([data-theme="dark"]) .slot-variants img.v-l.v-white { display: block; }
:root[dir="ltr"][data-theme="dark"] .slot-variants img.v-l.v-black { display: block; }

/* ---------- 8. Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 4px 0 var(--surface-2); /* Quiet surface step at the content-to-footer handoff. */
  color: var(--muted);
  font-size: 13px;
}
/* Featured's bottom border is the single rule here; the footer rule would double it. */
main.page-featured + .site-footer { border-top: 0; }
.footer-grid {
  padding: 30px clamp(18px, 7vw, 86px) 10px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-contact h2 { font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
  max-width: 560px;
}
.footer-label { font-weight: 900; color: var(--ink); flex: none; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { border-bottom-color: var(--orange-text); }
.footer-bottom {
  border-top: 1px dashed var(--line);
  margin-top: 10px;
  padding: 14px clamp(18px, 7vw, 86px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* ---------- 9. Order summary: mobile FAB + drawer ---------- */
.cart-btn {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.cart-btn:hover { border-color: var(--orange-text); color: var(--orange-text); }
.cart-btn:active { background: var(--surface-2); }
body.cart-filled .cart-btn,
body.cart-filled .panel-toggle.has-cart-items {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
body.cart-filled .cart-btn:hover,
body.cart-filled .panel-toggle.has-cart-items:hover { filter: brightness(.92); color: #fff; border-color: var(--orange); }
body.cart-filled .cart-btn:active,
body.cart-filled .panel-toggle.has-cart-items:active { filter: brightness(.84); }
.count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-inline-start: 6px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 99px;
  font-size: 11px;
}
body.cart-filled .cart-btn .count,
body.cart-filled .panel-toggle.has-cart-items .count { background: rgba(255, 255, 255, .25); }
body.cart-filled .panel-toggle.has-cart-items {
  gap: 6px;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 13px;
}
.fab-total { font-weight: 900; }
/* Mobile: the next-step button is always available, even with an empty cart,
   so the in-page summary can be opened without adding a product first. */
/* body.cart-empty .cart-btn { display: none; } */
/* The order page's inline empty hint hides once the cart has items. */
body.cart-filled .order-empty { display: none; }
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(30, 20, 10, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
body.cart-open .backdrop { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  bottom: auto;
  inset-inline-end: 0;
  height: 100vh; /* fallback for browsers without dvh */
  height: 100dvh;
  width: min(92vw, 390px);
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
  transform: translateX(var(--drawer-off));
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
body.cart-open .drawer { transform: none; }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  padding-inline: 18px 14px; /* start/end: LTR unchanged, RTL mirrored */
  border-bottom: 2px solid var(--orange);
}
.cart-head h3 { font-size: 18px; font-weight: 900; }
.close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.close:hover { color: var(--orange-text); }
.close:active { color: var(--ink); }
.cart-body { padding: 16px 18px; overflow: auto; flex: 1; }
.empty { color: var(--muted); font-size: 13px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.empty p { margin-bottom: 6px; }

/* Cart lines: name + unit, - qty +, line total, Ã— (criterion 4). */
.cart-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.cart-line .line-info { flex: 1 1 55%; min-width: 0; }
.cart-line .line-info strong { display: block; }
.cart-line .line-unit { color: var(--muted); font-size: 11px; font-weight: 800; }
.cart-line .qty { display: inline-flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 99px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { border-color: var(--orange-text); color: var(--orange-text); }
.qty-num { min-width: 30px; text-align: center; font-weight: 900; }
.cart-line .line-total { font-weight: 900; }
.cart-line .line-remove {
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--orange-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

/* Customer fields + validation (inline errors, active language). */
.field { margin-top: 14px; }
.field label { display: block; font-size: 12px; font-weight: 900; margin-bottom: 5px; }
.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 13px;
}
.field input[aria-invalid="true"] { border-color: var(--orange); }
.field-error { margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--orange-text); }
.method { display: flex; gap: 14px; margin-top: 14px; font-size: 13px; font-weight: 800; border: 0; padding: 0; }
.method legend { font-size: 12px; font-weight: 900; margin-bottom: 5px; display: block; }
.method label { display: flex; gap: 6px; align-items: center; min-height: 44px; cursor: pointer; }
.consent {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  cursor: pointer;
}
.consent input { margin: 0; flex: none; }
.consent a { color: var(--orange-text); font-weight: 800; }
.wa-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.cart-foot { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
.total { display: flex; justify-content: space-between; font-weight: 900; margin-bottom: 10px; }
.total--line { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.cart-totals .field-error { margin-bottom: 8px; }
.cart-foot .btn { width: 100%; }
.cart-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-page-link:hover { color: var(--orange-text); }

/* Desktop panel restore pill (shown only while the panel is hidden). */
.panel-toggle {
  display: none;
  position: fixed;
  top: 96px;
  inset-inline-end: 20px;
  z-index: 55;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.panel-toggle:hover { border-color: var(--orange-text); color: var(--orange-text); }
.panel-toggle:active { background: var(--surface-2); }

/* ---------- 10. Simple pages (skeletons & 404) ---------- */
.page-section { padding: clamp(28px, 6vw, 64px) clamp(18px, 7vw, 86px); }
.page-section h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 900; }
.impact-line {
  display: block;
  width: 72px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 16px auto 18px;
}
.not-found {
  padding: clamp(44px, 8vw, 96px) clamp(18px, 7vw, 86px);
  text-align: center;
}
.not-found h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 900; margin-bottom: 14px; }
.not-found p { color: var(--muted); max-width: 480px; margin: 0 auto; }
.not-found ul {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.not-found a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.not-found a:hover { border-color: var(--orange-text); color: var(--orange-text); }

/* ---------- 10b. Text-led pages (P3) â€” existing tokens/components only ---------- */
.text-led { max-width: 720px; }
.text-led p { margin-bottom: 16px; }
.text-led .lead { color: var(--accent); }
.privacy-body {
  border-inline-start: 4px solid var(--orange); /* The .quote border vocabulary. */
  padding-inline-start: 16px;
}
.menu-note { margin-top: 18px; font-size: 13px; font-weight: 800; color: var(--muted); }
.teaser-link { margin-top: 20px; }
.contact-strip .sub { margin-bottom: 12px; }
.contact-facts { display: grid; gap: 16px; margin: 22px 0; max-width: 640px; }
.contact-facts dt { font-size: 13px; font-weight: 900; color: var(--accent); margin-bottom: 2px; }
.contact-facts dd { margin: 0; }

/* ---------- 10c. Order page — three editorial stories ---------- */
.editorial-page__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding-bottom: clamp(22px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.editorial-page__heading h1 {
  max-width: 18ch;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.12;
  transition: none;
}
.editorial-page__cart-link { flex: 0 0 auto; }
.editorial-page__cart-link {
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.editorial-page__cart-link:hover:not(:disabled):not(.disabled) { filter: brightness(.9); }
.editorial-page__cart-link:active:not(:disabled):not(.disabled) { filter: brightness(.82); }
.editorial-page__cart-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.editorial-stories { margin-top: clamp(24px, 4vw, 48px); }
.editorial-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  min-width: 0;
  padding-block: clamp(32px, 5vw, 64px);
  border-block-start: 1px solid var(--line);
}
.editorial-story:first-child { padding-block-start: 0; border-block-start: 0; }
.editorial-story--chicken { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
.editorial-story--chicken .editorial-story__copy { grid-column: 2; grid-row: 1; }
.editorial-story--chicken .editorial-story__media { grid-column: 1; grid-row: 1; }
.editorial-story--fries { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); }
.editorial-story__copy { min-width: 0; max-width: 60ch; }
.editorial-story__copy h2 {
  margin-bottom: 18px;
  font-size: clamp(27px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.3;
}
.editorial-story__body { max-width: 62ch; color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.9; }
.editorial-story__body p + p { margin-block-start: 14px; }
.editorial-story__media {
  position: relative;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1264 / 848;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.editorial-story__media .slot-variants img {
  object-fit: contain;
  background: var(--surface-2);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .editorial-story__media:hover {
    border-color: var(--orange-text);
    box-shadow: var(--shadow), 0 0 0 1px rgba(242, 92, 25, .16);
  }
  .editorial-story__media:hover .slot-variants img {
    transform: scale(1.025);
    filter: saturate(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-story__media,
  .editorial-story__media .slot-variants img {
    transition: none !important;
  }
  .editorial-story__media:hover .slot-variants img {
    transform: none;
    filter: none;
  }
}

.order-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-top: 14px;
  max-width: 640px;
}
.order-empty p { color: var(--muted); margin-bottom: 14px; }
.empty-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-link:hover { color: var(--ink); }

/* ---------- 11. Intro (realistic burger assembly) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, var(--surface), var(--bg) 72%);
  display: grid;
  place-items: center;
  transition: opacity .4s ease, visibility .4s ease;
}
.intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.6vh, 18px);
  max-height: 96vh;
  padding: 12px;
}

/* Shared 550x660 design grid: every layer is placed as a percentage of it,
   so the assembly keeps its exact alignment at any viewport size. */
.burger-stage {
  position: relative;
  flex: 0 0 auto;
  width: min(86vw, 460px, 52vh);
  aspect-ratio: 550 / 660;
}
.ingredient {
  position: absolute;
  left: 50%;
  display: block;
  height: auto;
  opacity: 0;
  animation: assemble .52s cubic-bezier(.2, .78, .28, 1) var(--delay) both;
}
/* Assembly order: bottom bun first, top bun last (later images paint above). */
.ing-08 { width: 100.545%; top: 66.515%; --delay: .04s; }
.ing-07 { width: 100.364%; top: 68.939%; --delay: .18s; }
.ing-06 { width: 100.364%; top: 47.545%; --delay: .32s; }
.ing-05 { width: 100.364%; top: 36.485%; --delay: .46s; }
.ing-04 { width: 99.636%;  top: 30.561%; --delay: .60s; }
.ing-03 { width: 99.636%;  top: 25.104%; --delay: .74s; }
.ing-02 { width: 87.818%;  top: 27.680%; --delay: .88s; }
.ing-01 { width: 100%;     top: 6.621%;  --delay: 1.02s; }
@keyframes assemble {
  from { transform: translate(-50%, -115%); opacity: 0; }
  to   { transform: translate(-50%, 0);     opacity: 1; }
}

/* Brand reveal follows the assembly; deliberately quieter than the burger. */
.intro-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 16px 4px;
  max-width: min(90vw, 520px);
}
.intro-word {
  font: 900 clamp(30px, 6vw, 58px)/1 Tahoma, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  text-shadow: 0 4px 0 rgba(214, 40, 40, .12);
  opacity: 0;
  animation: revealUp .5s ease 1.62s both;
}
.intro-sub {
  font-weight: 800;
  font-size: clamp(16px, 3.2vw, 28px);
  line-height: 1.2;
  color: var(--orange-text);
  margin-top: 4px;
  opacity: 0;
  animation: revealUp .45s ease 1.82s both;
}
.intro-line {
  font-size: clamp(13px, 2.2vw, 18px);
  font-weight: 900; /* D16: the tagline carries the strongest typographic weight. */
  line-height: 1.5;
  max-width: 90vw;
  margin: 6px auto 0;
  opacity: 0;
  animation: revealUp .45s ease 2.02s both;
}
@keyframes revealUp {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.intro-skip-wrap {
  position: absolute;
  bottom: 22px;
  inset-inline: 0;
  z-index: 5;
  text-align: center;
}
.skip-intro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.skip-intro:hover { border-color: var(--orange-text); color: var(--orange-text); }

/* ---------- 11b. Scroll reveal (progressive enhancement) ----------
 * The hidden state exists only when the inline head bootstrap added
 * .reveal-ready (JS available + IntersectionObserver + no reduced motion).
 * With JS off, with no observer, or under reduced motion, [data-reveal]
 * elements are simply visible — there is nothing to wait for.
 * Transform/opacity only: no layout reads, no scroll handlers, no horizontal
 * movement that could create overflow in either direction. */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease, transform 480ms cubic-bezier(.2, .7, .2, 1);
}
html.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 12. Breakpoints ---------- */
/* Mobile-only clearance: the FAB only exists below the docked-panel breakpoint,
   and the footer only needs the extra room while that FAB is actually shown. */
@media (max-width: 1099px) {
  body.cart-filled .site-footer {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  body.cart-filled.page-order .site-footer { padding-bottom: 0; }
}

@media (min-width: 1100px) {
  .site { padding-inline-end: 0; } /* Full-width layout; the cart summary lives in the Hero, not a side column. */
  body.page-order .site { padding-inline-end: 0; } /* Editorial page has no docked cart panel. */
  body.page-cart .site { padding-inline-end: 0; } /* Dedicated cart page has no docked panel. */
  .cart-btn { display: none; }
  .backdrop { display: none; }
  .hero-cart .drawer {
    position: static;
    transform: none;
    width: 100%;
    max-width: 330px;
    height: 100%;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
  }
  .hero-cart .drawer .cart-body { flex: 1 1 auto; overflow: auto; min-height: 0; }
  .hero-cart .drawer.panel-hidden { display: none; }
  body.panel-hidden .site { padding-inline-end: 0; }
  .panel-toggle { display: inline-flex; }
}

@media (max-width: 820px) {
  .site-nav { display: none; }
  .hero,
  html[dir="rtl"] .hero { grid-template-columns: 1fr; }
  .hero-content { grid-template-columns: 1fr; }
  /* Stacked hero: move the existing radial glow behind the artwork, in both
     directions. Same specificity as the LTR rule, later in the cascade. */
  .hero,
  html[dir="ltr"] .hero { background: radial-gradient(circle at 50% 78%, var(--surface), var(--bg) 70%); }
  .mosaic .main { min-height: 280px; }
  .featured-grid { grid-template-columns: 1fr; }
  .editorial-page__heading { align-items: flex-start; flex-direction: column; }
  .editorial-story,
  .editorial-story--chicken,
  .editorial-story--fries { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .editorial-story__copy,
  .editorial-story--chicken .editorial-story__copy,
  .editorial-story__media,
  .editorial-story--chicken .editorial-story__media { grid-column: 1; }
  .editorial-story__copy,
  .editorial-story__media { grid-row: auto; }
  .editorial-story--chicken .editorial-story__media { grid-row: 1; }
  .editorial-story--chicken .editorial-story__copy { grid-row: 2; }
}

@media (max-width: 560px) {
  .site-header { padding: 10px 12px; gap: 8px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 13px; }
  .controls { gap: 5px; }
  .controls .icon-btn { padding: 6px 9px; font-size: 11px; }
  /* Main frame full width; the two detail frames sit side by side below it.
     Slots, loading attributes and reveal hooks are untouched. */
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mosaic .main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px; /* fallback when aspect-ratio is unsupported */
    aspect-ratio: 4 / 3;
  }
  .mosaic .tile { min-height: 130px; }
  .price-row { flex-wrap: wrap; gap: 8px; }
  .price-row .dots { display: none; } /* Leader hides; row wraps per the preview. */
  .price-row .name { width: 100%; }
}

/* ---------- 13. Reduced motion (criterion 2) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  /* Scroll reveal is never opted into at the bootstrap; force the final state
     here too in case the preference changes after the page has loaded. */
  html [data-reveal] { opacity: 1 !important; transform: none !important; }
  /* Intro: show the completed burger and copy immediately; JS still dismisses
     briefly so no keyboard user is held behind a static overlay. */
  .ingredient { animation: none !important; opacity: 1; transform: translateX(-50%); }
  .intro-word,
  .intro-sub,
  .intro-line { animation: none !important; opacity: 1; transform: none; }
}

/* ---------- 14. Live catalog unavailable (Step 16) ---------- */
.unavailable-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.unavailable { max-width: 560px; text-align: center; }
.unavailable .impact-line { display: block; width: 72px; height: 4px; margin: 0 auto 18px; background: var(--accent); }
.unavailable p { color: var(--muted); line-height: 1.8; }
/* ---------- Dedicated full-page cart (Phase 1 correction) ---------- */
.cart-page { padding: clamp(24px, 5vw, 48px) clamp(18px, 6vw, 86px); }
.cart-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.cart-page__header h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin: 0; }
.cart-page__header .sub { color: var(--muted); margin-top: 6px; }
.cart-page__layout {
  display: block;
}
.cart-page__main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.cart-page__section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.cart-page__section h2 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 4px;
}
.cart-page__submit {
  display: grid;
  gap: 10px;
}
.cart-page__submit .btn.wa {
  width: 100%;
}
.cart-page__main { min-width: 0; }
.cart-page__items { display: grid; gap: 12px; }
.cart-page__items .cart-line {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
}
.cart-page__empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.cart-page__empty p { margin-bottom: 14px; }
.cart-page__summary {
  position: sticky;
  top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.cart-page__summary h2 { font-size: 18px; font-weight: 900; margin: 0 0 4px; }
.cart-page__total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  padding: 4px 0;
}
.cart-page__totals .field-error { margin: 6px 0; }
.cart-page__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 900;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cart-page__summary .field { margin: 0; }
.cart-page__summary .btn.wa { width: 100%; }
@media (max-width: 900px) {
  .cart-page__layout { grid-template-columns: 1fr; }
  .cart-page__summary { position: static; }
}

/* Searchable delivery area dropdown (cart page) */
.area-combobox { position: relative; }
.area-options {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 30;
  margin-top: 4px;
  max-height: 260px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 0;
  list-style: none;
  box-shadow: var(--shadow);
}
.area-options[hidden] { display: none; }
.area-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.area-option:hover,
.area-option.is-active {
  background: var(--surface-2);
  color: var(--orange-text);
}
.area-option--empty {
  color: var(--muted);
  cursor: default;
  font-weight: 600;
}
.area-option--empty:hover { background: transparent; color: var(--muted); }
