/* The customer site. Sits on top of site.css and loads only on customer pages, so the staff portal is untouched.
   Brand palette from the Jummie's Bukka logo: red #ef4035, orange #fb9230, dark brown #932426, warm white.
   The token names are older than the brand (site.css rules read --green), so: --green is the brand brown,
   --palm the deep brown behind the hero and footer, --gold the orange, --jollof a red deep enough for white text. */
@font-face { font-family: Figtree; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --green: #932426; --green-d: #741a1d; --palm: #4e1214; --gold: #fb9230; --jollof: #d2352a; --jollof-d: #b02a20;
  --brand-red: #ef4035;
  --ink: #2a1614; --muted: #6e5a54; --bg: #fbf5ec; --sand: #f6e4d4; --card: #fffdf9; --line: #ecdccd;
  --r: 16px; --r-s: 10px; --tap: 48px; --display: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(78, 18, 20, .06), 0 8px 24px rgba(78, 18, 20, .07);
  --shadow-up: 0 2px 4px rgba(78, 18, 20, .08), 0 16px 36px rgba(78, 18, 20, .14);
}
html { scroll-behavior: smooth; overflow-x: clip; }
body { font: 16.5px/1.6 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.7rem); line-height: 1.12; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--jollof-d); }
:focus-visible { outline: 3px solid var(--jollof); }
main { max-width: 720px; padding: 28px 20px 56px; }
body.wide main { max-width: 1200px; padding-top: 0; }
.eyebrow { color: var(--jollof-d); font-size: .8rem; font-weight: 700; letter-spacing: .13em; margin: 0 0 8px; text-transform: uppercase; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(78, 18, 20, .05); color: var(--green); flex-wrap: nowrap; gap: 8px; padding: 6px max(20px, calc(50vw - 580px)); position: sticky; top: 0; z-index: 30; }
.top a { color: var(--green); }
.top .brand { align-items: center; display: inline-flex; font-family: var(--display); font-size: 1.32rem; font-weight: 800; gap: 10px; letter-spacing: -.02em; padding-left: 0; }
.brand-mark { display: block; flex: none; height: 40px; width: auto; }
.top .brand:hover { color: var(--jollof-d); }
.top nav { align-items: center; gap: 4px; }
.top nav a { border-radius: 8px; font-size: .96rem; font-weight: 600; padding: 0 10px; }
.top nav a:hover { background: rgba(147, 36, 38, .08); color: var(--green-d); }
.top :focus-visible { outline-color: var(--jollof); }
.nav-basket { align-items: center; display: inline-flex !important; gap: 6px; }
.nav-count { background: var(--jollof); border-radius: 99px; color: #fff; display: inline-block; font-size: .78rem; font-weight: 800; line-height: 20px; min-width: 20px; padding: 0 5px; text-align: center; }
@media (max-width: 430px) {
  .top { padding: 6px 12px; }
  .top .brand { font-size: 1.05rem; gap: 7px; }
  .top .brand-mark { height: 34px; width: auto; }
  .top nav { gap: 0; }
  .top nav a { font-size: .9rem; padding: 0 6px; }
}

/* buttons */
.btn, button { border-radius: 999px; font-weight: 600; padding: 0 22px; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.btn:hover, button:hover:not(:disabled) { background: var(--green-d); border-color: var(--green-d); color: #fff; filter: none; }
.btn.alt, button.alt { background: transparent; border-color: var(--green); color: var(--green); }
.btn.alt:hover, button.alt:hover:not(:disabled) { background: var(--green); color: #fff; }
.btn.warm, button.warm { background: var(--jollof); border-color: var(--jollof); color: #fff; }
.btn.warm:hover, button.warm:hover:not(:disabled) { background: var(--jollof-d); border-color: var(--jollof-d); }
#pay, #checkout-form > button[type=submit] { background: var(--jollof); border-color: var(--jollof); width: 100%; }
#pay:hover:not(:disabled) { background: var(--jollof-d); border-color: var(--jollof-d); }

/* hero */
.hero { background: radial-gradient(90% 120% at 85% 10%, #8a2224 0%, var(--palm) 62%); color: #fbf1e3; display: grid; gap: 28px; margin-inline: calc(50% - 50vw); overflow: hidden; padding: 40px max(20px, calc(50vw - 580px)) 44px; }
.hero h1 { color: #fff8ec; font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin: 0 0 16px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .eyebrow { color: var(--gold); }
.hero-lead { color: #eadfce; font-size: 1.14rem; margin: 0 0 24px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 auto; font-size: 1.03rem; min-height: 54px; padding: 0 28px; }
.hero-actions .btn.alt { border-color: rgba(255, 248, 236, .55); color: #fff8ec; }
.hero-actions .btn.alt:hover { background: #fff8ec; border-color: #fff8ec; color: var(--palm); }
.hero-facts { color: #d5cab8; display: flex; flex-wrap: wrap; font-size: .92rem; gap: 6px 22px; list-style: none; margin: 24px 0 0; padding: 0; }
.hero-facts li::before { color: var(--gold); content: "✓"; font-weight: 700; margin-right: 7px; }
.hero-art { aspect-ratio: 1 / .86; justify-self: center; max-width: 560px; order: -1; position: relative; width: min(100%, 400px); }
.hero-art img { box-shadow: 0 22px 48px rgba(0, 0, 0, .34); display: block; height: auto; object-fit: cover; position: absolute; }
.hero-art .main { border-radius: 50% 50% 24px 24px; left: 6%; top: 0; width: 66%; }
.hero-art .side-a { border: 5px solid var(--palm); border-radius: 50%; right: 0; top: 9%; width: 40%; }
.hero-art .side-b { border: 5px solid var(--palm); border-radius: 22px; bottom: 0; right: 7%; width: 38%; }
@media (min-width: 900px) {
  .hero { align-items: center; column-gap: 56px; grid-template-columns: 1.08fr .92fr; padding-block: 72px 76px; }
  .hero-art { order: 0; width: 100%; }
  .hero-actions .btn, .hero-star button.add { flex: 0 0 auto; }
}

/* a seasonal menu's centrepiece */
.hero-star h2 { color: #fff8ec; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); margin: 0 0 6px; }
.hero-star .hero-lead { margin-bottom: 10px; }
.hero-price { color: var(--gold); font-family: var(--display); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); font-weight: 600; line-height: 1.1; margin: 0 0 6px; }
.hero-allergen { color: #cdc2b0; font-size: .86rem; margin: 0 0 20px; }
.hero-star .btn.alt { border-color: rgba(255, 248, 236, .55); color: #fff8ec; }
.hero-star button.add { flex: 1 1 auto; font-size: 1.03rem; min-height: 54px; padding: 0 28px; }
.hero-star button[disabled] { background: rgba(255, 255, 255, .14); border-color: transparent; color: #eadfce; opacity: 1; }
.hero-art.star { aspect-ratio: 1 / .94; }
.hero-art.star .main { border-radius: 50%; left: 2%; top: 0; width: 82%; }
.hero-art.star .side-a { bottom: 6%; right: 1%; top: auto; width: 31%; }
.hero-art.star .side-b { border-radius: 50%; bottom: 0; left: 0; right: auto; width: 27%; }

@media (min-width: 900px) { .hero-star button.add { flex: 0 0 auto; } }
@media (min-width: 720px) {
  .star-cat .grid { grid-template-columns: 1fr; }
  .star-cat .dish { column-gap: 36px; display: grid; grid-template-columns: minmax(0, 420px) 1fr; grid-template-rows: 1fr auto auto auto auto 1fr; padding: 0 36px 0 0; row-gap: 6px; }
  .star-cat .dish > .media { aspect-ratio: 4 / 3; grid-column: 1; grid-row: 1 / -1; margin: 0; }
  .star-cat .dish .name { grid-row: 2; }
  .star-cat .dish .desc { grid-row: 3; }
  .star-cat .dish .allergen { grid-row: 4; }
  .star-cat .dish .row { flex-wrap: wrap; gap: 20px; grid-row: 5; justify-content: flex-start; }
  .star-cat .dish > :not(.media) { grid-column: 2; margin-inline: 0; }
  .star-cat .dish .name { font-size: 1.6rem; }
  .star-cat .dish .desc { -webkit-line-clamp: 4; line-clamp: 4; font-size: 1rem; }
  .star-cat .dish .price { font-size: 1.4rem; }
}

/* welcome back */
.welcome { align-items: center; background: linear-gradient(115deg, #fff4e2, var(--sand)); border: 1px solid #ecd9bb; border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 14px; margin-top: 24px; padding: 22px 24px; }
.welcome h2 { margin: 0 0 4px; }
.welcome p { margin: 0; }
.welcome .items { color: var(--muted); }
.welcome .note { color: var(--muted); font-size: .86rem; margin-top: 6px; }
@media (min-width: 720px) { .welcome { grid-template-columns: 1fr auto; padding: 24px 30px; } }

/* Christmas feature */
.feature { align-items: stretch; background: var(--sand); border-radius: var(--r); display: grid; margin-top: 28px; overflow: hidden; }
.feature img { aspect-ratio: 16 / 9; display: block; height: 100%; object-fit: cover; object-position: center 40%; width: 100%; }
.feature-copy { padding: 22px 24px 26px; }
.feature-copy h2 { margin: 0 0 8px; }
.feature-copy p { margin: 0 0 16px; }
@media (min-width: 720px) {
  .feature { grid-template-columns: minmax(0, 300px) 1fr; }
  .feature img { aspect-ratio: auto; }
  .feature-copy { align-self: center; padding: 30px 40px; }
}

/* menu */
.menu-head { padding-top: 36px; scroll-margin-top: 60px; }
.menu-head h1, .menu-head h2 { margin-bottom: 14px; }
.tabs { padding: 0 0 14px; }
.tabs a { border: 2px solid var(--line); border-radius: 999px; color: var(--ink); line-height: 44px; }
.tabs a[aria-current=page] { background: var(--green); border-color: var(--green); color: #fff; }
.search { background-position: 16px center; border-color: var(--line); border-radius: 999px; padding-inline: 20px; }
.search:focus { border-color: var(--green); }
input[type=radio], input[type=checkbox] { accent-color: var(--green); }
input, select, textarea { background: #fffdf9; border-color: var(--line); border-radius: var(--r-s); transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
.cats-bar { background: linear-gradient(var(--bg) 82%, rgba(251, 245, 236, 0)); margin: 8px -20px 0; padding: 10px 20px 8px; position: sticky; top: 60px; z-index: 20; }
.cats { padding: 2px 0 10px; }
.cats a { background: var(--card); border-color: var(--line); color: var(--ink); font-size: .93rem; font-weight: 500; line-height: 38px; min-height: 40px; transition: background .16s, color .16s, border-color .16s; }
.cats a:hover { border-color: var(--green); color: var(--green); }
.cats a.current { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-cat] { padding-top: 26px; scroll-margin-top: 124px; }
[data-cat] > h2 { border-bottom: 1px solid var(--line); margin: 0 0 16px; padding-bottom: 10px; }
.grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr)); }
.card { border-color: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.dish { gap: 4px; overflow: hidden; padding: 0 0 14px; transition: box-shadow .22s, transform .22s; }
.dish > :not(.media) { margin-inline: 16px; }
.dish .media { aspect-ratio: 4 / 3; background: var(--sand); margin-bottom: 8px; overflow: hidden; position: relative; }
.dish .photo { aspect-ratio: auto; border-radius: 0; height: 100%; transition: transform .45s ease; width: 100%; }
.dish .name { font-family: var(--display); font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.dish .desc { color: var(--muted); display: -webkit-box; font-size: .92rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.dish .allergen { font-size: .8rem; }
.dish .row { align-items: center; margin-top: auto; padding-top: 8px; }
.dish .price { font-size: 1.07rem; }
.dish button.add, .dish button.alt { font-size: .96rem; min-height: 44px; min-width: 84px; padding: 0 18px; }
.bundle-items { color: var(--muted); font-size: .9rem; list-style: none; margin: 2px 0; padding: 0; }
.bundle-items li::before { color: var(--jollof); content: "•"; font-weight: 700; margin-right: 7px; }
.dish.out .photo { filter: grayscale(.6); opacity: .6; }
.tag { background: var(--gold); color: #3d0e0f; }
.dish .fav { align-items: center; background: rgba(255, 253, 249, .94); border: 0; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); color: var(--jollof); display: inline-flex; font-size: 1.28rem; height: 44px; justify-content: center; line-height: 1; min-height: 44px; min-width: 44px; padding: 0; position: absolute; right: 8px; top: 8px; width: 44px; }
.dish .fav:hover:not(:disabled) { background: #fff; color: var(--jollof-d); transform: scale(1.08); }
.dish .fav[aria-pressed=true] { background: var(--jollof); color: #fff; }
.dish .fav[aria-pressed=true]:hover:not(:disabled) { background: var(--jollof-d); color: #fff; }
@media (hover: hover) {
  .dish:hover { box-shadow: var(--shadow-up); transform: translateY(-3px); }
  .dish:hover .photo { transform: scale(1.045); }
}
@media (max-width: 599px) {
  .grid { gap: 12px; }
  .dish { column-gap: 12px; display: grid; grid-template-columns: 112px minmax(0, 1fr); padding: 0 12px 0 0; row-gap: 2px; }
  .dish > .media { align-self: stretch; aspect-ratio: auto; grid-column: 1; grid-row: 1 / span 5; margin: 0; min-height: 132px; }
  .dish > :not(.media) { grid-column: 2; margin-inline: 0; }
  .dish > :nth-child(2) { margin-top: 10px; }
  .dish .row { padding: 4px 0 10px; }
  .dish .photo { position: absolute; inset: 0; }
  .dish .fav { font-size: 1.1rem; height: 40px; left: 4px; min-height: 40px; min-width: 40px; right: auto; top: 4px; width: 40px; }
}
#favourites { padding-top: 28px; }
#favourites > h2 { margin-bottom: 14px; }

/* alerts and messages */
.msg { background: var(--card); border-color: var(--line); }
.alert { background: #fff4e2; border-left-color: var(--jollof); border-radius: var(--r-s); }

/* basket bar and toast */
.basketbar { background: var(--jollof); border: 0; border-radius: 999px; box-shadow: 0 10px 30px rgba(120, 44, 12, .38); color: #fff; font-weight: 700; min-height: 56px; padding: 0 24px; }
.basketbar:hover { background: var(--jollof-d); color: #fff; }
.basketbar.bump { animation: bump .32s ease; }
@keyframes bump { 40% { transform: scale(1.04); } }
.toast { background: var(--ink); border-radius: 999px; }
body:has(.basketbar:not([hidden])) .foot-wrap { padding-bottom: 86px; }

/* portion and options pop-up */
dialog { background: var(--bg); border-radius: var(--r); box-shadow: var(--shadow-up); padding: 22px; }
dialog::backdrop { background: rgba(40, 10, 11, .55); }
dialog h2 { font-size: 1.35rem; margin-top: 0; }
dialog .row { margin-top: 14px; }

/* basket and checkout */
#basket-root .line { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow); margin-bottom: 10px; padding: 14px; }
#basket-root .btn { width: 100%; margin-top: 8px; }
.qty button { border-radius: 50%; height: var(--tap); padding: 0; width: var(--tap); }
fieldset { background: var(--card); border-color: var(--line); border-radius: var(--r); padding: 12px 18px 16px; }
legend { font-family: var(--display); font-size: 1.1rem; font-weight: 600; padding: 0 6px; }
fieldset:has(input[name=type]) { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
fieldset:has(input[name=type]) legend { grid-column: 1 / -1; }
fieldset:has(input[name=type]) .check { align-items: center; border: 2px solid var(--line); border-radius: var(--r-s); cursor: pointer; font-weight: 600; margin: 0; min-height: 56px; padding: 0 14px; transition: border-color .15s, background .15s; }
fieldset:has(input[name=type]) .check:has(input:checked) { background: #fbeee6; border-color: var(--green); }
#summary, section[aria-labelledby=sum-h] { background: var(--card); border-radius: var(--r); }
section[aria-labelledby=sum-h] { border: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 18px; }
.totals .grand { font-family: var(--display); font-size: 1.28rem; }

/* tracking */
.steps { counter-reset: none; gap: 0; margin: 20px 0; }
.steps li { background: transparent; border: 0; border-left: 3px solid var(--line); border-radius: 0; color: var(--muted); margin-left: 10px; padding: 0 0 20px 22px; position: relative; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 2px; }
.steps li::before { background: var(--bg); border: 3px solid var(--line); border-radius: 50%; content: ""; height: 16px; left: -11px; position: absolute; top: 4px; width: 16px; }
.steps li.done { background: transparent; border-left-color: var(--green); color: var(--ink); font-weight: 500; }
.steps li.done::before { background: var(--green); border-color: var(--green); }
.steps li[aria-current=step] { color: var(--ink); font-weight: 700; }
.steps li[aria-current=step]:not(:last-child)::before { background: var(--jollof); border-color: #f6cdb9; box-shadow: 0 0 0 4px rgba(210, 53, 42, .16); }
.again { background: linear-gradient(115deg, #fff4e2, var(--sand)); border-radius: var(--r); margin: 22px 0; padding: 20px 22px; }
.again h2 { margin: 0 0 4px; }
.again p { margin: 0 0 14px; }

/* account */
.order-card { gap: 2px; margin-bottom: 14px; }
.order-card h3 { margin: 0; }
.order-card ul { color: var(--muted); margin: 6px 0; padding-left: 18px; }
.order-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.order-card .actions > * { flex: 1 1 150px; }
.pill { background: #f8e6e2; border-radius: 99px; color: var(--green); display: inline-block; font-family: Figtree, system-ui, sans-serif; font-size: .78rem; font-weight: 700; margin-left: 6px; padding: 1px 10px; vertical-align: middle; }
.pill.warn { background: #fbe6dd; color: var(--jollof-d); }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); margin: 14px 0; padding: 12px 16px; }
summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.guest-note { color: var(--muted); font-size: .94rem; }

/* customer guide (/help) */
.manual .lead { color: var(--muted); font-size: 1.08rem; }
.manual section { scroll-margin-top: 76px; }
.manual section > h2 { border-bottom: 1px solid var(--line); margin-top: 34px; padding-bottom: 8px; }
.manual li + li { margin-top: 6px; }
.manual table { border: 1px solid var(--line); border-radius: var(--r-s); margin: 12px 0 16px; overflow: hidden; }
.manual-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin: 20px 0 8px; padding: 16px 22px; }
.manual-toc h2 { font-size: 1.1rem; margin: 0 0 6px; }
.manual-toc ol { columns: 2 200px; margin: 0; padding-left: 20px; }
.manual-toc li { break-inside: avoid; }
@media print { .top, .foot-wrap, .basketbar, .manual-toc { display: none; } }

/* footer */
.foot-wrap { background: var(--palm); color: #d9cdbb; margin-top: 56px; padding: 44px 0 28px; }
.foot { color: inherit; display: grid; font-size: .94rem; gap: 26px; max-width: 1200px; padding: 0 20px; }
.foot h2 { color: #fff8ec; font-size: 1.15rem; margin: 0 0 8px; }
.foot p { margin: 0 0 6px; }
.foot a { color: #f4e7d3; line-height: 1.5; min-height: 0; padding: 4px 0; }
.foot a:hover { color: var(--gold); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot .brandline { align-items: center; color: #fff8ec; display: flex; font-family: var(--display); font-size: 1.45rem; font-weight: 800; gap: 12px; letter-spacing: -.02em; margin-bottom: 10px; }
.foot .brandline .brand-mark { height: 58px; width: auto; padding: 6px 7px; border-radius: 14px; background: #fffdf9; }      /* a light tile, so the logo's brown steam shows on the dark footer, as in the staff sidebar */
.brand picture, .brandline picture { display: contents; }
.foot .tagline { color: var(--gold); font-weight: 600; }
.foot .legal { border-top: 1px solid rgba(255, 255, 255, .14); font-size: .83rem; grid-column: 1 / -1; padding-top: 18px; }
@media (min-width: 720px) { .foot { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot :focus-visible { outline-color: var(--gold); }

@media (min-width: 720px) {
  .basketbar { width: 340px; }
  .toast { border-radius: var(--r-s); bottom: 90px; width: 340px; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-art .side-a { animation-delay: .12s; }
  .hero-art .side-b { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dish, .dish .photo, .basketbar { animation: none; transition: none; }
}

/* Test payment page (/sandbox-pay): a dummy Apple Pay button, black like the real one. No Apple Pay code runs. */
.sandbox-pay button { width: 100%; }
button.applepay { align-items: center; background: #000; border-color: #000; color: #fff; display: inline-flex; font-size: 1.15rem; gap: 6px; justify-content: center; }
button.applepay:hover:not(:disabled) { background: #222; border-color: #222; color: #fff; }
.applepay-note { font-size: .85rem; font-weight: 500; opacity: .75; }
