/* Colours and type taken from Tunito's printed menu: dark roasted brown, lime green
   headings, warm orange accents, cream text. */
:root {
  --bg: #1a0d09;
  --bg-deep: #120806;
  --surface: #26140e;
  --surface-2: #2f1a12;
  --line: #4a2c1f;
  --text: #f6efe3;
  --muted: #c9b6a3;
  --lime: #8fbf26;
  --lime-bright: #a6d23a;
  --lime-ink: #142006;
  --orange: #f2a33a;
  --terracotta: #b9461c;
  --danger: #ff8a6b;
  --radius: 16px;
  --display: "Lilita One", "Arial Black", Impact, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at top, rgba(185, 70, 28, 0.18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  padding-bottom: 104px;
}
a { color: var(--orange); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* Hero */
.hero { padding: 40px 0 28px; text-align: center; }
.kicker {
  margin: 0; font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange); font-size: 1rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 14vw, 5.5rem);
  color: var(--lime); text-transform: uppercase; letter-spacing: 0.01em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.hero h1::after {
  content: ""; display: block; height: 6px; width: min(320px, 70%); margin: 10px auto 0;
  border-radius: 99px; background: linear-gradient(90deg, transparent, var(--lime) 15%, var(--lime) 85%, transparent);
}
.tagline { margin: 14px 0 0; font-style: italic; font-size: 1.1rem; }
.gf-seal { width: 104px; height: 104px; display: block; margin: 0 auto 14px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); }
.dietary {
  display: inline-block; margin: 14px 0 0; padding: 8px 18px; border-radius: 99px;
  background: var(--orange); color: #2a1406; font-weight: 700; font-size: 1rem;
}
.dietary strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; }
.hero .status { display: table; margin: 14px auto 0; }
.status {
  display: inline-block; margin: 16px 0 0; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 0.9rem;
  background: rgba(143, 191, 38, 0.15); color: var(--lime-bright); border: 1px solid rgba(143, 191, 38, 0.4);
}
.status.closed { background: rgba(242, 163, 58, 0.12); color: var(--orange); border-color: rgba(242, 163, 58, 0.4); }
.hero.small { padding: 18px 0; text-align: left; border-bottom: 1px solid var(--line); }
.hero.small h1 { font-size: 2rem; }
.hero.small h1::after { display: none; }
.back { color: var(--muted); text-decoration: none; font-size: 0.9rem; }

/* Section tabs */
.tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  background: rgba(18, 8, 6, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 600;
}
.tabs a:hover, .tabs a:focus-visible { border-color: var(--lime); color: var(--lime-bright); }

/* Menu */
.category { padding-top: 36px; scroll-margin-top: 60px; }
.category-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.category h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--lime);
  font-size: clamp(2rem, 8vw, 2.6rem); display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.category-desc { margin: 6px 0 0; font-style: italic; color: var(--muted); }
.category-img {
  width: 128px; height: 128px; object-fit: cover; border-radius: 50%; flex: none;
  border: 3px solid var(--surface-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; gap: 14px; align-items: center; padding: 16px 0;
  border-bottom: 2px dotted rgba(242, 163, 58, 0.45);
}
.item:last-child { border-bottom: 0; }
.item-body { flex: 1; min-width: 0; }
.item h3 {
  font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; color: var(--lime-bright);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.tag {
  font-size: 0.7rem; padding: 1px 7px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); letter-spacing: 0;
}
.desc { margin: 4px 0 0; color: var(--text); opacity: 0.88; font-size: 0.95rem; }
.price { font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .price { margin: 6px 0 0; }
.item.sold-out .item-body { opacity: 0.45; }
.item-action { flex: none; }

/* Controls */
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
.add, .primary {
  background: var(--lime); color: var(--lime-ink); border: 0; border-radius: 99px; padding: 9px 20px;
  font-weight: 800; letter-spacing: 0.02em;
}
.add:hover, .primary:hover:not(:disabled) { background: var(--lime-bright); }
.primary {
  display: block; width: 100%; padding: 15px; font-size: 1.05rem; text-align: center; text-decoration: none;
  font-family: var(--display); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;
}
.link { background: none; border: 0; color: inherit; text-decoration: underline; padding: 6px; }
.danger { color: var(--danger); }
.icon-btn { background: none; border: 0; font-size: 1.2rem; color: var(--muted); padding: 6px; }
.badge { font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.badge.paid { background: var(--lime); color: var(--lime-ink); }
.badge.collect { background: var(--orange); color: #2a1406; }

.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--lime); border-radius: 99px; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; color: var(--lime-bright); font-size: 1.25rem; font-weight: 800; }
.stepper span { min-width: 1.6em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.cart-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10;
  max-width: 748px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 22px; border: 0; border-radius: var(--radius);
  background: var(--lime); color: var(--lime-ink); font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.cart-bar span:nth-child(2) { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.1rem; }

/* Sheets / dialogs */
dialog {
  width: min(560px, 100%); max-height: 92vh; margin: auto auto 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface); color: var(--text);
}
@media (min-width: 640px) { dialog { margin: auto; border-radius: var(--radius); } }
dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
dialog form { padding: 18px 20px 22px; display: grid; gap: 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--lime); font-size: 1.8rem; }
.qty { display: flex; justify-content: center; }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li {
  display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0;
  border-bottom: 2px dotted rgba(242, 163, 58, 0.35);
}
.cart-lines li > span:first-child { flex: 1; }
.cart-lines small { display: block; font-size: 0.82rem; }

label { display: grid; gap: 5px; font-size: 0.9rem; font-weight: 700; }
input, select, textarea {
  font: inherit; font-weight: 400; padding: 11px 13px; width: 100%;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-deep); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
fieldset { border: 0; padding: 0; margin: 0; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; }
.segmented label { display: block; text-align: center; padding: 11px; cursor: pointer; font-weight: 800; }
.segmented input { position: absolute; opacity: 0; width: 1px; }
.segmented label:has(input:checked) { background: var(--lime); color: var(--lime-ink); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: -4px; }

.choice-group { display: grid; gap: 8px; }
.choice-group legend { font-weight: 800; margin-bottom: 8px; font-size: 0.95rem; }
.radio-card {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-deep);
}
.radio-card span:nth-of-type(1) { flex: 1; }
.radio-card input { width: 18px; height: 18px; margin: 0; accent-color: var(--lime); flex: none; }
.radio-card:has(input:checked) { border-color: var(--lime); background: rgba(143, 191, 38, 0.1); }

.totals { margin: 0; display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-weight: 800; font-size: 1.15rem; padding-top: 8px; border-top: 1px solid var(--line); }
.totals .grand dd { color: var(--orange); }
.hint { margin: 0; font-size: 0.9rem; color: var(--orange); }
.errors { margin: 0; padding-left: 18px; color: var(--danger); font-weight: 600; }
.errors:empty { display: none; }

.footer { padding: 40px 16px; color: var(--muted); text-align: center; }
.footer h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--lime); font-size: 1.6rem; margin: 24px 0 10px; }
.footer-gf { color: var(--orange); font-weight: 700; font-size: 1.05rem; }
.hours { display: grid; gap: 4px; max-width: 300px; margin: 0 auto 20px; }
.hours div { display: flex; justify-content: space-between; border-bottom: 2px dotted rgba(242, 163, 58, 0.3); padding: 3px 0; }
.hours dt { font-weight: 700; color: var(--text); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Order tracking */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.card .primary { margin: 12px 0; }
.order-number { font-family: var(--display); font-size: 1.8rem; color: var(--lime); margin: 0 0 12px; text-transform: uppercase; }
.progress { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.progress li { padding-left: 30px; position: relative; color: var(--muted); }
.progress li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line);
}
.progress li.done { color: var(--text); }
.progress li.done::before { background: var(--lime); border-color: var(--lime); }
.progress li.current { color: var(--lime-bright); font-weight: 800; }
.progress li.current::before { border-color: var(--orange); background: var(--orange); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .progress li.current::before { animation: none; } }

/* Dashboard */
.admin-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.admin-controls { display: flex; gap: 12px; align-items: center; }
.switch { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 700; padding: 6px 0; }
.switch input { width: 20px; height: 20px; accent-color: var(--lime); }
.login { max-width: 360px; margin: 40px auto; display: grid; gap: 12px; }
.filters { display: flex; gap: 8px; margin: 18px 0 0; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 7px 15px; font-weight: 700; }
.chip.active { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.order p { margin: 6px 0; }
.order-head { display: flex; gap: 10px; align-items: center; font-size: 1.2rem; }
.order-head strong { font-family: var(--display); font-weight: 400; color: var(--lime); font-size: 1.5rem; }
.order-head .muted { margin-left: auto; font-size: 0.9rem; }
.order.status-new { border-left: 6px solid var(--orange); }
.order-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.order-actions .primary { width: auto; flex: 1; padding: 12px; font-size: 1rem; margin: 0; }
.notes { background: var(--bg-deep); padding: 8px 10px; border-radius: 8px; border-left: 3px solid var(--orange); }
#stock h2 { font-family: var(--display); font-weight: 400; color: var(--lime); text-transform: uppercase; margin-bottom: 6px; }

/* Everyday menu vs catering */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.mode-switch button {
  padding: 12px 10px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.03em; text-transform: uppercase;
}
.mode-switch button[aria-selected="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.catering-intro { padding-top: 24px; }
.catering-intro p { margin: 0 0 10px; }
.gluten-warning {
  padding: 12px 14px; border-radius: 12px; font-weight: 700;
  background: rgba(255, 138, 107, 0.12); border: 1.5px solid var(--danger); color: var(--text);
}
.diet {
  display: inline-block; margin-top: 8px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 99px;
}
.gf-yes { background: var(--lime); color: var(--lime-ink); }
.gf-no { border: 1.5px solid var(--danger); color: var(--danger); }
.price .min { color: var(--muted); font-weight: 600; }
.event-fields { display: grid; gap: 8px; }
.event-fields legend { font-weight: 800; font-size: 0.95rem; margin-bottom: 8px; }
.event-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge.catering { background: var(--orange); color: #2a1406; }
.event-when { font-weight: 800; color: var(--orange); }
