﻿/* Fyne Kuuk — public site.
   Colours and shapes are lifted from the till's own theme so the two read as
   one business: brand green #16A34A, zinc neutrals, flat surfaces, 10px
   radius, no shadows. */

:root {
  --brand: #16A34A;
  --brand-dark: #15803D;
  --brand-tint: #E9F7EF;

  --bg: #FFFFFF;
  --bg-alt: #F7F7F8;
  --surface: #FFFFFF;
  --surface-muted: #F4F4F5;
  --ink: #18181B;
  --muted: #71717A;
  --line: #E4E4E7;

  --radius: 10px;
  --radius-sm: 6px;
  --gutter: 16px;
  --max: 1080px;

  --bar-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090B;
    --bg-alt: #131316;
    --surface: #131316;
    --surface-muted: #1C1C20;
    --ink: #FAFAFA;
    --muted: #A1A1AA;
    --line: #27272A;
    --brand-tint: #11261A;
  }
}

* { box-sizing: border-box; }

/* `hidden` has to beat the layout rules below. Without this, any element
   given `display: flex` ignores the attribute and shows anyway — which left
   the order sheet open on first load. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
img { max-width: 100%; height: auto; }

a { color: inherit; }

/* ------------------------------------------------------------------ bar */

.bar {
  position: sticky; top: 0; z-index: 30;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; text-decoration: none; letter-spacing: -0.01em;
}
.bar__brand img { border-radius: var(--radius-sm); }

.bar__nav { margin-left: auto; display: flex; gap: 24px; }
.bar__nav a {
  text-decoration: none; color: var(--muted); font-size: 15px;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.bar__nav a:hover { color: var(--ink); border-bottom-color: var(--brand); }

.bar__basket {
  display: none;
  border: 1px solid var(--line); background: var(--surface-muted);
  color: var(--ink); border-radius: var(--radius-sm);
  min-width: 40px; height: 36px; font: inherit; font-weight: 600;
  cursor: pointer;
}

@media (max-width: 680px) {
  .bar__nav { display: none; }
  .bar__basket[hidden] { display: none; }
  .bar__basket { display: block; margin-left: auto; }
}

/* ----------------------------------------------------------------- hero */

.hero {
  padding: clamp(48px, 9vw, 104px) var(--gutter) clamp(40px, 7vw, 80px);
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--brand-tint) 0%, transparent 62%);
}

.hero__inner { max-width: var(--max); margin: 0 auto; }
.hero__words { max-width: 620px; margin: 0 auto; }

@media (min-width: 900px) {
  .hero { text-align: left; }
  .hero__inner {
    display: grid; grid-template-columns: 1fr 420px;
    gap: 56px; align-items: center;
  }
  .hero__words { margin: 0; }
  .hero__logo { margin-left: 0; }
  .hero__lead { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
}

.hero__logo {
  width: min(420px, 82%); height: auto; margin: 0 auto 28px;
  display: block;
}
/* The wordmark is dark grey on transparency; invert it for dark mode so it
   does not disappear into the page. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__logo,
  :root:not([data-theme="light"]) .footer img,
  :root:not([data-theme="light"]) .bar__brand img { filter: none; }
  :root:not([data-theme="light"]) .hero__logo { filter: invert(1) brightness(1.6); }
}

.hero__lead {
  font-size: clamp(17px, 2.4vw, 20px); color: var(--muted);
  max-width: 34ch; margin: 0 auto;
}

.hero__actions {
  margin-top: 28px; display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- button */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- strip */

.strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
}
.strip__item {
  background: var(--bg); padding: 22px var(--gutter);
  display: flex; flex-direction: column; gap: 2px; text-align: center;
}
.strip__item strong { font-weight: 600; }
.strip__item span { color: var(--muted); font-size: 14px; line-height: 1.45; }

@media (max-width: 680px) {
  .strip { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- section */

.section { padding: clamp(48px, 8vw, 88px) var(--gutter); }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: var(--max); margin: 0 auto 32px; }
.section__head h2 { font-size: clamp(26px, 4vw, 34px); }
.section__head p { color: var(--muted); margin-top: 8px; max-width: 54ch; }

.inline-plus {
  display: inline-block; width: 22px; height: 22px; line-height: 20px;
  text-align: center; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-weight: 600; vertical-align: -5px;
}

/* ----------------------------------------------------------------- tabs */

.tabs {
  max-width: var(--max); margin: 0 auto 20px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tab {
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  color: var(--ink);
}
.tab[aria-selected="true"] {
  background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark);
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tab[aria-selected="true"] { color: #4ADE80; }
}

/* ----------------------------------------------------------------- menu */

.menu-group { max-width: var(--max); margin: 0 auto 36px; }
.menu-group > h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 600; margin-bottom: 12px;
}

.menu-list {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}

.menu-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.menu-item:last-child { border-bottom: 0; }

/* Name and price share a row on a wide screen and stack on a narrow one.
   Kept together in one element so the stepper never has to compete with a
   long dish name for horizontal space — at 375px "Banku & Tilapia" was
   wrapping mid-name. */
.menu-item__text {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; gap: 16px;
}
.menu-item__name { font-weight: 500; }
.menu-item__price {
  color: var(--muted); font-variant-numeric: tabular-nums;
  margin-left: auto; white-space: nowrap;
}

@media (max-width: 560px) {
  .menu-item__text { flex-direction: column; gap: 2px; }
  .menu-item__price { margin-left: 0; font-size: 15px; }
}

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-muted);
  color: var(--ink); font: inherit; font-size: 18px; font-weight: 600;
  cursor: pointer; line-height: 1;
}
.stepper button:hover { border-color: var(--brand); color: var(--brand); }
.stepper .qty {
  min-width: 20px; text-align: center; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.placeholder { max-width: var(--max); margin: 0 auto; color: var(--muted); }

/* ---------------------------------------------------------------- cards */

.cards {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { font-size: 15px; margin-bottom: 10px; }
.card p { color: var(--muted); }

.link { color: var(--brand); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours dd.closed { color: var(--muted); }

/* ---------------------------------------------------------------- story */

.story { max-width: 62ch; margin: 0 auto; text-align: center; }
.story h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 16px; }
.story p { color: var(--muted); margin-bottom: 14px; }

/* --------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); padding: 28px var(--gutter); }
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.footer__inner img { border-radius: var(--radius-sm); }
.footer__inner div { display: flex; flex-direction: column; }
.footer__inner span { color: var(--muted); font-size: 14px; }
.footer__copy { margin-left: auto; }

/* --------------------------------------------------------------- basket */

.basket {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.basket__summary {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink);
  cursor: pointer; text-align: left;
}
.basket__count {
  min-width: 26px; height: 26px; border-radius: 13px;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; padding: 0 8px;
}
.basket__label { color: var(--muted); font-size: 15px; }
.basket__total { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .basket__label { display: none; }
  .basket__send { padding-inline: 16px; }
}

/* Keeps the last menu row clear of the fixed basket bar. */
body.has-basket { padding-bottom: 84px; }

/* ---------------------------------------------------------------- sheet */

.sheet {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet__panel {
  background: var(--bg); width: 100%; max-width: 520px;
  border-radius: var(--radius) var(--radius) 0 0;
  max-height: 86vh; display: flex; flex-direction: column;
}
@media (min-width: 560px) {
  .sheet { align-items: center; }
  .sheet__panel { border-radius: var(--radius); }
}

.sheet__head {
  display: flex; align-items: center; padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.sheet__head h3 { font-size: 18px; }
.sheet__close {
  margin-left: auto; background: none; border: 0; font-size: 28px;
  line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px;
}

.sheet__lines { overflow-y: auto; padding: 8px 20px; }
.sheet__line {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.sheet__line:last-child { border-bottom: 0; }
.sheet__line-name { flex: 1; min-width: 0; }
.sheet__line-name b { display: block; font-weight: 500; }
.sheet__line-name span { color: var(--muted); font-size: 14px; }
.sheet__line-total { font-weight: 600; font-variant-numeric: tabular-nums; }

.sheet__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.sheet__total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 18px; margin-bottom: 10px;
}
.sheet__total strong { font-variant-numeric: tabular-nums; }
.sheet__note { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

/* ============================ hero additions ======================== */

.hero__kicker {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 14px;
}
.hero__head {
  font-size: clamp(38px, 8vw, 68px); font-weight: 800; letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.hero__from { margin-top: 22px; color: var(--muted); font-size: 15px; }
.hero__from strong { color: var(--ink); }

.btn--lg { padding: 16px 28px; font-size: 16px; }

.bar__cta {
  margin-left: 16px; padding: 9px 16px; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; white-space: nowrap;
}
@media (max-width: 680px) { .bar__cta { margin-left: auto; } }

.wrap { max-width: var(--max); margin: 0 auto; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; }

.notice-line {
  color: var(--muted); font-size: 14px; margin-bottom: 20px;
  padding-left: 12px; border-left: 2px solid var(--brand);
}

/* ================================ tiers ============================= */

.tiers { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

.tier {
  position: relative; display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.tier:hover { border-color: var(--brand); background: var(--brand-tint); }

.tier--popular { border-color: var(--brand); border-width: 2px; }
.tier__flag {
  position: absolute; top: -10px; left: 18px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}

.tier__no {
  font-size: 12px; font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tier__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tier__name { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.tier__head { color: var(--muted); font-size: 14px; }
.tier__price {
  font-size: clamp(20px, 4vw, 26px); font-weight: 800; letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .tier { gap: 12px; padding: 16px; }
  .tier__no { display: none; }
}

/* ============================= tray detail ========================== */

.tray-detail {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; padding: 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
}
.tray-detail h3 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}

.ticks {
  list-style: none; margin: 0 0 12px; padding: 0;
  columns: 2; column-gap: 20px;
}
.ticks li {
  position: relative; padding-left: 18px; margin-bottom: 5px;
  font-size: 15px; break-inside: avoid;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; background: var(--brand); border-radius: 2px;
}
@media (max-width: 420px) { .ticks { columns: 1; } }

/* ========================== sheet additions ========================= */

.sheet__panel--short { max-height: 70vh; }
.sheet__body { overflow-y: auto; padding: 16px 20px; }
.sheet__sub {
  display: flex; justify-content: flex-end; color: var(--brand);
  font-size: 14px; font-weight: 600; margin-bottom: 8px; min-height: 18px;
}
.sheet__total { margin-bottom: 4px; }
.sheet__total strong { font-weight: 800; }

/* =============================== booking ============================ */

.chosen {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px; margin-bottom: 18px;
  background: var(--brand-tint); border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
}
.chosen strong { font-size: 18px; font-weight: 700; }
.chosen span { color: var(--muted); font-size: 14px; }

.field { display: block; margin-bottom: 16px; }
.field > span, .field__label {
  display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px;
}
.field em { font-weight: 400; color: var(--muted); font-style: normal; }

.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 12px;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand);
}

/* A field the order cannot be sent without. Marked rather than shouted at:
   the single line under the form names everything missing at once. */
.field input.is-bad {
  border-color: #DC2626; background: #FEF2F2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field input.is-bad { background: #2A0E0E; }
}

.form-error {
  background: #FEF2F2; border: 1px solid #DC2626; color: #991B1B;
  border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 14px; line-height: 1.45; margin: 4px 0 12px; font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-error {
    background: #2A0E0E; color: #FCA5A5; border-color: #991B1B;
  }
}
.field textarea { resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-row button {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-muted);
  color: var(--ink); font: inherit; font-size: 20px; cursor: pointer;
}
.qty-row button:hover { border-color: var(--brand); color: var(--brand); }
.qty-row strong {
  min-width: 26px; text-align: center; font-size: 20px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.qty-row em { color: var(--muted); font-style: normal; font-size: 14px; }

.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice button {
  flex: 1; min-width: 150px; padding: 12px 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-sm); font: inherit; font-size: 15px;
  cursor: pointer;
}
.choice button.is-on {
  border-color: var(--brand); background: var(--brand-tint);
  font-weight: 600; color: var(--brand-dark);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .choice button.is-on { color: #4ADE80; }
}

.warn {
  background: #FFFBEB; border: 1px solid #F59E0B; color: #78350F;
  border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 14px; line-height: 1.45; margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .warn {
    background: #2A1C06; color: #FCD34D; border-color: #92400E;
  }
}

/* ============================== contacts ============================ */

.contacts { list-style: none; margin: 0 0 10px; padding: 0; }
.contacts li { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.contacts li span { color: var(--muted); font-size: 14px; }

.who { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.who__btn {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: var(--radius); font: inherit; cursor: pointer;
}
.who__btn:hover { border-color: var(--brand); background: var(--brand-tint); }
.who__btn strong { font-size: 16px; font-weight: 600; }
.who__btn span { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ============================= tray builder ========================= */

.step-lead { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.btn--back { margin-top: 8px; }

.pick { margin-bottom: 22px; }

.pick__head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px;
}
.pick__head h4 {
  font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -0.01em;
}
.pick__count {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pick__count.is-full { color: var(--brand); }

.pick__note { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

.pick__opts {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; margin-top: 8px;
}

.opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.opt:last-child { border-bottom: 0; }
.opt.is-on { background: var(--brand-tint); }

.opt__name { flex: 1; min-width: 0; font-size: 15px; }
.opt.is-on .opt__name { font-weight: 600; }

.opt__n {
  min-width: 16px; text-align: center; font-weight: 700;
  font-variant-numeric: tabular-nums; font-size: 15px;
}

.opt__btn {
  width: 32px; height: 32px; flex: none;
  border: 1px solid var(--line); background: var(--surface-muted);
  color: var(--ink); border-radius: var(--radius-sm);
  font: inherit; font-size: 17px; line-height: 1; cursor: pointer;
}
.opt__btn:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.opt__btn[disabled] { opacity: .3; cursor: not-allowed; }

/* The spread under each tier name in the list. */
.tier__spread {
  color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 3px;
}
@media (max-width: 560px) { .tier__spread { display: none; } }

.ticks--wide { columns: 1; }
.ticks--wide em {
  color: var(--muted); font-style: normal; font-size: 13px;
}

/* =============================== packs ============================== */

.packs { display: flex; flex-direction: column; gap: 10px; }

.pack {
  position: relative; display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left; cursor: pointer; font: inherit;
  padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.pack:hover { border-color: var(--brand); background: var(--brand-tint); }
.pack--popular { border-color: var(--brand); }

.pack__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pack__body strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.pack__body span { color: var(--muted); font-size: 14px; }

.pack__from {
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) { .pack { padding: 14px 16px; gap: 12px; } }

/* A dish with no agreed price. Muted, so the priced ones lead. */
.pack--ask { border-style: dashed; }
.pack--ask .pack__from { font-size: 15px; font-weight: 600; color: var(--muted); }

/* Build-your-own sits above the preset packs and reads as an action. */
.pack--build {
  border-color: var(--brand); border-width: 2px; background: var(--brand-tint);
}
.pack--build .pack__from {
  font-size: 15px; font-weight: 700; color: var(--brand-dark);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pack--build .pack__from { color: #4ADE80; }
}

/* ============================== photos ============================= */

.hero__shot { margin: 32px 0 0; }
.hero__shot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (min-width: 900px) { .hero__shot { margin: 0; } }

.shots {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
/* The wide one earns two columns where there are two to give. */
.shot--tall { grid-column: span 2; }
@media (max-width: 520px) { .shot--tall { grid-column: span 1; } }

.shot { margin: 0; position: relative; }
.shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.shot--tall img { aspect-ratio: 16 / 9; }

.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px; border-radius: 0 0 var(--radius) var(--radius);
  color: #fff; font-size: 14px; font-weight: 500;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
}

/* On a phone the logo was taking most of the first screen and pushing the
   food below the fold - the wrong order for a restaurant, where the picture
   is what sells. Smaller mark, tighter spacing, photo in view sooner. */
@media (max-width: 899px) {
  .hero { padding-top: 28px; padding-bottom: 32px; }
  .hero__logo { width: min(260px, 64%); margin-bottom: 18px; }
  .hero__kicker { font-size: 11px; margin-bottom: 10px; }
  .hero__head { font-size: clamp(34px, 11vw, 46px); margin-bottom: 12px; }
  .hero__lead { font-size: 16px; }
  .hero__actions { margin-top: 20px; }
  .hero__from { margin-top: 16px; font-size: 14px; }
  .hero__shot { margin-top: 24px; }
  .hero__shot img { max-height: 54vh; object-fit: cover; }
}

/* ========================== hero background ======================== */

.hero { position: relative; overflow: hidden; }

.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/photos/packed-meals-1280.jpg');
  background-size: cover; background-position: center 42%;
}
/* The scrim is what makes the wordmark and the headline readable over a
   busy photograph. Heavier at the top, where the type sits. */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(9,9,11,.90) 0%, rgba(9,9,11,.82) 45%, rgba(9,9,11,.94) 100%);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero__bg::after {
    background: linear-gradient(180deg,
      rgba(255,255,255,.93) 0%, rgba(255,255,255,.86) 45%,
      rgba(255,255,255,.96) 100%);
  }
}

.hero__inner { position: relative; z-index: 1; }

/* With a photo behind it the hero is centred again, one column. */
@media (min-width: 900px) {
  .hero { text-align: center; }
  .hero__inner { display: block; }
  .hero__words { margin: 0 auto; }
  .hero__logo { margin-left: auto; margin-right: auto; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
}

/* ============================== switch ============================= */

.switch {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px; margin-bottom: 28px;
}
.switch__btn {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 14px 18px; cursor: pointer; font: inherit; text-align: left;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--radius);
  transition: border-color .15s ease, background .15s ease;
}
.switch__btn strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.switch__btn span { color: var(--muted); font-size: 14px; }
.switch__btn:hover { border-color: var(--brand); }
.switch__btn.is-on {
  border-color: var(--brand); border-width: 2px; background: var(--brand-tint);
}
.switch__btn.is-on span { color: var(--brand-dark); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .switch__btn.is-on span { color: #4ADE80; }
}

/* Both views live in one section now, so the inner heads need no top gap. */
#viewTrays > .section__head, #viewPacks > .section__head { margin-top: 4px; }
