/* =============================================================
   Tiffin — design system
   Palette: white, cream, green (primary), orange (accent)
   Mobile-first. No frameworks.
============================================================= */

:root {
  /* Brand */
  --green-50:  #ecf7ee;
  --green-100: #d1ebd6;
  --green-300: #76c089;
  --green-500: #2e9d4d;
  --green-600: #1f7a3a;
  --green-700: #155b2a;

  --orange-50:  #fff1e3;
  --orange-300: #ffb46a;
  --orange-500: #ff8a1f;
  --orange-600: #e76a00;

  --cream-50:  #fffaf1;
  --cream-100: #fdf3df;
  --cream-200: #f7e9cf;

  --ink-900: #1a1f1c;
  --ink-700: #2c352f;
  --ink-500: #5a655d;
  --ink-300: #9aa39c;
  --ink-100: #e7eae8;

  --white: #ffffff;
  --bg:    #ffffff;
  --bg-cream: var(--cream-50);

  --shadow-sm: 0 1px 2px rgba(20,30,25,.06), 0 1px 3px rgba(20,30,25,.04);
  --shadow-md: 0 4px 12px rgba(20,30,25,.08), 0 2px 4px rgba(20,30,25,.05);
  --shadow-lg: 0 12px 32px rgba(20,30,25,.10), 0 4px 8px rgba(20,30,25,.06);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --container: 1120px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* RESET ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }
button { font: inherit; }
ul { padding: 0; margin: 0; list-style: none; }

/* Reset native fieldset/legend so .step-card etc. style correctly. */
fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
legend { padding: 0; display: block; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.5vw + .8rem, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.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;
}

/* LAYOUT ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); padding: 0 20px; margin: 0 auto; }
.container.narrow { max-width: 640px; }
.section { padding: 56px 0; }
.section-cream { background: var(--bg-cream); }
.section-page-head { padding: 56px 0 24px; background: var(--bg-cream); border-bottom: 1px solid var(--cream-200); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.muted { color: var(--ink-500); }
.small { font-size: .9rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* TOPBAR ------------------------------------------------------ */
.topbar {
  background: var(--ink-900); color: #d6dad7;
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 8px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.topbar-item { white-space: nowrap; }
.topbar-item strong { color: #fff; font-weight: 600; }
.topbar-dot { color: rgba(255,255,255,.25); }
.topbar-spacer { flex: 1; }
.topbar-link {
  color: #25d366; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 2px 0; transition: color .15s;
}
.topbar-link:hover { color: #4cdf86; }
@media (max-width: 879px) {
  .topbar-inner { justify-content: center; gap: 8px; padding: 7px 16px; }
  .topbar-dot:nth-of-type(2) { display: none; }
  .topbar-item:nth-of-type(3) { display: none; } /* hide longest message on phones */
  .topbar-spacer { display: none; }
}
@media (max-width: 540px) {
  .topbar-item:nth-of-type(2) { display: none; }
  .topbar-dot { display: none; }
}

/* NAV --------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(20,30,25,.06);
  border-bottom-color: transparent;
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative;
}

/* Brand / logo */
.brand {
  display: inline-flex; align-items: center;
  height: 56px; flex: 0 0 auto;
}
.brand-logo {
  height: 100%; width: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 879px) {
  .brand { height: 44px; }
}

/* Hamburger */
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--ink-100); border-radius: 10px;
  cursor: pointer; flex: 0 0 auto;
  transition: background .15s, border-color .15s;
}
.nav-toggle:hover { background: var(--cream-50); border-color: var(--green-300); }
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* The shared panel — flex bar on desktop, slide-in drawer on mobile */
.nav-panel {
  display: flex; align-items: center; gap: 28px;
  flex: 1; justify-content: flex-end;
}
.nav-drawer-close {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; font-size: 2rem; line-height: 1;
  color: var(--ink-700);
  align-self: flex-end;
}

.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  color: var(--ink-700); font-weight: 500; font-size: .95rem;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--green-600); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover { color: var(--green-700); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--green-700); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-actions {
  display: flex; align-items: center; gap: 10px;
}
.nav-phone {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-700); font-weight: 600; font-size: .95rem;
  padding: 8px 10px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-phone:hover { background: var(--green-50); color: var(--green-700); }
.nav-phone-icon { font-size: .95em; }

.nav-order-btn { white-space: nowrap; }
.nav-admin-btn { white-space: nowrap; }

/* Hide nav-link-tier when extremely narrow desktop, keep them as drawer */
@media (max-width: 1080px) {
  .nav-link { padding: 10px 10px; font-size: .9rem; }
  .nav-links { gap: 2px; }
}

/* Backdrop (only used when drawer open on mobile) */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(20,30,25,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

/* MOBILE: convert nav-panel into a slide-in drawer ----------- */
@media (max-width: 879px) {
  .nav-panel {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(86vw, 360px);
    background: var(--white);
    box-shadow: -10px 0 40px rgba(20,30,25,.18);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 14px;
    padding: 18px 22px 24px;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    z-index: 70;
  }
  .nav-open .nav-panel { transform: translateX(0); }

  .nav-drawer-close { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links {
    flex-direction: column; align-items: stretch; gap: 2px;
    margin-top: 8px;
    border-top: 1px solid var(--ink-100); padding-top: 12px;
  }
  .nav-link {
    padding: 14px 12px; font-size: 1rem;
  }
  .nav-link::after { left: 12px; right: 12px; bottom: 8px; }
  .nav-link.is-active { background: var(--green-50); }

  .nav-actions {
    flex-direction: column; align-items: stretch; gap: 10px;
    margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ink-100);
  }
  .nav-phone {
    justify-content: center; padding: 14px 16px;
    background: var(--cream-50); border: 1px solid var(--cream-200);
    border-radius: var(--radius);
    font-size: 1.05rem;
  }
  .nav-order-btn { padding: 14px 22px; font-size: 1rem; }
  .nav-admin-btn { padding: 12px 18px; }
}

/* DESKTOP: hide hamburger + drawer-close ---------------------- */
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-drawer-close { display: none; }
  .nav-backdrop { display: none; }
}

/* Lock body scroll when drawer is open */
body.nav-open { overflow: hidden; }
@media (min-width: 880px) {
  body.nav-open { overflow: auto; }
}

/* BUTTONS ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; min-height: 44px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm  { padding: 8px 14px; min-height: 36px; font-size: .9rem; }
.btn-lg  { padding: 14px 22px; min-height: 52px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost { background: var(--white); color: var(--green-700); border-color: var(--green-100); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-700); }

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb854; color: #fff; }

.btn-link { background: transparent; color: var(--ink-500); }
.btn-link:hover { color: var(--green-700); }

/* HERO (full-background image) ------------------------------- */
.hero {
  position: relative;
  background-color: var(--cream-50);
  background-repeat: no-repeat;
  /* Mobile: show top portion of image (subjects) */
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid var(--cream-200);
  overflow: hidden;
}
/* Soft fade behind text on small screens so it stays readable */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,250,241,.78) 0%, rgba(255,250,241,.45) 50%, rgba(255,250,241,0) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: flex-start;
  min-height: 460px;
  padding: 40px 20px;
}
.hero-text {
  max-width: 560px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  box-shadow: 0 4px 20px rgba(20,30,25,.05);
}
.hero-text .eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--green-50); color: var(--green-700);
  font-size: .85rem; font-weight: 600; margin-bottom: 14px;
}
.hero h1 { margin-bottom: 12px; }
.hero h1 .accent { color: var(--green-600); }
.hero .lead { color: var(--ink-700); font-size: 1.05rem; max-width: 520px; margin-bottom: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-trust {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin: 18px 0 0; color: var(--ink-700); font-size: .9rem; font-weight: 500;
}
.hero-trust li {
  background: var(--white); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--cream-200);
}

@media (min-width: 880px) {
  .hero {
    /* Desktop: subjects on the right, empty cream space on the left */
    background-position: right center;
    background-size: cover;
  }
  .hero::before {
    background: linear-gradient(90deg, rgba(255,250,241,.92) 0%, rgba(255,250,241,.7) 35%, rgba(255,250,241,.15) 60%, rgba(255,250,241,0) 80%);
  }
  .hero-inner {
    align-items: center;
    min-height: 580px;
    padding: 80px 20px;
  }
  .hero-text {
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: none; padding: 0; max-width: 580px;
  }
}

@media (min-width: 1280px) {
  .hero-inner { min-height: 640px; }
}

/* TODAY'S MENU (v2) ------------------------------------------ */
.today-card-v2 {
  display: grid; grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
@media (min-width: 880px) {
  .today-card-v2 { grid-template-columns: 1.05fr 1fr; }
}

.today-photo {
  position: relative;
  background: var(--cream-100);
  min-height: 280px;
  overflow: hidden;
}
.today-photo img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 280px; }
.today-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,25,.32) 0%, rgba(20,30,25,0) 35%, rgba(20,30,25,0) 65%, rgba(20,30,25,.18) 100%);
  pointer-events: none;
}
.today-date {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.95);
  color: var(--orange-600); font-weight: 700; font-size: .92rem;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
}
.today-fresh-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--green-600); color: #fff;
  font-weight: 600; font-size: .85rem;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.today-meals {
  display: grid; grid-template-rows: 1fr auto 1fr;
  padding: 8px 0;
}
.meal-block { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.meal-block-head {
  display: flex; align-items: center; gap: 14px;
}
.meal-emoji {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--cream-50); display: grid; place-items: center;
  font-size: 1.4rem; flex: 0 0 auto;
}
.meal-block h3 { font-size: 1.2rem; margin: 0 0 2px; }
.meal-cutoff { color: var(--ink-500); font-size: .9rem; }
.meal-cutoff strong { color: var(--ink-900); }

.meal-items {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0;
}
.meal-items li {
  background: var(--cream-50); border: 1px solid var(--cream-200);
  padding: 5px 11px; border-radius: 999px;
  font-size: .9rem; color: var(--ink-700);
}

.meal-cta {
  margin-top: auto;
  align-self: stretch;
}

.meal-divider {
  height: 1px; background: var(--ink-100);
  margin: 0 24px;
}

.today-foot {
  margin-top: 18px; font-size: .92rem;
}
.today-foot strong { color: var(--green-700); }

/* PLAN CARDS -------------------------------------------------- */
.plans-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 640px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }

.plan-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.plan-card.has-badge { border-color: var(--orange-300); }

.plan-image {
  width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--cream-100), var(--cream-200));
}
.plan-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.plan-card:hover .plan-image img { transform: scale(1.04); }
.plan-image.no-image::after {
  content: "🍱"; display: grid; place-items: center;
  width: 100%; height: 100%; font-size: 3rem; color: var(--orange-500);
}

.plan-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }

.plan-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--orange-500); color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em;
  box-shadow: var(--shadow-md);
}
.plan-name { font-size: 1.25rem; margin-bottom: 4px; }
.plan-tagline { color: var(--ink-500); margin-bottom: 14px; }
.plan-price {
  display: baseline; align-items: baseline; margin: 8px 0 16px;
}
.price-amount { font-size: 2rem; font-weight: 800; color: var(--ink-900); }
.price-unit   { font-size: .9rem; color: var(--ink-500); margin-left: 6px; }
.plan-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; color: var(--ink-700); }
.plan-cta { margin-top: auto; }

/* WHY US ------------------------------------------------------ */
.why-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 22px;
}
.why-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-50); color: var(--green-700);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 700;
  margin-bottom: 12px;
}

/* AREAS ------------------------------------------------------- */
.areas-grid {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.area-pill {
  background: var(--white); border: 1px solid var(--ink-100);
  padding: 10px 16px; border-radius: 999px; font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* CTA STRIP --------------------------------------------------- */
.cta-strip {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff;
  padding: 40px 0;
}
.cta-strip h2 { color: #fff; margin-bottom: 4px; }
.cta-strip p { color: rgba(255,255,255,.9); margin: 0; }
.cta-inner {
  display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start; justify-content: space-between;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-strip .btn-primary { background: var(--orange-500); }
.cta-strip .btn-primary:hover { background: var(--orange-600); }
@media (min-width: 720px) { .cta-inner { flex-direction: row; align-items: center; } }

/* FOOTER ------------------------------------------------------ */
.footer {
  background: var(--ink-900); color: #d6dad7; padding: 48px 0 0;
}
.footer h4 { color: #fff; margin-bottom: 12px; }
.footer a { color: #d6dad7; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.plain { display: flex; flex-direction: column; gap: 8px; }
.plain.tight { gap: 6px; }
.chips { flex-direction: row; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 999px;
  font-size: .88rem;
}
.footer-bottom {
  margin-top: 36px; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; font-size: .85rem; color: #9aa39c;
}

/* WHATSAPP FAB ----------------------------------------------- */
.whatsapp-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  background: #25d366; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px 12px 14px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(37,211,102,.4), var(--shadow-md);
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-fab:hover { color: #fff; transform: translateY(-1px); }
.whatsapp-fab-text { display: none; }
@media (min-width: 720px) { .whatsapp-fab-text { display: inline; } }

/* MESSAGES ---------------------------------------------------- */
.messages { padding: 16px 20px 0; max-width: var(--container); margin: 0 auto; }
.msg {
  padding: 12px 16px; border-radius: var(--radius);
  margin-bottom: 10px; border: 1px solid transparent;
}
.msg-success { background: var(--green-50); border-color: var(--green-100); color: var(--green-700); }
.msg-error   { background: #fde8e8; border-color: #f5b8b8; color: #8a1a1a; }
.msg-info, .msg-warning { background: var(--cream-50); border-color: var(--cream-200); color: var(--ink-700); }

/* ORDER FORM -------------------------------------------------- */
.order-layout {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 960px) { .order-layout { grid-template-columns: 1.4fr .9fr; align-items: start; } }

.order-form {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; color: var(--ink-700); font-size: .95rem; }
.field {
  width: 100%; padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--ink-100); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink-900); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(46,157,77,.18);
}
textarea.field { resize: vertical; min-height: 88px; }
.field-error { color: #8a1a1a; font-size: .9rem; }
.hint { color: var(--ink-500); font-size: .85rem; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.order-aside { display: flex; flex-direction: column; gap: 14px; }
.aside-card {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
}

/* ORDER SUCCESS ---------------------------------------------- */
.success-card {
  background: var(--white); border: 1px solid var(--green-100);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-md); text-align: center;
}
.success-check {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600);
  display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 800;
  margin: 0 auto 14px;
  box-shadow: 0 0 0 8px rgba(46,157,77,.08);
}
.lead { color: var(--ink-700); font-size: 1.05rem; }
.order-summary {
  text-align: left;
  background: var(--cream-50); border: 1px solid var(--cream-200);
  border-radius: var(--radius); padding: 16px; margin: 18px 0;
}
.summary-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--cream-200);
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--ink-500); }
.summary-row .value { font-weight: 600; text-align: right; word-break: break-word; }
.summary-row.total .value { color: var(--green-700); font-size: 1.1rem; }
.success-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

/* ADMIN ORDERS TABLE ----------------------------------------- */
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-pill {
  padding: 8px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--ink-100);
  font-weight: 500; color: var(--ink-700); font-size: .9rem;
}
.filter-pill:hover { border-color: var(--green-300); color: var(--green-700); }
.filter-pill.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }

.table-wrap {
  overflow-x: auto; background: var(--white);
  border: 1px solid var(--ink-100); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.orders-table {
  width: 100%; border-collapse: collapse; min-width: 900px;
  font-size: .92rem;
}
.orders-table th, .orders-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: top;
}
.orders-table th {
  background: var(--cream-50); color: var(--ink-700);
  font-weight: 700; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase;
  position: sticky; top: 0;
}
.orders-table tbody tr:hover { background: var(--cream-50); }
.cell-address, .cell-notes { max-width: 240px; }

.status-form { margin: 0; }
.status-select {
  padding: 8px 10px; min-height: 36px; border-radius: 8px;
  border: 1px solid var(--ink-100); background: var(--white);
  font: inherit; cursor: pointer;
}
.status-new        { background: var(--cream-50); }
.status-confirmed  { background: var(--green-50); color: var(--green-700); }
.status-preparing  { background: var(--orange-50); color: var(--orange-600); }
.status-delivered  { background: #e8f4ff; color: #1a5fb4; }
.status-cancelled  { background: #fde8e8; color: #8a1a1a; }

.empty-state {
  background: var(--white); border: 1px dashed var(--ink-100);
  border-radius: var(--radius); padding: 40px; text-align: center; color: var(--ink-500);
}

/* MISC -------------------------------------------------------- */
code {
  background: var(--cream-100); padding: 2px 6px; border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em;
}

/* LOGO -------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo {
  height: 44px; width: auto; max-width: 180px; display: block;
}
@media (min-width: 880px) {
  .brand-logo { height: 52px; max-width: 220px; }
}
.hero-logo {
  width: min(380px, 80vw); height: auto;
  filter: drop-shadow(0 12px 24px rgba(20,30,25,.12));
}
.eyebrow-orange { background: var(--orange-50); color: var(--orange-600); }

/* TODAY'S MENU EXTRAS ---------------------------------------- */
.today-card-head { justify-content: space-between; }
.today-time {
  font-size: .8rem; color: var(--ink-500);
  background: var(--cream-50); padding: 4px 10px; border-radius: 999px;
  margin-left: auto;
}

/* ORDER FORM (refactor) -------------------------------------- */
.order-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 1000px) {
  .order-grid { grid-template-columns: 1.4fr .9fr; align-items: start; }
}
.order-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.step-card {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 22px 20px;
  box-shadow: var(--shadow-sm); margin: 0;
}
.step-card legend {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--ink-900);
  padding: 0 6px; margin-bottom: 6px;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-600); color: #fff;
  display: inline-grid; place-items: center;
  font-weight: 800; font-size: .9rem;
}

/* PLAN PICKER (radio cards) ---------------------------------- */
.plan-picker {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  margin-top: 8px;
}
@media (min-width: 720px) { .plan-picker { grid-template-columns: 1fr 1fr; } }

.plan-pick { position: relative; cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick-inner {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; border-radius: var(--radius);
  border: 2px solid var(--ink-100); background: var(--white);
  transition: border-color .15s, box-shadow .15s, background .15s;
  position: relative;
}
.plan-pick-inner::before {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ink-300); background: var(--white);
  transition: all .15s;
}
.plan-pick:hover .plan-pick-inner { border-color: var(--green-300); }
.plan-pick input:checked + .plan-pick-inner {
  border-color: var(--green-600);
  background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(46,157,77,.15);
}
.plan-pick input:checked + .plan-pick-inner::before {
  background: var(--green-600); border-color: var(--green-600);
  box-shadow: inset 0 0 0 4px var(--white);
}
.plan-pick input:focus-visible + .plan-pick-inner {
  outline: 3px solid var(--green-300); outline-offset: 2px;
}
.plan-pick-name { font-weight: 700; font-size: 1.05rem; padding-right: 32px; }
.plan-pick-tag { font-size: .9rem; }
.plan-pick-price { font-size: 1.1rem; font-weight: 700; color: var(--green-700); margin-top: 4px; }
.plan-pick-items { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plan-pick .plan-badge { position: static; margin-bottom: 4px; align-self: flex-start; }

/* ADDON CARDS ------------------------------------------------ */
.addon-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  margin-top: 8px;
}
@media (min-width: 720px) { .addon-grid { grid-template-columns: 1fr 1fr; } }

.addon-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border: 1px solid var(--ink-100); border-radius: var(--radius);
  background: var(--white); transition: border-color .15s, background .15s;
}
.addon-card.has-qty { border-color: var(--orange-500); background: var(--orange-50); }
.addon-info { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.addon-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--cream-100); display: grid; place-items: center;
  font-size: 1.4rem; flex: 0 0 auto;
}
.addon-name { font-weight: 600; }
.addon-desc { margin-top: 2px; }
.addon-price { margin-top: 6px; font-size: .95rem; }

.addon-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink-100); border-radius: 999px;
  background: var(--white); flex: 0 0 auto;
}
.qty-btn {
  width: 36px; height: 36px; border: none; background: transparent;
  font-size: 1.2rem; font-weight: 700; cursor: pointer; color: var(--ink-700);
  border-radius: 999px;
}
.qty-btn:hover { background: var(--cream-50); color: var(--green-700); }
.qty-num {
  width: 44px; text-align: center; padding: 0; min-height: 36px;
  border: none; border-left: 1px solid var(--ink-100); border-right: 1px solid var(--ink-100);
  border-radius: 0; font: inherit; font-weight: 700;
  -moz-appearance: textfield;
}
.qty-num::-webkit-outer-spin-button,
.qty-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* STICKY SUMMARY --------------------------------------------- */
.order-summary-sticky { position: relative; }
@media (min-width: 1000px) {
  .order-summary-sticky { position: sticky; top: 88px; }
}
.summary-card {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-md);
}
.summary-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.sum-line {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 0;
}
.sum-divider { border-top: 1px dashed var(--ink-100); margin-top: 8px; padding-top: 12px; }
.sum-addons {
  display: flex; flex-direction: column; gap: 4px;
  font-size: .92rem; color: var(--ink-700);
  margin-top: 6px;
}
.sum-addons:empty { display: none; }
.sum-addons .sum-line { padding: 2px 0; }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 14px;
  border-top: 2px solid var(--green-600);
  font-weight: 700; font-size: 1.1rem;
}
.sum-total-amount { color: var(--green-700); font-size: 1.4rem; font-weight: 800; }
.sum-submit { margin-top: 16px; }
.sum-submit:disabled { opacity: .5; cursor: not-allowed; }
.summary-help { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ink-100); text-align: center; }
.summary-help-link { font-size: .9rem; color: var(--ink-500); }

/* On mobile the sticky becomes a footer drawer */
@media (max-width: 999px) {
  .order-summary-sticky {
    position: sticky; bottom: 0; z-index: 30;
    margin: 0 -20px -56px; padding: 0 20px;
    background: linear-gradient(to top, var(--white) 80%, transparent);
  }
  .summary-card {
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 24px rgba(20,30,25,.12);
  }
}

/* DELIVERY METHOD TOGGLE ------------------------------------- */
.method-toggle {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 600px) { .method-toggle { grid-template-columns: 1fr 1fr; } }
.method-option { position: relative; cursor: pointer; }
.method-option input { position: absolute; opacity: 0; pointer-events: none; }
.method-card {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px;
  padding: 14px 16px; border: 2px solid var(--ink-100); border-radius: var(--radius);
  background: var(--white); transition: border-color .15s, background .15s, box-shadow .15s;
}
.method-icon { grid-row: span 2; font-size: 1.6rem; align-self: center; }
.method-title { font-weight: 700; }
.method-desc { grid-column: 2; }
.method-option input:checked + .method-card {
  border-color: var(--green-600); background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(46,157,77,.15);
}
.method-option input:focus-visible + .method-card { outline: 3px solid var(--green-300); outline-offset: 2px; }

.pickup-info {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 14px;
  background: var(--cream-50); border: 1px solid var(--cream-200);
  border-radius: var(--radius);
}
.pickup-info-icon { font-size: 1.5rem; flex: 0 0 auto; }
.pickup-info[hidden] { display: none; }

/* Method pills in admin orders table */
.method-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
}
.method-pill.method-delivery { background: var(--green-50); color: var(--green-700); }
.method-pill.method-pickup   { background: var(--orange-50); color: var(--orange-600); }

/* REQUIRED-FIELD INDICATORS + INVALID HIGHLIGHT --------------- */
.req { color: var(--orange-600); margin-left: 2px; font-weight: 700; }
.field-invalid {
  border-color: #d4544f !important;
  background: #fff7f6;
  box-shadow: 0 0 0 3px rgba(212,84,79,.15) !important;
  animation: shake .35s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* PIN LOCATION (legacy bits kept for any stray refs) ---------- */
.btn-link-inline {
  background: transparent; border: 0; padding: 0;
  font: inherit; color: var(--ink-500); text-decoration: underline; cursor: pointer;
}
.btn-link-inline:hover { color: var(--green-700); }

/* LOCATION TRIGGER CARD -------------------------------------- */
.loc-trigger {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 16px 18px;
  background: var(--cream-50);
  border: 2px dashed var(--cream-200);
  border-radius: var(--radius);
  cursor: pointer; text-align: left;
  font: inherit; color: inherit;
  transition: border-color .15s, background .15s, transform .08s;
}
.loc-trigger:hover { border-color: var(--green-300); background: var(--green-50); }
.loc-trigger:active { transform: scale(.99); }
.loc-trigger.is-set {
  border-style: solid; border-color: var(--green-300);
  background: var(--green-50);
}
.loc-trigger-icon { font-size: 1.6rem; flex: 0 0 auto; }
.loc-trigger-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.loc-trigger-text strong { display: block; font-size: 1rem; color: var(--ink-900); }
.loc-trigger-text .muted { font-size: .88rem; }
.loc-trigger-empty, .loc-trigger-set { display: flex; flex-direction: column; gap: 2px; }
.loc-trigger-chevron {
  color: var(--ink-500); font-size: 1.4rem; flex: 0 0 auto;
  transition: transform .15s, color .15s;
}
.loc-trigger:hover .loc-trigger-chevron { color: var(--green-700); transform: translateX(2px); }
[data-area-auto] { color: var(--green-700); font-weight: 500; }

/* LOCATION MODAL --------------------------------------------- */
.loc-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  animation: locFadeIn .2s ease;
}
@keyframes locFadeIn { from { opacity: 0; } to { opacity: 1; } }
.loc-modal[hidden] { display: none; }

.loc-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,30,25,.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.loc-modal-panel {
  position: relative;
  width: min(640px, 92vw);
  max-height: 88vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(20,30,25,.25);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: locSlideUp .25s cubic-bezier(.4,0,.2,1);
}
@keyframes locSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.loc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-100);
}
.loc-modal-head h3 { margin: 0; font-size: 1.1rem; }
.loc-modal-close {
  background: transparent; border: 0; cursor: pointer;
  width: 36px; height: 36px;
  font-size: 1.8rem; line-height: 1; color: var(--ink-700);
  border-radius: 50%;
  display: grid; place-items: center;
}
.loc-modal-close:hover { background: var(--cream-50); color: var(--ink-900); }

.loc-modal-search {
  padding: 12px 18px;
  display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid var(--ink-100);
  background: var(--white);
}
.loc-search-wrap { position: relative; }
.loc-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 1rem; color: var(--ink-500); pointer-events: none;
  z-index: 1;
}
.loc-search-input { padding-left: 38px !important; padding-right: 38px !important; }
.loc-search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer;
  width: 32px; height: 32px; font-size: 1.3rem; line-height: 1;
  color: var(--ink-500); border-radius: 50%;
}
.loc-search-clear:hover { background: var(--cream-50); color: var(--ink-900); }

.loc-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 280px; overflow-y: auto;
}
.loc-search-result {
  display: block; width: 100%; padding: 12px 14px;
  background: transparent; border: 0; cursor: pointer;
  text-align: left; font: inherit;
  border-bottom: 1px solid var(--ink-100);
  transition: background .12s;
}
.loc-search-result:last-child { border-bottom: 0; }
.loc-search-result:hover, .loc-search-result.is-active { background: var(--cream-50); }
.loc-search-result-title { font-weight: 600; color: var(--ink-900); display: block; line-height: 1.3; }
.loc-search-result-sub { display: block; font-size: .82rem; color: var(--ink-500); margin-top: 2px; }
.loc-search-empty { padding: 14px; color: var(--ink-500); font-size: .9rem; text-align: center; }
.loc-search-loading { padding: 14px; color: var(--ink-500); font-size: .9rem; text-align: center; }

.loc-gps-btn { align-self: flex-start; }

.loc-map-wrap {
  position: relative;
  flex: 1;
  min-height: 320px;
  background: var(--cream-50);
}
.loc-map { width: 100%; height: 100%; min-height: 320px; }

.loc-status {
  position: absolute; left: 14px; right: 14px; top: 14px;
  z-index: 500; /* above leaflet panes */
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: .9rem; font-weight: 500;
  text-align: center;
  border: 1px solid var(--ink-100);
}
.loc-status.is-in {
  color: var(--green-700);
  background: rgba(231,247,235,.95);
  border-color: var(--green-100);
}
.loc-status.is-out {
  color: #8a1a1a;
  background: rgba(254,232,232,.95);
  border-color: #f5b8b8;
}
.loc-status.is-loading { color: var(--ink-500); }

.loc-modal-foot {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--ink-100);
  display: flex; flex-direction: column; gap: 12px;
}
.loc-selected { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loc-selected strong {
  font-size: .95rem; color: var(--ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.loc-confirm:disabled { opacity: .5; cursor: not-allowed; }

/* Lock body scroll while modal open */
body.loc-modal-open { overflow: hidden; }

/* Custom Leaflet pin (matches brand) */
.loc-pin {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 4px rgba(20,30,25,.35));
}
.loc-kitchen-pin { font-size: 1.3rem; }

/* Mobile: full-screen modal */
@media (max-width: 720px) {
  .loc-modal-panel {
    width: 100%; height: 100%; max-height: 100%;
    border-radius: 0;
  }
  .loc-modal-head { padding: 12px 16px; }
  .loc-modal-search { padding: 12px 16px; }
  .loc-map-wrap { min-height: 240px; }
  .loc-modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .loc-status { font-size: .85rem; padding: 8px 12px; }
}

/* MISSING-FIELDS HINT ON SUBMIT BUTTON ------------------------ */
.missing-hint {
  margin: 8px 0 0; padding: 8px 12px;
  background: var(--orange-50); color: var(--orange-600);
  border: 1px solid var(--orange-300);
  border-radius: var(--radius-sm);
  font-size: .88rem; text-align: center; font-weight: 500;
}
.sum-submit.is-incomplete { background: var(--orange-500); }
.sum-submit.is-incomplete:hover { background: var(--orange-600); }

/* AUTH (login) ------------------------------------------------ */
.auth-card {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-md);
}
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }

/* ADMIN HEAD ROW --------------------------------------------- */
.admin-head {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start; justify-content: space-between;
}
@media (min-width: 720px) { .admin-head { flex-direction: row; align-items: center; } }
.admin-head-actions { display: flex; gap: 8px; align-items: center; }

.cell-addons { font-size: .88rem; max-width: 180px; }

.footer-link-btn {
  background: transparent; border: 0; padding: 0; color: inherit; cursor: pointer;
  text-decoration: underline; font: inherit;
}

/* SUCCESS PAGE BIG WA BUTTON --------------------------------- */
.big-wa-btn { margin: 12px 0 18px; box-shadow: 0 12px 28px rgba(37,211,102,.35); }
.addons-list { display: flex; flex-direction: column; gap: 2px; }

/* TODAY LAYOUT ----------------------------------------------- */
.today-layout {
  display: grid; grid-template-columns: 1fr; gap: 22px;
}
@media (min-width: 880px) {
  .today-layout { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
}
.today-image {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--cream-100);
  min-height: 220px;
  box-shadow: var(--shadow-sm);
}
.today-image img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }

/* PLANS GRID — when only 2 plans, center them on desktop ----- */
.plans-grid.plans-2 { max-width: 880px; margin: 0 auto; }
@media (min-width: 640px) { .plans-grid.plans-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .plans-grid.plans-2 { grid-template-columns: 1fr 1fr; } }

/* HOW IT WORKS / STEPS --------------------------------------- */
.steps-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 720px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-tile {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.step-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-100); position: relative; }
.step-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-img.no-image { display: none; }
.step-meta { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.step-badge {
  align-self: flex-start;
  padding: 4px 12px; border-radius: 999px;
  background: var(--green-50); color: var(--green-700);
  font-weight: 800; font-size: .85rem; letter-spacing: .04em;
}
.step-tile h3 { font-size: 1.1rem; margin: 4px 0 0; }
.step-tile p { color: var(--ink-500); margin: 4px 0 0; font-size: .94rem; }

/* AREAS LAYOUT ----------------------------------------------- */
.areas-layout {
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
}
@media (min-width: 880px) { .areas-layout { grid-template-columns: 1.2fr 1fr; } }
.areas-image {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--cream-100); box-shadow: var(--shadow-sm);
}
.areas-image img { width: 100%; height: auto; display: block; }

/* CTA STRIP IMAGE -------------------------------------------- */
.cta-strip { overflow: hidden; }
.cta-inner { gap: 24px; }
.cta-text { flex: 1; }
.cta-image {
  flex: 0 0 auto; width: 100%; max-width: 300px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta-image img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
@media (max-width: 719px) { .cta-image { display: none; } }
@media (min-width: 720px) {
  .cta-inner { flex-direction: row; align-items: center; }
  .cta-image { width: 280px; height: 200px; }
}

/* MOBILE FIXED CTA BAR (order page) -------------------------- */
.mobile-cta-bar { display: none; }
@media (max-width: 999px) {
  .mobile-cta-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--ink-100);
    box-shadow: 0 -8px 24px rgba(20,30,25,.12);
  }
  .mobile-cta-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .mobile-cta-label { font-size: .75rem; color: var(--ink-500); font-weight: 500; }
  .mobile-cta-total { font-size: 1.4rem; font-weight: 800; color: var(--green-700); line-height: 1; }
  .mobile-cta-btn { padding: 14px 22px; font-size: 1rem; flex: 0 0 auto; }
  /* On the order page, give the form bottom-padding so content isn't hidden */
  body.page-order main { padding-bottom: 96px; }
  /* Hide the floating WhatsApp FAB on the order page (CTA bar takes that role) */
  body.page-order .whatsapp-fab { display: none; }
  /* Demote the in-form summary submit button on mobile (the bar is the primary) */
  body.page-order .sum-submit { display: none; }
  body.page-order .missing-hint { margin-top: 0; }
  /* On mobile the in-form summary becomes a normal card (not sticky) */
  .order-summary-sticky { position: relative !important; }
  .order-summary-sticky { margin: 0 !important; padding: 0 !important; background: none !important; }
  .summary-card { border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-sm) !important; }
}

/* SMALL PHONES (<420px) -------------------------------------- */
@media (max-width: 419px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-page-head { padding: 40px 0 16px; }
  .section-head { margin-bottom: 28px; }

  .step-card { padding: 18px 16px; }

  /* Plan picker — give the radio circle and items a touch more breathing room */
  .plan-pick-name { padding-right: 30px; }
  .plan-pick-inner { padding: 14px; }

  /* Addon cards: stack info above qty so neither cramps */
  .addon-card { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .addon-qty { align-self: flex-start; }

  /* Method toggle takes full width even more comfortably */
  .method-card { padding: 12px 14px; }

  /* Sticky-bottom mobile bar safer paddings */
  .mobile-cta-bar { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .mobile-cta-total { font-size: 1.3rem; }
  .mobile-cta-btn { padding: 12px 18px; font-size: .95rem; }

  /* Hero text card padding */
  .hero-text { padding: 18px 18px 20px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw + .4rem, 2.2rem); }

  /* Today menu meal block padding */
  .meal-block { padding: 18px 18px; }

  /* Footer pads */
  .footer { padding: 36px 0 0; }

  /* qty-num touch target */
  .qty-btn { width: 40px; height: 40px; }
  .qty-num { min-height: 40px; }
}

/* Larger touch targets across the board for mobile-first feel */
@media (max-width: 879px) {
  .btn-sm { min-height: 40px; }
  .qty-btn { width: 40px; height: 40px; }
  .qty-num { min-height: 40px; }

  /* Status select in admin orders: bigger tap target */
  .status-select { min-height: 40px; padding: 10px 12px; }

  /* Pickup info: stack tightly on mobile */
  .pickup-info { padding: 12px 14px; }
}

/* Sticky summary on desktop: clear the topbar+nav (compute via vars) ------ */
.order-summary-sticky { --sticky-top: 120px; }
@media (min-width: 1000px) {
  .order-summary-sticky { position: sticky !important; top: var(--sticky-top) !important; }
}

/* On mobile, ensure form-alert stands out and doesn't collapse */
.msg-error[hidden], .msg[hidden] { display: none; }

/* Prevent input zoom on iOS by ensuring 16px+ font on form fields */
@media (max-width: 879px) {
  .field, input.field, select.field, textarea.field { font-size: 16px; }
}

/* Reduce motion if requested */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
