/* ============================================================
   CITY CAFÉ BAKERY — style.css
   ============================================================ */

/* ---- BRAND TOKENS ---- */
:root {
  --green-light: #B8D8B0;
  --green-mid: #7DB87A;
  --green-deep: #4A8C5C;
  --cream: #F5F0E8;
  --warm-white: #FDFAF5;
  --charcoal: #2C2A27;
  --amber: #D4956A;
  --amber-light: #EFC99A;
  --ember: #C4622D;
  --green-band: #2F6B43;
  --text-primary: #2C2A27;
  --text-muted: #6B6860;
  --font-display: 'Alegreya', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 16px rgba(44,42,39,0.08);
  --transition: 0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }
ul, ol { list-style: none; }

/* ---- FOCUS ---- */
:focus-visible { outline: 2px solid var(--green-mid); outline-offset: 2px; }

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  background: var(--green-deep);
  color: var(--warm-white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus { top: 1rem; }

/* ---- NAV ---- */
#nav-root { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: white;
  box-shadow: 0 2px 12px rgba(44,42,39,0.08);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.logo-svg {
  height: 30px;
  width: auto;
  display: block;
}
/* Scrolled: cream blocks → pure white, invisible on white nav — only charcoal letters show */
.site-nav.scrolled .logo-svg:not(.footer-logo-svg) .cls-1 { fill: #ffffff; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: white; }
.site-nav.scrolled .nav-links a { color: var(--charcoal); }
.site-nav.scrolled .nav-links a:hover { color: var(--green-deep); }
.nav-cta {
  background: var(--amber) !important;
  color: var(--charcoal) !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--amber-light) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}
.site-nav.scrolled .nav-hamburger span { background: var(--charcoal); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: white;
  box-shadow: -4px 0 24px rgba(44,42,39,0.12);
  z-index: 999;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  gap: 1.5rem;
  transition: right 0.3s ease;
}
.nav-drawer.open { right: 0; }
.nav-drawer a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cream);
}
.nav-drawer .nav-cta {
  display: inline-block;
  text-align: center;
  margin-top: 0.5rem;
  border-radius: var(--radius-sm) !important;
  padding: 0.75rem 1.5rem !important;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,42,39,0.4);
  z-index: 998;
}
.nav-overlay.open { display: block; }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: flex; }
  .logo-svg { height: 24px; }
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: 3rem 2rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}
.footer-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 0.75rem;
}
.footer-logo-svg {
  height: 26px;
  width: auto;
  display: block;
}
.footer-logo-svg .cls-1 { fill: var(--green-deep); }
.footer-logo-svg .cls-2 { fill: var(--cream); }
.footer-tagline { font-size: 0.9rem; color: var(--green-light); line-height: 1.6; max-width: 22ch; }
.footer-location { margin-bottom: 0.9rem; }
.footer-loc-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-light);
  margin-bottom: 0.15rem;
  letter-spacing: 0.02em;
}
.footer-hours { margin-top: 0.75rem; }
.footer-hours-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(184,216,176,0.12);
  color: var(--green-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid rgba(184,216,176,0.2);
  margin-bottom: 0.4rem;
}
.footer-hours p { font-size: 0.82rem; color: rgba(245,240,232,0.65); margin-top: 0.3rem; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}
.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.7;
  display: block;
}
.footer-col a:hover { color: var(--amber-light); }
.footer-note { font-size: 0.8rem; color: var(--green-light); margin-top: 0.5rem; font-style: italic; }
.footer-bar {
  border-top: 1px solid rgba(184,216,176,0.2);
  margin: 0 -2rem;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.1);
  font-size: 0.85rem;
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
}
.footer-copy { color: rgba(184,216,176,0.75); }
.footer-legal { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.footer-bar a {
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.footer-bar a:hover { color: var(--amber-light); border-color: currentColor; }
@media (max-width: 480px) { .footer-bar { justify-content: center; text-align: center; } }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-tagline { max-width: none; }
}

/* ---- WAVE DIVIDERS ---- */
.wave-divider {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
}

/* ---- IMAGE PLACEHOLDERS ---- */
.img-placeholder {
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
  padding: 1rem;
}
.has-photo .img-placeholder { display: none; }

/* Real images in cards/sections */
.baked-card img,
.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.oven-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.loc-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- LAYOUT UTILS ---- */
.section-inner { max-width: 1200px; margin: 0 auto; }
/* The homepage runs a wider column than the inner pages. */
.baked-goods .section-inner,
.how-it-works .section-inner,
.gallery-strip .section-inner,
.proof-strip .section-inner,
.locations-preview .section-inner { max-width: 1320px; }
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem); }
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-mid);
  margin-bottom: 0.75rem;
}
.section-label.label-green { color: var(--green-band); }
.section-label.label-ember { color: var(--ember); }
.section-label.label-cream { color: rgba(253,250,245,0.8); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border: none;
}
.btn-amber { background: var(--amber); color: var(--charcoal); }
.btn-amber:hover { background: var(--amber-light); }
.btn-green { background: var(--green-deep); color: var(--warm-white); }
.btn-green:hover { background: var(--green-mid); }
.btn-cream { background: var(--cream); color: var(--charcoal); }
.btn-cream:hover { background: var(--warm-white); }
.btn-band { background: var(--green-band); color: var(--warm-white); }
.btn-band:hover { background: var(--green-deep); }

/* ---- MENU TEXT LINK ---- */
.menu-text-link {
  display: inline;
  color: var(--green-deep);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.menu-text-link:hover { color: var(--green-mid); }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, #2d5e3a 60%, #1e3d26 100%);
  padding: 8rem clamp(1.5rem, 5vw, 4rem) 4rem;
}
.page-hero .inner { max-width: 760px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--warm-white);
  margin-bottom: 1rem;
}
.page-hero p { font-size: 1.1rem; color: var(--cream); max-width: 640px; line-height: 1.7; }

/* ---- MENU PAGE HERO ---- */
.menu-hero {
  position: relative;
  background-image: url('../images/pastry-shelf.jpg');
  background-size: cover;
  background-position: center 60%;
}
.menu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,48,28,0.78) 0%, rgba(44,42,39,0.60) 100%);
}
.menu-hero .inner { position: relative; z-index: 1; }

/* ---- HOMEPAGE HERO ---- */
.hero {
  height: 100svh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-oven.jpg');
  background-size: cover;
  background-position: 58% 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(18,12,6,0.84) 0%,
    rgba(18,12,6,0.60) 42%,
    rgba(18,12,6,0.18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding-left: clamp(1.5rem, 7vw, 8rem);
  padding-right: 2rem;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1rem;
  display: block;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  color: var(--warm-white);
  line-height: 1.12;
  font-weight: 600;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--cream);
  max-width: 520px;
  margin-top: 1.5rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; align-items: center; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-cta {
  display: inline-block;
  background: var(--amber);
  color: var(--charcoal);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition);
}
.hero-cta:hover { background: var(--amber-light); }
.hero-cta-secondary {
  display: inline-block;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(245,240,232,0.5);
  transition: border-color var(--transition);
}
.hero-cta-secondary:hover { border-color: var(--cream); }
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--amber-light);
  margin-top: 0.75rem;
  max-width: 440px;
}
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  font-size: 0;
}

/* ---- HERO SCROLL CUE (mobile only) ----
   On phones the hero ends in the cream wave, which reads as the bottom of the
   page rather than a seam. This sits just above the wave and pulls the eye
   past it. Hidden on desktop, where the fold is obvious, and it fades out as
   soon as the visitor scrolls — it has done its job by then. */
.hero-scroll-cue { display: none; }

@media (max-width: 767px) {
  .hero-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    bottom: 74px; /* the wave is 80px tall but dips to ~40px at centre, where the cue sits */
    z-index: 2;
    transform: translateX(-50%);
    color: var(--green-light);
    text-decoration: none;
    opacity: 0;
    animation: cue-in 0.6s ease 1.1s forwards;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .hero-scroll-cue.is-hidden {
    opacity: 0;
    transform: translate(-50%, 10px);
    pointer-events: none;
    animation: none;
  }
  .scroll-cue-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(18,12,6,0.7);
  }
  .scroll-cue-dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-band);
    box-shadow: 0 4px 14px rgba(18,12,6,0.35);
    animation: cue-bob 1.9s ease-in-out infinite;
  }
  /* The ring that pulses out of the dot. */
  .scroll-cue-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--green-light);
    animation: cue-ring 1.9s ease-out infinite;
  }
  .scroll-cue-dot svg { width: 20px; height: 20px; }
}

@keyframes cue-in { to { opacity: 1; } }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes cue-ring {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none; opacity: 1; }
  .scroll-cue-dot, .scroll-cue-dot::before { animation: none; }
  .scroll-cue-dot::before { opacity: 0; }
}

@media (max-width: 767px) {
  .hero-content { padding-left: 1.5rem; padding-right: 1.5rem; max-width: 100%; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 2.8rem); }
}

/* ---- HOW IT WORKS ---- */
.how-it-works { background: var(--green-light); }
.how-it-works h2 { font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.18; color: var(--charcoal); margin-bottom: 0.75rem; }
.how-intro { font-size: 1rem; color: var(--text-muted); max-width: 640px; margin-bottom: 2.5rem; line-height: 1.7; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step-card {
  padding: 1.5rem;
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(44,42,39,0.06);
}
.step-icon { margin-bottom: 0.9rem; color: var(--green-band); line-height: 0; }
.step-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--charcoal); margin-bottom: 0.35rem; }
.step-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 1024px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- FROM THE OVEN (merged with the bagel story) ---- */
.from-the-oven {
  background: var(--charcoal);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
}
.oven-media { min-height: 100%; }
.oven-media img { width: 100%; height: 100%; object-fit: cover; }
.oven-content { padding: clamp(3.5rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem); align-self: center; }
.oven-content h2 { font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.4rem); color: var(--warm-white); margin-bottom: 1rem; line-height: 1.18; }
.oven-lede { font-size: 0.98rem; color: rgba(253,250,245,0.72); line-height: 1.75; max-width: 46ch; margin-bottom: 2.25rem; }
.oven-beats { display: grid; gap: 1.5rem; max-width: 46ch; }
.oven-beat { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.75rem; align-items: start; }
.beat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ember);
  line-height: 1.2;
}
.beat-title { font-size: 0.95rem; font-weight: 700; color: var(--warm-white); margin-bottom: 0.3rem; }
.beat-desc { font-size: 0.875rem; color: rgba(253,250,245,0.62); line-height: 1.65; }

/* ---- BAKED GOODS ---- */
.baked-goods { background: var(--warm-white); }
.baked-goods h2 { font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.18; color: var(--charcoal); margin-bottom: 0.6rem; }
.baked-intro { font-size: 1rem; color: var(--text-muted); max-width: 44ch; line-height: 1.7; }
.baked-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.baked-head-link { flex-shrink: 0; }
.baked-foot-link { display: none; }
.baked-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .baked-grid { grid-template-columns: repeat(2, 1fr); } }

/* Name and price share a line; price in ember. Scoped so menu.html keeps its own look. */
.baked-goods .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.3rem; }
.baked-goods .card-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--charcoal); margin: 0; }
.baked-goods .card-price { font-size: 0.9rem; font-weight: 700; color: var(--ember); margin: 0; white-space: nowrap; }

/* ---- CARD SHARED (baked-card + menu card) ---- */
.baked-card, .card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.baked-card:hover, .card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(44,42,39,0.14); }
.card-body { padding: 1rem 1.25rem; }
.card-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--charcoal); margin-bottom: 0.25rem; }
.card-price { font-size: 0.9rem; color: var(--green-mid); font-weight: 600; margin-bottom: 0.4rem; }
.card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ---- MENU GROUP CARD ---- */
/* One wide card for items that are only variants of each other (the melts, the
   coffees, the pop). They used to be separate cards repeating a single photo,
   or bare text placeholders. Spans the whole grid row and lists the variants
   as name / dotted leader / price. */
.group-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
}
/* No photo at all (cold drinks): one column, and no placeholder block either. */
.group-card--no-photo { grid-template-columns: 1fr; }

/* Two photos sit side by side, so the media column gets more of the card —
   otherwise each one is squeezed into a sliver by the variant list beside it. */
.group-card--two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.group-card-media { display: grid; grid-template-columns: 1fr; gap: 3px; }
.group-card--two .group-card-media { grid-template-columns: 1fr 1fr; }
/* .card img already sets the 4:3 crop; height:100% lets a photo grow past it to
   meet a taller variant list rather than leaving white space under itself. */
.group-card-media img { height: 100%; }

.group-card-body { padding: clamp(1.25rem, 3vw, 2rem); }
.group-card-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--charcoal); margin-bottom: 0.4rem; }
.group-card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1.1rem; }
.group-card-variants { list-style: none; margin: 0; padding: 0; }

.variant-row { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.45rem 0; }
.variant-row + .variant-row { border-top: 1px solid rgba(44,42,39,0.07); }
.variant-name { flex: 0 1 auto; min-width: 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--charcoal); }
.variant-note { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-muted); }
/* Empty, so its baseline is its bottom edge — the dots land on the text baseline. */
.variant-leader { flex: 1 1 auto; min-width: 1.5rem; height: 0; border-bottom: 1px dotted rgba(44,42,39,0.3); }
.variant-price { flex: 0 0 auto; font-size: 0.9rem; color: var(--green-mid); font-weight: 600; white-space: nowrap; }

/* Photo(s) on top, list below. Stacks well above the usual 767 breakpoint: a
   media column narrower than this gets squeezed thin by the variant list beside
   it, and the photos read better full width anyway. */
@media (max-width: 1099px) {
  .group-card, .group-card--two { grid-template-columns: 1fr; }
}

/* ---- LUNCH CTA BANNER ---- */
.lunch-cta {
  background: var(--ember);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
}
.lunch-cta-text { padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem); align-self: center; max-width: 44rem; }
.lunch-cta h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.2vw, 2rem); color: var(--warm-white); margin-bottom: 1rem; line-height: 1.25; }
.lunch-hours { display: inline-block; }
.lunch-cta-body { font-size: 0.98rem; color: rgba(253,250,245,0.85); margin-bottom: 2rem; line-height: 1.7; max-width: 44ch; }
.lunch-cta-media { min-height: 100%; }
.lunch-cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* ---- GALLERY STRIP ---- */
.gallery-strip { background: var(--cream); }
.gallery-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.gallery-heading { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.18; color: var(--charcoal); }
.gallery-subline { font-size: 0.9rem; color: var(--text-muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; margin: 0; }

/* ---- LOCATIONS PREVIEW (homepage) ---- */
.locations-preview { background: var(--cream); }
.find-us { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.find-us-img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.find-us-img img { width: 100%; height: 100%; object-fit: cover; }
.find-us-body h2 { font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.18; color: var(--charcoal); margin-bottom: 0.75rem; }
.find-us-address { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 40ch; margin-bottom: 1.75rem; }
.find-us-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.find-us-hours { font-size: 0.95rem; font-weight: 700; color: var(--charcoal); }

/* ---- MENU PAGE ---- */
.menu-subnav {
  position: sticky;
  top: var(--nav-h, 64px); /* JS measures the real nav (main.js); 64px is the mobile fallback before it runs */
  background: var(--cream);
  border-bottom: 1px solid var(--green-light);
  z-index: 100;
  padding: 0.75rem 2rem;
}
.menu-subnav-inner {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-subnav-inner::-webkit-scrollbar { display: none; }
.menu-subnav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.menu-subnav a:hover { color: var(--green-deep); border-color: var(--green-deep); }
.menu-subnav a.active { color: var(--green-deep); border-color: var(--green-deep); }
.menu-section { padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); scroll-margin-top: calc(var(--nav-h, 64px) + 64px); /* nav + sticky subnav 54 (measured) + breathing room */ }
.menu-section:nth-child(even) { background: var(--cream); }
.menu-section h2 { font-family: var(--font-display); font-size: 2rem; color: var(--charcoal); margin-bottom: 1.5rem; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .menu-grid { grid-template-columns: 1fr; } }

.lunch-callout {
  background: var(--amber-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.lunch-callout p { font-size: 0.95rem; color: var(--charcoal); font-weight: 500; }

/* ---- ORDER PAGE ---- */
.order-hero { background: var(--green-deep); padding: 8rem clamp(1.5rem, 5vw, 4rem) 3rem; }
.order-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--warm-white); margin-bottom: 0.75rem; }
.order-hero p { font-size: 1rem; color: var(--cream); max-width: 640px; line-height: 1.7; }

.order-form-wrap { max-width: 720px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 1.5rem) 5rem; }

.step-indicator { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 2rem 0 1rem; }
.step-dot { width: 12px; height: 12px; border-radius: 50%; background: transparent; border: 2px solid var(--green-light); transition: all var(--transition); }
.step-dot.active { background: var(--green-deep); border-color: var(--green-deep); }
.step-dot.done { background: var(--green-mid); border-color: var(--green-mid); }

.steps-container { position: relative; overflow: hidden; }
.order-step { display: none; transition: transform 0.25s ease, opacity 0.25s ease; }
.order-step.active { display: block; }

.order-step h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--charcoal); margin-bottom: 1.5rem; }

.location-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 480px) { .location-cards { grid-template-columns: 1fr; } }
.location-option {
  border: 2px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: white;
}
.location-option:hover { border-color: var(--green-mid); }
.location-option.selected { border-color: var(--green-deep); background: var(--cream); }
.location-option h3 { font-family: var(--font-display); font-size: 1rem; color: var(--charcoal); margin-bottom: 0.25rem; }
.location-option p { font-size: 0.85rem; color: var(--text-muted); }

.date-toggles, .notify-toggles { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.toggle-btn {
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--green-light);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.toggle-btn:hover { border-color: var(--green-mid); }
.toggle-btn.selected { background: var(--green-deep); border-color: var(--green-deep); color: white; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.5rem; }
.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--green-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--charcoal);
  background: white;
  transition: border-color var(--transition);
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green-mid); outline: none; }
.form-group.has-error select,
.form-group.has-error input,
.form-group.has-error textarea { border-color: #c0392b; }
.field-error { display: none; font-size: 0.8rem; color: #c0392b; margin-top: 0.35rem; }
.form-group.has-error .field-error { display: block; }
.char-count { font-size: 0.78rem; color: var(--text-muted); text-align: right; margin-top: 0.25rem; }

.order-items-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 480px) { .order-items-grid { grid-template-columns: 1fr; } }

.order-item-card {
  border: 2px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: white;
}
.order-item-card.selected { border-color: var(--green-deep); background: var(--cream); }
.order-item-card h3 { font-family: var(--font-display); font-size: 1rem; color: var(--charcoal); margin-bottom: 0.2rem; }
.item-price { font-size: 0.9rem; color: var(--green-mid); font-weight: 600; margin-bottom: 0.35rem; }
.item-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.qty-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.75rem; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--green-mid);
  background: transparent; color: var(--green-deep);
  font-size: 1.1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
  line-height: 1;
}
.qty-btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: white; }
.qty-display { font-size: 1rem; font-weight: 600; min-width: 20px; text-align: center; }

.side-radios { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.side-radio {
  padding: 0.25rem 0.7rem;
  border: 1.5px solid var(--green-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  background: white; color: var(--charcoal);
}
.side-radio.selected { background: var(--green-mid); border-color: var(--green-mid); color: white; }

.order-summary-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--green-light);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -4px 20px rgba(44,42,39,0.08);
  flex-wrap: wrap;
  z-index: 200;
}
.summary-items { font-size: 0.88rem; color: var(--text-muted); }
.summary-total { font-family: var(--font-display); font-size: 1.1rem; color: var(--charcoal); font-weight: 700; }

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--green-light);
}

.consent-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.consent-row input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--green-deep); }
.consent-row label { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; cursor: pointer; }

/* Review step */
.review-block { background: var(--cream); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem; }
.review-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px solid rgba(125,184,122,0.2); font-size: 0.95rem; }
.review-row:last-child { border-bottom: none; }
.review-label { color: var(--text-muted); }
.review-val { color: var(--charcoal); font-weight: 500; }
.review-total-row { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.4rem; color: var(--charcoal); padding-top: 1rem; margin-top: 0.5rem; border-top: 2px solid var(--green-light); }
.review-info { background: white; border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 1.5rem; border: 1px solid var(--green-light); font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.review-info strong { color: var(--charcoal); }

.payment-stub-notice {
  background: var(--cream);
  border: 1.5px dashed var(--green-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.payment-stub-notice p { font-size: 0.9rem; color: var(--text-muted); }
.payment-stub-notice p + p { margin-top: 0.35rem; font-size: 0.8rem; }

/* Clover hosted card fields (payment mode) */
.pay-fields { margin-bottom: 1.5rem; }
.pay-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.5rem; }
/* The input is inside a Clover iframe, so only the iframe is clickable. Any
   padding on this container is therefore a dead zone that LOOKS like part of
   the field: the box has to be pure border + a full-bleed iframe, and the text
   inset comes from Clover's own field styling. */
.clover-field {
  border: 2px solid var(--green-light);
  border-radius: var(--radius-sm);
  padding: 0;
  background: white;
  height: 48px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
/* Clover sets inline width/height on the iframe it injects, hence !important.
   The input INSIDE the frame is sized to match by CLOVER_FIELD_STYLES in
   js/order.js - without that the frame stretches but the input does not, and
   the space below it is dead. Keep the two in step. */
.clover-field iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  vertical-align: middle;
}
.pay-row { display: flex; gap: 0.6rem; }
.pay-row .clover-field { flex: 1; margin-bottom: 0; }
@media (max-width: 480px) { .pay-row { flex-wrap: wrap; } .pay-row .clover-field { margin-bottom: 0.6rem; } }
.pay-trust { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-top: 0.6rem; }

.btn-pay {
  width: 100%; padding: 1rem;
  background: var(--green-deep); color: var(--warm-white);
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  cursor: pointer; transition: background var(--transition);
}
.btn-pay:hover:not(:disabled) { background: var(--green-mid); }
.btn-pay:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-back {
  padding: 0.7rem 1.5rem;
  min-height: 44px; /* touch target */
  border: 2px solid var(--green-light);
  border-radius: var(--radius-sm);
  background: transparent; color: var(--charcoal);
  font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.btn-back:hover { border-color: var(--green-mid); }

.btn-next {
  padding: 0.7rem 1.75rem;
  min-height: 44px; /* touch target */
  background: var(--green-deep); color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.btn-next:hover:not(:disabled) { background: var(--green-mid); }
.btn-next:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- ORDER CONFIRMATION ---- */
.confirmation-page { min-height: 100vh; padding-top: 80px; background: var(--warm-white); }
.confirmation-inner { max-width: 560px; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.check-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-mid); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.confirmation-inner h1 { font-size: 2rem; color: var(--charcoal); margin-bottom: 1rem; }
.conf-message { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.conf-order-id { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }
.conf-summary { background: var(--cream); border-radius: var(--radius-md); padding: 1.25rem; text-align: left; margin-bottom: 1.5rem; }
.conf-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(125,184,122,0.15); color: var(--charcoal); }
.conf-row:last-child { border-bottom: none; }
.conf-total { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; display: flex; justify-content: space-between; padding-top: 0.75rem; margin-top: 0.5rem; border-top: 2px solid var(--green-light); }
.conf-pickup { background: var(--green-deep); color: var(--cream); border-radius: var(--radius-md); padding: 1.25rem; text-align: left; margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.8; }
.conf-pickup strong { color: var(--warm-white); }
.conf-link { color: var(--green-mid); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.conf-link:hover { border-color: var(--green-mid); }
.conf-not-found { text-align: center; padding: 4rem 1.5rem; }

/* ---- ORDERING-STATUS BANNER (admin + staff) ----
   Shown on BOTH internal screens whenever online ordering is not 'open'.
   Two colours because the two off-states are not the same news: amber is a
   pause with lunch still on at the counter, red is no lunch today at all.

   There is no auto-reset and no dismiss button on purpose. The state persists
   until the owner changes it on /admin, so the banner has to persist too — the
   failure this guards against is not a wrong colour, it is a whole lunch
   service running with online ordering silently switched off. */
.ordering-banner {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}
.ordering-banner.paused { background: #FFF4E5; border: 1px solid #F0B429; color: #7A4B00; }
.ordering-banner.hidden { background: #EEF1F4; border: 1px solid #B8C2CC; color: #2C3A47; }
.ordering-banner-note { display: block; font-weight: 400; font-size: 0.85rem; margin-top: 0.25rem; }

/* On /staff the banner spans the board, above the header bar. */
.staff-banner-root:not(:empty) { padding: 1rem 2rem 0; }
@media (max-width: 640px) { .staff-banner-root:not(:empty) { padding: 1rem 1rem 0; } }

/* ---- STAFF DASHBOARD ---- */
body.staff-body { background: var(--cream); }
body.staff-body #nav-root { display: none; }
body.staff-body #footer-root { display: none; }

.password-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.password-card {
  max-width: 380px; width: 100%;
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 3rem 2.5rem; text-align: center;
}
.card-logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--green-deep); margin-bottom: 0.5rem; display: block; }
.password-card h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--charcoal); margin-bottom: 2rem; }
.password-card .form-group { text-align: left; }
.pw-error { display: none; font-size: 0.85rem; color: #c0392b; margin-top: 0.75rem; text-align: center; }
.btn-enter {
  width: 100%; padding: 0.8rem;
  background: var(--green-deep); color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.btn-enter:hover { background: var(--green-mid); }

.dashboard { display: none; }
.dashboard-header {
  background: var(--green-deep); color: var(--cream);
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.dashboard-header h1 { font-family: var(--font-display); font-size: 1.4rem; color: var(--warm-white); }
.dash-date { font-size: 0.82rem; color: var(--green-light); margin-top: 0.1rem; }
.dash-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dash-controls select {
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--green-mid); background: transparent;
  color: var(--cream); font-size: 0.85rem; cursor: pointer;
}
.dash-controls select option { color: var(--charcoal); background: white; }
/* Freshness indicator — one element, three states (see js/staff.js).
   Colours read against the dark dashboard header, not the page background. */
.refresh-time { font-size: 0.75rem; transition: color var(--transition); }
.refresh-time.fresh-ok    { color: var(--green-light); }
.refresh-time.fresh-warn  { color: #e8b04b; }
.refresh-time.fresh-stale { color: #ff8a7a; font-weight: 600; }

.kanban-board {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; padding: 1.5rem 2rem;
  align-content: start; min-height: calc(100vh - 74px);
}
@media (max-width: 1024px) { .kanban-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kanban-board { grid-template-columns: 1fr; padding: 1rem; } }

.kanban-col { min-width: 0; }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--green-light); }
.col-title { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.col-badge { font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 100px; }
.col-awaiting .col-title { color: var(--text-muted); }
.col-awaiting .col-badge { background: #eee; color: var(--text-muted); }
.col-received .col-title { color: var(--green-deep); }
.col-received .col-badge { background: var(--green-light); color: var(--green-deep); }
.col-ready .col-title { color: var(--charcoal); }
.col-ready .col-badge { background: var(--amber); color: var(--charcoal); }
.col-pickedup .col-title { color: var(--green-deep); }
.col-pickedup .col-badge { background: var(--green-deep); color: var(--cream); }

.order-card {
  background: white; border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 1rem; margin-bottom: 0.75rem;
  transition: box-shadow var(--transition);
}
.order-card:hover { box-shadow: 0 4px 24px rgba(44,42,39,0.12); }
.order-card.pickedup { opacity: 0.6; }
.oc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.oc-id { font-size: 0.75rem; color: var(--text-muted); }
.oc-time { font-size: 0.78rem; font-weight: 600; background: var(--amber-light); color: var(--charcoal); padding: 0.2rem 0.6rem; border-radius: 100px; }
/* Pickup day (LAUNCH-AUDIT B5): a tomorrow order must never look like a today one. */
.oc-day { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 100px; margin-bottom: 0.5rem; }
.oc-day.tomorrow { background: var(--charcoal); color: #fff; }
.oc-day.unconfirmed { background: #8C1D18; color: #fff; }
.order-card.for-tomorrow { box-shadow: inset 4px 0 0 var(--charcoal), var(--shadow-card); }
.oc-name { font-family: var(--font-display); font-size: 1rem; color: var(--charcoal); margin-bottom: 0.4rem; }
.oc-items { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.6rem; }
.oc-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
.badge-notify { font-size: 0.7rem; padding: 0.15rem 0.5rem; border: 1px solid var(--green-mid); color: var(--green-mid); border-radius: 100px; font-weight: 600; }
/* "placed Xm ago" — quiet by design: it is context, not an alert. */
.oc-age { font-size: 0.7rem; color: var(--text-muted); align-self: center; }
.oc-contact { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.oc-empty { font-size: 0.8rem; color: var(--text-muted); padding: 0.5rem 0; }
.oc-total { font-size: 0.9rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.75rem; }
.btn-action {
  width: 100%; padding: 0.5rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none;
  transition: background var(--transition);
}
.btn-action.mark-ready { background: var(--amber); color: var(--charcoal); }
.btn-action.mark-ready:hover { background: var(--amber-light); }
.btn-action.mark-pickedup { background: var(--green-deep); color: var(--cream); }
.btn-action.mark-pickedup:hover { background: var(--green-mid); }

.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--green-deep); color: white;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; z-index: 9999;
  transform: translateY(80px); opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: var(--shadow-card);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---- LOCATIONS PAGE ---- */
.loc-section { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem); }
.loc-section:nth-child(odd) { background: var(--warm-white); }
.loc-section:nth-child(even) { background: var(--cream); }
.loc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.loc-split-img { height: 480px; border-radius: var(--radius-lg); overflow: hidden; }
.loc-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--green-mid); display: block; margin-bottom: 0.5rem; }
.loc-name { font-family: var(--font-display); font-size: 2.2rem; color: var(--charcoal); margin-bottom: 0.25rem; }
.loc-tagline { font-family: var(--font-display); font-weight: 500; font-style: italic; color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1.05rem; display: block; }
.loc-detail { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.35rem; }
.loc-hours { font-size: 0.95rem; color: var(--green-mid); font-weight: 600; margin-bottom: 0.2rem; }
.loc-lunch { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.btn-directions {
  display: inline-block; padding: 0.8rem 1.75rem;
  background: var(--green-deep); color: var(--warm-white);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  transition: background var(--transition);
}
.btn-directions:hover { background: var(--green-mid); }
.loc-contact { background: var(--cream); padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; }
.loc-contact p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.loc-contact a { color: var(--green-deep); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.loc-contact a:hover { border-color: var(--green-deep); }
@media (max-width: 767px) {
  .loc-split { grid-template-columns: 1fr; gap: 2rem; }
  .loc-split-img { height: 260px; }
}

/* ---- PROOF STRIP ---- */
.proof-strip { background: var(--green-band); }
.star-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.stars { display: inline-flex; gap: 2px; line-height: 0; }
.star { width: 17px; height: 17px; fill: #E8B33C; display: block; }
.stars-sm .star { width: 13px; height: 13px; }

.proof-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.75rem; }
.proof-rating { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.proof-score { font-size: 1rem; font-weight: 700; color: var(--warm-white); }
.proof-count { font-size: 0.85rem; color: rgba(253,250,245,0.75); }
.proof-strip h2 { font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.18; color: var(--warm-white); }
.proof-link {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warm-white);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}
.proof-link:hover { color: var(--green-light); }

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
.proof-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: none;
}
.proof-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.65;
  margin: 0.9rem 0 1rem;
}
.proof-cite { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; font-style: normal; display: block; }

/* ---- ORDER NOTICE ---- */
.order-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.25rem;
  background: rgba(184,216,176,0.15);
  border: 1px solid rgba(184,216,176,0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--cream);
  line-height: 1.5;
  max-width: 640px;
}
.order-notice svg { flex-shrink: 0; margin-top: 2px; }

/* ---- FOOTER ABOUT ---- */
.footer-about { font-size: 0.82rem; color: rgba(184,216,176,0.7); line-height: 1.6; margin-top: 0.5rem; max-width: 240px; }

/* ---- 404 PAGE (sits on .page-hero's dark green so the fixed nav stays legible) ---- */
.notfound-page { text-align: center; padding-top: 10rem; padding-bottom: 7rem; min-height: 72vh; }
.notfound-page .inner { max-width: 560px; margin: 0 auto; }
.notfound-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
}
.notfound-page h1 { margin: 0.75rem 0 1rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.notfound-page p { margin: 0 auto 2.5rem; }
.notfound-ctas { display: flex; gap: 1.25rem; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---- LEGAL / POLICY PAGES ---- */
.legal { background: var(--warm-white); padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--charcoal); margin: 2.25rem 0 0.75rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.05rem; font-weight: 600; color: var(--charcoal); margin: 1.25rem 0 0.4rem; }
.legal p { color: var(--text-primary); line-height: 1.75; margin-bottom: 0.9rem; }
.legal ul { list-style: disc; margin: 0 0 1rem 1.4rem; }
.legal li { color: var(--text-primary); line-height: 1.7; margin-bottom: 0.5rem; }
.legal a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--green-mid); }
.legal strong { color: var(--charcoal); }

/* ---- HOMEPAGE MOBILE (matches the approved mobile design) ---- */
@media (max-width: 767px) {
  section { padding: 48px 22px; }
  .section-inner { max-width: 100%; }

  /* Hero: the text sits in a darkened band up top so the lower half of the
     frame - the oven mouth and the tray of bagels - stays readable as a photo. */
  .hero {
    height: auto;
    min-height: 640px;
    padding: 0;
    align-items: flex-start;
    background-position: 54% 100%;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(18,12,6,0.82) 0%,
      rgba(18,12,6,0.74) 40%,
      rgba(18,12,6,0.42) 60%,
      rgba(18,12,6,0.20) 80%,
      rgba(18,12,6,0.32) 100%
    );
  }
  .hero-content { padding: 6.5rem 22px 2rem; }
  .hero h1 { font-size: 1.85rem; line-height: 1.2; }
  .hero-sub { font-size: 0.95rem; margin-top: 1rem; }
  /* The approved mobile design drops the tagline; markup is shared with desktop. */
  .hero-tagline { display: none; }
  .hero-ctas { margin-top: 1.75rem; gap: 1.25rem; }
  .hero-cta {
    width: auto;
    padding: 0 1.5rem;
    height: 48px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    border-radius: 6px;
  }
  /* Text link beside the button: full-height hit area, unchanged appearance. */
  .hero-cta-secondary { font-size: 16px; position: relative; }
  .hero-cta-secondary::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 48px;
    transform: translateY(-50%);
  }

  .btn {
    padding: 0 1.5rem;
    height: 48px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    border-radius: 6px;
  }

  /* Cases: two-up plain photos, name + price beneath, no card chrome. */
  .baked-head { display: block; margin-bottom: 1.5rem; }
  .baked-head-link { display: none; }
  .baked-foot-link { display: inline-block; margin-top: 1.5rem; }
  .baked-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  .baked-goods .baked-card:nth-child(n+5) { display: none; }
  .baked-card {
    background: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }
  .baked-card:hover { transform: none; box-shadow: none; }
  .baked-card img { height: 126px; aspect-ratio: auto; border-radius: 8px; }
  .baked-goods .card-body { padding: 0.5rem 0 0; }
  .baked-goods .card-head { display: block; }
  .baked-goods .card-name { display: block; font-size: 0.95rem; }
  .baked-goods .card-price { display: block; margin-top: 0.1rem; }
  .baked-goods .card-desc { display: none; }

  /* Self-serve steps become rows: icon left, text right. */
  .steps-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .step-card {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    padding: 1.1rem 1.15rem;
  }
  .step-icon { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; padding-top: 2px; }
  .step-title { grid-column: 2; grid-row: 1; }
  .step-desc { grid-column: 2; grid-row: 2; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .gallery-head { gap: 0.35rem; display: block; }
  .gallery-subline { display: block; margin-top: 0.15rem; }

  /* Lunch: photo on top, text below. */
  .lunch-cta { grid-template-columns: 1fr; }
  .lunch-cta-media { order: -1; height: 190px; }
  .lunch-cta-text { padding: 48px 22px; max-width: 100%; }
  .lunch-hours { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: rgba(253,250,245,0.9); }

  /* The link moves under the cards on mobile, as in the approved design. */
  .proof-strip .section-inner { display: flex; flex-direction: column; }
  .proof-head { display: contents; }
  .proof-head-text { order: 1; margin-bottom: 1.25rem; }
  .proof-grid { order: 2; grid-template-columns: 1fr; }
  .proof-link { order: 3; align-self: flex-start; margin-top: 1.5rem; }

  /* Oven: photo on top, beats below. */
  .from-the-oven { grid-template-columns: 1fr; }
  .oven-media { height: 210px; }
  .oven-content { padding: 48px 22px; }
  .oven-beats { max-width: 100%; }
  .oven-lede { max-width: 100%; }

  .find-us { grid-template-columns: 1fr; gap: 1.5rem; }
  .find-us-img { aspect-ratio: 16/10; }
  .find-us-actions { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
}

/* Very narrow phones: the headline takes a third line, so the hero needs more
   room for the bagels to clear the buttons. */
@media (max-width: 360px) {
  .hero { min-height: 700px; }
  .hero h1 { font-size: 1.7rem; }
}

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

/* ---- CANCEL PAGE (cancel.html) ---- */
/* Same bones as the confirmation page: one centred column, the cream summary
   card, the deep-green pickup block. */
.cancel-page { min-height: 100vh; padding-top: 80px; background: var(--warm-white); }
.cancel-inner { max-width: 560px; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.cancel-inner h1 { font-family: var(--font-display); font-size: 2rem; color: var(--charcoal); margin-bottom: 1rem; }
.cancel-lead { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.cancel-summary { background: var(--cream); border-radius: var(--radius-md); padding: 1.25rem; text-align: left; margin-bottom: 1.5rem; }
.cancel-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(125,184,122,0.15); color: var(--charcoal); }
.cancel-row:last-child { border-bottom: none; }
.cancel-row .side { font-size: 0.82rem; color: var(--text-muted); }
.cancel-note { font-style: italic; font-size: 0.85rem; color: var(--text-muted); padding: 0.4rem 0; }
.cancel-total { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; display: flex; justify-content: space-between; padding-top: 0.75rem; margin-top: 0.5rem; border-top: 2px solid var(--green-light); }
.cancel-pickup { background: var(--green-deep); color: var(--cream); border-radius: var(--radius-md); padding: 1.25rem; text-align: left; margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.8; }
.cancel-pickup strong { color: var(--warm-white); }
.cancel-fine { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.cancel-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; margin-bottom: 2rem; }
.btn-cancel-order {
  width: 100%; max-width: 360px; padding: 0.95rem 1.5rem; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-md); background: #B3261E; color: white; transition: background var(--transition);
}
.btn-cancel-order:hover:not(:disabled) { background: #8C1D18; }
.btn-cancel-order:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-keep-order {
  width: 100%; max-width: 360px; padding: 0.85rem 1.5rem; font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius-md); border: 2px solid var(--green-light); color: var(--charcoal); background: white;
}
.btn-keep-order:hover { border-color: var(--green-mid); }
.cancel-confirm { background: #FDECEA; border: 1px solid #F2B8B5; color: #8C1D18; border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.6; text-align: left; }
.cancel-status { border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.5rem; line-height: 1.7; text-align: left; }
.cancel-status.ok { background: var(--cream); border: 1px solid var(--green-light); color: var(--charcoal); }
.cancel-status.warn { background: #FFF4E5; border: 1px solid #F0B429; color: #7A4B00; }
.cancel-status.err { background: #FDECEA; border: 1px solid #F2B8B5; color: #8C1D18; }
.cancel-status strong { display: block; font-size: 1.05rem; margin-bottom: 0.35rem; }
.cancel-check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-deep);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}
.cancel-link { color: var(--green-mid); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.cancel-link:hover { border-color: var(--green-mid); }

/* The one calm line in the order flow (step 1 and step 4) and on the
   confirmation page. Hidden until /api/config has said what the cutoff is. */
.cancel-policy-note { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: -0.75rem 0 1.5rem; }
.cancel-policy-note[hidden] { display: none; }
.conf-cancel { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.conf-cancel a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* ---- STAFF BOARD: cancel action + cancelled card ---- */
.btn-action.mark-cancel {
  background: transparent; color: var(--text-muted); border: 1px solid rgba(107,104,96,0.35);
  margin-top: 0.5rem; font-weight: 500;
}
.btn-action.mark-cancel:hover { color: #8C1D18; border-color: #8C1D18; background: #FDECEA; }
.order-card.cancelled { opacity: 0.55; background: #F3F1EC; }
.order-card.cancelled .oc-name, .order-card.cancelled .oc-items { text-decoration: line-through; text-decoration-color: rgba(44,42,39,0.4); }
.oc-cancelled { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8C1D18; background: #FDECEA; padding: 0.2rem 0.6rem; border-radius: 100px; margin-bottom: 0.5rem; }
