/* ==========================================================================
   ZaikaHub — 200 Jackson St, Petone, Lower Hutt
   Dark + gold brand system. Photo-optional: every image slot falls back to
   an ornamental gradient, so the site looks finished before photos land.
   ========================================================================== */

:root {
  --ink:        #09090a;
  --ink-2:      #0f0f11;
  --ink-3:      #16161a;
  --ink-4:      #1f1f24;
  --line:       rgba(212, 165, 65, 0.22);
  --line-soft:  rgba(243, 236, 224, 0.10);

  --gold:       #d4a541;
  --gold-lit:   #eccb7e;
  --gold-deep:  #9a7526;
  --gold-glow:  rgba(212, 165, 65, 0.14);

  --cream:      #f4eee3;
  --muted:      #a8a199;
  --muted-2:    #7d7770;

  --chilli:     #c0452f;
  --leaf:       #6f9a56;

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body:    "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --shell: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --r: 4px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- layout helpers ---------- */
.shell { width: min(100% - (var(--gut) * 2), var(--shell)); margin-inline: auto; }
.section { padding: clamp(68px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow {
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .65; }
.eyebrow--mid { justify-content: center; }
.eyebrow--mid::after { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .65; }

.h-xl { font-size: clamp(2.6rem, 7.5vw, 5.1rem); }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.h-md { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }

.gold { color: var(--gold); }

/* gold ornamental rule */
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0; }
.rule i { display: block; height: 1px; width: clamp(40px, 12vw, 120px); background: linear-gradient(90deg, transparent, var(--gold)); }
.rule i + i { background: linear-gradient(90deg, var(--gold), transparent); }
.rule span { color: var(--gold); font-size: 9px; letter-spacing: .2em; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--cream); --bd: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  border-radius: var(--r); transition: all .35s var(--ease); white-space: nowrap;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn--solid { --bg: var(--gold); --fg: var(--ink); }
.btn--solid:hover { --bg: var(--gold-lit); box-shadow: 0 10px 34px rgba(212,165,65,.26); }
.btn--ghost { --bd: var(--line-soft); }
.btn--sm { padding: 10px 20px; font-size: 11px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(9, 9, 10, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-stuck { background: rgba(9, 9, 10, .94); border-bottom-color: var(--line); }
.nav .shell { display: flex; align-items: center; gap: 24px; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { font-family: var(--display); font-size: 1.42rem; font-weight: 600; letter-spacing: .02em; display: block; line-height: 1; }
.brand small { display: block; font-size: 8.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

/* the restaurant's own gold wordmark */
.brand__mark { width: auto; height: 30px; flex: none; }
.brand--stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.brand--stack .brand__mark { height: 38px; }
.brand--stack small { margin: 0; }

/* social */
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--gold);
  transition: all .3s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

/* gallery strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strip figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 1; border: 1px solid var(--line-soft); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.strip figure:hover img { transform: scale(1.06); }
.strip figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
  background: linear-gradient(0deg, rgba(9,9,10,.9), transparent);
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream);
}
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  position: relative; padding: 6px 0; transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

/* the CTA inside the nav is a button, not a nav link — keep its own colours */
.nav-links a.btn { color: var(--fg); letter-spacing: .18em; }
.nav-links a.btn:hover { color: var(--ink); }
.nav-links a.btn::after { content: none; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.nav-toggle i { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--cream); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle i:nth-child(1) { top: 15px; } .nav-toggle i:nth-child(2) { top: 20px; } .nav-toggle i:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; place-items: center; text-align: center; overflow: hidden; padding: clamp(70px, 11vw, 130px) 0; }
/* NOTE: photo slots set background-image in the element's own style attribute.
   A url() inside a CSS custom property resolves against the stylesheet in
   Chrome and against the document in Firefox/Safari, so --photo is not safe. */
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .34;
}
.hero__wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 42%, var(--gold-glow), transparent 68%),
    radial-gradient(120% 90% at 50% 100%, rgba(192,69,47,.10), transparent 60%),
    linear-gradient(180deg, rgba(9,9,10,.82) 0%, rgba(9,9,10,.56) 45%, var(--ink) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 { font-weight: 400; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero .lede { margin: 22px auto 0; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.monogram { width: clamp(76px, 11vw, 104px); height: auto; margin: 0 auto 26px; display: block; }

.stars { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.stars b { color: var(--gold-lit); font-size: 15px; letter-spacing: .04em; }
.stars svg { width: 76px; height: 14px; }

/* scrolling cuisine band */
.band { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding: 15px 0; }
.band__track { display: flex; gap: 46px; width: max-content; animation: slide 38s linear infinite; }
.band span { font-family: var(--display); font-size: 1.06rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 46px; }
.band span::after { content: "◆"; color: var(--gold); font-size: 7px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band__track { animation: none; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about__body p { color: var(--muted); }
.about__body p:first-of-type { color: var(--cream); font-size: 1.1rem; }

.frame { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(75% 60% at 30% 20%, rgba(212,165,65,.20), transparent 62%),
    linear-gradient(160deg, var(--ink-4), var(--ink-2) 62%, var(--ink));
}
.frame__photo {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center;
}
.frame__tag {
  position: absolute; z-index: 3; left: 0; bottom: 0; right: 0;
  padding: 22px; background: linear-gradient(0deg, rgba(9,9,10,.92), transparent);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.frame--ornament::after {
  content: ""; position: absolute; inset: 14px; z-index: 2; border: 1px solid rgba(212,165,65,.26); border-radius: 2px; pointer-events: none;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 40px; border-radius: var(--r); overflow: hidden; }
.stats div { background: var(--ink-2); padding: 22px 18px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: 2.1rem; color: var(--gold); line-height: 1; }
.stats span { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); display: block; margin-top: 9px; }

/* ---------- signature dishes ---------- */
.dishes { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 22px; margin-top: 54px; }
.dish {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--r);
  background: linear-gradient(170deg, var(--ink-3), var(--ink-2));
  overflow: hidden; transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.dish:hover { border-color: var(--line); transform: translateY(-5px); }
.dish__img { aspect-ratio: 5 / 4; position: relative; background: radial-gradient(65% 65% at 50% 38%, rgba(212,165,65,.17), transparent 70%), var(--ink-4); }
.dish__img img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.dish__img i {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-style: normal; font-size: 2.6rem; color: rgba(212,165,65,.26);
}
.dish__body { padding: 20px 22px 24px; }
.dish__head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.dish__head h3 { font-size: 1.24rem; }
.dish__price { font-family: var(--display); color: var(--gold); font-size: 1.16rem; white-space: nowrap; }
.dish p { font-size: .92rem; color: var(--muted); margin: 9px 0 0; line-height: 1.6; }

/* diet tags */
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding: 3px 8px; border-radius: 2px; border: 1px solid currentColor; color: var(--muted-2);
}
.tag--gf { color: var(--leaf); } .tag--df { color: #7fa8c4; } .tag--nf { color: #c9a06b; }
.tag--hot { color: var(--chilli); }

/* ---------- lunch special ---------- */
.lunch { background: var(--ink-2); border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.lunch::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 18% 50%, var(--gold-glow), transparent 70%); }
.lunch .shell { position: relative; }
.lunch__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); }
.price-list li:last-child { border-bottom: 0; }
.price-list .nm { font-family: var(--display); font-size: 1.2rem; }
.price-list .ln { flex: 1; height: 1px; background: var(--line-soft); }
.price-list .pr { font-family: var(--display); color: var(--gold); font-size: 1.2rem; }
.note { font-size: .88rem; color: var(--muted-2); border-left: 1px solid var(--gold); padding-left: 16px; margin-top: 26px; }

/* ---------- reviews ---------- */
.rating-hero { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 5vw, 56px); flex-wrap: wrap; margin-bottom: 44px; }
.rating-hero__score { text-align: center; }
.rating-hero__score b { font-family: var(--display); font-size: 4.4rem; color: var(--gold); line-height: 1; display: block; }
.rating-hero__score span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.bars { min-width: min(100%, 290px); }
.bar { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--muted-2); margin-bottom: 7px; }
.bar u { text-decoration: none; width: 36px; }
.bar div { flex: 1; height: 4px; background: var(--ink-4); border-radius: 99px; overflow: hidden; }
.bar div i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }

.topics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.topic {
  border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px; font-size: 12px;
  letter-spacing: .06em; color: var(--cream); background: var(--ink-2);
}
.topic b { color: var(--gold); font-weight: 500; }

/* ---------- visit ---------- */
.visit__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hours { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--line-soft); }
.hours li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.hours dt, .hours .day { color: var(--muted); letter-spacing: .1em; font-size: 12px; text-transform: uppercase; }
.hours .time { color: var(--cream); }
.hours li.is-today { background: linear-gradient(90deg, var(--gold-glow), transparent); }
.hours li.is-today .day { color: var(--gold); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold); }
.contact-list b { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; margin-bottom: 3px; }
.contact-list a:hover { color: var(--gold); }

.map { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.86) hue-rotate(185deg); }

/* ---------- footer ---------- */
.footer { background: var(--ink-2); border-top: 1px solid var(--line); padding: clamp(50px, 7vw, 78px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; }
.footer h4 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-family: var(--body); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .94rem; color: var(--muted); }
.footer a:hover { color: var(--gold); }
.footer .socials { margin-top: 20px; }
.footer__bar { margin-top: 48px; border-top: 1px solid var(--line-soft); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 11.5px; color: var(--muted-2); letter-spacing: .06em; }

/* ---------- menu page ---------- */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(30px, 4vw, 46px); text-align: center; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, var(--gold-glow), transparent 70%); }
.page-head .shell { position: relative; }

.menu-tools {
  position: sticky; top: 71px; z-index: 50; background: rgba(9,9,10,.94);
  backdrop-filter: blur(14px); border-block: 1px solid var(--line-soft); padding: 14px 0;
}
.menu-tools .shell { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 210px; }
.search input {
  width: 100%; background: var(--ink-3); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 11px 14px 11px 40px; color: var(--cream); font: inherit; font-size: .95rem;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { border-color: var(--gold); outline: none; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }

.menu-jump { border-bottom: 1px solid var(--line-soft); background: var(--ink-2); overflow-x: auto; scrollbar-width: none; }
.menu-jump::-webkit-scrollbar { display: none; }
.menu-jump .shell { display: flex; gap: 6px; padding: 10px 0; width: max-content; min-width: 100%; }
.menu-jump a { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding: 7px 14px; border-radius: 99px; white-space: nowrap; transition: all .3s var(--ease); }
.menu-jump a:hover, .menu-jump a.is-active { color: var(--gold); background: rgba(212,165,65,.10); }

.course { padding: clamp(44px, 6vw, 72px) 0 0; }
.course__head { text-align: center; margin-bottom: 36px; }
.course__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); color: var(--gold); }
.course__head p { font-size: .9rem; color: var(--muted-2); letter-spacing: .1em; margin-top: 8px; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 4px 44px; }
.item { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.item__top { display: flex; align-items: baseline; gap: 12px; }
.item__name { font-family: var(--display); font-size: 1.22rem; line-height: 1.25; }
.item__dots { flex: 1; border-bottom: 1px dotted rgba(243,236,224,.18); transform: translateY(-4px); min-width: 16px; }
.item__price { font-family: var(--display); font-size: 1.16rem; color: var(--gold); white-space: nowrap; }
.item__desc { font-size: .88rem; color: var(--muted); margin: 7px 0 0; line-height: 1.6; max-width: 56ch; }
.item .tags { margin-top: 9px; }
.item.is-hidden { display: none; }
.course.is-empty { display: none; }

.no-results { text-align: center; padding: 70px 0; color: var(--muted); display: none; }
.no-results.is-on { display: block; }

.menu-footnote { margin-top: 64px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); padding: clamp(26px, 4vw, 40px); display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.menu-footnote h4 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-family: var(--body); font-weight: 500; margin-bottom: 8px; }
.menu-footnote p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- reveal on scroll ---------- */
/* Scoped to .js so the page stays fully readable if the script never runs. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .about, .lunch__grid, .visit__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 460px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  /* .nav carries a backdrop-filter, so it is the containing block here:
     top:100% pins the panel to the nav's own height instead of guessing it. */
  .nav-links {
    position: fixed; top: 100%; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gut) 26px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
  .nav-links .btn { margin-top: 18px; justify-content: center; }
  .menu-tools { top: 71px; }
  .items { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .btn { padding: 13px 20px; font-size: 11px; }
}


/* ==========================================================================
   SIPO API components
   Everything below is filled at runtime from the SIPO endpoints (see /api).
   ========================================================================== */

/* ---------- status strip (open / closed), overrides api-styles.css ---------- */
#status-strip.status-strip {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1100;
  background: var(--ink-3); color: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 9px 0; font-family: var(--body); font-weight: 400;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
#status-strip.status-strip .status-strip-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: min(100% - (var(--gut) * 2), var(--shell)); margin-inline: auto;
}
#status-strip .status-strip-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex: none;
}
#status-strip.open { background: var(--ink-3); color: var(--cream); }
#status-strip.open .status-strip-dot {
  background: var(--leaf); box-shadow: 0 0 0 3px rgba(111,154,86,.18);
}
#status-strip.closed { background: var(--ink-3); color: var(--muted); }
#status-strip.closed .status-strip-dot {
  background: var(--chilli); box-shadow: 0 0 0 3px rgba(192,69,47,.18);
}
#status-strip.error { background: var(--ink-3); color: var(--muted-2); }
#status-strip .countdown-timer { color: var(--gold); letter-spacing: .08em; }

/* the strip is fixed, so the sticky nav sits under it */
body.has-status-strip .nav { top: var(--strip-height, 38px); }
body.has-status-strip .menu-tools { top: calc(var(--strip-height, 38px) + 71px); }
body.has-status-strip { padding-top: var(--strip-height, 38px); }
html { scroll-padding-top: calc(var(--strip-height, 38px) + 86px); }

/* ---------- hours table (contact page + home visit block) ---------- */
.hours-table { border-top: 1px solid var(--line-soft); }
.hours-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem;
}
.hours-row .day { color: var(--muted); letter-spacing: .1em; font-size: 12px; text-transform: uppercase; }
.hours-row .time { color: var(--cream); }
.hours-row .closed-day { color: var(--muted-2); }
.hours-row.today { background: linear-gradient(90deg, var(--gold-glow), transparent); }
.hours-row.today .day { color: var(--gold); }
.hours-loading { color: var(--muted-2); font-size: .9rem; padding: 14px 0; margin: 0; }

/* footer hours list */
.footer .hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .hours li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; font-size: .9rem; color: var(--muted); }
.footer .hours .day { color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.footer .hours .time { color: var(--cream); }
.footer .hours .closed-day { color: var(--muted-2); }
.footer .hours li.today .day { color: var(--gold); }
.footer .hours li.today .time { color: var(--gold-lit); }

/* ---------- popular items on the home page (#menuGrid) ---------- */
.popular-items .item-card,
.popular-items .menu-card {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--r);
  background: linear-gradient(170deg, var(--ink-3), var(--ink-2));
  overflow: hidden; transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.popular-items .item-card:hover,
.popular-items .menu-card:hover { border-color: var(--line); transform: translateY(-5px); }
.popular-items .item-card-img,
.popular-items .menu-card-img {
  aspect-ratio: 5 / 4; position: relative; overflow: hidden;
  background: radial-gradient(65% 65% at 50% 38%, rgba(212,165,65,.17), transparent 70%), var(--ink-4);
}
.popular-items .item-card-img img,
.popular-items .menu-card-img img { width: 100%; height: 100%; object-fit: cover; }
.popular-items .item-card-body,
.popular-items .menu-card-body { padding: 20px 22px 24px; }
.popular-items h3 { font-family: var(--display); font-size: 1.24rem; margin: 0 0 9px; }
.popular-items p { font-size: .92rem; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.popular-items .price { font-family: var(--display); color: var(--gold); font-size: 1.16rem; }
.popular-items .menu-card-footer,
.popular-items .item-card-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.popular-items .order-link {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.popular-items .order-link:hover { color: var(--gold-lit); }

/* ---------- loading / error states ---------- */
.menu-loading-note, .menu-error {
  text-align: center; color: var(--muted); padding: 60px 0; margin: 0; font-size: .95rem;
}
.menu-error a { color: var(--gold); text-decoration: underline; }
.menu-count {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 18px;
}

/* ---------- menu page: search bar beside the order button ---------- */
.menu-tools .shell { align-items: center; }
.menu-tools .btn { flex: none; }
@media (max-width: 560px) {
  .menu-tools .shell { flex-direction: column; align-items: stretch; }
  .hours-row { grid-template-columns: 100px 1fr; }
}


/* ---------- floating order button ----------
   Icon-only on phones so it never covers content; pill with a label from
   640px up. uiManager points a.floating-order at the live order URL. */
.floating-order {
  position: fixed; z-index: 90;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 56px; height: 56px; padding: 0; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  border: 1px solid var(--gold-lit);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 6px rgba(212,165,65,.10);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.floating-order:hover { background: var(--gold-lit); transform: translateY(-3px); color: var(--ink); }
.floating-order:active { transform: translateY(0); }
.floating-order svg { width: 22px; height: 22px; flex: none; }
.floating-order span { display: none; white-space: nowrap; }

@media (min-width: 640px) {
  .floating-order {
    width: auto; height: auto; border-radius: 99px; padding: 15px 26px;
    right: max(26px, env(safe-area-inset-right));
    bottom: max(26px, env(safe-area-inset-bottom));
  }
  .floating-order span { display: inline; }
  .floating-order svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-order { transition: none; }
  .floating-order:hover { transform: none; }
}

/* ---------- footer credits ---------- */
.footer__credits {
  border-top: 1px solid var(--line-soft);
  /* bottom padding clears the fixed order button, which would otherwise
     sit on top of the SIPO credit at the very end of the page */
  padding: 18px 0 calc(26px + 72px);
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  justify-content: space-between; align-items: center;
  font-size: 11.5px; letter-spacing: .06em; color: var(--muted-2);
}
.footer__credits a { color: var(--muted); border-bottom: 1px solid transparent; }
.footer__credits a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer__credits strong { font-weight: 500; color: var(--muted); }
@media (max-width: 560px) {
  .footer__credits { justify-content: center; text-align: center; gap: 10px; }
}
@media (min-width: 640px) {
  .footer__credits { padding-bottom: calc(26px + 68px); }
}
