/* ==========================================================================
   African Farm & Gardens — design system
   Built from the AFG Brand Guidelines (colour system, typography system,
   visual language and packaging system).

   1.  Design tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons
   6.  Badges, chips & filters
   7.  Header & navigation
   8.  Footer
   9.  Cards (product, recipe, category, editorial)
   10. Sections
   11. Forms
   12. Utilities
   13. Motion
   14. Responsive
   ========================================================================== */

/* ------------------------------------------------------------------ 1. TOKENS */
:root {
  /* Brand — AFG Colour System */
  --afg-orange:        #ED8B2F;   /* AFG Sun Orange, Pantone 144C */
  --afg-orange-dark:   #D2761D;
  --afg-orange-soft:   #FBE7D3;
  --afg-gold:          #F2CF66;   /* AFG Harvest Gold, Pantone 120C */
  --afg-gold-soft:     #FCF3D8;
  --afg-green:         #009A44;   /* AFG Leaf Green, Pantone 355C */
  --afg-green-dark:    #007836;
  --afg-green-soft:    #E0F2E7;
  --afg-black:         #231F20;   /* AFG Soil Black, Process Black */
  --afg-forest:        #0B3A23;   /* deep green surface used on AFG packaging */
  --afg-forest-deep:   #072717;

  /* Neutrals — AFG Neutral Palette */
  --surface-white:     #FFFFFF;
  --surface-cream:     #F7F5F1;   /* Warm Ivory */
  --surface-muted:     #EFE8DE;   /* Shea Beige */
  --surface-sand:      #E4D7C3;   /* Soft Sand */
  --surface-dark:      #1F1F1F;   /* Charcoal */

  /* Text */
  --text-primary:      #231F20;
  --text-secondary:    #4A4644;
  --text-muted:        #7B7570;
  --text-on-dark:      #F7F5F1;
  --text-on-dark-muted:#C3CFC6;

  /* Lines */
  --line:              #E4DFD6;
  --line-strong:       #D2CABC;
  --line-on-dark:      rgba(247, 245, 241, .18);

  /* Radii */
  --radius-small:      8px;
  --radius-medium:     14px;
  --radius-large:      24px;
  --radius-xlarge:     32px;
  --radius-pill:       999px;

  /* Shadows */
  --shadow-soft:       0 2px 8px rgba(35, 31, 32, .05);
  --shadow-card:       0 6px 24px rgba(35, 31, 32, .07);
  --shadow-elevated:   0 18px 48px rgba(35, 31, 32, .13);
  --shadow-header:     0 1px 0 var(--line), 0 6px 20px rgba(35, 31, 32, .05);

  /* Type */
  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body:    "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --fs-display:  clamp(2.35rem, 1.4rem + 3.6vw, 4.05rem);
  --fs-h1:       clamp(2.1rem, 1.4rem + 2.9vw, 3.4rem);
  --fs-h2:       clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem);
  --fs-h3:       clamp(1.15rem, 1.02rem + .55vw, 1.4rem);
  --fs-body:     1rem;
  --fs-lead:     clamp(1.02rem, .98rem + .28vw, 1.16rem);
  --fs-small:    .8125rem;
  --fs-eyebrow:  .75rem;

  /* Layout */
  --container-max:     1280px;
  --container-narrow:  860px;
  --container-pad:     24px;
  --section-spacing:   clamp(64px, 3rem + 4vw, 112px);
  --section-spacing-sm:clamp(48px, 2.5rem + 2.5vw, 76px);

  --header-height:     84px;
  --announce-height:   38px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ 2. RESET */
*, *::before, *::after { box-sizing: border-box; }

/* Author rules such as `.card { display: flex }` out-specify the UA's
   `[hidden] { display: none }`. Filtering relies on the hidden attribute,
   so make it authoritative. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface-cream);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;   /* long emails/URLs must never widen a column */
}
body.is-locked { overflow: hidden; }

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

/* <picture> is inline by default, which stops `height:100%` on the inner <img>
   from resolving inside aspect-ratio containers. Make it a real box. */
.media-frame picture, .product-card__media picture, .recipe-card__media picture,
.category-card picture, .promo__media picture, .sourced__bg picture,
.page-hero__bg picture, .social-grid picture, .recipe-hero__media picture,
.product-gallery__main picture, .hero__media picture {
  width: 100%; height: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

/* Inline links inside running copy are underlined; navigation and UI links are not. */
.prose a, .note a, .checkbox a, .cookie-banner p a, .hint a, .info-strip a,
.ingredient-list a, .method-list a, .tip-list a {
  color: var(--afg-green-dark); text-decoration: underline; text-underline-offset: 3px;
}
.prose a:hover, .note a:hover, .checkbox a:hover, .cookie-banner p a:hover,
.ingredient-list a:hover { color: var(--afg-orange-dark); }

:focus-visible {
  outline: 3px solid var(--afg-orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--afg-forest); color: var(--text-on-dark);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------- 3. TYPOGRAPHY */
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.012em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--font-body); font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--afg-orange); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--afg-green-dark);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--afg-orange), var(--afg-gold));
}
.eyebrow--on-dark { color: var(--afg-gold); }
.eyebrow--plain::before { display: none; }

.lead { font-size: var(--fs-lead); color: var(--text-secondary); line-height: 1.7; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); line-height: 1.55; }

.section-head { max-width: 640px; margin-bottom: clamp(28px, 3vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; color: var(--text-secondary); }

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row > * { min-width: 0; }

/* --------------------------------------------------------- 4. LAYOUT PRIMITIVES */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-spacing); }
.section--tight { padding-block: var(--section-spacing-sm); }
.section--cream { background: var(--surface-cream); }
.section--white { background: var(--surface-white); }
.section--muted { background: var(--surface-muted); }
.section--sand  { background: var(--surface-sand); }
.section--forest { background: var(--afg-forest); color: var(--text-on-dark); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--text-on-dark); }
.section--forest .lead, .section--forest p { color: var(--text-on-dark-muted); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--wide-right { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }

.stack > * + * { margin-top: var(--stack-gap, 16px); }

.media-frame {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: var(--shadow-card);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

/* ------------------------------------------------------------------ 5. BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: .9375rem; font-weight: 600; letter-spacing: .005em;
  border: 1.5px solid transparent;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
  will-change: transform;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .22s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary { background: var(--afg-orange); color: #fff; box-shadow: 0 6px 18px rgba(237, 139, 47, .28); }
.btn--primary:hover { background: var(--afg-orange-dark); box-shadow: 0 10px 24px rgba(237, 139, 47, .34); }

.btn--green { background: var(--afg-green); color: #fff; box-shadow: 0 6px 18px rgba(0, 154, 68, .24); }
.btn--green:hover { background: var(--afg-green-dark); }

.btn--secondary { border-color: var(--afg-forest); color: var(--afg-forest); }
.btn--secondary:hover { background: var(--afg-forest); color: var(--text-on-dark); }

.btn--light { background: var(--surface-white); color: var(--afg-forest); box-shadow: var(--shadow-card); }
.btn--light:hover { background: var(--surface-cream); }

.btn--ghost-light { border-color: rgba(247,245,241,.55); color: var(--text-on-dark); }
.btn--ghost-light:hover { background: rgba(247,245,241,.12); border-color: var(--text-on-dark); }

.btn--small { padding: 10px 18px; font-size: .875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .9375rem; color: var(--afg-green-dark);
  border-bottom: 1.5px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
  padding-bottom: 2px;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--afg-orange-dark); border-color: currentColor; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--on-dark { color: var(--afg-gold); }
.link-arrow--on-dark:hover { color: #fff; }

/* --------------------------------------------------------- 6. BADGES & CHIPS */
.badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
}
.badge--new     { background: var(--afg-green); color: #fff; }
.badge--pack    { background: var(--surface-muted); color: var(--text-secondary); }
.badge--variant { background: var(--afg-gold-soft); color: #7A5B10; }
.badge--category{ background: rgba(255,255,255,.9); color: var(--afg-forest); backdrop-filter: blur(6px); }

.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 6px 0;
}
.filter-bar--scroll {
  flex: 1 1 260px; min-width: 0; max-width: 100%;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none; scroll-snap-type: x proximity;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.filter-bar--scroll::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .5em;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface-white);
  color: var(--text-secondary);
  font-size: .875rem; font-weight: 500;
  scroll-snap-align: start;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:hover { border-color: var(--afg-green); color: var(--afg-green-dark); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--afg-forest); border-color: var(--afg-forest);
  color: var(--text-on-dark); box-shadow: var(--shadow-soft);
}
.chip .chip-count { font-size: .75rem; opacity: .65; }

/* --------------------------------------------------------------- 7. HEADER */
.announce {
  background: var(--afg-orange);
  color: #fff;
  font-size: .75rem; font-weight: 500; letter-spacing: .04em;
  height: var(--announce-height);
  display: flex; align-items: center;
  overflow: hidden;
}
.announce .container { display: flex; justify-content: center; }
.announce-track { display: flex; gap: 48px; align-items: center; white-space: nowrap; }
.announce-item { display: inline-flex; align-items: center; gap: 8px; }
.announce-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.75); }
@media (max-width: 1100px) { .announce-item:nth-child(n+4) { display: none; } }
@media (max-width: 860px)  { .announce-item:nth-child(n+3) { display: none; } }
@media (max-width: 560px)  { .announce-item:nth-child(n+2) { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 241, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--shadow-header);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
@supports not (backdrop-filter: blur(2px)) { .site-header { background: var(--surface-cream); } }
.site-header.is-scrolled { background: rgba(247, 245, 241, .97); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(35,31,32,.08); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-height);
}
.brand-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo img { height: 46px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  position: relative;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  font-size: .9375rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--afg-orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.primary-nav a:hover { color: var(--text-primary); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--afg-orange-dark); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface-white);
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--afg-forest);
  transition: transform .28s var(--ease), opacity .2s var(--ease), width .28s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; width: 13px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120;
  visibility: hidden; pointer-events: none;
  overflow: hidden;
  contain: paint;              /* keeps the off-canvas panel out of the document's scroll width */
}
.mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.mobile-nav__scrim {
  position: absolute; inset: 0;
  background: rgba(11, 58, 35, .42);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-nav.is-open .mobile-nav__scrim { opacity: 1; }
.mobile-nav__panel {
  position: absolute; inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: var(--surface-cream);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  box-shadow: -20px 0 60px rgba(35,31,32,.18);
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--container-pad);
  border-bottom: 1px solid var(--line);
}
.mobile-nav__head img { height: 40px; width: auto; }
.mobile-nav__close {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface-white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1; color: var(--afg-forest);
}
.mobile-nav__body { padding: 12px var(--container-pad) 28px; overflow-y: auto; flex: 1; }
.mobile-nav__body a.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  color: var(--text-primary);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.mobile-nav__body a.mobile-link:hover,
.mobile-nav__body a.mobile-link[aria-current="page"] { color: var(--afg-orange-dark); padding-left: 10px; }
.mobile-nav__cats { margin-top: 26px; }
.mobile-nav__cats h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.mobile-nav__cats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-nav__cats a { display: block; padding: 9px 4px; color: var(--text-secondary); font-size: .9375rem; text-decoration: none; }
.mobile-nav__cats a:hover { color: var(--afg-green-dark); }
.mobile-nav__foot { padding: 20px var(--container-pad) 28px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- 8. FOOTER */
.site-footer { background: var(--afg-forest); color: var(--text-on-dark); }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-col a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a { text-decoration: none; }

.footer-main { padding-block: clamp(52px, 5vw, 76px) clamp(36px, 4vw, 52px); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.footer-brand img { height: 46px; width: auto; margin-bottom: 22px; }
.footer-brand p { color: var(--text-on-dark-muted); max-width: 34ch; }
.footer-brand .footer-tagline {
  font-family: var(--font-display); font-size: 1.0625rem; font-style: italic;
  color: var(--afg-gold); margin-top: 10px;
}
.footer-col h3 {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--afg-gold); margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { font-size: .9375rem; transition: color .2s var(--ease), transform .2s var(--ease); display: inline-block; }
.footer-col a:hover { transform: translateX(3px); }

.footer-contact { display: grid; gap: 12px; margin-top: 22px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--text-on-dark-muted); list-style: none; }
.footer-contact li > a, .footer-contact li > span { min-width: 0; overflow-wrap: anywhere; }
.footer-contact .icon { flex: 0 0 auto; margin-top: 3px; opacity: .8; }
/* Same markup, used on a light card (Contact page) */
.contact-details li { color: var(--text-secondary); }
.contact-details .icon { color: var(--afg-green-dark); opacity: 1; }
.contact-details a { color: var(--afg-green-dark); text-decoration: underline; text-underline-offset: 3px; }
.contact-details a:hover { color: var(--afg-orange-dark); }

.social-row { display: flex; gap: 10px; margin-top: 24px; }
.social-row a {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-dark);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.social-row a:hover { background: var(--afg-orange); border-color: var(--afg-orange); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8125rem; color: var(--text-on-dark-muted);
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ 9. CARDS */
.card {
  background: var(--surface-white);
  border-radius: var(--radius-large);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); border-color: transparent; }

/* Product card */
.product-card { position: relative; }
.product-card__media {
  position: relative; aspect-ratio: 1 / 1; background: var(--surface-cream);
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.045); }
.product-card__flags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.product-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__cat {
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--afg-green-dark);
}
.product-card__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.product-card__title span { display: block; font-family: var(--font-body); font-size: .8125rem; font-weight: 500; color: var(--text-muted); margin-top: 3px; letter-spacing: 0; }
.product-card__summary { font-size: .875rem; color: var(--text-secondary); line-height: 1.55; }
.product-card__packs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.product-card__foot { margin-top: auto; padding-top: 14px; }
.product-card__link::after { content: ""; position: absolute; inset: 0; }

/* Category card */
.category-card {
  position: relative; display: block;
  border-radius: var(--radius-large); overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-muted);
  isolation: isolate;
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,58,35,.88) 0%, rgba(11,58,35,.45) 38%, rgba(11,58,35,0) 68%);
}
.category-card:hover img { transform: scale(1.06); }
.category-card__body { position: absolute; inset: auto 0 0 0; padding: 22px 20px; z-index: 1; color: #fff; }
.category-card__body h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; }
.category-card__body p { font-size: .8125rem; color: rgba(255,255,255,.82); margin: 6px 0 0; line-height: 1.5; }
.category-card__more {
  display: inline-flex; align-items: center; gap: .45em;
  margin-top: 12px; font-size: .8125rem; font-weight: 600; color: var(--afg-gold);
}
.category-card__more .icon { transition: transform .2s var(--ease); }
.category-card:hover .category-card__more .icon { transform: translateX(4px); }

/* Recipe card */
.recipe-card { position: relative; }
.recipe-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-muted); }
.recipe-card--tall .recipe-card__media { aspect-ratio: 3 / 4; }
.recipe-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.recipe-card:hover .recipe-card__media img { transform: scale(1.05); }
.recipe-card__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.recipe-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.recipe-card__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.22; }
.recipe-card__summary { font-size: .875rem; color: var(--text-secondary); line-height: 1.55; }
.recipe-card__meta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--text-muted);
}
.recipe-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.recipe-card__link::after { content: ""; position: absolute; inset: 0; }

/* Pillar card */
.pillar {
  background: var(--surface-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pillar__icon {
  width: 52px; height: 52px; border-radius: var(--radius-medium);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--afg-green-soft); color: var(--afg-green-dark);
}
.pillar:nth-child(2) .pillar__icon { background: var(--afg-orange-soft); color: var(--afg-orange-dark); }
.pillar:nth-child(3) .pillar__icon { background: var(--afg-gold-soft); color: #8A6708; }
.pillar:nth-child(4) .pillar__icon { background: var(--surface-muted); color: var(--afg-forest); }
.pillar h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.pillar p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* Rail (horizontal scroller) */
.rail { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 1fr);
  gap: clamp(16px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  margin-inline: -4px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
.rail__track > * { scroll-snap-align: start; }
.rail__track::-webkit-scrollbar { height: 6px; }
.rail__track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.rail__track::-webkit-scrollbar-track { background: transparent; }
.rail__nav { display: flex; gap: 8px; }
.rail__btn {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface-white);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--afg-forest);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.rail__btn:hover:not(:disabled) { background: var(--afg-forest); border-color: var(--afg-forest); color: #fff; }
.rail__btn:disabled { opacity: .35; cursor: default; }

/* ---------------------------------------------------------------- 10. SECTIONS */
/* Hero */
.hero { position: relative; overflow: hidden; background: var(--surface-cream); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(242, 207, 102, .30), transparent 58%),
    radial-gradient(90% 80% at 5% 90%, rgba(0, 154, 68, .10), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-block: clamp(48px, 5vw, 88px) clamp(52px, 5vw, 92px);
}
.hero__copy { max-width: 560px; }
.hero__title { margin-bottom: 22px; }
.hero__body { font-size: var(--fs-lead); color: var(--text-secondary); max-width: 46ch; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero__marks {
  display: flex; gap: 10px 26px; flex-wrap: wrap; margin-top: 38px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero__marks li { list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; color: var(--text-secondary); }
.hero__marks .icon { color: var(--afg-green); }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: auto; border-radius: var(--radius-xlarge); }
.hero__media::after {
  content: ""; position: absolute; inset: auto 6% -18px 6%; height: 40px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(35,31,32,.16), transparent 72%);
  filter: blur(2px);
}

/* Sourced with Purpose — glass panel over photography */
.sourced { position: relative; overflow: hidden; background: var(--afg-forest); }
.sourced__bg { position: absolute; inset: 0; }
.sourced__bg img { width: 100%; height: 100%; object-fit: cover; }
.sourced__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7,39,23,.90) 0%, rgba(7,39,23,.70) 42%, rgba(7,39,23,.34) 100%);
}
.sourced__inner { position: relative; z-index: 1; padding-block: clamp(72px, 7vw, 128px); }
.glass-panel {
  max-width: 620px;
  background: rgba(247, 245, 241, .13);
  border: 1px solid rgba(247, 245, 241, .26);
  border-radius: var(--radius-xlarge);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  padding: clamp(28px, 3.4vw, 46px);
  color: var(--text-on-dark);
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass-panel { background: rgba(7, 39, 23, .82); }
}
.glass-panel h2 { color: #fff; }
.glass-panel p { color: rgba(247,245,241,.88); }
.sourced__points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 24px; margin-top: 30px; }
.sourced__points li { list-style: none; }
.sourced__points h3 { font-size: .9375rem; font-weight: 600; color: var(--afg-gold); margin-bottom: 4px; }
.sourced__points p { font-size: .8125rem; line-height: 1.55; color: rgba(247,245,241,.78); }

/* Promo band (Kilishi range) */
.promo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xlarge);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  isolation: isolate;
}
.promo__bg { position: absolute; inset: 0; }
.promo__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.promo__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(20,12,6,.94) 8%, rgba(20,12,6,.66) 48%, rgba(20,12,6,.30) 100%); }
.promo__inner { position: relative; z-index: 1; padding: clamp(36px, 4.5vw, 64px); max-width: 620px; }
.promo--split {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center; background: var(--afg-forest);
}
.promo--split .promo__inner { max-width: none; }
.promo__media { position: relative; align-self: stretch; min-height: 300px; }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
.promo__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--afg-forest) 0%, rgba(11,58,35,.45) 22%, rgba(11,58,35,0) 55%);
}
.promo h2 { color: #fff; }
.promo p { color: rgba(255,255,255,.82); }
.promo__list { display: flex; gap: 10px 22px; flex-wrap: wrap; margin: 22px 0 30px; padding: 0; }
.promo__list li { list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: rgba(255,255,255,.9); }
.promo__list .icon { color: var(--afg-gold); }

/* Trade / wholesale band */
.trade-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--afg-forest); color: var(--text-on-dark);
  border-radius: var(--radius-xlarge);
  padding: clamp(32px, 4vw, 56px);
}
.trade-band h2 { color: #fff; }
.trade-band .lead { color: var(--text-on-dark-muted); }
@media (max-width: 900px) { .trade-band { grid-template-columns: 1fr; } }

/* Page hero (interior pages) */
.page-hero { position: relative; overflow: hidden; background: var(--surface-muted); }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(247,245,241,.985) 6%, rgba(247,245,241,.93) 42%, rgba(247,245,241,.55) 100%); }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(52px, 5.5vw, 96px); max-width: 640px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero--dark .page-hero__bg::after { background: linear-gradient(100deg, rgba(7,39,23,.94) 4%, rgba(7,39,23,.78) 42%, rgba(7,39,23,.38) 100%); }
.page-hero--dark, .page-hero--dark h1 { color: var(--text-on-dark); }
.page-hero--dark .lead { color: var(--text-on-dark-muted); }

/* Breadcrumbs */
.breadcrumbs { padding-block: 16px; font-size: .8125rem; color: var(--text-muted); border-bottom: 1px solid var(--line); background: var(--surface-cream); }
.breadcrumbs ol { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; align-items: center; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a:hover { color: var(--afg-green-dark); }
.breadcrumbs [aria-current="page"] { color: var(--text-secondary); }

/* Stat / info strip */
.info-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border-radius: var(--radius-large); overflow: hidden; border: 1px solid var(--line); }
.info-strip > div { background: var(--surface-white); padding: 26px 22px; }
.info-strip h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.info-strip p { font-size: .8125rem; color: var(--text-secondary); line-height: 1.55; }

/* Social grid */
.social-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.social-grid a { position: relative; display: block; aspect-ratio: 1/1; border-radius: var(--radius-medium); overflow: hidden; background: var(--surface-muted); }
.social-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.social-grid a::after {
  content: ""; position: absolute; inset: 0; background: rgba(11,58,35,.34);
  opacity: 0; transition: opacity .3s var(--ease);
}
.social-grid a:hover img { transform: scale(1.07); }
.social-grid a:hover::after { opacity: 1; }

/* Newsletter */
.newsletter { background: var(--surface-muted); border-radius: var(--radius-xlarge); padding: clamp(32px, 4vw, 56px); }
.newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }

/* Recipe detail */
.recipe-hero__media { border-radius: var(--radius-xlarge); overflow: hidden; box-shadow: var(--shadow-card); }
.recipe-hero__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.info-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  background: var(--surface-white); border: 1px solid var(--line);
  border-radius: var(--radius-large); overflow: hidden;
}
.info-bar > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.info-bar > div:last-child { border-right: 0; }
.info-bar dt { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.info-bar dd { margin: 0; font-weight: 600; font-size: 1.0625rem; font-family: var(--font-display); }

.ingredient-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ingredient-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.ingredient-list li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--afg-orange); }
.ingredient-group + .ingredient-group { margin-top: 26px; }
.ingredient-group h3 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--afg-green-dark); margin-bottom: 8px; }

.method-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.method-list li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 18px; align-items: start; }
.method-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--afg-orange);
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--afg-orange-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.method-list p { margin: 0; padding-top: 9px; color: var(--text-secondary); }

.tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tip-list li { display: flex; gap: 12px; font-size: .9375rem; color: var(--text-secondary); }
.tip-list .icon { flex: 0 0 auto; color: var(--afg-green); margin-top: 3px; }

.sticky-aside { position: sticky; top: calc(var(--header-height) + 24px); }

/* Product detail */
.product-gallery__main { border-radius: var(--radius-xlarge); overflow: hidden; background: var(--surface-cream); border: 1px solid var(--line); }
.product-gallery__main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product-gallery__thumbs button {
  width: 78px; height: 78px; border-radius: var(--radius-medium); overflow: hidden;
  border: 2px solid transparent; background: var(--surface-cream);
  transition: border-color .2s var(--ease);
}
.product-gallery__thumbs button[aria-pressed="true"] { border-color: var(--afg-orange); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 600; color: var(--text-primary); width: 40%; }
.spec-table td { color: var(--text-secondary); }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; text-align: left; font-weight: 600; font-size: 1rem;
}
.accordion__btn .icon { transition: transform .25s var(--ease); flex: 0 0 auto; color: var(--afg-green-dark); }
.accordion__btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion__panel { overflow: hidden; }
.accordion__panel[hidden] { display: none; }
.accordion__panel > div { padding-bottom: 22px; color: var(--text-secondary); font-size: .9375rem; }

.note {
  font-size: .78rem; color: var(--text-muted); line-height: 1.55;
  padding: 12px 14px; border-radius: var(--radius-medium);
  background: var(--surface-muted); border: 1px solid var(--line);
}

/* Legal / prose pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-secondary); }
.prose ul { color: var(--text-secondary); padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* 404 */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: var(--section-spacing); }
.error-page__code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 12vw, 11rem); line-height: .9; color: var(--afg-orange); opacity: .22; font-weight: 700; }

/* Empty state */
.empty-state { text-align: center; padding: clamp(48px, 6vw, 88px) 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-large); background: var(--surface-white); }
.empty-state h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); }

/* ------------------------------------------------------------------ 11. FORMS */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 500; color: var(--text-primary); }
.field .req { color: var(--afg-orange-dark); }
.field .hint { font-size: .75rem; color: var(--text-muted); }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-medium);
  border: 1.5px solid var(--line-strong);
  background: var(--surface-white);
  color: var(--text-primary);
  font-size: .9375rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%234A4644' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 42px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--afg-green);
  box-shadow: 0 0 0 3px rgba(0, 154, 68, .15);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}
.error-text { font-size: .78rem; color: #A9291B; display: none; }
.error-text.is-visible { display: block; }

/* Split telephone: country code + number */
.tel-group { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; }
.tel-group .select { padding-right: 32px; background-position: right 10px center; }

.checkbox { display: flex; gap: 11px; align-items: flex-start; font-size: .8125rem; color: var(--text-secondary); line-height: 1.55; }
.checkbox input {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px;
  accent-color: var(--afg-green);
  border-radius: 5px;
}
.checkbox a { color: var(--afg-green-dark); text-decoration: underline; text-underline-offset: 2px; }

.form-status { border-radius: var(--radius-medium); padding: 14px 16px; font-size: .875rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--success { background: var(--afg-green-soft); color: #075B2A; border: 1px solid rgba(0,154,68,.28); }
.form-status--error   { background: #FBE9E7; color: #96271A; border: 1px solid rgba(192,57,43,.24); }
.form-status--info    { background: var(--afg-gold-soft); color: #6E5106; border: 1px solid rgba(242,207,102,.6); }

/* Honeypot: invisible to people, still fillable by bots, and — unlike the classic
   left:-9999px trick — it does not extend the document's scrollable area. */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; opacity: 0;
}

.btn[data-loading="true"] { pointer-events: none; opacity: .78; }
.btn .spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: afg-spin .7s linear infinite;
  display: none;
}
.btn[data-loading="true"] .spinner { display: inline-block; }
@keyframes afg-spin { to { transform: rotate(360deg); } }

.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form .input { flex: 1 1 220px; }

/* ------------------------------------------------- Where-to-buy modal */
.retail-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.retail-modal[hidden] { display: none; }
.retail-modal__scrim {
  position: absolute; inset: 0; background: rgba(11, 58, 35, .5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s var(--ease);
}
.retail-modal.is-open .retail-modal__scrim { opacity: 1; }
.retail-modal__panel {
  position: relative; z-index: 1;
  width: min(460px, 100%); max-height: min(88vh, 720px); overflow-y: auto;
  background: var(--surface-cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-xlarge);
  box-shadow: 0 32px 80px rgba(11, 58, 35, .28);
  padding: clamp(26px, 3.4vw, 36px);
  transform: translateY(14px) scale(.98); opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.retail-modal.is-open .retail-modal__panel { transform: none; opacity: 1; }
.retail-modal__panel h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.retail-modal__intro { font-size: .9375rem; color: var(--text-secondary); margin-top: 12px; }
.retail-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface-white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1; color: var(--afg-forest);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.retail-modal__close:hover { background: var(--afg-forest); border-color: var(--afg-forest); color: #fff; }

.retail-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.retail-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--surface-white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-medium);
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.retail-option:hover { border-color: var(--afg-orange); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.retail-option__body { flex: 1; min-width: 0; }
.retail-option__name { display: block; font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.retail-option__meta { display: block; font-size: .8125rem; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }
.retail-option__go {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: var(--radius-pill);
  background: var(--afg-orange-soft); color: var(--afg-orange-dark);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.retail-option:hover .retail-option__go { background: var(--afg-orange); color: #fff; transform: translateX(3px); }
.retail-option__tag {
  display: inline-block; margin-top: 6px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--afg-green-dark);
}
.retail-option__flag {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--afg-green-soft, rgba(0, 154, 68, .1));
  color: var(--afg-green-dark);
  font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.retail-group + .retail-group { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.retail-group__title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary); margin: 22px 0 0;
}
.retail-group + .retail-group .retail-group__title { margin-top: 0; }
.retail-group__body { font-size: .8125rem; color: var(--text-muted); margin: 4px 0 0; }
.retail-group__body + .retail-list { margin-top: 14px; }
.retail-modal__note { margin-top: 20px; }

@media (max-width: 420px) {
  .retail-modal { padding: 12px; }
  .retail-modal__panel { border-radius: var(--radius-large); padding: 24px 20px; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 140;
  max-width: 560px;
  background: var(--surface-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated);
  padding: 20px 22px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: .8125rem; color: var(--text-secondary); }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* --------------------------------------------------------------- 12. UTILITIES */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.icon { width: 1em; height: 1em; flex: 0 0 auto; }
.icon--lg { width: 1.5em; height: 1.5em; }

/* ----------------------------------------------------------------- 13. MOTION */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .pillar:hover { transform: none; }
}

/* ------------------------------------------------------------- 14. RESPONSIVE */
@media (max-width: 1180px) {
  .grid--6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .social-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0,1fr)); gap: 32px; }
}

@media (max-width: 1024px) {
  :root { --header-height: 76px; }
  .grid--5, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: 620px; }
  .hero__media { max-width: 560px; margin-inline: auto; }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; gap: 32px; }
  .newsletter__inner { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .info-bar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .info-bar > div:nth-child(2) { border-right: 0; }
  .info-bar > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sticky-aside { position: static; }
}

@media (max-width: 900px) {
  .primary-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .promo--split { grid-template-columns: 1fr; }
  .promo--split .promo__media { order: -1; min-height: 260px; aspect-ratio: 16 / 9; }
  .promo__media::after { background: linear-gradient(0deg, var(--afg-forest) 0%, rgba(11,58,35,.35) 40%, rgba(11,58,35,0) 80%); }
}

@media (max-width: 720px) {
  :root { --container-pad: 20px; --header-height: 70px; }
  .brand-logo img { height: 38px; }
  .grid--2, .grid--3, .grid--4, .grid--5, .grid--6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .sourced__points { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .rail__nav { display: none; }
  .rail__track { grid-auto-columns: minmax(240px, 78%); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .announce-track { gap: 32px; }
  .method-list li { grid-template-columns: 38px minmax(0,1fr); gap: 14px; }
  .method-list li::before { width: 38px; height: 38px; font-size: .95rem; }
}

@media (max-width: 520px) {
  .grid--3, .grid--5, .grid--6 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  /* Product grids stay 2-up on phones: a 21-item catalogue in one column
     is an unreasonable amount of scrolling. Card density is tuned below. */
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid--4 .product-card__body { padding: 14px 14px 16px; gap: 6px; }
  .grid--4 .product-card__title { font-size: 1.05rem; }
  .grid--4 .product-card__summary { display: none; }
  .grid--4 .product-card__packs .badge:nth-child(n+3) { display: none; }
  .grid--4 .product-card__foot { padding-top: 10px; }
  .grid--4 .product-card__foot .link-arrow { font-size: .8125rem; }
  .social-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .info-strip, .info-bar { grid-template-columns: 1fr; }
  .info-strip > div, .info-bar > div { border-right: 0; }
  .hero__ctas .btn { width: 100%; }
  .newsletter-form .btn { width: 100%; }
  .tel-group { grid-template-columns: 112px minmax(0,1fr); }
  .product-gallery__thumbs button { width: 64px; height: 64px; }
  .category-card { aspect-ratio: 4 / 3; }
}

@media (max-width: 390px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px 18px; }
  .tel-group { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .announce, .rail__nav, .filter-bar { display: none !important; }
  body { background: #fff; }
}
