/* ============================================================
   Century Pacific Food Solutions — main.css
   ------------------------------------------------------------
   ACSS-based foundation. Brand values from the CPFS Design
   System. Section structure from the section-architecture
   skill. Mobile-first. Inter sitewide.
   ============================================================ */


/* ============================================================
   RESET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100dvh; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }


/* ============================================================
   TOKENS
   ----------------------------------------------------------
   HSL channels exposed so depth variants compose cleanly.
   Values map directly to the CPFS Design System.
   ============================================================ */

:root {
  /* ---- Brand colour (teal #0F8C8C) ---- */
  --brand-h: 180;
  --brand-s: 80%;
  --brand-l: 30%;
  --brand: hsl(var(--brand-h) var(--brand-s) var(--brand-l));
  --brand-hover: hsl(var(--brand-h) var(--brand-s) 24%);          /* teal-dark #0A6E6E */
  --brand-light: hsl(180 51% 91%);                                 /* teal-light #E1F2F2 */
  --brand-soft: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.08);
  --brand-trans-20: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.2);

  /* ---- Deep navy (#0E2A3C) ---- */
  --deep: hsl(204 62% 15%);
  --deep-soft: hsl(204 52% 21%);                                   /* #1a3d52 */

  /* ---- Accent gold (#C9A961) — sparingly, never CTA ---- */
  --accent: hsl(40 47% 58%);
  --accent-soft: hsl(40 47% 58% / 0.12);

  /* ---- Status (red is alerts only) ---- */
  --danger: hsl(0 67% 54%);

  /* ---- Surfaces ---- */
  --surface: hsl(48 33% 97%);                                      /* #FBFAF6 page bg */
  --base: hsl(0 0% 100%);                                          /* card fill */
  --offwhite: hsl(60 14% 96%);                                     /* #F7F7F4 */

  /* ---- Text ---- */
  --text-dark: hsl(0 0% 10%);
  --text-dark-muted: hsl(0 0% 42%);                                /* #6B6B6B */
  --text-dark-soft: hsl(0 0% 66%);                                 /* #A8A8A8, captions only */
  --text-light: hsl(0 0% 100%);
  --text-light-muted: hsl(0 0% 100% / 0.75);

  /* ---- Borders ---- */
  --border-color: hsl(204 62% 15% / 0.08);
  --border-color-strong: hsl(204 62% 15% / 0.14);
  --border-width: 1px;
  --border: var(--border-width) solid var(--border-color);

  /* ---- Typography ---- */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
  --heading-tracking: -0.02em;
  --heading-line-height: 1.15;
  --text-line-height: 1.6;
  --eyebrow-tracking: 0.12em;

  /* Fluid type scale — anchored on DS desktop / mobile table */
  --h1: clamp(2.25rem, 1.15rem + 3.5vw, 3.5rem);                   /* 36 → 56 */
  --h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);                    /* 28 → 40 */
  --h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);                    /* 20 → 24 */
  --h4: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);                    /* 16 → 18 */
  --text-l: clamp(1rem, 0.96rem + 0.13vw, 1.0625rem);              /* 16 → 17 */
  --text-m: clamp(0.875rem, 0.84rem + 0.13vw, 0.9375rem);          /* 14 → 15 */
  --text-s: clamp(0.75rem, 0.72rem + 0.13vw, 0.8125rem);           /* 12 → 13 */
  --text-xs: clamp(0.6875rem, 0.66rem + 0.13vw, 0.75rem);          /* 11 → 12 */

  /* ---- Spacing scale ---- */
  --space-xs: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);              /* 8 → 12 */
  --space-s: clamp(1rem, 0.85rem + 0.5vw, 1.5rem);                 /* 16 → 24 */
  --space-m: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);                  /* 24 → 32 */
  --space-l: clamp(2rem, 1.5rem + 1.5vw, 3rem);                    /* 32 → 48 */
  --space-xl: clamp(3rem, 2rem + 2vw, 5rem);                       /* 48 → 80 */
  --space-xxl: clamp(4rem, 3rem + 3vw, 8rem);                      /* 64 → 128 */

  /* Section padding — DS: 56 mobile → 96 desktop */
  --section-space-s: clamp(2.5rem, 2rem + 1.5vw, 4rem);
  --section-space-m: clamp(3.5rem, 2.5rem + 3vw, 6rem);
  --section-space-l: clamp(5rem, 3.5rem + 4vw, 8rem);

  /* ---- Layout ---- */
  --container-width: 1280px;                                       /* DS overrides ACSS default */
  --container-gap: clamp(1.25rem, 1rem + 1vw, 2.5rem);             /* 20 → 40 horizontal gutter */
  --grid-gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);                /* 12 → 24 */
  --grid-gap-l: clamp(1rem, 0.6rem + 1.5vw, 2rem);                 /* 16 → 32 */

  /* ---- Radii (DS) ---- */
  --radius-xs: 4px;
  --radius-s: 6px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-xl: 16px;
  --radius-pill: 100px;

  /* ---- Shadows (subtle, max 8% per DS effects) ---- */
  --shadow-m: 0 1px 3px hsl(0 0% 0% / 0.04);
  --shadow-l: 0 4px 16px hsl(204 62% 15% / 0.08);
  --shadow-xl: 0 12px 32px hsl(204 62% 15% / 0.12);

  /* ---- Buttons (DS) ---- */
  --btn-padding-block: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --btn-padding-inline: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  --btn-border-radius: var(--radius-m);
  --btn-font-weight: 600;
  --btn-font-size: var(--text-s);

  /* ---- Cards (DS) ---- */
  --card-padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  --card-border-radius: var(--radius-l);
  --card-gap: var(--space-s);

  /* ---- Motion (DS) ---- */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-index ---- */
  --z-header: 50;
  --z-modal: 100;
  --z-overlay: 80;
}


/* ============================================================
   BASE
   ============================================================ */

html { font-size: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-m);
  line-height: var(--text-line-height);
  color: var(--text-dark);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--deep);
  line-height: var(--heading-line-height);
  letter-spacing: var(--heading-tracking);
  font-weight: 700;
  text-wrap: balance;          /* short headings keep tidy line balance */
}
h1, .h1 { font-size: var(--h1); }
h2, .h2 { font-size: var(--h2); }
h3, .h3 { font-size: var(--h3); font-weight: 600; letter-spacing: -0.01em; }
h4, .h4 { font-size: var(--h4); font-weight: 600; letter-spacing: 0; }

p, li, blockquote { text-wrap: pretty; }   /* avoids orphan words on the last line */
p { font-size: var(--text-m); }
.lede { font-size: var(--text-l); color: var(--text-dark-muted); max-width: 65ch; }
strong, b { font-weight: 600; color: var(--deep); }
small { font-size: var(--text-s); }

a {
  color: var(--brand);
  transition: color var(--transition);
}
a:hover { color: var(--brand-hover); }

::selection { background: var(--brand); color: var(--text-light); }


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-s);
  inset-block-start: var(--space-s);
  background: var(--deep);
  color: var(--text-light);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-s);
  font-size: var(--text-s);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--transition);
  z-index: calc(var(--z-header) + 10);
}
.skip-link:focus { transform: translateY(0); color: var(--text-light); }

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

:where(a, button, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   LAYOUT — section + container (two-layer pattern from
   section-architecture skill)
   ============================================================ */

.section {
  padding-block: var(--section-space-m);
  padding-inline: var(--container-gap);
  position: relative;
}
.section--s { padding-block: var(--section-space-s); }
.section--l { padding-block: var(--section-space-l); }
.section--flush-bottom { padding-block-end: 0; }
.section--flush-top { padding-block-start: 0; }

.container {
  max-width: var(--container-width);
  margin-inline: auto;
  width: 100%;
}
.container--narrow { max-width: 880px; }
.container--reading { max-width: 65ch; }


/* ---- Section backgrounds ---- */
.bg--surface { background: var(--surface); }
.bg--base { background: var(--base); }
.bg--offwhite { background: var(--offwhite); }
.bg--brand { background: var(--brand); color: var(--text-light); }
.bg--brand-light { background: var(--brand-light); }
.bg--brand-soft { background: var(--brand-soft); }
.bg--deep { background: var(--deep); color: var(--text-light); }
.bg--deep-soft { background: var(--deep-soft); color: var(--text-light); }

/* On dark backgrounds, headings flip to white */
.bg--brand h1, .bg--brand h2, .bg--brand h3, .bg--brand h4,
.bg--deep h1, .bg--deep h2, .bg--deep h3, .bg--deep h4,
.bg--deep-soft h1, .bg--deep-soft h2, .bg--deep-soft h3, .bg--deep-soft h4 {
  color: var(--text-light);
}
.bg--deep .lede, .bg--brand .lede, .bg--deep-soft .lede {
  color: var(--text-light-muted);
}


/* ============================================================
   STACKS / GRIDS — flex + grid helpers
   ============================================================ */

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.stack--xs { gap: var(--space-xs); }
.stack--m { gap: var(--space-m); }
.stack--l { gap: var(--space-l); }
.stack--xl { gap: var(--space-xl); }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
}
.row--start { align-items: flex-start; }
.row--between { justify-content: space-between; }
.row--center { justify-content: center; }

/* Single-column grid by default — breakpoint utilities promote it */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}
.grid--l-gap { gap: var(--grid-gap-l); }
.grid--align-center { align-items: center; }


/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.text--xs { font-size: var(--text-xs); }
.text--s { font-size: var(--text-s); }
.text--m { font-size: var(--text-m); }
.text--l { font-size: var(--text-l); }

.text-weight--400 { font-weight: 400; }
.text-weight--500 { font-weight: 500; }
.text-weight--600 { font-weight: 600; }
.text-weight--700 { font-weight: 700; }

.text-uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.text--dark { color: var(--text-dark); }
.text--dark-muted { color: var(--text-dark-muted); }
.text--light { color: var(--text-light); }
.text--light-muted { color: var(--text-light-muted); }
.text--brand { color: var(--brand); }
.text--deep { color: var(--deep); }
.text--accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
}
.eyebrow--on-dark { color: var(--accent); }
.eyebrow--muted { color: var(--text-dark-muted); font-weight: 600; }
.eyebrow--with-rule {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}
.eyebrow--with-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.line-clamp--2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp--3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================================
   COMPONENT — BUTTON
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding-block: var(--btn-padding-block);
  padding-inline: var(--btn-padding-inline);
  border-radius: var(--btn-border-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;                                                /* touch target */
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--brand);
  color: var(--text-light);
}
.btn--primary:hover {
  background: var(--brand-hover);
  color: var(--text-light);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--deep);
  border: 1px solid var(--deep);
}
.btn--secondary:hover {
  background: var(--deep);
  color: var(--text-light);
}
.bg--deep .btn--secondary,
.bg--brand .btn--secondary,
.hero-rotator .btn--secondary,
.cta-band .btn--secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}
.bg--deep .btn--secondary:hover,
.bg--brand .btn--secondary:hover,
.hero-rotator .btn--secondary:hover,
.cta-band .btn--secondary:hover {
  background: var(--text-light);
  color: var(--deep);
}

.btn--ghost {
  background: transparent;
  color: var(--brand);
  padding-inline: 0;
  min-height: auto;
  justify-content: flex-start;
  align-self: flex-start;        /* don't stretch in flex-column parents */
  width: max-content;
  max-width: 100%;
}
.btn--ghost:hover {
  color: var(--brand-hover);
  gap: calc(var(--space-xs) + 4px);
}
.btn--ghost .material-symbols-outlined { transition: transform var(--transition); }
.btn--ghost:hover .material-symbols-outlined { transform: translateX(2px); }

.btn--on-dark {
  background: var(--text-light);
  color: var(--deep);
}
.btn--on-dark:hover {
  background: var(--brand-light);
  color: var(--deep);
}


/* ============================================================
   COMPONENT — CARD
   ============================================================ */

.card {
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card--flat { padding: 0; border: 0; background: transparent; }
.card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-l);
}

.card__media {
  margin: calc(var(--card-padding) * -1) calc(var(--card-padding) * -1) 0;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card--interactive:hover .card__media img { transform: scale(1.03); }


/* ============================================================
   COMPONENT — TAG / PILL / CHIP / BADGE
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;                  /* tight visual */
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-trans-20);
  align-self: flex-start;          /* don't stretch in flex-column parents */
  width: max-content;
  max-width: 100%;
}
.tag--neutral { background: var(--offwhite); color: var(--text-dark-muted); border-color: var(--border-color); }
.tag--on-dark { background: hsl(0 0% 100% / 0.1); color: var(--text-light); border-color: hsl(0 0% 100% / 0.2); }

.pill {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-soft);
  color: hsl(40 60% 30%);
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
}


/* ============================================================
   COMPONENT — BREADCRUMB
   ============================================================ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-s);
  color: var(--text-dark-muted);
}
.breadcrumb a { color: var(--text-dark-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--deep); font-weight: 500; }
.breadcrumb__separator {
  font-size: 14px;
  color: var(--text-dark-soft);
  user-select: none;
}


/* ============================================================
   COMPONENT — ICON HELPERS
   ============================================================ */

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-size: 24px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
  color: inherit;
  transition: background var(--transition);
}
.icon-btn:hover { background: hsl(0 0% 100% / 0.08); color: var(--text-light); }
.bg--surface .icon-btn:hover,
.bg--base .icon-btn:hover { background: var(--brand-soft); color: var(--brand); }


/* ============================================================
   IMAGE PLACEHOLDER (PDP pack-shots, per CLAUDE.md spec)
   ============================================================ */

.image-placeholder {
  background: var(--offwhite);
  border: 1px dashed var(--border-color-strong);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-l);
  font-size: var(--text-s);
  color: var(--text-dark-muted);
  font-family: var(--font-mono);
  position: relative;
  min-height: 200px;
}
.image-placeholder::before {
  content: 'Pack shot needed';
  position: absolute;
  inset-block-start: var(--space-xs);
  inset-inline-start: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}


/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  background: var(--deep);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid hsl(0 0% 100% / 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding-block: 0.875rem;
  padding-inline: var(--container-gap);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
}
.site-header__logo img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: none;
  margin-inline-start: auto;
}
.site-nav__list {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}
.site-nav__item { position: relative; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  font-weight: 600;
  color: var(--text-light-muted);
  border-radius: var(--radius-s);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--text-light);
  background: hsl(0 0% 100% / 0.06);
}
.site-nav__chevron {
  font-size: 18px;
  transition: transform var(--transition);
}
.site-nav__item.has-flyout:hover > .site-nav__link .site-nav__chevron,
.site-nav__item.has-flyout:focus-within > .site-nav__link .site-nav__chevron {
  transform: rotate(180deg);
}

/* ---- Nav flyout (compact + mega) ---- */
.nav-flyout {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--base);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-xl);
  padding: var(--space-s);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: var(--z-overlay);
}
.nav-flyout::before {
  /* invisible bridge so hover doesn't lose target moving down */
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-flyout--mega {
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(720px, 92vw);
  padding: var(--space-l);
}
.site-nav__item.has-flyout:hover > .nav-flyout,
.site-nav__item.has-flyout:focus-within > .nav-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav__item.has-flyout:hover > .nav-flyout--mega,
.site-nav__item.has-flyout:focus-within > .nav-flyout--mega {
  transform: translateX(-50%) translateY(0);
}

/* Flyout: simple list */
.nav-flyout__list { display: flex; flex-direction: column; gap: 2px; }
.nav-flyout__list a {
  display: block;
  padding: 0.625rem 0.875rem;
  font-size: var(--text-m);
  color: var(--text-dark);
  border-radius: var(--radius-s);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-flyout__list a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Flyout: mega grid of category cards */
.nav-flyout__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
}
.nav-flyout__card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-s);
  padding: var(--space-s);
  border-radius: var(--radius-m);
  color: var(--text-dark);
  transition: background var(--transition), transform var(--transition);
}
.nav-flyout__card:hover { background: var(--brand-soft); transform: translateY(-1px); }
.nav-flyout__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-s);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.nav-flyout__card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.nav-flyout__card-body strong {
  color: var(--deep);
  font-size: var(--text-m);
  font-weight: 600;
}
.nav-flyout__card-body small {
  color: var(--text-dark-muted);
  font-size: var(--text-xs);
}
.nav-flyout__footer {
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--border-color);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}
.site-header__menu { display: inline-flex; }

/* ---- Mobile nav drawer ---- */
.site-nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--deep);
  color: var(--text-light);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding: var(--space-l) var(--container-gap);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  visibility: hidden;
}
.site-nav-drawer[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}
.site-nav-drawer__close { align-self: flex-end; color: var(--text-light); }
.site-nav-drawer__close:hover { background: hsl(0 0% 100% / 0.08); }
.site-nav-drawer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.site-nav-drawer__group { border-bottom: 1px solid hsl(0 0% 100% / 0.08); }
.site-nav-drawer__group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--h4);
  font-weight: 600;
  color: var(--text-light);
  padding-block: 0.875rem;
}
.site-nav-drawer__group summary::-webkit-details-marker { display: none; }
.site-nav-drawer__group summary .chevron { transition: transform var(--transition); }
.site-nav-drawer__group[open] summary .chevron { transform: rotate(180deg); }
.site-nav-drawer__sublist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 var(--space-s) var(--space-s);
}
.site-nav-drawer__sublist a {
  display: block;
  font-size: var(--text-m);
  color: var(--text-light-muted);
  padding-block: 0.5rem;
  transition: color var(--transition);
}
.site-nav-drawer__sublist a:hover { color: var(--text-light); }
.site-nav-drawer__sublist a strong { color: var(--text-light); }
.site-nav-drawer__simple {
  display: block;
  font-size: var(--h4);
  font-weight: 600;
  color: var(--text-light);
  padding-block: 0.875rem;
  border-bottom: 1px solid hsl(0 0% 100% / 0.08);
}


/* ============================================================
   SITE FOOTER
   ============================================================ */

/* Footer is split into two bands:
   1. .site-footer__main   navy, 5-column grid
   2. .site-footer__legal  navy, centred copyright + centred links
   The brands strip is a page-level section (.brands-strip) that lives
   in <main> above the CTA band, not inside the footer.
*/
.site-footer { color: var(--text-light-muted); }

.site-footer__main {
  background: var(--deep);
  padding-block: var(--section-space-m);
  padding-inline: var(--container-gap);
}
.site-footer__main-inner {
  max-width: var(--container-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  max-width: 360px;
}
.site-footer__brand img {
  width: 220px;
  height: auto;
  max-width: 100%;
  align-self: flex-start;
}
.site-footer__brand-statement {
  color: var(--text-light-muted);
  font-size: var(--text-m);
  line-height: 1.65;
}

.site-footer__nav-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.site-footer__nav-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  font-weight: 700;
  color: var(--accent);
}
.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.site-footer__nav-list a {
  font-size: var(--text-m);
  color: var(--text-light-muted);
  transition: color var(--transition);
}
.site-footer__nav-list a:hover { color: var(--text-light); }

.site-footer__contact-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-light-muted);
}
.site-footer__contact-row .material-symbols-outlined { font-size: 18px; color: var(--accent); }

.site-footer__social { display: flex; gap: var(--space-xs); }
.site-footer__social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: hsl(0 0% 100% / 0.06);
  color: var(--text-light);
  transition: background var(--transition);
}
.site-footer__social a:hover { background: var(--brand); }

.site-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.site-footer__newsletter form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.site-footer__newsletter input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.75rem 1rem;
  background: hsl(0 0% 100% / 0.06);
  border: 1px solid hsl(0 0% 100% / 0.14);
  border-radius: var(--radius-m);
  color: var(--text-light);
}
.site-footer__newsletter input::placeholder { color: hsl(0 0% 100% / 0.5); }
.site-footer__newsletter input:focus { border-color: var(--brand); outline: none; }

/* Brands strip — page-level section, light surface so brand logos read in colour.
   Sits in <main> just above the CTA band, not inside the footer. */
.brands-strip {
  background: var(--surface);
  padding-block: var(--space-l);
  padding-inline: var(--container-gap);
  border-block: 1px solid var(--border-color);
}
.brands-strip__inner {
  max-width: var(--container-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);     /* mobile: 2 per row */
  align-items: center;
  justify-items: center;
  column-gap: var(--space-m);
  row-gap: var(--space-l);
}
@media (min-width: 480px) {
  .brands-strip__inner { grid-template-columns: repeat(5, 1fr); }  /* 5 per row at and above small */
}
.brands-strip img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.brands-strip img:hover { opacity: 1; }

/* Legal — navy, centred copyright on top, centred links below */
.site-footer__legal { background: var(--deep); }
.site-footer__legal-inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-block: var(--space-l);
  padding-inline: var(--container-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  text-align: center;
}
.site-footer__copyright {
  max-width: 70ch;
  font-size: var(--text-s);
  color: hsl(0 0% 100% / 0.55);
  line-height: 1.65;
}
.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-m);
  font-size: var(--text-s);
}
.site-footer__legal-links a {
  color: hsl(0 0% 100% / 0.55);
  transition: color var(--transition);
}
.site-footer__legal-links a:hover { color: var(--text-light); }


/* ============================================================
   COMPONENT — SECTION HEADING (eyebrow + h2 + lede block)
   Used at the top of every content section.
   ============================================================ */

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  max-width: 880px;
}
@media (min-width: 768px) {
  .section-heading {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
    max-width: none;
    gap: var(--space-l);
  }
  .section-heading .lede { max-width: 52ch; justify-self: end; }
}

.section-cta {
  display: flex;
  justify-content: center;
  padding-top: var(--space-s);
}


/* ============================================================
   COMPONENT — HERO ROTATOR
   Stacked-slide pattern: each slide is absolutely positioned,
   active slide fades to opacity 1.
   ============================================================ */

.hero-rotator {
  position: relative;
  background: var(--deep);
  color: var(--text-light);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(520px, 78vh, 760px);
}
.hero-rotator__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms var(--ease-out), visibility 600ms var(--ease-out);
}
.hero-rotator__slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-rotator__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-rotator__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-rotator__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(204 62% 15% / 0.45) 0%, hsl(204 62% 15% / 0.88) 95%),
    linear-gradient(90deg, hsl(204 62% 15% / 0.6) 0%, hsl(204 62% 15% / 0) 60%);
}
.hero-rotator__container {
  position: relative;
  z-index: 1;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  padding-block: var(--section-space-l);
  padding-inline: var(--container-gap);   /* horizontal gutter so text doesn't touch screen edge */
}
.hero-rotator__content {
  max-width: 720px;
}
.hero-rotator__content h1 { color: var(--text-light); }

.hero-rotator__nav {
  position: absolute;
  inset-block-end: var(--space-l);
  inset-inline-end: var(--container-gap);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.hero-rotator__dot {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: hsl(0 0% 100% / 0.3);
  transition: background var(--transition), width var(--transition);
  padding: 0;
  border: 0;
  cursor: pointer;
}
.hero-rotator__dot:hover { background: hsl(0 0% 100% / 0.6); }
.hero-rotator__dot.is-active {
  background: var(--text-light);
  width: 56px;
}


/* ============================================================
   COMPONENT — PRODUCT CARD (lean, used on home + category)
   ============================================================ */

/* Pack-shot stays inset within card padding (matches text width below it),
   not bleed-to-edge. Override the negative-margin trick from .card__media. */
.product-card .card__media {
  margin: 0;
  background: var(--offwhite);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  display: block;
  overflow: hidden;
}
.product-card .card__media .image-placeholder {
  margin: 0;
  border-radius: var(--radius-m);
  width: 100%;
  height: 100%;
  min-height: 0;
}
.product-card .card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: var(--space-m);
}
.product-card .card__title { font-size: var(--h4); font-weight: 600; }
.product-card .card__title a { color: var(--deep); }
.product-card .card__title a:hover { color: var(--brand); }


/* ============================================================
   COMPONENT — RECIPE CARD
   ============================================================ */

.recipe-card .card__media { aspect-ratio: 3 / 2; }
.recipe-card .card__title { font-size: var(--h4); font-weight: 600; }
.recipe-card .card__title a { color: var(--deep); }
.recipe-card .card__title a:hover { color: var(--brand); }


/* ============================================================
   COMPONENT — SERVICE CARD (Solutions hub, dark background)
   ============================================================ */

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--card-padding);
  background: hsl(0 0% 100% / 0.04);
  border: 1px solid hsl(0 0% 100% / 0.08);
  border-radius: var(--card-border-radius);
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover {
  background: hsl(0 0% 100% / 0.07);
  transform: translateY(-2px);
}
.service-card h3 { color: var(--text-light); font-size: var(--h3); }
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-m);
  background: var(--brand);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon .material-symbols-outlined { font-size: 28px; }
.service-card .btn--ghost { color: var(--text-light); }
.service-card .btn--ghost:hover { color: var(--brand-light); }


/* ============================================================
   COMPONENT — AUDIENCE CARD (image-led, full-link)
   ============================================================ */

.audience-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  background: var(--base);
  color: inherit;
  border: 1px solid var(--border-color);
  transition: transform var(--transition), box-shadow var(--transition);
}
.audience-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-l);
}
.audience-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.audience-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.audience-card:hover .audience-card__media img { transform: scale(1.04); }
.audience-card__body {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.audience-card__body h3 { font-size: var(--h4); color: var(--deep); }


/* ============================================================
   COMPONENT — RECIPE DETAIL PAGE
   Hero (2-col), meta chips, cost callout, video, ingredient
   table with phase groups, vertical numbered procedure.
   ============================================================ */

/* Hero */
.recipe-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: center;
}
.recipe-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.recipe-hero__media {
  border-radius: var(--card-border-radius);
  overflow: hidden;
  background: var(--offwhite);
  aspect-ratio: 4 / 3;
}
.recipe-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Recipe gallery — main image swappable from thumbnail row, matches PDP pattern */
.recipe-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.recipe-gallery__main {
  aspect-ratio: 4 / 3;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  background: var(--offwhite);
}
.recipe-gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 220ms var(--ease-out);
}
.recipe-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
  padding: 0;
  margin: 0;
  list-style: none;
}
.recipe-gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  background: var(--base);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-m);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.recipe-gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.recipe-gallery__thumb:hover {
  border-color: var(--brand-trans-20);
  transform: translateY(-1px);
}
.recipe-gallery__thumb:hover img { transform: scale(1.05); }
.recipe-gallery__thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.recipe-gallery__thumb:focus-visible {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
@media (min-width: 768px) {
  .recipe-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-xl); }
}
@media (min-width: 992px) {
  .recipe-hero { gap: clamp(var(--space-xl), 5vw, var(--space-xxl)); }
}

/* Meta chips row */
.recipe-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-s);
  padding: var(--card-padding);
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
}
@media (min-width: 480px) { .recipe-meta { grid-template-columns: repeat(4, 1fr); } }
.recipe-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}
.recipe-meta__icon {
  font-size: 22px;
  color: var(--brand);
  margin-bottom: 0.25rem;
}
.recipe-meta__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark-muted);
  font-weight: 600;
}
.recipe-meta__value {
  font-size: var(--text-m);
  color: var(--deep);
  font-weight: 700;
}

/* Cost callout */
.recipe-cost {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s) var(--card-padding);
  background: var(--brand-soft);
  border: 1px solid var(--brand-trans-20);
  border-radius: var(--card-border-radius);
  color: var(--deep);
}
.recipe-cost .material-symbols-outlined {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  background: var(--brand);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.recipe-cost__label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark-muted);
  font-weight: 600;
  margin-bottom: 0.125rem;
}
.recipe-cost__value {
  display: block;
  font-size: var(--text-m);
  color: var(--deep);
}

/* Video wrap */
.recipe-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow-xl);
}
.recipe-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 2-col ingredients section (sticky aside + table) */
.recipe-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: start;
}
@media (min-width: 768px) {
  .recipe-cols { grid-template-columns: minmax(220px, 320px) 1fr; gap: var(--space-xl); }
}

.recipe-cols__aside .stack > * { width: 100%; }

/* Servings control (static for now) */
.servings-control {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: var(--space-m);
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
}
.servings-control__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  color: var(--brand);
  font-weight: 700;
}
.servings-control__group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.servings-control__btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-s);
  background: var(--offwhite);
  color: var(--deep);
  font-size: var(--text-l);
  font-weight: 700;
  border: 1px solid var(--border-color);
  cursor: not-allowed;
  opacity: 0.55;
}
.servings-control__value {
  font-size: var(--h3);
  font-weight: 700;
  color: var(--deep);
  min-width: 1.5ch;
  text-align: center;
}

/* Mini SKU strip inside the ingredients aside */
.featured-skus-mini {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--space-s) var(--card-padding);
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
}
.featured-skus-mini li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--deep);
}
.featured-skus-mini img {
  height: 24px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

/* Ingredient table */
.ingredient-table {
  width: 100%;
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  font-size: var(--text-m);
}
.ingredient-table thead th {
  background: var(--surface);
  color: var(--text-dark-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
}
.ingredient-table tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-dark);
  vertical-align: top;
}
.ingredient-table tbody td:first-child { font-family: var(--font-mono); font-weight: 600; color: var(--deep); }
.ingredient-table tbody td:nth-child(2) { color: var(--text-dark-muted); font-family: var(--font-mono); font-size: var(--text-s); }
.ingredient-group__heading th {
  background: var(--offwhite);
  color: var(--brand);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border-top: 1px solid var(--border-color);
}
.ingredient-row--feature td { background: var(--brand-soft); }
.ingredient-row--feature td a { display: inline-block; margin-left: 0.5rem; font-weight: 500; }

/* Cost calculator table (interactive, live) */
.cost-calc-wrap {
  overflow-x: auto;
  border-radius: var(--card-border-radius);
  border: 1px solid var(--border-color);
  background: var(--base);
  -webkit-overflow-scrolling: touch;
}
.cost-calc {
  width: 100%;
  min-width: 720px;
  font-size: var(--text-m);
  border-collapse: collapse;
}
.cost-calc thead th {
  background: var(--offwhite);
  color: var(--deep);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-align: left;
  padding: 0.875rem 1rem;
  white-space: nowrap;
}
.cost-calc thead th small { display: block; font-size: 0.625rem; font-weight: 500; color: var(--text-dark-muted); text-transform: none; letter-spacing: 0; margin-top: 0.125rem; }
.cost-calc tbody td {
  padding: 0.625rem 1rem;
  border-top: 1px solid var(--border-color);
  vertical-align: middle;
}
.cost-calc__group-heading th {
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border-top: 1px solid var(--border-color);
}
.cost-calc__name { color: var(--deep); font-weight: 500; }
.cost-calc__used { color: var(--text-dark-muted); font-family: var(--font-mono); font-size: var(--text-s); white-space: nowrap; }
.cost-calc input[type="number"] {
  width: 100%;
  min-width: 96px;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-s);
  background: var(--base);
  font-family: var(--font-mono);
  font-size: var(--text-s);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cost-calc input[type="number"]:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.cost-calc input[type="number"]::-webkit-outer-spin-button,
.cost-calc input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cost-calc input[type="number"] { -moz-appearance: textfield; }

.cost-calc__cost {
  font-family: var(--font-mono);
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--text-dark-muted);
  white-space: nowrap;
  text-align: right;
  min-width: 96px;
}
.cost-calc__row--filled .cost-calc__cost { color: var(--brand); }
.cost-calc__row--cpfs td { background: hsl(180 80% 30% / 0.04); }
.cost-calc__row--cpfs .cost-calc__name strong { color: var(--brand); }

.cost-calc tfoot td {
  padding: 0.875rem 1rem;
  font-weight: 600;
  border-top: 2px solid var(--border-color-strong);
}
.cost-calc__total-row td { background: var(--surface); font-size: var(--text-m); color: var(--deep); }
.cost-calc__total {
  font-family: var(--font-mono);
  font-size: var(--text-l);
  color: var(--brand);
  text-align: right;
}
.cost-calc__per-row td { background: var(--deep); color: var(--text-light); font-size: var(--text-m); }
.cost-calc__per-row td small { color: hsl(0 0% 100% / 0.6); font-weight: 400; margin-left: 0.25rem; }
.cost-calc__per-serving {
  font-family: var(--font-mono);
  font-size: var(--text-l);
  color: var(--text-light);
  text-align: right;
}


/* Procedure list */
.procedure-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.procedure-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-s);
  padding: var(--card-padding);
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
}
@media (min-width: 768px) {
  .procedure-step { gap: var(--space-m); }
}
.procedure-step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--h3);
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.procedure-step__body { display: flex; flex-direction: column; gap: 0.5rem; }
.procedure-step__body h3 { font-size: var(--h4); color: var(--deep); font-weight: 600; }
.procedure-step__body p { font-size: var(--text-m); color: var(--text-dark); line-height: 1.7; margin: 0; }


/* ============================================================
   COMPONENT — PDP (Product Detail Page)
   Hero: 2-col gallery + info. Spec tables, allergen rows,
   variant cards, quote form.
   ============================================================ */

/* PDP HERO */
.pdp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: start;
}
@media (min-width: 768px) {
  .pdp-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-xl); }
}
@media (min-width: 992px) {
  .pdp-hero { gap: clamp(var(--space-xl), 5vw, var(--space-xxl)); }
}

/* Gallery */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.pdp-gallery__main {
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--card-border-radius);
  background: var(--base);
  border: 1px solid var(--border-color);
  min-height: 320px;
}
.pdp-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
}
.pdp-gallery__thumbs li { list-style: none; }
.pdp-gallery__thumbs .image-placeholder {
  aspect-ratio: 1;
  min-height: 0;
  padding: var(--space-xs);
  font-size: 0.6875rem;
  border-radius: var(--radius-m);
  background: var(--base);
}
.pdp-gallery__thumbs .image-placeholder::before { display: none; }   /* hide PACK SHOT NEEDED on small thumbs */

/* Info column */
.pdp-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.pdp-info__brand img {
  height: 36px;
  width: auto;
  max-width: 160px;
}

.pdp-info h1 { font-size: clamp(2rem, 1.2rem + 2.5vw, 2.75rem); }

.pdp-key-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-s);
  padding: var(--card-padding);
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
}
.pdp-key-fact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pdp-key-fact__icon {
  font-size: 22px;
  color: var(--brand);
  margin-bottom: 0.25rem;
}
.pdp-key-fact__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark-muted);
  font-weight: 600;
}
.pdp-key-fact__value {
  font-size: var(--text-m);
  color: var(--deep);
  font-weight: 600;
}

.pdp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding-top: var(--space-xs);
}

.pdp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: var(--space-s);
  border-top: 1px solid var(--border-color);
}
.pdp-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-s);
  color: var(--text-dark-muted);
}
.pdp-meta .material-symbols-outlined { font-size: 18px; color: var(--brand); }


/* PDP brand-story row: text + image side by side, image matches text height */
.pdp-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: stretch;
}
.pdp-story__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-border-radius);
  background: var(--offwhite);
  min-height: 280px;
  aspect-ratio: 4 / 3;          /* mobile: respect aspect on stacked layout */
}
.pdp-story__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .pdp-story {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }
  .pdp-story__media {
    aspect-ratio: auto;          /* desktop: stretch to text column height */
    min-height: 100%;
  }
}
@media (min-width: 992px) {
  .pdp-story { gap: clamp(var(--space-xl), 5vw, var(--space-xxl)); }
}

/* PDP content sections */
.pdp-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  max-width: 720px;
}
.pdp-content p { font-size: var(--text-l); line-height: 1.7; color: var(--text-dark); }
.pdp-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-top: var(--space-s);
}
@media (min-width: 480px) {
  .pdp-feature-list { grid-template-columns: repeat(2, 1fr); }
}
.pdp-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-m);
  font-weight: 500;
  color: var(--deep);
}
.pdp-feature-list .material-symbols-outlined {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-s);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Spec table */
.spec-table-wrap {
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
  overflow: hidden;
}
.spec-table-wrap__title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  color: var(--brand);
  font-weight: 700;
  padding: var(--space-m) var(--space-m) var(--space-s);
  margin: 0;
}
.spec-table { width: 100%; font-size: var(--text-m); }
.spec-table th,
.spec-table td { padding: 0.875rem var(--space-m); text-align: left; border-block-start: 1px solid var(--border-color); }
.spec-table th {
  width: 45%;
  background: var(--base);
  color: var(--deep);
  font-weight: 600;
}
.spec-table td { color: var(--text-dark); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { padding-bottom: var(--space-m); }

/* Allergen rows */
.allergen-row {
  display: flex;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
}
.allergen-row .material-symbols-outlined {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-s);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.allergen-row strong { display: block; color: var(--deep); margin-bottom: 0.25rem; }
.allergen-row p { margin: 0; }
.allergen-row--warn { border-left: 3px solid var(--danger); }
.allergen-row--warn .material-symbols-outlined { background: hsl(0 67% 54% / 0.1); color: var(--danger); }

/* Variant card */
.variant-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
  padding: var(--space-s);
}
.variant-card__media {
  aspect-ratio: 1;
  min-height: 0;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-m);
}
.variant-card strong { color: var(--deep); font-size: var(--text-m); }
.variant-card small { font-family: var(--font-mono); font-size: 0.75rem; }

/* Marketplace buy buttons (Lazada / Shopee). Brand-recognisable but not garish. */
.marketplace-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.marketplace-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-s);
  font-size: var(--text-s);
  font-weight: 600;
  line-height: 1;
  min-height: 36px;
  border: 1px solid;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.marketplace-btn .material-symbols-outlined { font-size: 16px; }
.marketplace-btn:hover { transform: translateY(-1px); }

.marketplace-btn--lazada {
  background: hsl(232 70% 96%);
  color: hsl(232 70% 35%);
  border-color: hsl(232 70% 85%);
}
.marketplace-btn--lazada:hover {
  background: hsl(232 70% 35%);
  color: var(--text-light);
  border-color: hsl(232 70% 35%);
}

.marketplace-btn--shopee {
  background: hsl(13 86% 96%);
  color: hsl(13 86% 42%);
  border-color: hsl(13 86% 85%);
}
.marketplace-btn--shopee:hover {
  background: hsl(13 86% 50%);
  color: var(--text-light);
  border-color: hsl(13 86% 50%);
}

/* Quote form */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  background: var(--base);
  padding: var(--card-padding);
  border-radius: var(--card-border-radius);
  border: 1px solid var(--border-color);
}
.quote-form__group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  border: 0;
  padding: 0;
}
.quote-form__group legend {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  color: var(--brand);
  font-weight: 700;
  padding-bottom: var(--space-xs);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-row label {
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--deep);
}
.form-row label span[aria-hidden] { color: var(--danger); }
.form-row input,
.form-row select,
.form-row textarea {
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-color-strong);
  border-radius: var(--radius-s);
  background: var(--base);
  font-family: var(--font-body);
  font-size: var(--text-m);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input[readonly] { background: var(--offwhite); color: var(--text-dark-muted); cursor: not-allowed; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-row textarea { resize: vertical; min-height: 96px; }

.quote-form__submit {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  padding-top: var(--space-s);
  border-top: 1px solid var(--border-color);
}

@media (min-width: 480px) {
  .quote-form__group { grid-template-columns: 1fr 1fr; }
  .quote-form__group legend { grid-column: 1 / -1; }
  .form-row--full { grid-column: 1 / -1; }
}


/* ============================================================
   COMPONENT — PAGE HERO (index pages: products, recipes, marine)
   Eyebrow + H1 + lede + CTAs. Lives below the breadcrumb.
   ============================================================ */

.page-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  max-width: 880px;
}
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { max-width: 60ch; }

/* Two-column variant: text left, media right. Used on Products,
   Recipes, and category index pages. */
.page-hero--with-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: center;
  max-width: none;
}
.page-hero--with-media .page-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  max-width: 56ch;
}
.page-hero--with-media .page-hero__content h1 { max-width: 22ch; }
.page-hero--with-media .page-hero__content .lede { max-width: 56ch; }
.page-hero__media {
  position: relative;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--offwhite);
}
.page-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Trefoil variant — three overlapping circles, echoing the CPFS brand mark.
   Used on the products index hero (and reusable on other index heroes). */
.page-hero__media--trefoil {
  position: relative;
  aspect-ratio: 1;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.hero-circle {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 6px solid var(--surface);
  transition: transform var(--transition-slow);
}
.hero-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-circle--1 { top: 0;   left: 21%;  z-index: 3; }
.hero-circle--2 { top: 38%; left: 0;    z-index: 2; }
.hero-circle--3 { top: 38%; right: 0;   z-index: 1; }
.hero-circle:hover { transform: scale(1.04); z-index: 4; }

@media (min-width: 768px) {
  .page-hero--with-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }
  .page-hero__media { aspect-ratio: 5 / 4; }
  .page-hero__media--trefoil { aspect-ratio: 1; }
}
@media (min-width: 992px) {
  .page-hero--with-media { gap: clamp(var(--space-xl), 6vw, var(--space-xxl)); }
}


/* ============================================================
   COMPONENT — ANCHOR CHIPS (in-page jump nav)
   Used at the top of the Marine category to jump to a brand.
   ============================================================ */

.anchor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: var(--space-xs);
}
.anchor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-s);
  font-weight: 500;
  line-height: 1;
  padding: 0.5rem 0.875rem;
  background: var(--base);
  color: var(--deep);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.anchor-chip:hover {
  background: var(--brand);
  color: var(--text-light);
  border-color: var(--brand);
}
.anchor-chip--active {
  background: var(--deep);
  color: var(--text-light);
  border-color: var(--deep);
}
.anchor-chip--active:hover {
  background: var(--brand);
  border-color: var(--brand);
}


/* ============================================================
   COMPONENT — BRAND BLOCK (Marine category, per-brand section)
   Header row with logo + intro, grid of foodservice SKUs,
   retail variants strip below.
   ============================================================ */

.brand-block { scroll-margin-top: 96px; }      /* anchor offset for sticky header */

.brand-block__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  align-items: start;
  max-width: 880px;
}
.brand-block__logo {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .brand-block__header {
    grid-template-columns: 240px 1fr;
    gap: var(--space-l);
    align-items: center;
    max-width: none;
  }
}

.brand-block__retail {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding-top: var(--space-m);
  border-top: 1px solid var(--border-color);
}


/* ============================================================
   COMPONENT — CATEGORY CARD (six on the products index)
   Image-led card with brand chips inside the body.
   ============================================================ */

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--base);
  border: 1px solid var(--border-color);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-l);
}
.category-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.category-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.category-card:hover .category-card__media img { transform: scale(1.04); }
.category-card__body {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  flex: 1;
}
.category-card__title {
  font-size: var(--h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.category-card__title a { color: var(--deep); }
.category-card__title a:hover { color: var(--brand); }


/* ---- Brand chips (small inline brand list inside category card) ---- */
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.375rem 0.625rem;
  background: var(--offwhite);
  color: var(--text-dark-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
}


/* ============================================================
   COMPONENT — SERVICE TILE (compact, e.g. solutions callout
   on the products index)
   ============================================================ */

.service-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--space-m);
  background: hsl(0 0% 100% / 0.04);
  border: 1px solid hsl(0 0% 100% / 0.08);
  border-radius: var(--radius-m);
  transition: background var(--transition);
}
.service-tile:hover { background: hsl(0 0% 100% / 0.07); }
.service-tile__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-s);
  background: var(--brand);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.service-tile strong { color: var(--text-light); font-size: var(--text-m); }
.service-tile small { color: var(--text-light-muted); font-size: var(--text-s); line-height: 1.5; }


/* ============================================================
   COMPONENT — NEWS CARD
   ============================================================ */

.news-card .card__media { aspect-ratio: 16 / 9; }
.news-card .card__title { font-size: var(--h4); font-weight: 600; }
.news-card .card__title a { color: var(--deep); }
.news-card .card__title a:hover { color: var(--brand); }


/* ============================================================
   COMPONENT — CTA BAND (reusable section CTA)
   ============================================================ */

.cta-band {
  background: var(--brand);
  color: var(--text-light);
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  align-items: flex-start;
}
.cta-band h2 { color: var(--text-light); }
.cta-band p { color: var(--text-light-muted); max-width: 60ch; }


/* ============================================================
   RESPONSIVE — mobile-first @min-width breakpoints
   Breakpoints from ACSS: s 480 / m 768 / l 992 / xl 1280
   ============================================================ */

@media (min-width: 480px) {
  .grid--s-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .grid--m-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--m-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--m-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--m-2-1 { grid-template-columns: 2fr 1fr; }
  .grid--m-1-2 { grid-template-columns: 1fr 2fr; }
  .display--m-none { display: none; }
  .display--m-flex { display: flex; }
  .display--m-block { display: block; }

  /* Header / nav surfaces at desktop */
  .site-nav { display: block; }
  .site-header__menu { display: none; }
  .site-header__inner { padding-block: 1rem; }

  .site-footer__main-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
  }

  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .grid--l-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--l-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--l-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--l-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid--l-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--l-2-1 { grid-template-columns: 2fr 1fr; }
  .grid--l-1-2 { grid-template-columns: 1fr 2fr; }
  .display--l-none { display: none; }

  .site-footer__main-inner {
    grid-template-columns: 2.2fr 1fr 1fr 1fr 1.2fr;
  }
}

@media (min-width: 1280px) {
  .grid--xl-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--xl-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
