/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* ---- Skip link is in base.css ---- */

/* ---- Topbar (announcement strip) ---- */
/* v3: hardcoded charcoal/white — must not flip with the theme (the old
   token-driven version turned cream-with-light-text in dark mode). */
.topbar {
  background: #151516; /* v4 (§2): canonical near-black */
  color: #ffffff;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.topbar a {
  color: #ff7dac; /* v5 (§2): order CTA reads pink sitewide — bright pink on near-black, 7.6:1 */
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Header / Nav ---- */
/* v4 (§6): confident CORE TEAL header (#00A59D, canonical) with white nav
   text and a white logo mark, identical in both themes. The Order Online CTA
   shifts to core gold so it pops against the teal instead of blending in.
   Nav links are set large + extra-bold (≥19px/800) so white-on-teal meets the
   WCAG AA large-text threshold. A slim gold pinstripe runs along the header's
   bottom edge — the same signature motif as the footer's top edge. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  transition: box-shadow var(--transition-interactive);
}

.site-header::after {
  content: '';
  display: block;
  height: 8px;
  --ps-w: 5px;
  background-image: repeating-linear-gradient(
    135deg,
    var(--ps-gold) 0 var(--ps-w),
    #fff var(--ps-w) calc(var(--ps-w) * 2.184)
  );
}

.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

/* v3 (§5): taller header — the compact circular badge logo + generous
   vertical padding give the nav real breathing room. */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.nav__brand img {
  /* v6 (§1): the client's preferred ROUND badge — a compact circle is the right
     shape for a fixed-height nav slot (the wide stacked lockup would recreate the
     "too busy" header problem). Processed via scripts/process_logos.py with
     edge-connected white removal so the badge's own white arc text/center are
     preserved; NO invert/brightness filter — real colors as-is on the teal. */
  height: 64px;
  width: 64px;
}

/* Dark theme: charcoal-art badges in page content are dark ink on transparent
   backgrounds — invert them to white so they stay legible. */
[data-theme='dark'] .badge-invert-dark {
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  /* v4 (§6): ≥19px at 800 weight = WCAG large text, so white-on-core-teal
     (3.05:1) sits above the 3:1 AA large-text requirement. */
  font-size: 1.1875rem;
  font-weight: 800;
  color: #ffffff;
  padding: var(--space-2) 0;
  position: relative;
  white-space: nowrap; /* keep multi-word items (Events & Catering, Franchising ↗) on one line */
  /* v11 (§2): icon + label lockup — inline-flex keeps the 19px sketch icon
     vertically centered on the text without adding a single pixel of height
     (the 19px icon sits inside the existing ~28px line box). */
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* v11 (§2): small hand-drawn nav icons — stroke-only currentColor line art.
   currentColor = white on the teal header in BOTH themes, and inherits the
   hover/current state automatically.
   v12 HOTFIX: the #nav-sketch feTurbulence wobble filter was removed from these
   icons — it rendered the drawer icons huge on a real phone (mobile
   Safari/WebKit), unreproducible in our Chromium-only sandbox. Nav icons must
   stay un-filtered; see scripts/rewrite_headers_v5.py. */
.nav__icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: var(--radius-full);
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-interactive);
}

.nav__links a:hover::after,
.nav__links a[aria-current='page']::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff; /* v4 (§6): white hamburger on teal */
  border-radius: var(--radius-full);
}

.nav__mobile-panel {
  display: none;
}

/* v5 (§5): the header now carries 5 nav links + the separated Franchising pill —
   collapse to the hamburger early enough that nothing ever crowds — v5 QA found
   the Order Online CTA clipping at ~1100px, so the breakpoint became 1180px.
   v11 (§2): the five nav icons add ~130px to the link row — QA measured 29px of
   Order Online clipping at 1181px — so the hamburger now takes over ≤1240px. */
@media (max-width: 1240px) {
  .nav {
    gap: var(--space-3);
  }
  .nav__brand img {
    height: 48px !important;
    width: 48px !important;
  }
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .nav__actions .btn--ghost-nav,
  .nav__actions .nav__franchise,
  .nav__actions .nav__sep {
    display: none;
  }
  .nav__mobile-panel {
    display: none;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4) 0 var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.35); /* v4 (§6): on teal */
  }
  .nav__mobile-panel.is-open {
    display: flex;
  }
  .nav__mobile-panel a {
    padding: var(--space-3) var(--space-2);
    font-weight: 800;
    font-size: 1.1875rem; /* v4 (§6): AA large-text on teal */
    color: #ffffff;
    border-radius: var(--radius-sm);
  }
  /* v11 (§2): drawer links carry the same icon + label lockup as desktop.
     Scoped to .nav__mlink so the Franchising pill and the Order Online button
     inside the panel keep their own layout. */
  .nav__mobile-panel a.nav__mlink {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  .nav__mobile-panel a:hover {
    background: rgba(255, 255, 255, 0.14);
  }
  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-3);
  }
}

/* v5 (§5): Franchising — deliberately NOT part of the inline nav list.
   A slim vertical divider + a bordered pill give it its own, proper place. */
.nav__sep {
  width: 1.5px;
  height: 30px;
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.nav__franchise {
  font-size: 1.1875rem; /* ≥19px/800 = AA large for white on core teal */
  font-weight: 800;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav__franchise:hover {
  background: #ffffff;
  color: #007241; /* real deep teal-green — 6.0:1 on white */
}

.nav__franchise--mobile {
  align-self: flex-start;
  margin-top: var(--space-3);
  margin-inline: var(--space-2);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
  line-height: 1;
  border: 2px solid transparent;
}

/* v4 (§2/§4): primary action = CORE GOLD with charcoal ink (9.3:1) — the
   true bright brand color at full strength, high-energy and fully AA, instead
   of white text forced onto teal. */
.btn--primary {
  background: var(--color-gold);
  color: #151516;
}

.btn--primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: #151516;
  color: #ffffff;
}

.btn--secondary:hover {
  background: #007241; /* real deep teal-green */
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: scale(0.97); /* v4 (§4): playful press */
}

.btn--outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

/* header variant: tighter padding on the teal bar */
.btn--ghost-nav {
  padding: var(--space-2) var(--space-5);
}

.btn--ghost-nav:hover {
  transform: translateY(-1px) scale(1.03);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* v5 (§2): every "Order Online" CTA sitewide is the brand's core magenta
   #E55395 with white ink — the established AA-large pairing (3.5:1 at
   ≥19px/800). Identical in both themes: the brand never dims. Declared after
   .btn--lg so the AA-large 19px floor always wins. */
.btn--order {
  background: #e55395;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1875rem;
}

.btn--order:hover {
  background: #e55395;
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-md);
}

.btn--block {
  width: 100%;
}

/* v10 (mobile/tablet spacing scrub §1): .btn sets white-space: nowrap, which
   clipped the long "Order Online from Sanford – Westwood" / "…Sammamish –
   Highlands" labels on the location microsites at 375–414px (text cut off at
   both ends of the pill). Full-width block buttons may wrap on small screens. */
@media (max-width: 640px) {
  .btn--block {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Badges / pills ---- */
/* v4 (§2/§4): pills wear the TRUE bright brand colors as solid chips with
   AA-passing ink (white on deep green 6.1:1; charcoal on cyan 11.4:1, on gold
   10.3:1, on coral 9.0:1). */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap; /* status pills (Open Now, Coming Soon) must never break mid-label */
}

.pill--open {
  background: #007241;
  color: #ffffff;
}

/* v7 (§7): clickable "Visit Store" pill — same green, but clearly interactive.
   Only rendered for OPEN locations with a real per-location microsite. */
a.pill--visit {
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
a.pill--visit::after {
  content: "↗";
  font-size: 0.9em;
  line-height: 1;
}
a.pill--visit:hover,
a.pill--visit:focus-visible {
  background: #009155;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.pill--soon {
  background: #f6b333;
  color: #151516;
}

.pill--accent {
  background: #34e0e8;
  color: #151516;
}

.pill--coral {
  background: #f99898;
  color: #151516;
}

/* ---- Eyebrow label ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-script);
  font-size: var(--text-lg);
  color: var(--color-coral);
  transform: rotate(-2deg);
}

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-offset);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.card:hover .card__media img {
  transform: scale(1.06);
}

/* Product-cutout hero photos: the source images are tight close-ups on a flat brand-color
   background, so cover-cropping slices the subject at the card edges. Contain them instead,
   with padding for breathing room, on a background matched to the photo's own backdrop. */
.card__media--product {
  background: var(--product-bg, var(--color-cream));
  padding: var(--space-6);
}

.card__media--product img {
  object-fit: contain;
}

.card__body {
  padding: var(--space-5);
}

.card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

/* ---- Menu item tile (no card lift, editorial) ---- */
.menu-tile {
  text-align: center;
}

.menu-tile__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-offset);
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-divider);
}

.menu-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.menu-tile:hover .menu-tile__media img {
  transform: scale(1.08) rotate(-1deg);
}

.menu-tile__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
}

/* ---- Logo badge (circular lockup container) ---- */
.logo-badge {
  border-radius: var(--radius-full);
  overflow: hidden;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Section heading pattern ---- */
/* v12 (§1): fluid heading-block width — was a fixed 720px, which read squeezed
   on real desktop widths. */
.section-head {
  max-width: var(--measure-head);
  margin-bottom: var(--space-10);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2);
}

/* ---- Process steps ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 800px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.process-step__number {
  /* Body font, not Shopie: the display font's digit glyphs are ornamental and illegible */
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-coral);
}

/* ---- Tabs (menu categories) ---- */
.tabs {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  border-bottom: 2px solid var(--color-divider);
  margin-bottom: var(--space-10);
}

.tab-btn {
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn[aria-selected='true'] {
  /* v4 (§2): charcoal ink + teal underline — core teal at small bold sizes on
     white is only 3.05:1, so the teal moves to the (decorative) underline */
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

/* v6 (§3): ezCater micro-line on Events & Catering — informational only, not a
   link; grayscale + reduced opacity keeps it visually secondary to the CTA. */
.catering-ezcater {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.catering-ezcater img {
  height: 16px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
}

/* v6 (§9): contact page — Corporate Office card removed; the forms now sit in a
   single centered column (no orphaned split-grid gutter). */
.contact-form-wrap {
  max-width: var(--module-mid); /* v12 (§1): was fixed 720px — form card grows on wide screens */
  margin-inline: auto;
}

/* v6 (§4): Dapper Combo tab — qualitative combo cards (no prices, like the rest
   of the menu page); real product photography only. */
.combo-intro {
  max-width: var(--measure-prose-wide); /* v12 (§1): was fixed 62ch */
  margin-bottom: var(--space-10);
}
.combo-intro h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.combo-intro p {
  color: var(--color-text-muted);
}
.combo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: var(--module-wide); /* v12 (§1): card module, not prose — was fixed 920px */
}
@media (max-width: 720px) {
  .combo-grid { grid-template-columns: 1fr; }
  .combo-intro { margin-inline: auto; text-align: center; }
}
.combo-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.combo-card__media {
  /* v7 (§1): the real ordering-platform combo photos are square 500×500 compositions
     (branded cup + doughnut box) — a 16/9 crop would slice the cup/box. Show them 1:1. */
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.combo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.combo-card h3 {
  font-size: var(--text-lg);
  margin: var(--space-5) var(--space-6) var(--space-2);
}
.combo-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0 var(--space-6) var(--space-6);
}
.combo-note {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
}
.combo-note a {
  color: var(--color-link-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: fadeIn 300ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Menu grid ---- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-6) var(--space-5);
}

.specialty-subgroup {
  margin-bottom: var(--space-12);
}

.specialty-subgroup h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
  color: var(--color-link-strong); /* v4 (§2): deep teal-green light / bright cyan dark */
}

/* ---- Location cards (directory) ---- */
.state-block {
  margin-bottom: var(--space-12);
}

.state-block__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-divider);
}

.state-block__head h2 {
  font-size: var(--text-xl);
}

/* v7 (§8): the "N location(s)" count beside state headings was removed.
   v7 (§9): hand-drawn state outline icon — real simplemaps.com geometry with a
   subtle feTurbulence sketch wobble (filter #state-sketch defined inline on
   locations.html), sized to the heading text and inked in the heading color. */
.state-block__head {
  align-items: center;
}
.state-block__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--color-text);
  opacity: 0.85;
}

/* v5 (§7): .catering-split was defined only in index.html's inline styles, so
   locations.html's "Your City Could Be Next" band silently stacked its portrait
   photo full-width at desktop. Promoted to the shared sheet. */
.catering-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 860px) {
  .catering-split { grid-template-columns: 1fr; }
}
.catering-split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.catering-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* v5 (§7): with the trimmed 5-state roster most states hold one or two cards —
   the old 4-column auto-fill grid left a skinny card adrift in empty space.
   Cards now flex to a substantial width (320–460px) so each state block reads
   intentional instead of sparse. */
.location-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.location-grid > * {
  flex: 1 1 320px;
  max-width: 460px;
}
@media (max-width: 560px) {
  .location-grid > * { max-width: none; }
}

.location-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.location-card--open {
  border-color: var(--color-primary);
  background: linear-gradient(160deg, var(--color-primary-highlight), var(--color-surface) 55%);
}

.location-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.location-card h3 {
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
}

.location-card__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.location-card__formats {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.location-card__actions {
  margin-top: auto;
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-2);
}

/* ---- Forms ---- */
.form {
  display: grid;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0; /* keep long select options from inflating grid tracks */
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.field .required {
  color: var(--color-coral);
}

.field input,
.field select,
.field textarea {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-success {
  display: none;
  background: var(--color-success-highlight);
  color: var(--color-success);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

/* v14: real-delivery error state — shown instead of the success message
   when the FormSubmit fetch() fails, so a failed send never fakes success. */
.form-error {
  display: none;
  background: var(--color-error-highlight);
  color: var(--color-error);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-top: var(--space-4);
}

.form-error a {
  color: inherit;
  text-decoration: underline;
}

.form-error.is-visible {
  display: block;
}

fieldset {
  border: none;
}

/* ---- Footer ---- */
/* v3 (§8) CRITICAL CONTRAST FIX: the footer previously used theme tokens
   (background: var(--color-text)), which flipped to a cream background in
   dark mode while every text color stayed hardcoded near-white — ~1.5:1,
   illegible. The footer is now permanently dark charcoal with near-white
   text in BOTH themes (measured >= 4.5:1; see QA report). */
.site-footer {
  position: relative;
  background: #151516; /* v4 (§2): canonical near-black */
  color: #fbe1ad; /* v4 (§2): canonical brand cream — 14.4:1 */
  padding-block: var(--space-16) var(--space-8);
}

/* v3 (§0): signature pinstripe bar along the footer's top edge, sitewide. */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background-image: repeating-linear-gradient(
    135deg,
    var(--ps-gold) 0 5px,
    #fff 5px 10.9px
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(251, 225, 173, 0.18);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* v6 (§10): compact mobile footer — the old ≤540px rule stacked all four
   columns full-width with desktop-scale gaps, making the footer ~1000px tall
   at 375–428px. Now: brand block spans full width, the three link columns sit
   side by side beneath it, and vertical rhythm tightens. */
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-8) var(--space-5);
    padding-bottom: var(--space-8);
  }
  .footer-grid > .footer-col:first-child {
    grid-column: 1 / -1;
  }
  .site-footer {
    padding-block: var(--space-12) var(--space-6);
  }
  .footer-brand img {
    height: 56px;
  }
  .footer-col ul {
    gap: var(--space-2);
  }
  .footer-col a {
    font-size: var(--text-xs);
    /* v10 (mobile/tablet spacing scrub §3): the compact footer left link rows
       only ~20px apart center-to-center — cramped thumb targets. A whisper of
       block padding restores comfortable tap spacing without visually
       loosening the compact footer. */
    display: inline-block;
    padding-block: var(--space-1);
  }
  .footer-bottom a {
    display: inline-block;
    padding-block: var(--space-1);
  }
}
/* At the narrowest widths three columns get cramped — drop to two, with Legal
   flowing under. Still far shorter than four stacked columns. */
@media (max-width: 380px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.footer-brand img {
  height: 48px;
  width: auto;
}

.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #34e0e8; /* v4 (§2): canonical bright cyan-teal — 10.8:1 on #151516 */
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(251, 225, 173, 0.88);
}

.footer-col a:hover {
  color: #ff7dac; /* v4 (§2): canonical bright pink */
}

.footer-contact {
  font-size: var(--text-sm);
  color: rgba(251, 225, 173, 0.88);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 225, 173, 0.12);
}

.footer-social a:hover {
  background: #e55395;
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(251, 225, 173, 0.72);
}

.footer-bottom a {
  color: rgba(251, 225, 173, 0.72);
}

.footer-bottom a:hover {
  color: #ff7dac;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* ---- Theme toggle ---- */
/* v4 (§6): lives on the teal header — white icon, translucent white ring */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: #007241; /* v4 (§2): deep teal-green — AA at small sizes on light */
  font-weight: 600;
}

[data-theme='dark'] .breadcrumb a {
  color: #34e0e8;
}

/* ---- Page hero (interior pages) ---- */
/* v4 (§7): vertical whitespace cut ~40–50% sitewide — these blocks hold one
   heading + one line, and the client found the old padding “VERY wide.”
   Old: top clamp(48px, 8vw, 80px) / bottom clamp(32px, 5vw, 48px).
   New: top clamp(32px, 4vw, 44px) / bottom clamp(20px, 2.5vw, 28px). */
.page-hero {
  padding-block: clamp(var(--space-8), 4vw, 2.75rem) clamp(var(--space-5), 2.5vw, 1.75rem);
  text-align: center;
}

.page-hero h1 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2);
}

.page-hero p {
  max-width: var(--measure-lede-lg); /* v12 (§1): fluid lede measure — was fixed 640px */
  margin-inline: auto;
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

/* v4 (§8): energetic momentum line directly under a page heading
   (.page-hero prefix needed to out-rank the `.page-hero p` muted-ink rule) */
.page-hero .page-hero__momentum {
  display: inline-block;
  margin-top: var(--space-4);
  background: var(--color-coral);
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.375rem); /* ≥19px/800 = AA large on magenta */
  line-height: 1.35;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  transform: rotate(-1deg);
}

/* ---- Category grid (3-up card trios) ----
   v9 (desktop spacing scrub): this rule previously lived ONLY in index.html's
   inline <style>, but events-catering.html and careers.html reuse the class —
   on those pages the three cards rendered as full-width stacked strips with
   ZERO gap between them (visibly cramped). Defining it here gives every page
   the same generous 3-up grid with the system's --space-6 gap. */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* v10 (mobile/tablet spacing scrub §2): the old ≤800px collapse turned the
   trio into huge full-width strips at tablet width (768px) — each card a
   ~700px-wide shallow band with a short text block, the same "dead zone"
   character the v9 desktop pass fixed. There is comfortable room for the
   3-up grid down to ~700px (cards ≈215px, same as the desktop rhythm), so
   the single-column collapse now happens only below that. */
@media (max-width: 700px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Split grid (2-col layouts that must collapse on mobile) ---- */
.split-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.split-grid--start {
  align-items: start;
}

.split-grid--55 {
  grid-template-columns: 1.1fr 0.9fr;
}

.split-grid--46 {
  grid-template-columns: 0.8fr 1.2fr;
}

.split-grid--50 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 860px) {
  .split-grid--55,
  .split-grid--46,
  .split-grid--50 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ---- Utility ---- */
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
}
.gap-2 {
  gap: var(--space-2);
}
.gap-3 {
  gap: var(--space-3);
}
.gap-4 {
  gap: var(--space-4);
}
.mt-4 {
  margin-top: var(--space-4);
}
.mt-8 {
  margin-top: var(--space-8);
}
.text-muted {
  color: var(--color-text-muted);
}
.text-center {
  text-align: center;
}

.divider {
  height: 1px;
  background: var(--color-divider);
  border: none;
  margin-block: var(--space-8);
}

.legal-content h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  max-width: var(--measure-prose-wide); /* v12 (§1): fluid — was fixed 72ch */
}

.legal-content ul {
  padding-left: var(--space-6);
  list-style: disc;
}

.legal-notice {
  background: var(--color-gold-highlight);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   V3 — PINSTRIPE BRAND SYSTEM & CREATIVE REVISION (see ASSET_MANIFEST_V3.md)
   ========================================================================== */

/* ---- §0 Pinstripe utilities ----
   Geometry measured from the registered pattern files (10000x1045 tiles):
   45° diagonal, colored:white run ratio 103:122. The CSS gradient renders the
   exact same pattern seamlessly at any size; the real JPG crops (in
   assets/img/patterns/) are used where a photographic texture is wanted. */
.ps {
  --ps-c: var(--ps-teal);
  --ps-w: 8px; /* colored stripe width along the gradient axis */
  background-image: repeating-linear-gradient(
    135deg,
    var(--ps-c) 0 var(--ps-w),
    #fff var(--ps-w) calc(var(--ps-w) * 2.184)
  );
}
.ps--teal { --ps-c: var(--ps-teal); }
.ps--magenta { --ps-c: var(--ps-magenta); }
.ps--gold { --ps-c: var(--ps-gold); }
.ps--coral { --ps-c: var(--ps-coral); }

/* Thin full-width section divider — the signature motif between sections. */
.ps-divider {
  height: 12px;
  --ps-w: 6px;
  border: 0;
  margin: 0;
}

/* Small pinstripe accent bar (inside cards / above headings). */
.ps-accent {
  display: block;
  width: 72px;
  height: 8px;
  --ps-w: 4px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

/* ---- v4 (§3): "Always Made Fresh to Order" — the client's REAL logo file.
   The v3 HTML/CSS "kiosk" recreation is retired: wherever this specific badge
   is needed, the actual provided image is used as-is, unmodified
   (assets/img/logos/badge-always-made-fresh-to-order.png — transparent PNG,
   pink script + charcoal caps). .fresh-badge-card gives it a clean white
   panel so it stays legible on colored bands and in dark mode. */
.fresh-badge {
  display: block;
  width: 100%;
  height: auto;
}
.fresh-badge-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(var(--space-5), 3vw, var(--space-8)) clamp(var(--space-6), 4vw, var(--space-12));
  text-align: center;
}
.fresh-badge-card .fresh-badge {
  margin-inline: auto;
}
.fresh-badge-card__sub {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2b2b2d;
}
/* Compact chip variant (hero) — slight tilt for energy (§4) */
.fresh-badge-chip {
  display: inline-block;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) var(--space-5);
  transform: rotate(-1.5deg);
}

/* ---- §6 Differentiators ("why us") band ---- */
.why-band {
  background: var(--band-teal);
  color: var(--band-ink);
}
.why-band .section-head h2 { color: var(--band-ink); }
/* v4 (§2): charcoal eyebrow — gold/cream tints fail contrast on bright teal */
.why-band .section-head .eyebrow { color: #151516; }
.why-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.why-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.why-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.why-card--lead h3 { font-size: var(--text-2xl); }
.why-card--lead p { font-size: var(--text-base); }
.why-card .ps-accent { margin-bottom: var(--space-5); }

/* v5 (client request): the "No Case" band is the second WHO-WE-ARE explainer after the
   hero video — bigger headline, manifesto line, and an illustrative (line-art, clearly
   stylized, non-photographic) Old Way vs. Dapper Way strip. */
.why-band { padding-block: clamp(var(--space-16), 7vw, 7rem); }
.why-band__headline { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.08; }
.why-band__manifesto {
  color: var(--band-ink);
  opacity: 0.94;
  font-size: var(--text-lg);
  max-width: var(--measure-lede-lg); /* v12 (§1): fluid — was fixed 52ch */
  margin: var(--space-4) auto 0;
}
/* v12 (§1): the Old Way vs. Dapper Way comparison cards are a card MODULE, not
   flowing prose — the readability cap doesn't apply the same way, so this
   module grows substantially on wide monitors (--module-wide: 920 → 1480px)
   with proportionally more internal padding and larger icons, instead of
   sitting small and boxed-in at a fixed 920px. */
.why-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(var(--space-5), 1.5vw, var(--space-8));
  margin: var(--space-10) auto var(--space-8);
  max-width: var(--module-wide);
}
.why-vs__panel {
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-8), 2.5vw, var(--space-12));
  box-shadow: var(--shadow-md);
}
.why-vs__panel svg { width: clamp(60px, 3.5vw, 84px); height: auto; aspect-ratio: 60 / 45; margin-bottom: var(--space-4); display: block; }
.why-vs__panel h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
/* v12 (§1): card copy scales up slightly with the bigger cards on wide screens */
.why-vs__panel p { font-size: clamp(0.875rem, 0.75rem + 0.2vw, 1.0625rem); margin: 0; }
.why-vs__panel--old { background: #2a2a2c; color: #a9a9ae; }
.why-vs__panel--old h3 { color: #d9d9dd; }
.why-vs__panel--old svg { color: #8f8f95; }
.why-vs__panel--dapper { background: var(--color-surface); color: var(--color-text-muted); }
.why-vs__panel--dapper h3 { color: var(--color-text); }
.why-vs__panel--dapper svg { color: #e55395; }
.why-vs__badge {
  align-self: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f6b333; /* canonical gold — #151516 ink measures 10.9:1 on it */
  color: #151516;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-base);
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) {
  .why-vs { grid-template-columns: 1fr; gap: var(--space-4); }
  .why-vs__badge { justify-self: center; margin-block: calc(-1 * var(--space-3)); z-index: 1; }
}

/* ---- §3 Seasonal module (content-driven via data/seasonal.json) ---- */
.seasonal-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.seasonal-banner img { width: 100%; height: auto; display: block; }
.seasonal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

/* ---- §2 Category video banners (menu tabs) ---- */
.cat-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  background: #151516; /* v4 (§2): canonical near-black */
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-md);
}
@media (max-width: 700px) { .cat-video { aspect-ratio: 16 / 10; } }
.cat-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* v7 (§3) FIX — mobile "video pops up / goes fullscreen" bug: these videos are purely
     decorative/ambient. The ONLY intended interaction near them is the tab BUTTON — never
     the video surface. pointer-events: none makes the element untappable so no stray tap
     can ever trigger native mobile fullscreen/controls handling. Tab-switching play/pause
     is driven by JS (js/main.js), not user taps on the video, so it is unaffected.
     Do NOT remove. */
  pointer-events: none;
}
.cat-video__label {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  z-index: 2;
  background: rgba(21, 21, 22, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- §7 Color band helpers ----
   v4 (§2): bands are now the TRUE bright brand hexes (#00A59D / #E55395).
   Ink rules: white for large display headings only (AA large-text); charcoal
   #151516 for body, small text, eyebrows and outline buttons (≥ 4.6:1). */
.band--teal { background: var(--band-teal); color: var(--band-ink-body); }
.band--magenta { background: var(--band-magenta); color: var(--band-ink-body); }
.band--teal h2, .band--magenta h2 { color: var(--band-ink); }
.band--teal .text-muted, .band--magenta .text-muted { color: var(--band-ink-body); }
.band--teal .eyebrow, .band--magenta .eyebrow { color: #151516; }
.band--teal .btn--outline, .band--magenta .btn--outline {
  border-color: #151516;
  color: #151516;
}
.band--teal .btn--outline:hover, .band--magenta .btn--outline:hover {
  background: #151516;
  color: #ffffff;
}
/* Cards sitting ON a band keep theme-aware ink (their own surface bg differs
   from the band, so the band's charcoal-ink override must not leak in). */
.band--teal .card, .band--magenta .card,
.band--teal .cat-card, .band--magenta .cat-card {
  color: var(--color-text);
}
.band--teal .card .text-muted, .band--magenta .card .text-muted,
.band--teal .cat-card .text-muted, .band--magenta .cat-card .text-muted {
  color: var(--color-text-muted);
}

/* ---- v4 (§5): wide-gauge, faded pinstripe wallpaper ----
   The client's signature diagonal pinstripe, blown up to a wide ambient
   background texture at very low opacity — “subtle wallpaper” behind content,
   NOT a UI divider (dividers stay thin at 6–8px stripes; this runs 36px
   stripes on an 80px rhythm at ~7% strength). Used full-page on the Menu
   page, plus content-heavy sections on Locations and Events & Catering. */
.ps-wallpaper {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 165, 157, 0.07) 0 36px,
    rgba(0, 165, 157, 0) 36px 80px
  );
}
.ps-wallpaper--gold {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(246, 179, 51, 0.1) 0 36px,
    rgba(246, 179, 51, 0) 36px 80px
  );
}
.ps-wallpaper--magenta {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(229, 83, 149, 0.07) 0 36px,
    rgba(229, 83, 149, 0) 36px 80px
  );
}

/* v5 (pinstripe extension): white-gauge variant for SOLID brand-color bands
   (gold process band, magenta catering band) — same wide 36/80 rhythm, faint
   white so the band keeps its true color and its measured ink contrast. */
.ps-wallpaper--band {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0 36px,
    rgba(255, 255, 255, 0) 36px 80px
  );
}

/* ---- §1 Real photography helpers ---- */
.photo-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.photo-duo .photo-frame:last-child { transform: translateY(var(--space-8)); }
@media (max-width: 640px) {
  .photo-duo .photo-frame:last-child { transform: none; }
}
/* cache-bust: 1786689176 */
