/* ==========================================================================
   MAAZ'S CHICKEN - Demo 1 Design System
   Vanilla CSS, mobile-first. Tokens in :root map to future WP Customizer.
   Breakpoints: 375 (base) / 768 (tablet) / 1200 (desktop)
   ========================================================================== */

/* ---------- Google Fonts ---------- */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Brand colors */
  --color-primary: #f7941d;      /* orange */
  --color-primary-dark: #e07d0a; /* orange hover */
  --color-primary-deep: #a85f00; /* deep orange - white text passes WCAG AA (>=4.5:1) */
  --color-dark: #32373c;         /* dark gray */
  --color-dark-2: #23272b;       /* deeper gray */
  --color-accent: #cf2e2e;       /* red - campaign accent only */
  --color-bg: #ffffff;
  --color-bg-soft: #f5f5f5;
  --color-bg-warm: #fdf6ec;      /* warm hero background */

  /* Background palette (NO dark/near-black backgrounds anywhere).
     --color-dark #32373c is for TEXT and small accents only. */
  --bg-cream: #fff6ea;           /* warm cream */
  --bg-orange-soft: #ffe3bd;     /* light orange */
  --bg-orange: #f7941d;          /* brand orange, high-energy bands */

  /* Text */
  --color-text: #2b2f33;
  --color-text-soft: #5b6169;
  --color-text-invert: #ffffff;
  --color-border: #e6e6e6;

  /* Typography */
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --fs-eyebrow: 0.8125rem;   /* 13px */
  --fs-sm: 0.875rem;         /* 14px */
  --fs-base: 1rem;           /* 16px */
  --fs-lg: 1.125rem;         /* 18px */
  --fs-xl: 1.375rem;         /* 22px */
  --fs-2xl: 1.75rem;         /* 28px */
  --fs-3xl: 2.25rem;         /* 36px */
  --fs-4xl: 2.75rem;         /* 44px */
  --lh-tight: 1.15;
  --lh-body: 1.6;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;

  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 6px 18px rgba(0,0,0,.10);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.16);
  --shadow-food: 0 24px 48px rgba(0,0,0,.22);

  /* Layout */
  --container: 1200px;
  --header-h: 64px;
  --ctabar-h: 60px;         /* sticky bottom CTA height (mobile) */

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .35s;
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x lives on <html> (NOT body): on body it turns body into a sticky
   scroll-container which breaks position:sticky / fixed offsets in descendants. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  /* Room for the fixed header (top) and the fixed CTA bar (bottom) */
  padding-top: var(--header-h);
  padding-bottom: calc(var(--ctabar-h) + env(safe-area-inset-bottom, 0px));
}

/* Any element navigated to via #hash lands below the fixed header */
:target { scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: var(--lh-tight); margin: 0 0 var(--sp-4); font-weight: 700; }
p { margin: 0 0 var(--sp-4); }
a { color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }

.section { padding-block: var(--sp-7); }
.section--soft { background: var(--color-bg-soft); }
.section--cream { background: var(--bg-cream); }
/* was dark: now a warm cream band with a faint food-doodle texture, dark text */
.section--dark {
  background-color: var(--bg-cream);
  background-image: url("../images/deco/doodles.svg");
  background-size: 220px auto;
  color: var(--color-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-dark); }
.section--dark p { color: var(--color-text-soft); }
/* high-energy full brand-orange band (App section) - dark text for AA (~5:1) */
.section--brand {
  background-color: var(--bg-orange);
  background-image: url("../images/deco/doodles.svg");
  background-size: 220px auto;
  color: var(--color-dark);
}
.section--brand h1, .section--brand h2, .section--brand h3 { color: var(--color-dark); }
.section--brand p { color: var(--color-dark); }
.section--brand .eyebrow { color: var(--color-dark); }  /* orange-on-orange would vanish */

.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-eyebrow);
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary);
  margin: 0 0 var(--sp-2);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--sp-6); }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--color-text-soft); margin: 0; }
.text-accent { color: var(--color-accent); }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-base);
  padding: var(--sp-3) var(--sp-5); min-height: 48px;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--outline { background: transparent; color: var(--color-dark); border-color: var(--color-dark); }
.btn--outline:hover { background: var(--color-dark); color: #fff; }
.btn--light { background: #fff; color: var(--color-dark); }
.btn--light:hover { background: var(--color-bg-soft); }
.btn--ghost-invert { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-invert:hover { background: #fff; color: var(--color-dark); }
.btn--block { width: 100%; }
.btn--lg { font-size: var(--fs-lg); padding: var(--sp-4) var(--sp-6); min-height: 54px; }

/* ==========================================================================
   4. FOCUS / ACCESSIBILITY
   ========================================================================== */
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
.section--dark :focus-visible, .modal :focus-visible { outline-color: #ffd08a; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1200;
  background: var(--color-dark); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius) 0; font-family: var(--font-head); font-weight: 600;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   5. HEADER  (position: sticky - no transformed ancestors)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--color-border); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: var(--sp-4);
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-lg); color: var(--color-dark); white-space: nowrap; }

.primary-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--color-dark); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-in menu */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 340px);
  background: #fff; box-shadow: var(--shadow-lg); z-index: 300;
  transform: translateX(100%); transition: transform var(--dur) var(--ease);
  padding: calc(var(--header-h) + var(--sp-4)) var(--sp-5) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2); overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); text-decoration: none; padding: var(--sp-3) 0; border-bottom: 1px solid var(--color-border); color: var(--color-dark); }
.mobile-nav .btn { margin-top: var(--sp-4); }
.mobile-nav__close { position: absolute; top: var(--sp-3); right: var(--sp-3); width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; color: var(--color-dark); line-height: 1; }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 250;
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   6. HERO SLIDER
   ========================================================================== */
.hero {
  position: relative; background: var(--color-bg-warm);
  background-image: radial-gradient(circle at 20% 20%, rgba(247,148,29,.08) 0, transparent 45%),
                    radial-gradient(circle at 85% 15%, rgba(207,46,46,.06) 0, transparent 40%);
  overflow: hidden;
}
/* All slides are stacked in a single grid cell: the stage auto-sizes to the
   TALLEST slide (stable height, no layout shift) and slides overlap so they can
   crossfade. Only compositor-friendly properties (opacity/transform) animate.
   `isolation: isolate` keeps the slides' z-index inside this stacking context
   so the active slide can NOT paint over the sibling arrow controls. */
.hero__viewport { position: relative; display: grid; isolation: isolate; }
/* Slide change timeline (~1.35s, driven by slider.js toggling .is-active on the new
   slide and .is-leaving on the old one for 1s):
     0-250ms     outgoing text fades out + drifts up 12px
     250-950     image crossfade (opacity only; text and image never move together)
     600-900     kicker slides in from the left (20px)
     720-1170    title rises from behind its mask line
     900-1200    subtitle fades in
     1050-1350   buttons pop in (scale .92 -> 1, overshoot), landing last
     1350+       slow image zoom 1 -> 1.06 until the 6s slide time is up */
.hero__slide {
  grid-area: 1 / 1;
  padding-block: var(--sp-5);
  visibility: hidden; pointer-events: none; z-index: 1;
}
.hero__slide.is-active, .hero__slide.is-leaving { visibility: visible; }
.hero__slide.is-active { pointer-events: auto; z-index: 2; }
/* Idle (hidden) text sits in its entry pose so the next entrance starts from it */
.hero__text > * { opacity: 0; }
.hero__text .eyebrow { transform: translateX(-20px); }
.hero__text .hero__actions { transform: scale(.92); transform-origin: left center; }
.hero__title-mask {
  display: block; overflow: hidden;
  /* room for descenders / tight line-height inside the clip, cancelled by the margin */
  padding-block: .16em; margin-block: -.16em;
}
.hero__title-text { display: block; transform: translateY(calc(100% + .16em)); overflow-wrap: break-word; }
.hero__media { opacity: 0; }
/* Leaving: text drifts up and out first; image crossfades out after it */
.hero__slide.is-leaving .hero__text > * {
  opacity: 0; transform: translateY(-12px);
  transition: opacity .25s ease-out, transform .25s ease-out;
}
.hero__slide.is-leaving .hero__title-text { transform: translateY(0); }
.hero__slide.is-leaving .hero__media { transition: opacity .7s ease-in-out .25s; }
/* Entering */
.hero__slide.is-active .hero__text > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__text .eyebrow { transition: opacity .3s ease-out .6s, transform .3s ease-out .6s; }
.hero__slide.is-active .hero__title-text { transform: translateY(0); transition: transform .45s cubic-bezier(.22, 1, .36, 1) .72s; }
.hero__slide.is-active .hero__text .hero__sub { transition: opacity .3s ease-out .9s; }
.hero__slide.is-active .hero__text .hero__actions { transition: opacity .3s ease-out 1.05s, transform .3s cubic-bezier(.34, 1.56, .64, 1) 1.05s; }
.hero__slide.is-active .hero__media { opacity: 1; transition: opacity .7s ease-in-out .25s; }
/* Slow zoom after the text has landed; keeps running while the slide fades out */
.hero:not(.hero--single) .hero__slide.is-active .hero__media img,
.hero:not(.hero--single) .hero__slide.is-leaving .hero__media img {
  animation: hero-zoom 4.65s linear 1.35s both;
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero.is-paused .hero__media img { animation-play-state: paused !important; }
.hero__grid { display: grid; gap: var(--sp-4); align-items: center; }
.hero__text .eyebrow { color: var(--color-accent); }
.hero__title { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); color: var(--color-dark); }
.hero__sub { font-size: var(--fs-lg); color: var(--color-text-soft); margin-bottom: var(--sp-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__media { position: relative; text-align: center; }
/* Landscape 4:3 photo. On mobile capped at 45vh so eyebrow + headline + sub +
   both buttons + part of the photo fit the first viewport without scrolling. */
.hero__media img {
  width: 100%; height: auto; max-width: 440px; margin-inline: auto;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
  max-height: 45vh; border-radius: var(--radius-lg);
  filter: drop-shadow(var(--shadow-food));
}

/* Slider controls (above the isolated viewport so clicks always land) */
.hero__arrows { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hero__arrow {
  pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm); cursor: pointer; display: none; align-items: center; justify-content: center;
  color: var(--color-dark);
}
.hero__arrow:hover { background: #fff; }
.hero__arrow--prev { left: var(--sp-3); }
.hero__arrow--next { right: var(--sp-3); }

/* French-fry indicators: each dot is a little CLUSTER of 4-5 fries */
.hero__fries {
  display: flex; align-items: flex-end; justify-content: center; gap: 14px;
  padding-block: var(--sp-4) var(--sp-6); min-height: 44px;
}
.fry {
  padding: 8px 5px; border: 0; cursor: pointer; background: transparent;
  display: inline-flex; align-items: flex-end; gap: 2px;
}
/* each stick */
.fry span {
  display: block; width: 4px; border-radius: 3px 3px 1px 1px;
  background: #e0b583; /* inactive: light gray-orange */
  transition: height var(--dur) var(--ease), background var(--dur) var(--ease);
}
/* uneven natural heights */
.fry span:nth-child(1) { height: 14px; }
.fry span:nth-child(2) { height: 18px; }
.fry span:nth-child(3) { height: 16px; }
.fry span:nth-child(4) { height: 19px; }
.fry span:nth-child(5) { height: 15px; }
/* active: taller; an orange fill grows up each stick over the slide's 6s (progress
   bar, transform only). Paused with the autoplay (.hero.is-paused) and resumes in place. */
.fry span { position: relative; overflow: hidden; }
.fry span::after {
  content: ""; position: absolute; inset: 0; background: var(--color-primary);
  transform: scaleY(0); transform-origin: bottom;
}
.fry.is-active span { box-shadow: 0 2px 6px rgba(247,148,29,.45); }
.fry.is-active span::after { animation: fry-fill 6s linear forwards; }
@keyframes fry-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero.is-paused .fry.is-active span::after { animation-play-state: paused; }
.fry.is-active span:nth-child(1) { height: 20px; }
.fry.is-active span:nth-child(2) { height: 26px; }
.fry.is-active span:nth-child(3) { height: 23px; }
.fry.is-active span:nth-child(4) { height: 27px; }
.fry.is-active span:nth-child(5) { height: 21px; }
.fry:hover span { background: #d59a52; }

/* Pause / play button: same look as the arrows, bottom-right of the slider */
.hero__pause {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-dark);
}
.hero__pause:hover { background: #fff; }
.hero__pause-icon--play, .hero.is-user-paused .hero__pause-icon--pause { display: none; }
.hero.is-user-paused .hero__pause-icon--play { display: block; }
/* Focus ring on the controls: deep orange passes 3:1 on cream and on white */
.hero__pause:focus-visible, .hero__arrow:focus-visible, .fry:focus-visible { outline-color: var(--color-primary-deep); }

/* ==========================================================================
   6b. PROMOTIONS SECTION (bold Facebook-style poster banners, HTML/CSS/SVG).
       Each banner shares one DOM shape -> maps to a future WP "Promotions"
       post type with photo + location + date-window + headline fields.
   ========================================================================== */
/* hand-drawn squiggle underline for the section title */
.has-squiggle { display: inline-block; }
.has-squiggle::after {
  content: ""; display: block; height: 12px; margin-top: 6px;
  background: url("../images/deco/squiggle.svg") left center / 100% 100% no-repeat;
}
.promo-list { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }

.promo-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 240px; color: #fff; box-shadow: var(--shadow); isolation: isolate;
}
.promo-banner__bg { position: absolute; inset: 0; z-index: 0; }
.promo-banner__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* photo scrim (photo treatment for text readability, not a section bg) - lightened */
.promo-banner__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.42) 46%, rgba(0,0,0,.08) 100%);
}
.promo-banner__inner {
  position: relative; z-index: 2; min-height: inherit;
  padding: var(--sp-5); max-width: 34rem;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--sp-3);
}
/* location pill: deep orange so white text passes AA (red reserved for kicker) */
.promo-banner__pill {
  display: inline-flex; align-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-eyebrow);
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: var(--color-primary-deep); padding: 5px 12px; border-radius: var(--radius-pill);
}
.promo-banner__title {
  margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  font-family: var(--font-head); text-transform: uppercase; line-height: .95;
}
/* red brush-ribbon kicker (reusable SVG) */
.promo-banner__kicker {
  position: relative; isolation: isolate; display: inline-block;
  font-weight: 800; font-size: clamp(.8rem, 2.8vw, 1.2rem); color: #fff;
  letter-spacing: .01em; padding: .14em .12em;
}
.promo-banner__kicker::before {
  content: ""; position: absolute; inset: -.18em -.7em; z-index: -1;
  background: url("../images/deco/ribbon.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.28));
}
.promo-banner__big {
  font-weight: 800; font-size: clamp(1.9rem, 8vw, 3.2rem); color: #ffd23f;
  text-shadow: 2px 3px 0 rgba(0,0,0,.5);
}
.promo-banner__sub { margin: 0; font-size: var(--fs-base); color: rgba(255,255,255,.92); max-width: 32ch; }
.promo-banner__cta { margin-top: var(--sp-1); }
/* optional black splat badge with yellow burst ticks
   (uses the individual `rotate` property so the reveal `scale` pop composes) */
.promo-banner__splat {
  position: absolute; z-index: 3; top: 10px; right: 10px;
  width: clamp(88px, 24vw, 122px); aspect-ratio: 1; rotate: -8deg;
  display: grid; place-items: center; text-align: center;
  background: url("../images/deco/splat.svg") center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.promo-banner__splat span {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(.5rem, 1.9vw, .68rem); line-height: 1.05; color: #ffd23f; max-width: 78%;
}

/* ==========================================================================
   6c. SCROLL-REVEAL + HOVER (IntersectionObserver adds .is-revealed once).
       All motion is gated on .has-reveal (set by JS) so it never hides content
       when JS is off, and on prefers-reduced-motion (disabled entirely).
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* base hidden state only once JS is ready. Uses the individual `translate`
     property so it never collides with the hover `transform` lift. The hover
     transitions are folded in here because this rule (higher specificity)
     replaces the whole `transition` list on these elements. */
  .has-reveal [data-reveal] {
    opacity: 0; translate: 0 24px;
    transition: opacity .5s ease-out, translate .5s ease-out, transform .2s ease, box-shadow .2s ease;
  }
  .has-reveal [data-reveal].is-revealed { opacity: 1; translate: 0 0; }

  /* Promotion banner internal sequence: card up -> ribbon slides in -> splat pops */
  .has-reveal .promo-banner .promo-banner__kicker {
    opacity: 0; transform: translateX(-40px) rotate(-3deg);
    transition: opacity .4s ease-out .15s, transform .4s ease-out .15s;
  }
  .has-reveal .promo-banner.is-revealed .promo-banner__kicker { opacity: 1; transform: translateX(0) rotate(0); }

  .has-reveal .promo-banner .promo-banner__splat { opacity: 0; scale: .6; }
  .has-reveal .promo-banner.is-revealed .promo-banner__splat { animation: splatPop .35s ease-out .3s both; }
  @keyframes splatPop {
    0%   { opacity: 0; scale: .6; }
    70%  { opacity: 1; scale: 1.08; }
    100% { opacity: 1; scale: 1; }
  }
}

/* Hover lift for banners + offer cards (gentle). Reduced motion -> shadow only. */
.promo-banner, .offer-card { transition: transform .2s ease, box-shadow .2s ease; }
.promo-banner:hover, .offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) {
  .promo-banner:hover, .offer-card:hover { transform: none; box-shadow: var(--shadow-lg); }
}

/* ==========================================================================
   7. CARDS / GRIDS
   ========================================================================== */
.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--auto { grid-template-columns: 1fr; }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  text-decoration: none; color: inherit;
}
.card:hover { box-shadow: var(--shadow); }
a.card:hover, .card--link:hover { transform: translateY(-4px); }
.card__media { position: relative; aspect-ratio: 3 / 2; background: var(--color-bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__title { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); margin: 0; }
.card__desc { color: var(--color-text-soft); font-size: var(--fs-sm); margin: 0; }
.card__cat { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: .08em; color: var(--color-primary); font-family: var(--font-head); font-weight: 600; }
.card__foot { margin-top: auto; padding-top: var(--sp-2); }

/* Category card (image + name overlay) */
.cat-card { position: relative; }
.cat-card .card__media { aspect-ratio: 4 / 3; }
.cat-card__label {
  position: absolute; inset: auto 0 0 0; padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg);
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

/* Offer card with ribbon */
.offer-card { position: relative; }
/* offer-card ribbon: deep orange (AA with white text); red reserved for promos */
.ribbon {
  position: absolute; top: 14px; left: -6px; z-index: 2;
  background: var(--color-primary-deep); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: var(--fs-eyebrow); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px 6px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}
.ribbon::after {
  content: ""; position: absolute; left: 0; top: 100%;
  border: 3px solid var(--color-primary-deep); border-left-color: transparent; border-bottom-color: transparent;
  filter: brightness(.7);
}

/* ==========================================================================
   8. TRUST STRIP / ICONS
   ========================================================================== */
.trust-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.trust-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); text-decoration: none; color: inherit; }
.trust-item__icon { width: 52px; height: 52px; color: var(--color-primary); }
.trust-item__icon svg { width: 100%; height: 100%; }
.trust-item h3 { font-size: var(--fs-lg); margin: 0; }
.trust-item p { font-size: var(--fs-sm); color: var(--color-text-soft); margin: 0; }
a.trust-item:hover h3 { color: var(--color-primary); }

/* ==========================================================================
   9. SPLIT / STORY
   ========================================================================== */
.split { display: grid; gap: var(--sp-5); align-items: center; }
.split__media { position: relative; }
/* landscape photos: fixed 3:2 box, cover-cropped from center so they never
   collapse or render as an empty card while loading */
.split__media img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--color-bg-soft);
}
.badge-overlay {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4);
  background: var(--color-primary); color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: var(--fs-sm); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   10. APP SECTION / PHONE MOCKUP
   ========================================================================== */
.app-grid { display: grid; gap: var(--sp-6); align-items: center; }
.app-badge { display: inline-block; }
.app-badge svg { height: 52px; width: auto; }
.phone {
  width: 240px; max-width: 70vw; aspect-ratio: 9 / 18; margin-inline: auto;
  background: #000; border-radius: 34px; padding: 10px; box-shadow: var(--shadow-lg);
  border: 2px solid #444;
}
.phone__screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; position: relative; display: grid; grid-template-rows: auto 1fr; }
.phone__bar { background: var(--color-primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm); padding: 14px var(--sp-3) var(--sp-3); text-align: center; }
.phone__shot { position: relative; min-height: 0; overflow: hidden; }
.phone__shot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   11. LOCATIONS
   ========================================================================== */
.loc-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.loc-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.loc-card__photo {
  aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: var(--sp-4);
  background: linear-gradient(135deg, var(--bg-orange-soft), var(--color-primary));
  color: var(--color-dark); font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xl);
}
/* Optional location photo (DATA-CONTRACT photo_id): fills the same aspect-ratio box as the name tile (no layout
   shift); the name sits bottom-left on a dark bottom scrim (.6 black by 40%, .75 at the bottom) with a soft text shadow:
   white text keeps >= 3:1 (large bold text) at the glyph tops even over a pure white photo. */
.loc-card__photo--image { position: relative; padding: 0; overflow: hidden; }
.loc-card__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.loc-card__photo-name {
  position: relative; z-index: 1; width: 100%; padding: var(--sp-6) var(--sp-4) var(--sp-4);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .6) 40%, rgba(0, 0, 0, .75) 100%); color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.loc-card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.loc-card__addr { font-size: var(--fs-sm); color: var(--color-text-soft); margin: 0; }
.loc-card__hours { font-size: var(--fs-sm); margin: 0; }
.loc-card__hours--week { list-style: none; padding: 0; }
/* Coming-soon label (replaces the hours line); dark text keeps AA contrast on white and the soft footer */
.loc-soon { font-family: var(--font-head); font-weight: 600; color: var(--color-dark); }
.loc-card__actions { margin-top: auto; display: flex; gap: var(--sp-2); padding-top: var(--sp-3); }
.loc-card__actions .btn { flex: 1; padding-inline: var(--sp-3); font-size: var(--fs-sm); min-height: 44px; }

/* ==========================================================================
   12. ORDER TILES
   ========================================================================== */
.order-tiles { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.order-tile {
  border: 0; cursor: pointer; text-align: left; color: var(--color-dark); border-radius: var(--radius-lg);
  padding: var(--sp-6); min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-1);
  box-shadow: var(--shadow); font-family: var(--font-body);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.order-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Delivery: energetic orange; Pickup: white with an orange border to contrast it.
   Both use dark text (#32373c) so they pass WCAG AA. */
.order-tile--delivery { background: linear-gradient(135deg, var(--color-primary), #ffab3d); }
.order-tile--pickup { background: #fff; border: 2px solid var(--color-primary); }
.order-tile h3 { font-size: var(--fs-2xl); margin: 0; color: var(--color-dark); }
.order-tile p { margin: 0; color: var(--color-dark); opacity: .85; }

/* ==========================================================================
   13. PAGE HERO / BREADCRUMB
   ========================================================================== */
/* light-orange page hero with faint food-doodle texture + squiggle under title */
.page-hero {
  position: relative;
  background-color: var(--bg-orange-soft);
  background-image: url("../images/deco/doodles.svg");
  background-size: 220px auto;
  color: var(--color-dark); padding-block: var(--sp-6); text-align: center;
}
.page-hero h1 {
  color: var(--color-dark); font-size: var(--fs-3xl); margin-bottom: var(--sp-3);
  display: inline-block;
}
.page-hero h1::after {
  content: ""; display: block; height: 12px; margin-top: 8px;
  background: url("../images/deco/squiggle.svg") center / 90% 100% no-repeat;
}
.page-hero p { color: var(--color-text-soft); margin: 0; font-size: var(--fs-lg); }
.page-hero .quote-hero { color: var(--color-dark); }
.breadcrumb { font-size: var(--fs-sm); color: var(--color-text-soft); padding-block: var(--sp-4); }
.breadcrumb a { color: var(--color-text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span[aria-current] { color: var(--color-text); font-weight: 600; }

/* ==========================================================================
   14. MENU PAGE
   ========================================================================== */
.cat-subnav {
  position: sticky; top: var(--header-h); z-index: 100; background: #fff;
  border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.cat-subnav__scroll { display: flex; gap: var(--sp-2); overflow-x: auto; padding: var(--sp-3) var(--sp-4); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cat-subnav a {
  flex: 0 0 auto; white-space: nowrap; text-decoration: none; font-family: var(--font-head); font-weight: 600;
  font-size: var(--fs-sm); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-pill);
  color: var(--color-text-soft); background: var(--color-bg-soft);
}
.cat-subnav a.is-active { background: var(--color-primary); color: #fff; }
/* land below BOTH the fixed header and the sticky category sub-nav */
.menu-cat { padding-top: var(--sp-6); scroll-margin-top: calc(var(--header-h) + 72px); }
.menu-cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.menu-cat__head h2 { font-size: var(--fs-2xl); margin: 0; }
.menu-cat__head p { margin: 0; color: var(--color-text-soft); font-size: var(--fs-sm); }

/* ==========================================================================
   15. PRODUCT PAGE
   ========================================================================== */
.product { display: grid; gap: var(--sp-5); align-items: start; }
.product__media { background: var(--color-bg-soft); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.product__media img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
  /* never taller than ~520px, and never taller than the viewport minus the
     fixed header and the fixed bottom CTA bar */
  max-height: min(520px, calc(100vh - var(--header-h) - var(--ctabar-h) - 2 * var(--sp-5)));
}
.product__cat { display: inline-block; margin-bottom: var(--sp-2); }
.product__title { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.product__desc { font-size: var(--fs-lg); color: var(--color-text-soft); }
.product__trust { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--color-dark); margin-block: var(--sp-4); }
.product__trust span { display: inline-flex; align-items: center; gap: 6px; }
.dot-sep { color: var(--color-border); }

/* ==========================================================================
   16. FORMS
   ========================================================================== */
.form { display: grid; gap: var(--sp-4); }
.form-row { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); }
.field .req { color: var(--color-accent); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--color-text);
  padding: var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: #fff; width: 100%; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); outline: 2px solid rgba(247,148,29,.3); outline-offset: 0; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--color-accent); }
.field__error { color: var(--color-accent); font-size: var(--fs-sm); min-height: 1.1em; }
.choice-group { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.choice { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.choice input { width: auto; min-height: 0; }
/* Consent: the checkbox sits beside the first line of a multi-line sentence. */
.field--consent .choice { align-items: flex-start; }
.field--consent .choice input { flex-shrink: 0; margin: .3em 0 0; }
.field__help { margin: 0; color: var(--color-text-soft); font-size: var(--fs-sm); }
.form-success {
  background: #eaf7ee; border: 1px solid #b6e2c4; color: #1f7a3d; border-radius: var(--radius);
  padding: var(--sp-5); text-align: center; font-family: var(--font-head); font-weight: 600;
}
.form-success[hidden] { display: none; }

/* How it works steps */
.steps { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; counter-reset: step; }
.step { text-align: center; }
.step__num { width: 48px; height: 48px; margin: 0 auto var(--sp-3); border-radius: 50%; background: var(--color-primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-lg); display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--color-text-soft); margin: 0; }

/* Checklist */
.checklist { display: grid; gap: var(--sp-3); }
.checklist li { display: flex; align-items: flex-start; gap: var(--sp-3); }
.checklist svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--color-primary); margin-top: 2px; }

/* ==========================================================================
   17. CAREERS / POSITIONS
   ========================================================================== */
.position-card { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; padding: var(--sp-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.position-card h3 { margin: 0 0 4px; font-size: var(--fs-lg); }
.position-card p { margin: 0; color: var(--color-text-soft); font-size: var(--fs-sm); }
.position-card p.position-card__pay { margin-top: var(--sp-2); color: var(--color-dark); font-family: var(--font-head); font-weight: 600; overflow-wrap: anywhere; }

/* ==========================================================================
   18. ABOUT / TIMELINE
   ========================================================================== */
.chapter { padding-block: var(--sp-6); }
.pull-quote { text-align: center; max-width: 760px; margin-inline: auto; padding-block: var(--sp-7); }
.pull-quote blockquote { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-2xl); line-height: 1.3; margin: 0 0 var(--sp-3); color: var(--color-dark); }
.pull-quote cite { color: var(--color-primary); font-style: normal; font-weight: 600; }
.quote-hero { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-2xl); font-style: italic; }

.timeline { position: relative; display: grid; gap: var(--sp-5); grid-template-columns: 1fr; padding-left: var(--sp-5); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; background: var(--color-primary); border-radius: 2px; }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: calc(-1 * var(--sp-5) + 1px); top: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--color-primary); }
.timeline__item h3 { font-size: var(--fs-base); margin: 0 0 2px; }
.timeline__item p { font-size: var(--fs-sm); color: var(--color-text-soft); margin: 0; }

.photo-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
.photo-grid .loc-card__photo { border-radius: var(--radius); aspect-ratio: 4 / 3; }

/* ==========================================================================
   19. QUICK ANSWERS (contact)
   ========================================================================== */
.qa { display: grid; gap: var(--sp-4); }
.qa__item { border-bottom: 1px solid var(--color-border); padding-bottom: var(--sp-3); }
.qa__item h3 { font-size: var(--fs-base); margin: 0 0 var(--sp-1); }
.qa__item p { font-size: var(--fs-sm); color: var(--color-text-soft); margin: 0; }
.qa__item a { color: var(--color-primary); text-decoration: none; font-weight: 600; }

/* ==========================================================================
   20. CTA BAND
   ========================================================================== */
/* orange CTA band with dark text for AA (~5:1) */
.cta-band { background: var(--color-primary); color: var(--color-dark); text-align: center; padding-block: var(--sp-6); }
.cta-band h2 { color: var(--color-dark); font-size: var(--fs-2xl); }
.cta-band p { color: var(--color-dark); opacity: .9; }

/* ==========================================================================
   21. FOOTER
   ========================================================================== */
/* cream footer with a 4px brand-orange top border; dark text */
.site-footer { background: var(--bg-cream); color: var(--color-dark); border-top: 4px solid var(--color-primary); padding-block: var(--sp-7) var(--sp-6); }
.site-footer a { color: var(--color-dark); text-decoration: none; }
.site-footer a:hover { color: var(--color-primary-dark); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
/* transparent dark logo on cream - natural aspect (130x72), never squished.
   width/height auto overrides the img's width="130" attribute so height:auto
   can restore the real ratio; capped by max-width. */
.footer-brand img { width: auto; height: auto; max-width: 130px; margin-bottom: var(--sp-3); }
.footer-brand p { color: var(--color-text-soft); }
.footer-col h3 { font-size: var(--fs-base); color: var(--color-dark); margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: .06em; }
.footer-col li { margin-bottom: var(--sp-2); font-size: var(--fs-sm); }
.footer-locs address { font-style: normal; font-size: var(--fs-sm); line-height: 1.5; margin-bottom: var(--sp-3); color: var(--color-text-soft); }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); }
/* orange circles, white glyphs */
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--color-primary-dark); }
.footer-social svg { width: 20px; height: 20px; }
/* copyright + legal links: stacked centered on mobile, split row on desktop */
.footer-bottom {
  border-top: 1px solid var(--color-border); margin-top: var(--sp-6); padding-top: var(--sp-4);
  font-size: var(--fs-sm); color: var(--color-text-soft);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); text-align: center;
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   22. STICKY BOTTOM CTA BAR  (position: fixed - NO transformed ancestor)
   ========================================================================== */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--color-primary); box-shadow: 0 -4px 16px rgba(0,0,0,.18);
  padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom, 0px));
}
.cta-bar__inner { display: flex; gap: var(--sp-2); max-width: var(--container); margin-inline: auto; align-items: stretch; }
.cta-bar .btn { flex: 1; min-height: 44px; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); }
.cta-bar__order { background: #fff; color: var(--color-dark); }
.cta-bar__order:hover { background: var(--color-bg-soft); }
.cta-bar__app { background: #000; color: #fff; border-color: #000; gap: 8px; }
.cta-bar__app:hover { background: #1a1a1a; }
.cta-bar__app svg { width: 18px; height: 18px; flex: 0 0 auto; }
.cta-bar__app small { display: block; font-size: 9px; font-weight: 400; line-height: 1; opacity: .85; }
.cta-bar__app b { display: block; font-size: 13px; line-height: 1.1; }
.cta-bar__app .badge-txt { text-align: left; }

/* ==========================================================================
   23. ORDER MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400; background: rgba(30,20,10,.6);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-4);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 440px; width: 100%;
  padding: var(--sp-6) var(--sp-5) var(--sp-5); text-align: center; position: relative;
  box-shadow: var(--shadow-lg); transform: translateY(12px); transition: transform var(--dur) var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0); }
.modal__close { position: absolute; top: var(--sp-3); right: var(--sp-3); width: 44px; height: 44px; border: 0; background: var(--color-bg-soft); border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--color-dark); }
.modal__close:hover { background: var(--color-border); }
.modal__logo { height: 44px; width: auto; margin: 0 auto var(--sp-4); }
.modal h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.modal p { color: var(--color-text-soft); margin-bottom: var(--sp-5); }
.modal__actions { display: grid; gap: var(--sp-3); }
.modal__link { background: none; border: 0; color: var(--color-text-soft); text-decoration: underline; cursor: pointer; font-family: var(--font-body); font-size: var(--fs-sm); margin-top: var(--sp-4); padding: var(--sp-2); }
.modal__link:hover { color: var(--color-primary); }

/* ==========================================================================
   24. UTILITIES / HELPERS
   ========================================================================== */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.stack-btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.lead { font-size: var(--fs-lg); color: var(--color-text-soft); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   25. BREAKPOINT: 768px (tablet)
   ========================================================================== */
@media (min-width: 768px) {
  :root { --header-h: 72px; --ctabar-h: 64px; }
  .section { padding-block: var(--sp-8); }
  .section-head h2 { font-size: var(--fs-3xl); }

  .grid--2, .grid--auto { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .order-tiles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form-row--2 { grid-template-columns: 1fr 1fr; }
  .form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

  .hero__title { font-size: var(--fs-4xl); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 2fr; }
  .footer-locs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  /* footer bottom: copyright left, legal links right */
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; gap: var(--sp-4); }
  .timeline { grid-template-columns: repeat(5, 1fr); padding-left: 0; padding-top: var(--sp-6); }
  .timeline::before { left: 6px; right: 6px; top: 7px; bottom: auto; width: auto; height: 3px; }
  .timeline__item::before { left: 0; top: calc(-1 * var(--sp-6) + 1px); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-band__inner { display: flex; align-items: center; justify-content: center; gap: var(--sp-5); }

  /* promotions: featured banner full-width, the two local deals sit 2-up */
  .promo-list { grid-template-columns: 1fr 1fr; }
  .promo-banner--wide { grid-column: 1 / -1; min-height: 300px; }
  .promo-banner__inner { padding: var(--sp-6); }
  .promo-banner--wide .promo-banner__splat {
    top: 50%; right: 6%; transform: translateY(-50%); rotate: -8deg; width: clamp(120px, 15vw, 152px);
  }
}

/* ==========================================================================
   26. BREAKPOINT: 1200px (desktop)
   ========================================================================== */
@media (min-width: 1200px) {
  .primary-nav { display: flex; align-items: center; gap: var(--sp-5); }
  .primary-nav a { text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-base); color: var(--color-dark); padding: var(--sp-2) 0; position: relative; }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--color-primary); }
  .primary-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-primary); border-radius: 2px; }
  .nav-toggle { display: none; }

  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--2 { grid-template-columns: repeat(4, 1fr); }
  .loc-grid { grid-template-columns: repeat(4, 1fr); }

  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--sp-7); }
  .hero__slide { padding-block: var(--sp-8); }
  .hero__title { font-size: 3.25rem; }
  .hero__arrow { display: inline-flex; }
  /* side-by-side hero: let the photo breathe (relax the mobile 45vh cap) */
  .hero__media img { max-height: 62vh; max-width: 560px; }

  /* promotions desktop: taller featured banner */
  .promo-banner { min-height: 260px; }
  .promo-banner--wide { min-height: 340px; }
}

/* ==========================================================================
   27. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  /* instant swap: opacity only, no slide/translate (scoped so arrow centering
     transforms are untouched) */
  .hero__slide, .hero__text > * { transform: none !important; transition-delay: 0ms !important; }
  /* Hero: plain crossfades only. Autoplay still runs (slider.js, 6s); the active fry
     shows filled instead of animating, and there is no zoom / drift / rise / pop. */
  .hero__slide .hero__text > *, .hero__slide .hero__media {
    transition-duration: .4s !important; transition-delay: 0s !important;
  }
  .hero__slide .hero__title-text { transform: none !important; transition: none !important; }
  .hero__slide .hero__media img { animation: none !important; }
  .fry.is-active span::after { animation: none !important; transform: scaleY(1); }
}

/* ==========================================================================
   28. WORDPRESS ADDITIONS (not in Demo 1)
   Sections 1-27 above are Demo 1 css/style.css verbatim (only the Google Fonts
   @import is removed: WordPress enqueues the fonts). Sections 28-31 only style
   WP-only things and never change a Demo 1 value of a demo element.
   ========================================================================== */
/* "or browse the menu first" is a link in WP (a <button> in the demo): give it the
   button's box. Font family/size, padding, border and background come from
   .modal__link; these reset what a <button> gets from the UA instead of inheriting. */
a.modal__link {
  display: inline-block; line-height: normal; font-weight: 400; font-style: normal;
  letter-spacing: normal; text-transform: none; text-indent: 0;
}
/* Order tile title/text are spans (no headings or paragraphs inside a <button>):
   these give them the computed style of the demo's .order-tile h3 / p
   (h1-h4 base rule + .order-tile h3; .order-tile p). */
.order-tile__title {
  display: block; font-family: var(--font-head); line-height: var(--lh-tight); font-weight: 700;
  font-size: var(--fs-2xl); margin: 0; color: var(--color-dark);
}
.order-tile__text { display: block; margin: 0; color: var(--color-dark); opacity: .85; }
/* One slide = no .hero__fries row (hero.php adds .hero--single; never with 2+ slides).
   Without it the hero ended 24px under the photo and clipped its --shadow-food drop
   shadow. Keep 120px under the photo at every width: 24px slide padding + 96px here,
   64px + 56px at 1200px+. */
.hero--single { padding-bottom: calc(var(--sp-8) + var(--sp-6)); }
@media (min-width: 1200px) {
  .hero--single { padding-bottom: calc(var(--sp-7) + var(--sp-2)); }
}
/* footer-bottom legal links ('legal' menu location): footer-bottom type, links inherit colour,
   middot separators, wraps on small screens. */
.footer-legal__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-1) var(--sp-4);
}
/* middot separators only from 768px; on small screens they wrapped onto their own line, so use the gap instead */
@media (min-width: 768px) {
  .footer-legal__list { gap: var(--sp-1) 0; }
  .footer-legal__list li + li::before {
    content: "\00B7"; content: "\00B7" / ""; /* decorative: empty alt text where supported */
    margin-inline: var(--sp-2); color: var(--color-text-soft);
  }
}
.site-footer .footer-legal__list a { color: inherit; }
.site-footer .footer-legal__list a:hover { color: var(--color-primary-deep); text-decoration: underline; }
/* footer-bottom now holds copyright + legal list (2 items, like the demo); the wrap rule below is a harmless safety net for narrow tablets */
@media (min-width: 768px) {
  .footer-bottom:has(.footer-legal) { flex-wrap: wrap; } /* only when the WP-only legal row is present (demo .footer-bottom stays nowrap) */
}
/* logged-in admin bar: keep the fixed header and mobile nav below it,
   and the sticky menu category bar below the header */
.admin-bar .site-header, .admin-bar .mobile-nav { top: 32px; }
.admin-bar .cat-subnav { top: calc(var(--header-h) + 32px); }
.admin-bar .menu-cat { scroll-margin-top: calc(var(--header-h) + 72px + 32px); } /* native #slug landing (no JS) */
@media screen and (max-width: 782px) {
  .admin-bar .site-header, .admin-bar .mobile-nav { top: 46px; }
  .admin-bar .cat-subnav { top: calc(var(--header-h) + 46px); }
  .admin-bar .menu-cat { scroll-margin-top: calc(var(--header-h) + 72px + 46px); }
}
/* below 600px the admin bar is not fixed (it scrolls away) */
@media screen and (max-width: 600px) {
  .admin-bar .site-header, .admin-bar .mobile-nav { top: 0; }
  .admin-bar .cat-subnav { top: var(--header-h); }
  .admin-bar .menu-cat { scroll-margin-top: calc(var(--header-h) + 72px); }
}


/* ==========================================================================
   29. A2 ADDITIONS: HOME (not in Demo 1 style.css)
   Front page rules: Demo 1 inline styles as classes, missing-image
   placeholders, order tiles as links when ordering is on.
   ========================================================================== */

/* Demo 1 inline style="margin-top:var(--sp-6)" on the "View Full Menu" row. */
.u-mt-6 { margin-top: var(--sp-6); }

/* Missing image: the demo's placeholder box (render.js
   style="width:100%;height:100%;background:var(--color-bg-soft)"), never a broken image.
   Each context below gives it the box the real image would have. */
.media-placeholder { display: block; width: 100%; height: 100%; background: var(--color-bg-soft); }

/* hero: same box as .hero__media img (4:3, capped like the photo) */
.hero__media .media-placeholder {
  aspect-ratio: 4 / 3; height: auto; max-width: 440px; max-height: 45vh; margin-inline: auto;
  border-radius: var(--radius-lg);
}
@media (min-width: 1200px) {
  .hero__media .media-placeholder { max-width: 560px; max-height: 62vh; }
}

/* promo banner background: dark stand-in so the white banner text keeps its contrast */
.promo-banner__bg.media-placeholder { position: absolute; inset: 0; z-index: 0; background: var(--color-dark-2); }

/* story split: same box as .split__media img */
.split__media .media-placeholder {
  aspect-ratio: 3 / 2; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}

/* Order tiles render as links when online ordering is on (buttons in the demo). */
a.order-tile { text-decoration: none; }

/* ==========================================================================
   30. A2 ADDITIONS: MENU + PRODUCT (not in Demo 1 style.css)
   Menu page (template-menu.php) and single product rules:
   1. Classes replacing Demo 1 inline style="" attributes (same values).
   2. Missing-image placeholder on the product page.
   3. Ordering ON only: cards with price + add-to-cart, and the add-to-cart form.
   ========================================================================== */

/* 1. Demo 1 inline styles -> classes */
/* menu.html CTA band: h2 style="margin-bottom:var(--sp-1)", p style="margin:0" */
.cta-band__title { margin-bottom: var(--sp-1); }
.cta-band__text { margin: 0; }
/* product.html: section style="padding-top:0" */
.section.section--flush-top { padding-top: 0; }
/* product.js related head: style="margin-bottom:var(--sp-5)" */
.section-head--tight { margin-bottom: var(--sp-5); }
/* product.js checkSvg(): style="color:var(--color-primary)" */
.product__check { color: var(--color-primary); }

/* 2. Product without a featured image: the image box, empty (like .card__media) */
.product__placeholder {
  width: 100%; aspect-ratio: 4 / 3; background: var(--color-bg-soft);
  max-height: min(520px, calc(100vh - var(--header-h) - var(--ctabar-h) - 2 * var(--sp-5)));
}

/* 3. Ordering ON (Mise ordering module) */
.card--shop .card__media { display: block; }
.card--shop .card__title a { color: inherit; text-decoration: none; }
.card--shop .card__title a:hover { color: var(--color-primary); }
.card--shop .card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.card--shop .price { font-family: var(--font-head); font-weight: 600; color: var(--color-dark); }
.card--shop .card__foot .btn { min-height: 44px; font-size: var(--fs-sm); padding-inline: var(--sp-4); }
.product__buy { margin-top: var(--sp-4); }
/* The product box is div.product, so WooCommerce's ".woocommerce div.product ..." rules
   (olive price, floats, purple button) match it: these selectors outrank them. */
.product .product__info .product__buy .price { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xl); color: var(--color-dark); margin: 0 0 var(--sp-3); }
.product .product__info .product__buy form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin: 0; }
.product .product__info .product__buy form.cart::before,
.product .product__info .product__buy form.cart::after { content: none; } /* WC clearfix pseudo-elements would be flex items */
.product .product__info .product__buy form.cart div.quantity { float: none; margin: 0; }
/* quantity: the .field input values */
.product .product__info .product__buy form.cart .quantity .qty {
  width: 5em; min-height: 48px; padding: var(--sp-3); text-align: center;
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff;
}
.product .product__info .product__buy form.cart .quantity .qty:focus { border-color: var(--color-primary); outline: 2px solid rgba(247,148,29,.3); outline-offset: 0; }
/* add to cart: the .btn .btn--primary values */
.product .product__info .product__buy form.cart .single_add_to_cart_button {
  float: none; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-base); line-height: inherit;
  padding: var(--sp-3) var(--sp-5); min-height: 48px;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  background: var(--color-primary); color: #fff;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.product .product__info .product__buy form.cart .single_add_to_cart_button:hover { background: var(--color-primary-dark); color: #fff; }

/* ==========================================================================
   31. A2 ADDITIONS: INNER PAGES (not in Demo 1 style.css)
   About, Contact, Catering, Careers, Halal certificate, page.php, 404, search:
   Demo 1 inline style="" attributes as classes, the disabled Call button
   (site-wide, also the home location cards), Halal certificate page, block
   content on page.php, search form / results / pagination, the fallback
   form success box and the Mise form-level error (.form-error).
   ========================================================================== */

/* --- Demo 1 inline styles as classes ------------------------------------- */
/* about/careers/catering: <div class="container" style="max-width:…"> */
.container--560 { max-width: 560px; }
.container--640 { max-width: 640px; }
.container--760 { max-width: 760px; }
.container--820 { max-width: 820px; }
/* contact.html: <div class="split" style="align-items:start"> */
.split--top { align-items: start; }
/* contact.html: <div class="footer-social" style="justify-content:center"> */
.footer-social--center { justify-content: center; }
/* about.html pull quote: <p style="margin-top:var(--sp-4);color:var(--color-text-soft)"> */
.pull-quote__text { margin-top: var(--sp-4); color: var(--color-text-soft); }

/* --- Call without a phone is a real disabled <button> (home + Contact) ----- */
/* Same look as the demo's span (contact.html: style="opacity:.5;pointer-events:none"), no hover. */
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--outline:disabled:hover { background: transparent; color: var(--color-dark); }

/* --- Careers: optional job description under the meta line --------------- */
.position-card p.position-card__desc { margin-top: var(--sp-2); color: var(--color-text); overflow-wrap: anywhere; }

/* --- Fallback form success box (phone list) -------------------------------- */
.form-success p { margin: 0; }
.form-success p + p { margin-top: var(--sp-3); }
.form-success a { color: inherit; text-decoration: underline; }

/* --- Mise form-level error (DATA-CONTRACT v0.4) ---------------------------- */
/* <div class="form-error" role="alert"><p>…</p></div> at the top of a Mise form for errors that aren't about one
   field (expired form, too fast, rate limit). Same look as Demo 1 .field__error (colour, size, inherited weight). */
.form-error { color: var(--color-accent); font-size: var(--fs-sm); font-weight: inherit; margin-bottom: var(--sp-4); }
.form-error p { margin: 0; }
.form-error p + p { margin-top: var(--sp-2); }
/* Inside the .form grid the row gap (var(--sp-4)) already spaces it from the first field. */
.form > .form-error { margin-bottom: 0; }

/* --- Halal certificate page (template-certificate.php) --------------------- */
.halal-cert { max-width: 760px; margin-inline: auto; text-align: center; }
.halal-cert__link {
  display: block; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.halal-cert__link:hover { box-shadow: var(--shadow); }
.halal-cert img { display: block; width: 100%; height: auto; }
.halal-cert__soon { margin: 0; text-align: center; color: var(--color-text-soft); }

/* --- page.php / certificate page: block content in a readable column ------ */
/* long unbroken URLs/emails in editor content (linked or not) must wrap: no horizontal scroll at 375.
   break-word first as the fallback for Safari < 15.4; anywhere also counts toward min-content width. */
.page-content { max-width: 760px; overflow-wrap: break-word; overflow-wrap: anywhere; }
.page-content > *:last-child { margin-bottom: 0; }
.page-content h2 { font-size: var(--fs-2xl); margin-top: var(--sp-6); }
.page-content h3 { font-size: var(--fs-xl); margin-top: var(--sp-5); }
.page-content h4 { font-size: var(--fs-lg); margin-top: var(--sp-5); }
.page-content > h2:first-child,
.page-content > h3:first-child { margin-top: 0; }
.page-content a { color: var(--color-primary); text-decoration: underline; }
.page-content a:hover { color: var(--color-primary-dark); }
/* main.css resets lists for the chrome; restore them in content */
.page-content ul, .page-content ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: var(--sp-2); }
.page-content li > ul, .page-content li > ol { margin: var(--sp-2) 0 0; }
.page-content img { height: auto; }
.page-content figure { margin: 0 0 var(--sp-4); }
.page-content blockquote {
  margin: 0 0 var(--sp-4); padding-left: var(--sp-4); border-left: 4px solid var(--color-primary);
  font-family: var(--font-head); font-weight: 600; color: var(--color-dark);
}
.page-content table { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-4); font-size: var(--fs-sm); }
.page-content th, .page-content td { border: 1px solid var(--color-border); padding: var(--sp-2) var(--sp-3); text-align: left; vertical-align: top; }
.page-content hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--sp-6) 0; }
.page-content .aligncenter { margin-inline: auto; }
.page-links { margin-top: var(--sp-5); font-family: var(--font-head); font-weight: 600; }

/* --- Search form, results and pagination ---------------------------------- */
.help-search { margin-top: var(--sp-6); text-align: left; }
.help-search--top { margin: 0 0 var(--sp-6); }
.search-form__row { display: flex; gap: var(--sp-2); }
.search-form__row input { flex: 1; min-width: 0; }
.search-form__row .btn { flex: 0 0 auto; }
.search-results { gap: var(--sp-4); }
.search-result .card__title a { text-decoration: none; color: inherit; }
.search-result .card__title a:hover { color: var(--color-primary); text-decoration: underline; }

.pagination { margin-top: var(--sp-6); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 0 var(--sp-3); border-radius: var(--radius-pill); border: 2px solid var(--color-border);
  font-family: var(--font-head); font-weight: 600; text-decoration: none; color: var(--color-dark);
}
.pagination a.page-numbers:hover { border-color: var(--color-dark); }
.pagination .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; }

/* WordPress core output (pagination heading, "more" links) */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   32. WP ADDITIONS: GOOGLE PLAY BADGE (not in Demo 1 style.css)
   Google's official "Get it on Google Play" PNG (assets/images/google-play-badge.png, 738x219),
   used unmodified. It has no built-in padding, so it is exactly as tall as the button/badge
   beside it (Google asks for at least the App Store badge's height) and never shrinks.
   Clear space: at least 13px between the home badges, 12px between CTA bar items.
   Phone CTA bar (below 480px, only with .cta-bar--play), CSS-only default = two rows:
   Order Online full width, then the App Store button and the Play badge. html.is-android /
   html.is-ios (set before first paint by maazs_v2_platform_flag()) switch to one line with
   only that platform's store item; the other is display:none. From 480px: one line, all three.
   ========================================================================== */
:root { --play-badge-h: 52px; --play-badge-cta-h: 44px; }

/* Home "Get the App": the App Store badge (52px) and the Play badge side by side */
.app-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.app-badge--play { display: inline-block; line-height: 0; }
.app-badge--play img { display: block; height: var(--play-badge-h); width: auto; max-width: 100%; }

/* CTA bar: the badge keeps its own aspect ratio and is as tall as the buttons */
.cta-bar--play .cta-bar__inner { gap: var(--sp-3); }
.cta-bar__play { flex: 0 0 auto; display: flex; align-items: center; line-height: 0; }
.cta-bar__play img { display: block; height: var(--play-badge-cta-h); width: auto; }

@media (max-width: 479.98px) {
  .cta-bar--play .btn { padding-inline: var(--sp-2); white-space: nowrap; }
  .cta-bar--play .cta-bar__app { gap: 6px; }
  .cta-bar--play .cta-bar__inner { flex-wrap: wrap; }
  /* Default (platform unknown, or no JS): two rows */
  .cta-bar--play .cta-bar__order { flex: 1 1 100%; }
  .cta-bar--play .cta-bar__app { flex: 1 1 0; min-width: 0; }
  /* Room for the taller bar: 2 x 44px + gap + bar padding */
  body:has(.cta-bar--play) { --ctabar-h: 116px; }

  /* Known platform: one line, the other platform's store item hidden */
  html.is-android .cta-bar--play .cta-bar__inner,
  html.is-ios .cta-bar--play .cta-bar__inner { flex-wrap: nowrap; }
  html.is-android .cta-bar--play .cta-bar__order,
  html.is-ios .cta-bar--play .cta-bar__order { flex: 1 1 0; min-width: 0; }
  html.is-android .cta-bar--play .cta-bar__app,
  html.is-ios .cta-bar--play .cta-bar__play { display: none; }
  html.is-android body:has(.cta-bar--play),
  html.is-ios body:has(.cta-bar--play) { --ctabar-h: 60px; }
}

/* ==========================================================================
   33. WP ADDITIONS: FORM CARD + FORM SECTIONS (not in Demo 1 style.css)
   The Contact, Catering and Careers forms (form.form.js-validate: Mise's and the
   theme fallbacks; never the search form) sit in a white card on the grey
   .section--soft band: rounded corners, light shadow, 20px padding below 768px
   and 32px from 768px. Contact's card fills its .split column; Catering and
   Careers theirs in .container--760. The sent state (form[hidden] + the
   .form-success box after it) is unchanged: the hidden card disappears.
   Careers (DATA-CONTRACT v0.13) groups its fields in fieldset.form-section with
   a legend.form-section__title ("The job", "About you", ...): the fieldset is
   reset (no UA border/padding/margin, min-inline-size 0 so the grid can shrink
   at 375px) and uses the same grid gap as .form; the legend is floated so
   browsers treat it as a normal grid item (not the fieldset caption), which
   keeps the gap below it consistent; sections after the first get a light top
   border. #a-position-help is the no-JS message that careers.js hides.
   ========================================================================== */
.form.js-validate {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 20px;
}
.form.js-validate[hidden] { display: none; }

.form-section {
  display: grid; gap: var(--sp-4);
  border: 0; margin: 0; padding: 0; min-inline-size: 0; min-width: 0;
}
.form-section__title {
  float: left; width: 100%; margin: 0; padding: 0;
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-base);
  line-height: var(--lh-tight); color: var(--color-dark);
}
.form-section + .form-section { border-top: 1px solid var(--color-border); padding-top: var(--sp-5); }
.field__help[hidden] { display: none; }

@media (min-width: 768px) {
  .form.js-validate { padding: 32px; }
}

/* ==========================================================================
   34. WP ADDITIONS: MULTI-SELECT + CONDITIONAL FIELDS (not in Demo 1 style.css)
   The careers "Languages you speak" field (DATA-CONTRACT v0.14, a native
   <select multiple name="languages[]">, Mise's and the theme fallback's).
   Without JS the native control is shown: same border/radius as other fields,
   about six rows tall, no caret. With JS (multiselect.js) the native select is
   visually hidden (still the submitted value) and the widget is:
   .multiselect__trigger  a button the same height/border/radius as the inputs
                          (placeholder "Select languages", else the chosen
                          labels, caret at the right; red border + aria-invalid
                          in the error state, focus ring like the inputs);
   .multiselect__list     the popup under the trigger (absolute, full field
                          width, white, shadow, scrolls past ~8 options, above
                          the form card); options with a tick box, the active
                          one (keyboard / hover) highlighted, selected ones bold;
   .multiselect__tags     the chosen options as grey pills under the trigger,
                          each with a 28px remove button and a visible focus ring.
   .field[data-show-when-field][hidden] is a conditional field forms.js hides
   (hidden attribute) until the named field has the value.
   ========================================================================== */
.field select[multiple] { min-height: 0; height: auto; padding: var(--sp-2); background-image: none; }
.field select[multiple] option { padding: var(--sp-2) var(--sp-3); border-radius: 4px; }
.field select[multiple]:not(.multiselect__native) { height: calc(6 * 2.1em + 2 * var(--sp-2)); }

.multiselect { position: relative; display: grid; gap: var(--sp-2); }
.multiselect__control { position: relative; }
.field select.multiselect__native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.multiselect__trigger {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: 48px;
  padding: var(--sp-3) calc(var(--sp-3) + 20px) var(--sp-3) var(--sp-3);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.2; color: var(--color-text);
  text-align: left; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  cursor: pointer; position: relative;
}
.multiselect__trigger:focus { border-color: var(--color-primary); outline: 2px solid rgba(247,148,29,.3); outline-offset: 0; }
.multiselect__trigger:focus-visible { border-color: var(--color-primary); outline: 2px solid rgba(247,148,29,.3); outline-offset: 0; }
.multiselect__trigger[aria-invalid="true"],
.field--error .multiselect__trigger { border-color: var(--color-accent); }
.multiselect__value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multiselect__value:empty { display: none; }
.multiselect__placeholder { flex: 1 1 auto; color: var(--color-text-soft); }
.multiselect__placeholder[hidden] { display: none; }
.multiselect__caret {
  position: absolute; right: var(--sp-3); top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--color-text-soft); border-bottom: 2px solid var(--color-text-soft);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.multiselect.is-open .multiselect__caret { transform: rotate(225deg); margin-top: -2px; }

.multiselect__list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: var(--sp-1); list-style: none;
  max-height: 17.5rem; overflow-y: auto; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.multiselect__list[hidden] { display: none; }
.multiselect__option {
  display: flex; align-items: center; gap: var(--sp-3); min-height: 40px; padding: var(--sp-2) var(--sp-3);
  border-radius: 6px; font-size: var(--fs-base); color: var(--color-text); cursor: pointer;
}
.multiselect__option.is-active { background: var(--bg-cream); }
.multiselect__option[aria-selected="true"] { font-weight: 600; }
.multiselect__tick {
  flex: 0 0 auto; width: 18px; height: 18px; border: 2px solid var(--color-border); border-radius: 4px; background: #fff; position: relative;
}
.multiselect__option[aria-selected="true"] .multiselect__tick { border-color: var(--color-primary); background: var(--color-primary); }
.multiselect__option[aria-selected="true"] .multiselect__tick::after {
  content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 9px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}

.multiselect__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.multiselect__tags[hidden] { display: none; }
.multiselect__tag {
  display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 2px 2px 2px var(--sp-3);
  background: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 600; color: var(--color-text); line-height: 1.3;
}
.multiselect__tag > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multiselect__remove {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: transparent; color: var(--color-text-soft);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.multiselect__remove:hover { background: #fff; color: var(--color-dark); }
.multiselect__remove:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; background: #fff; color: var(--color-dark); }
.multiselect__live { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.field[data-show-when-field][hidden] { display: none; }
