/* =========================================================================
   RADWA'S — DARK EDITORIAL THEME (authoritative overrides, loaded last)
   -------------------------------------------------------------------------
   The palette flip lives in tokens.css. This layer does the work a flip alone
   can't: it retires the old light/burgundy "island" sections, tunes the hero,
   menu and planner to the ember accent, dresses the placeholders and cards for
   a dark ground, and plates the burgundy logo so it reads on near-black.
   ========================================================================= */

/* ---- Ground ---------------------------------------------------------- */
html { background: var(--base); }
body { background: var(--base); color: var(--bone); }
::selection { background: var(--ember); color: var(--void); }

a { color: var(--ember-soft); text-underline-offset: 3px; }
a:hover { color: var(--ember); }

/* ---- The burgundy cloche logo on a dark ground --------------------------
   The brand mark is deep burgundy and must never be redrawn, so on near-black
   it sits on a small bone plate — a deliberate "stamp" rather than a fix. */
.site-header a img[src*="radwas-logo"],
.site-footer img[src*="radwas-logo"],
.brand-lockup img[src*="radwas-logo"] {
  background: var(--bone);
  padding: 7px 11px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px -6px rgba(0,0,0,0.7);
}

/* ---- Header / footer ------------------------------------------------- */
.site-header {
  background: color-mix(in srgb, var(--base) 82%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { background: none; }
.site-footer { background: var(--void); border-top: 1px solid var(--line); color: var(--bone-dim); }
.site-footer a { color: var(--bone-dim); }
.site-footer a:hover { color: var(--ember); }

/* ---- Sections: no more colour islands. One dark ground, differentiated
        by a faintly raised surface and hairlines. -------------------------- */
.section-cream { background: var(--raise); }
.section-cream + .section-cream { border-top: 1px solid var(--line); }
.section-burgundy { background: var(--oxblood); border-block: 1px solid var(--line); }
.section-burgundy .section-head p,
.section-burgundy p,
.section-burgundy li { color: var(--bone-dim); }
.section-burgundy .head-rule { background: var(--ember); }

/* Editorial kickers / eyebrows / labels in ember. */
.section-head .eyebrow,
.eyebrow, .kicker, .section-kicker,
.hero-copy .label,
.hero-panel .panel-label {
  color: var(--ember);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ---- Buttons --------------------------------------------------------- */
.button-primary {
  background: var(--ember);
  color: var(--void);
  border: 1px solid var(--ember);
}
.button-primary:hover:not(:disabled) {
  background: var(--ember-soft);
  border-color: var(--ember-soft);
  color: var(--void);
}
.button-secondary {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line-strong);
}
.button-secondary:hover:not(:disabled) {
  border-color: var(--bone);
  background: rgba(244,237,226,0.06);
  color: var(--bone);
}
/* Ghost/light buttons were made for the old light sections; on dark they read
   as outline buttons that fill with bone on hover. */
.button-ghost-light, .button-light {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line-strong);
}
.button-ghost-light:hover:not(:disabled),
.button-light:hover:not(:disabled) {
  background: var(--bone);
  color: var(--void);
  border-color: var(--bone);
}

/* ---- Cards / notices ------------------------------------------------- */
.card, .card-cream {
  background: var(--raise);
  border: 1px solid var(--line);
  color: var(--bone);
  box-shadow: var(--shadow-card);
}
.card h3, .card-cream h3 { color: var(--bone); }
.card p, .card-cream p { color: var(--muted); }

.notice { background: var(--raise); border: 1px solid var(--line); color: var(--bone-dim); }
.notice-strong { background: var(--oxblood); border-color: var(--line-strong); }
.notice h2, .notice h3 { color: var(--bone); }
.notice p, .notice li { color: var(--bone-dim); }

/* ---- Photo placeholders on a dark ground ----------------------------- */
.photo-slot {
  background:
    repeating-linear-gradient(45deg, rgba(244,237,226,0.02) 0 12px, transparent 12px 24px),
    var(--raise);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}
.photo-slot::before, .photo-slot::after { border-color: var(--line-strong); }
.photo-slot .slot-kicker { color: var(--ember); }
.photo-slot .slot-name { color: var(--bone); }
.photo-slot .slot-note { color: var(--faint); }
.section-burgundy .photo-slot { background: rgba(0,0,0,0.22); border-color: var(--line-strong); }
.section-burgundy .photo-slot .slot-name { color: var(--bone); }
.section-burgundy .photo-slot .slot-kicker { color: var(--ember-soft); }

/* ---- Hero: editorial, dark, photography-forward ---------------------- */
.hero { background: var(--base); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 88% 8%, color-mix(in srgb, var(--oxblood) 60%, transparent) 0%, transparent 55%),
    radial-gradient(90% 70% at 6% 100%, rgba(226,116,59,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-copy h1 { color: var(--bone); font-family: var(--font-display); letter-spacing: var(--tracking-tighter); }
.hero-copy h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ember-soft);
}
.hero-copy .support { color: var(--muted); }
.hero-occasions span { color: var(--bone-dim); }
.hero-occasions span + span::before { background: var(--ember); }
.hero-panel {
  background: color-mix(in srgb, var(--raise) 78%, transparent);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-panel li { color: var(--bone-dim); }
.hero-panel li + li::before { background: var(--line); }
.hero-panel ol { counter-reset: step; }

/* ---- Menu: tabs + dish rows ------------------------------------------ */
.menu-tab { color: var(--muted); }
.menu-tab:hover { color: var(--bone); }
.menu-tab[aria-selected="true"] { color: var(--bone); border-color: var(--ember); }
.menu-tab .tab-count { color: var(--faint); }
.course-head h3 { color: var(--bone); }
.dish-leader { border-color: var(--line); }
.dish-name { color: var(--bone); }
.dish-signature { color: var(--ember-soft); }
.dish-description, .dish-note { color: var(--muted); }
.dish-mark { border-color: var(--line-strong); }
.dish-button:hover .dish-mark { border-color: var(--ember); }
.dish-button[aria-pressed="true"] .dish-mark { background: var(--ember); border-color: var(--ember); color: var(--void); }
.dish-button[aria-pressed="true"] .dish-name { color: var(--ember-soft); }

/* ---- Planner: progress + fields -------------------------------------- */
.planner-progress li .step-index { border-color: var(--line-strong); color: var(--muted); }
.planner-progress li[data-state="current"] .step-index { border-color: var(--ember); color: var(--ember); }
.planner-progress li[data-state="done"] .step-index { background: var(--ember); border-color: var(--ember); color: var(--void); }
.planner-progress li .step-name { color: var(--muted); }
.planner-progress li[data-state="current"] .step-name { color: var(--bone); }
.field .field-label { color: var(--bone); }
.field .field-hint { color: var(--faint); }
.field input, .field textarea, .field select {
  background: var(--raise);
  color: var(--bone);
  border: 1px solid var(--line-strong);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ember); }
.choice { border: 1px solid var(--line-strong); background: var(--raise); color: var(--bone); }
.choice:hover { border-color: var(--line-strong); background: var(--raise-2); }
.choice input:checked + *, .choice[aria-checked="true"] { border-color: var(--ember); }

/* ---- Forms elsewhere (contact, admin echoes) ------------------------- */
input, select, textarea { background: var(--raise); color: var(--bone); border-color: var(--line-strong); }
input::placeholder, textarea::placeholder { color: var(--faint); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* =========================================================================
   ROUND 2 — fixes from live review
   ------------------------------------------------------------------------- */

/* ---- Define vars that the old theme referenced but this one hadn't ---- */
:root {
  --line-ink: var(--line-strong);
  --muted-strong: var(--bone-dim);
  --line: rgba(244, 237, 226, 0.12);
}

/* ---- Hero: shorter and calmer. It was 84vh / 720px with an 8rem headline;
        bring it to a compact editorial band. ---- */
.hero-inner {
  min-height: 0;
  padding-block: clamp(44px, 6vw, 84px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 1.7rem + 3.6vw, 5rem);
  line-height: 1.02;
}
.hero-copy h1 em { color: var(--ember-soft); }
.hero-copy .support { color: var(--muted); }
.hero { border-bottom: 1px solid var(--line); }

/* ---- .section-burgundy (the oxblood Mezban block): its base text was
        var(--cream) and headings var(--paper) — both now dark. Make light. --- */
.section-burgundy { color: var(--bone-dim); }
.section-burgundy h2,
.section-burgundy h3,
.section-burgundy h4 { color: var(--bone); }

/* ---- .planner-strip (image 3): was a dark island (bg var(--ink)); the flip
        turned it cream. Rebuild it as a proper raised dark section. ---- */
.planner-strip {
  background: var(--raise);
  color: var(--bone-dim);
  border-block: 1px solid var(--line);
}
.planner-strip .label-light { color: var(--ember); }
.planner-strip-head h2 { color: var(--bone); }
.planner-strip-head p { color: var(--muted); }
.planner-steps > li { border-color: var(--line); }
.planner-steps .step-number { color: var(--ember); }
.planner-steps h3 { color: var(--bone); }
.planner-steps a:hover h3 { color: var(--ember-soft); }
.planner-steps p { color: var(--muted); }
.planner-steps .arrow-link-light,
.planner-strip .arrow-link-light { color: var(--bone); }
.planner-steps a:hover .arrow-link-light { color: var(--ember); }
.planner-note { color: var(--faint); }

/* ---- .tray (menu shortlist bar): same dark-island flip → cream. ---- */
.tray {
  background: var(--void);
  color: var(--bone-dim);
  border-top: 2px solid var(--ember);
}
.tray h2, .tray h3, .tray .tray-title { color: var(--bone); }
.tray p { color: var(--muted); }

/* =========================================================================
   ROUND 3 — the actual mezban section + installer palette
   ------------------------------------------------------------------------- */

/* ---- .mezban is its own section (not .section-burgundy). Its heading and
        dish names used var(--paper) → dark. Make them light on oxblood. ---- */
.mezban { color: var(--bone-dim); }
.mezban h2 { color: var(--bone); }
.mezban p { color: var(--bone-dim); }
.mezban-dishes .dish { color: var(--bone); }
.mezban-dishes .role { color: var(--ember-soft); }
.mezban-dishes,
.mezban-dishes li { border-color: var(--line); }
.mezban .label-light { color: var(--ember); }

/* ---- Temporary demo images: readable caption + flag on dark ---- */
.photo-figure { margin: 0; }
.photo-temporary-flag {
  position: absolute; top: 10px; left: 10px;
  background: var(--ember); color: var(--void);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px;
}
.photo { position: relative; }
.photo-credit { color: var(--faint); font-size: 0.76rem; margin-top: 8px; line-height: 1.4; }
.photo-credit a { color: var(--muted); }
.photo-credit a:hover { color: var(--ember); }

/* =========================================================================
   SHORTLIST — floating button + slide-in "Your menu" drawer
   ------------------------------------------------------------------------- */

/* ---- Floating action button ---- */
.cart-fab {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: var(--ember);
  color: var(--void);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.85), 0 0 0 1px rgba(0,0,0,0.15);
  animation: cart-fab-in var(--duration) var(--ease-out-expo);
}
.cart-fab:hover { background: var(--ember-soft); }
.cart-fab:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }
.cart-fab-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--void);
  color: var(--bone);
  font-size: 0.82rem;
  font-weight: 700;
}
.cart-fab-arrow { font-size: 1.05rem; }
@keyframes cart-fab-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* ---- Backdrop ---- */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 4, 6, 0.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.cart-backdrop.is-open { opacity: 1; }

/* ---- Drawer ---- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(420px, 92vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--base);
  border-left: 1px solid var(--line);
  box-shadow: -40px 0 90px -40px rgba(0,0,0,0.9);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}
.cart-drawer.is-open { transform: none; }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0;
  color: var(--bone);
}
.cart-close {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.cart-close:hover { border-color: var(--ember); color: var(--ember); }

.cart-lead {
  padding: 16px 24px 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.cart-lead strong { color: var(--bone); font-size: 1.05rem; }
.cart-empty { padding: 16px 24px; margin: 0; color: var(--muted); }

.cart-list {
  list-style: none;
  margin: 0;
  padding: 12px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-list li { margin: 0; }
.cart-list .chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--bone);
  font-weight: 500;
}
.cart-list .chip button {
  flex: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.cart-list .chip button:hover { color: var(--ember); background: rgba(226,116,59,0.12); }

.cart-drawer-foot {
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-continue { width: 100%; justify-content: center; }
.cart-clear {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-clear:hover { color: var(--ember); }

body.cart-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .cart-fab { animation: none; }
  .cart-drawer, .cart-backdrop { transition: none; }
}
