/* =========================================================
   SubwayMealsGuide  —  subwaymealsguide.com
   Modern single-page stylesheet
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --green-900: #04331d;
  --green-800: #07542f;
  --green-700: #0a6b3d;
  --green-600: #0e8a4e;
  --green-100: #e4f5ea;
  --green-50:  #f1faf4;

  --sun-600: #e0a800;
  --sun-500: #ffc72c;
  --sun-400: #ffd75e;
  --sun-100: #fff5d6;

  --tomato: #e4322b;
  --tomato-100: #ffe9e7;

  --ink-900: #0d1512;
  --ink-800: #16211c;
  --ink-700: #2c3a34;
  --ink-500: #5b6b64;
  --ink-400: #7e8d86;
  --ink-200: #d9e0dc;
  --ink-100: #e9eeeb;

  --paper: #fbf9f4;
  --card: #ffffff;
  --footer-bg: #0d1512;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(4, 51, 29, .06);
  --shadow-sm: 0 2px 8px rgba(4, 51, 29, .07);
  --shadow: 0 10px 30px -12px rgba(4, 51, 29, .18);
  --shadow-lg: 0 26px 60px -22px rgba(4, 51, 29, .30);

  --ff-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. Dark theme ---------- */
html[data-theme="dark"] {
  --green-900: #04140c;
  --green-800: #072314;
  --green-700: #0d6b3d;
  --green-600: #16a05b;
  --green-100: #102a1e;
  --green-50:  #0c1d15;

  --sun-500: #ffd75e;
  --sun-100: #33290c;

  --ink-900: #f2f7f4;
  --ink-800: #e6eee9;
  --ink-700: #cfdcd5;
  --ink-500: #9aaba3;
  --ink-400: #7d8d85;
  --ink-200: #26332d;
  --ink-100: #1a2420;

  --paper: #070f0b;
  --card: #0e1913;
  --footer-bg: #050a07;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow: 0 12px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 28px 64px -24px rgba(0, 0, 0, .8);
}

/* ---------- 3. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  /* the closed mobile drawer is parked off-canvas to the right; clip stops it
     from widening the page. `clip` does not create a scroll container, so the
     sticky header keeps working. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* must be `clip`, never `hidden`: `overflow-x: hidden` turns <body> into a
     scroll container, which makes the sticky header stick to the body box
     instead of the viewport — i.e. it scrolls away. `clip` still stops the
     off-canvas drawer from widening the page. */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--sun-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green-700); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Buttons, pills, badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.5rem;
  border: 0; border-radius: 999px;
  font-family: var(--ff-display);
  font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-sun { background: var(--sun-500); color: var(--green-900); box-shadow: var(--shadow); }
.btn-sun:hover { background: var(--sun-400); color: var(--green-900); }
.btn-ghost {
  background: transparent; color: var(--ink-900);
  box-shadow: inset 0 0 0 2px var(--ink-200);
}
.btn-ghost:hover { color: var(--ink-900); box-shadow: inset 0 0 0 2px var(--green-700); }
.btn-sm { padding: .55rem 1.05rem; font-size: .85rem; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--green-100); color: var(--green-700);
}
.badge-sun   { background: var(--sun-100);   color: #8a6100; }
.badge-tomato{ background: var(--tomato-100);color: #a51e18; }
.badge-plain { background: var(--ink-100);   color: var(--ink-500); }
html[data-theme="dark"] .badge-sun { color: var(--sun-400); }
html[data-theme="dark"] .badge-tomato { color: #ff9a94; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-display);
  font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: var(--sun-500);
}
.lead { font-size: 1.08rem; color: var(--ink-500); max-width: 62ch; }

/* ---------- 5. Announcement bar ---------- */
.topbar {
  background: var(--green-900); color: #dff3e6;
  font-size: .82rem; font-weight: 500;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 38px; padding-block: .35rem;
}
.topbar a { color: var(--sun-400); font-weight: 700; }
.topbar .dot { opacity: .4; }
@media (max-width: 720px) { .topbar .hide-sm { display: none; } }

/* ---------- 6. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.stuck {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--ink-100);
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(140deg, var(--green-700), var(--green-600) 55%, var(--sun-500));
  color: #fff; font-family: var(--ff-display); font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-xs);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--ff-display); font-weight: 800; font-size: 1.12rem;
  color: var(--ink-900); letter-spacing: -.03em;
}
.brand-domain {
  font-size: .68rem; font-weight: 600; color: var(--ink-400);
  letter-spacing: .02em;
}

.nav-links {
  display: flex; align-items: center; gap: .15rem;
  margin-left: auto; list-style: none; padding: 0;
}
.nav-links a {
  display: block; padding: .5rem .8rem;
  border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink-700);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--green-50); color: var(--green-700); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: .45rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-200); background: var(--card);
  color: var(--ink-700); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--green-50); color: var(--green-700); border-color: var(--green-600); }
.icon-btn svg { width: 19px; height: 19px; }
.nav-toggle { display: none; }

/* the header row must never exceed the viewport: the CTA is duplicated in the
   drawer and in the contact section, so it is the first thing to go */
@media (max-width: 760px) {
  .nav { gap: .5rem; }
  .nav-actions .btn { display: none; }
  .nav-actions { margin-left: auto; gap: .35rem; }
}
@media (max-width: 430px) {
  .brand-domain { display: none; }
  .brand-name { font-size: 1.02rem; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 1rem; }
  .icon-btn { width: 38px; height: 38px; }
}

@media (max-width: 1080px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto;
    width: min(340px, 84vw);
    flex-direction: column; align-items: stretch; gap: .2rem;
    margin: 0; padding: calc(var(--nav-h) + 1.6rem) 1.4rem 2rem;
    background: var(--card);
    border-left: 1px solid var(--ink-100);
    box-shadow: var(--shadow-lg);
    transform: translateX(102%);
    transition: transform .38s var(--ease);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: .8rem .9rem; font-size: 1rem; border-radius: 12px; }
  .nav-toggle { display: grid; }
  .nav-scrim {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(4, 51, 29, .45);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-scrim.open { opacity: 1; visibility: visible; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 5.6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1100px 500px at 88% -8%, var(--sun-100) 0%, transparent 62%),
    radial-gradient(900px 520px at 4% 12%, var(--green-50) 0%, transparent 60%),
    var(--paper);
}
.hero::after {
  content: ""; position: absolute; z-index: 0;
  right: -160px; top: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--sun-500), var(--green-600), var(--sun-500));
  filter: blur(90px); opacity: .16; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 3.6rem); align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--green-600), var(--green-700) 45%, var(--sun-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.02rem, 1.9vw, 1.16rem); color: var(--ink-500); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.6rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .6rem; margin-top: 2.2rem;
  background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 1.1rem .6rem;
  box-shadow: var(--shadow-sm);
}
.hero-stats div { text-align: center; padding-inline: .3rem; }
.hero-stats b {
  display: block; font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem); color: var(--green-700); line-height: 1.1;
}
.hero-stats span {
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-400);
}
.hero-stats > div + div { border-left: 1px solid var(--ink-100); }

.hero-art {
  position: relative;
  border-radius: var(--radius-xl);
  padding: .8rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
  background: var(--card);
}
.hero-collage {
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem;
}
.hero-collage img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: var(--radius);
  background: var(--green-50);
}
.hero-art figcaption {
  padding: .9rem .4rem .35rem;
  color: var(--ink-500); font-size: .8rem; font-weight: 600;
  text-align: center;
}
.hero-float {
  position: absolute; z-index: 2;
  background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: .7rem .95rem;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .6rem;
  animation: bob 5s ease-in-out infinite;
}
.hero-float.a { top: 7%; left: -6%; }
.hero-float.b { bottom: 15%; right: -5%; animation-delay: -2.4s; }
.hero-float i {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  font-style: normal; font-size: .95rem;
  background: var(--green-100); color: var(--green-700);
}
.hero-float b { font-family: var(--ff-display); font-size: .92rem; color: var(--ink-900); display: block; }
.hero-float small { font-size: .7rem; color: var(--ink-400); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin-inline: auto; }
  .hero-float { display: none; }
}

/* ---------- 8. Section shell ---------- */
section[id] { position: relative; }
.section { padding: clamp(3.2rem, 7vw, 5.4rem) 0; }
.section-alt { background: var(--green-50); }
.section-head { max-width: 68ch; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin-bottom: .7rem; }
.section-head p { color: var(--ink-500); }

/* ---------- 9. Category explorer ---------- */
.cat-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.cat-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--ink-100);
  cursor: pointer; text-align: left; padding: 0;
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green-600); text-decoration: none; }
.cat-thumb {
  display: block; position: relative;
  aspect-ratio: 1 / 1; overflow: hidden; background: var(--green-50);
}
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-thumb img { transform: scale(1.07); }
.cat-body { display: block; padding: .8rem .85rem .9rem; }
.cat-body h3 { font-size: .92rem; margin: 0 0 .18rem; }
.cat-body span { font-size: .74rem; color: var(--ink-400); font-weight: 600; }
.cat-card .arrow {
  position: absolute; right: .6rem; bottom: .55rem;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-700); color: #fff; font-size: .8rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.cat-card:hover .arrow { opacity: 1; transform: translateY(0); }

/* ---------- 10. Menu explorer ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: .7rem; align-items: center;
  padding: 1rem; margin-bottom: 1.4rem;
  background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.search-wrap { position: relative; flex: 1 1 260px; }
.search-wrap svg {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-400); pointer-events: none;
}
.search-wrap input {
  width: 100%; padding: .78rem 2.6rem;
  border: 1px solid var(--ink-200); border-radius: 999px;
  background: var(--paper); color: var(--ink-900);
  font: inherit; font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input::placeholder { color: var(--ink-400); }
.search-wrap input:focus {
  outline: none; border-color: var(--green-600);
  box-shadow: 0 0 0 4px var(--green-100);
}
.search-clear {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: var(--ink-100); color: var(--ink-500);
  cursor: pointer; display: none; place-items: center; font-size: 1rem; line-height: 1;
}
.search-clear.show { display: grid; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  padding: .78rem 2.4rem .78rem 1.05rem;
  border: 1px solid var(--ink-200); border-radius: 999px;
  background: var(--paper); color: var(--ink-900);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.select-wrap::after {
  content: ""; position: absolute; right: 1rem; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid var(--ink-400); border-bottom: 2px solid var(--ink-400);
  transform: rotate(45deg); pointer-events: none;
}
.select-wrap select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.chip {
  padding: .48rem 1rem; border-radius: 999px;
  border: 1px solid var(--ink-200); background: var(--card);
  color: var(--ink-700); font-family: var(--ff-display);
  font-size: .84rem; font-weight: 700; cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--green-600); color: var(--green-700); }
.chip.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.result-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}
.result-bar strong { font-family: var(--ff-display); color: var(--ink-900); }

.menu-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.menu-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: pop .32s var(--ease) both;
}
.menu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.menu-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--green-50); }
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-thumb .cat-tag {
  position: absolute; left: .7rem; top: .7rem;
  padding: .24rem .6rem; border-radius: 999px;
  background: rgba(4, 25, 15, .72); backdrop-filter: blur(4px);
  color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.menu-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.menu-body h3 { font-size: 1rem; margin: 0 0 .3rem; }
.menu-body .desc { font-size: .82rem; color: var(--ink-500); margin: 0 0 .8rem; }
.menu-foot {
  margin-top: auto; padding-top: .8rem;
  border-top: 1px dashed var(--ink-200);
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.price {
  font-family: var(--ff-display); font-weight: 800; font-size: 1.2rem;
  color: var(--green-700); line-height: 1;
}
.price small { font-size: .7rem; font-weight: 600; color: var(--ink-400); display: block; margin-top: .2rem; }
.macro { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.macro span {
  font-size: .72rem; font-weight: 700;
  padding: .22rem .55rem; border-radius: 999px;
  background: var(--ink-100); color: var(--ink-500); white-space: nowrap;
}
.macro span.cal { background: var(--sun-100); color: #8a6100; }
html[data-theme="dark"] .macro span.cal { color: var(--sun-400); }
.macro span.protein { background: var(--green-100); color: var(--green-700); }
.macro span.free { background: var(--green-100); color: var(--green-700); }

.empty {
  grid-column: 1 / -1; text-align: center;
  padding: 3.4rem 1rem; color: var(--ink-400);
  background: var(--card); border: 1px dashed var(--ink-200); border-radius: var(--radius-lg);
}
.empty strong { display: block; font-family: var(--ff-display); color: var(--ink-700); font-size: 1.05rem; margin-bottom: .3rem; }

.load-more { display: grid; place-items: center; margin-top: 2rem; }

/* ---------- 11. Builder / calculator ---------- */
.builder {
  display: grid; grid-template-columns: 1.5fr .9fr;
  gap: 1.2rem; align-items: start;
}
.builder-main {
  background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.builder-step { border-bottom: 1px solid var(--ink-100); padding: 1.2rem 1.3rem 1.35rem; }
.builder-step:last-child { border-bottom: 0; }
.builder-step h3 {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .2rem;
  font-size: 1.02rem;
}
.builder-step h3 .num {
  width: 25px; height: 25px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--green-700); color: #fff;
  font-size: .76rem; font-weight: 800;
}
.builder-step > p { font-size: .82rem; color: var(--ink-400); margin: 0 0 .95rem; padding-left: 2.05rem; }
.opt-grid { display: flex; flex-wrap: wrap; gap: .45rem; padding-left: 2.05rem; }
.opt {
  position: relative;
  padding: .55rem .95rem; border-radius: 999px;
  border: 1.5px solid var(--ink-200); background: var(--paper);
  color: var(--ink-700); cursor: pointer;
  font-family: var(--ff-display); font-size: .85rem; font-weight: 700;
  transition: all .18s;
}
.opt:hover { border-color: var(--green-600); color: var(--green-700); }
.opt small { display: block; font-weight: 600; font-size: .7rem; color: var(--ink-400); }
.opt.on { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.opt.on small { color: rgba(255, 255, 255, .8); }
.opt.on::after {
  content: "\2713"; position: absolute; top: -5px; right: -4px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--sun-500); color: var(--green-900);
  font-size: .62rem; font-weight: 900;
  display: grid; place-items: center;
}
.opt .up {
  display: inline-block; margin-left: .3rem; padding: .05rem .35rem;
  border-radius: 5px; background: var(--sun-100); color: #8a6100;
  font-size: .68rem; font-weight: 800;
}
.opt.on .up { background: rgba(255, 255, 255, .22); color: #fff; }
html[data-theme="dark"] .opt .up { color: var(--sun-400); }

.builder-sum {
  position: sticky; top: calc(var(--nav-h) + 14px);
  background: linear-gradient(165deg, var(--green-800), var(--green-900));
  color: #eaf6ee;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-lg);
}
.builder-sum :is(h2, h3) { color: #fff; font-size: 1.1rem; margin-bottom: 1.1rem; }
.sum-line {
  display: flex; justify-content: space-between; gap: .8rem;
  font-size: .88rem; padding: .42rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.sum-line span { color: rgba(234, 246, 238, .72); }
.sum-line b { font-weight: 700; color: #fff; text-align: right; }
.sum-line.muted b { color: var(--sun-400); }
.sum-total {
  margin-top: 1.1rem; padding-top: 1.1rem;
  border-top: 2px solid rgba(255, 255, 255, .18);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.sum-total small {
  display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(234, 246, 238, .6); margin-bottom: .1rem;
}
.sum-total b {
  font-family: var(--ff-display); font-size: 2.1rem; line-height: 1;
  color: var(--sun-500); font-weight: 800;
}
.sum-macro { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }
.sum-macro span {
  font-size: .73rem; font-weight: 700;
  padding: .25rem .6rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #eaf6ee;
}
.builder-sum .btn { width: 100%; justify-content: center; margin-top: 1.2rem; }
.builder-sum .fine { font-size: .7rem; color: rgba(234, 246, 238, .55); margin-top: .9rem; text-align: center; }

@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .builder-sum { position: static; }
  .opt-grid, .builder-step > p { padding-left: 0; }
}

/* ---------- 12. Nutrition ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.tab {
  padding: .58rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--ink-200); background: var(--card);
  color: var(--ink-700); font-family: var(--ff-display);
  font-size: .86rem; font-weight: 700; cursor: pointer; transition: all .2s;
}
.tab:hover { border-color: var(--green-600); color: var(--green-700); }
.tab.active { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
html[data-theme="dark"] .tab.active { background: var(--sun-500); border-color: var(--sun-500); color: var(--green-900); }

.panel {
  background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.4rem 1.5rem;
  animation: pop .3s var(--ease) both;
}
.panel h3 { margin-bottom: .35rem; }
.panel > p { font-size: .88rem; color: var(--ink-500); margin-bottom: 1.1rem; }
.panel[hidden] { display: none; }

.table-scroll { overflow-x: auto; margin: 0 -.4rem; padding: 0 .4rem; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 460px; }
thead th {
  text-align: left; padding: .7rem .75rem;
  font-family: var(--ff-display); font-size: .74rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-400);
  border-bottom: 2px solid var(--ink-200); white-space: nowrap;
}
tbody td { padding: .68rem .75rem; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .18s; }
tbody tr:hover { background: var(--green-50); }
td b, tbody td:first-child { font-weight: 700; color: var(--ink-900); }
.table-note { font-size: .78rem; color: var(--ink-400); margin-top: .9rem; }

.pill-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .95rem; border-radius: 999px;
  background: var(--green-50); border: 1px solid var(--ink-100);
  font-size: .85rem; font-weight: 600; color: var(--ink-700);
}
.pill i {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-600); font-style: normal;
}
.pill.no i { background: var(--tomato); }
.pill.yes i { background: var(--sun-500); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.note-list { display: grid; gap: .6rem; }
.note {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .9rem 1rem;
  background: var(--green-50); border: 1px solid var(--ink-100);
  border-left: 3px solid var(--green-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.note b { display: block; font-family: var(--ff-display); font-size: .9rem; color: var(--ink-900); }
.note p { font-size: .83rem; color: var(--ink-500); margin: .1rem 0 0; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* ---------- 13. About / editorial ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 1.1rem; }
.about-card {
  background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-card .ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--green-100); color: var(--green-700);
}
.about-card .ico svg { width: 22px; height: 22px; }
.about-card h3 { font-size: 1.06rem; }
.about-card p { font-size: .89rem; color: var(--ink-500); margin: 0; }

.standards {
  margin-top: 1.6rem; padding: 1.6rem 1.5rem;
  background: var(--green-900); color: #dff3e6;
  border-radius: var(--radius-lg);
}
/* heading level varies by page (h3 on the home page, h2 elsewhere), so match
   any level — otherwise the dark body colour lands on the dark panel */
.standards :is(h1, h2, h3, h4) { color: #fff; }
.standards p { color: rgba(223, 243, 230, .8); font-size: .93rem; }
.standards ul { margin: .9rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.standards li { margin-bottom: .35rem; }

/* ---------- 14. FAQ ---------- */
.faq-search { max-width: 520px; margin: 0 0 1.4rem; }
.faq-list { display: grid; gap: .6rem; }
.faq-item {
  background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .25s, border-color .25s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--green-600); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; cursor: pointer;
  font-family: var(--ff-display); font-size: 1rem; font-weight: 700;
  color: var(--ink-900); list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--green-50); color: var(--green-700); }
.faq-q .chev {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
  transition: transform .3s var(--ease);
  font-size: .9rem;
}
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 1.25rem 1.2rem; font-size: .91rem; color: var(--ink-500); }
.faq-a::before { content: ""; display: block; height: 1px; background: var(--ink-100); margin: -.2rem 0 .9rem; }

/* ---------- 15. Locator + contact ---------- */
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.2rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.locator {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #eaf6ee; padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-lg);
  min-height: 100%;
  display: flex; flex-direction: column;
}
.locator::before {
  content: ""; position: absolute; right: -70px; bottom: -70px;
  width: 250px; height: 250px; border-radius: 50%;
  background: var(--sun-500); filter: blur(80px); opacity: .22;
}
.locator > * { position: relative; }
.locator :is(h2, h3) { color: #fff; font-size: 1.4rem; }
.locator p { color: rgba(234, 246, 238, .78); font-size: .92rem; }
.locator ul { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; display: grid; gap: .7rem; }
.locator li { display: flex; gap: .7rem; font-size: .89rem; }
.locator li i {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-style: normal;
  background: rgba(255, 255, 255, .12); font-size: .9rem;
}
.locator li b { color: #fff; display: block; font-size: .9rem; }
.locator li span { color: rgba(234, 246, 238, .68); font-size: .82rem; }
.locator .btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }

.contact-card {
  background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: .3rem; }
.contact-card > p { font-size: .89rem; color: var(--ink-500); }
.contact-list { display: grid; gap: .5rem; margin: 1.2rem 0; }
.contact-list a, .contact-list .row {
  display: flex; align-items: center; gap: .7rem;
  padding: .68rem .85rem; border-radius: var(--radius-sm);
  background: var(--green-50); border: 1px solid var(--ink-100);
  font-size: .87rem; color: var(--ink-700); transition: all .2s;
}
.contact-list a:hover { background: var(--green-100); color: var(--green-700); text-decoration: none; transform: translateX(3px); }
.contact-list i {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-style: normal;
  background: var(--card); border: 1px solid var(--ink-100); font-size: .82rem;
}
.contact-list .lbl { display: block; font-size: .68rem; color: var(--ink-400); text-transform: uppercase; letter-spacing: .06em; }
.socials { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink-100); color: var(--ink-700);
  transition: all .2s;
}
.socials a:hover { background: var(--green-700); color: #fff; transform: translateY(-3px); text-decoration: none; }
.socials svg { width: 18px; height: 18px; }

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-700), var(--green-900) 70%);
  color: #eaf6ee; text-align: center;
  padding: clamp(2.6rem, 6vw, 4rem) 1.4rem;
  border-radius: var(--radius-xl);
}
.cta-band::before {
  content: ""; position: absolute; inset: -50% -10% auto; height: 340px;
  background: radial-gradient(closest-side, rgba(255, 199, 44, .3), transparent);
}
.cta-band > * { position: relative; }
.cta-band :is(h2, h3) { color: #fff; }
.cta-band p { color: rgba(234, 246, 238, .8); max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.7rem; }
.cta-band .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.cta-band .btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; color: #fff; }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--footer-bg); color: #b9c9c1;
  padding: 3.2rem 0 1.6rem; margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .88rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
  gap: 2rem 1.6rem;
}
@media (max-width: 1080px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px)  { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.foot-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-domain { color: var(--ink-400); }
/* the columns are generated as <h3>; target every level so the colour can
   never silently fall back to the dark body heading colour on this dark panel */
.site-footer :is(h2, h3, h4) {
  color: #fff; font-size: .8rem; letter-spacing: .11em;
  text-transform: uppercase; margin-bottom: .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #b9c9c1; }
.site-footer a:hover { color: var(--sun-500); }
.disclaimer {
  margin-top: 2.4rem; padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  font-size: .8rem; line-height: 1.65; color: #93a69d;
}
.disclaimer b { color: #dff3e6; }
.foot-bottom {
  margin-top: 1.6rem; padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  align-items: center; justify-content: space-between;
  font-size: .8rem; color: #7f948b;
}

/* ---------- 18. Floating UI ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 14px; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--green-700); color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-600); }
.to-top svg { width: 20px; height: 20px; }

.progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--sun-500), var(--green-600));
  transition: width .1s linear;
}

/* ---------- 19. Reveal animation ----------
   Scoped to .js on <html> so content stays visible if the script never runs. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 20. Multi-page components (menu / nutrition / about) ---------- */

/* page-level h1 that sits inside a section-head, smaller than the hero h1 */
.h1-sm {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; margin: 0 0 .8rem;
}

/* breadcrumb trail */
.crumbs { padding: 1.1rem 0 .2rem; }
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .8rem; color: var(--ink-400); font-weight: 600;
}
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--ink-200); }
.crumbs a { color: var(--ink-500); text-decoration: none; }
.crumbs a:hover { color: var(--green-700); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-900); font-weight: 700; }
html[data-theme="dark"] .crumbs [aria-current="page"] { color: var(--paper); }

/* jump-to nav for category / nutrition sections */
.cat-jump { margin-bottom: 1.6rem; }
.cat-jump ul {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: 0; padding: 0;
}
.cat-jump a {
  display: inline-block; padding: .42rem .85rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--ink-200);
  font-size: .8rem; font-weight: 600; color: var(--ink-700);
  text-decoration: none; transition: all .2s;
}
.cat-jump a:hover { border-color: var(--green-600); color: var(--green-700); transform: translateY(-2px); }

/* one block per menu category */
.menu-cat { margin-bottom: 2.6rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.menu-cat[hidden] { display: none; }
.cat-head { margin-bottom: .9rem; }
.cat-head h2 { font-size: 1.35rem; margin: 0 0 .2rem; }
.cat-head p { font-size: .86rem; color: var(--ink-500); margin: 0; }

.menu-table { min-width: 720px; }
.menu-table tbody th {
  text-align: left; padding: .68rem .75rem;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: middle; font-weight: 700;
  font-size: .88rem; color: var(--ink-900);
}
.menu-table tbody tr:last-child th { border-bottom: 0; }
.menu-table .cell-price { font-weight: 700; white-space: nowrap; color: var(--ink-900); }
.menu-table .cell-price small { display: block; font-weight: 500; font-size: .68rem; color: var(--ink-400); }
.menu-table .cell-cal { white-space: nowrap; }
.menu-table .cell-desc { color: var(--ink-500); min-width: 240px; }

/* decorative thumbnail — the item name sits beside it, so alt stays empty */
.row-thumb {
  display: inline-block; width: 46px; height: 34px;
  margin-right: .6rem; vertical-align: middle;
  border-radius: 8px; overflow: hidden; background: var(--green-50);
}
.row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* one block per nutrition topic */
.nut-sec {
  margin-bottom: 2.6rem; scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.nut-sec h2 { font-size: 1.4rem; margin: .5rem 0 .5rem; }
.nut-sec .lead { font-size: .89rem; color: var(--ink-500); margin-bottom: 1.1rem; max-width: 70ch; }

/* table row headers, used by the nutrition tables */
tbody th {
  text-align: left; padding: .68rem .75rem;
  border-bottom: 1px solid var(--ink-100); vertical-align: top;
  font-weight: 700; color: var(--ink-900);
}
tbody tr:last-child th { border-bottom: 0; }

/* editorial team cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 1.1rem; }
.team-card {
  padding: 1.4rem 1.5rem;
  background: var(--card); border: 1px solid var(--ink-100);
  border-top: 3px solid var(--green-600);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-xs);
}
.team-card h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.team-card p { font-size: .87rem; color: var(--ink-500); margin: 0; }

/* about page headline that precedes the card grid */
.section > .wrap > h2 { font-size: 1.25rem; margin-bottom: 1.1rem; }

@media (max-width: 720px) {
  .menu-cat { margin-bottom: 2rem; }
  .cell-desc { min-width: 190px; }
}

/* ---------- 21. Print ---------- */
@media print {
  .topbar, .site-header, .to-top, .progress, .nav-scrim, .toolbar, .load-more, .hero-float,
  .crumbs, .cat-jump, .chips, .result-bar, .search-wrap, .select-wrap, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .menu-card, .about-card, .team-card { box-shadow: none; border-color: #ccc; }
  .menu-cat, .nut-sec { break-inside: avoid; }
  .menu-table { min-width: 0; }
}
