/* ============================================================
   Udayam Animal & Crop Care — Design Tokens (Stage 3 §3–§5)
   ============================================================ */

:root {
  /* ---- Colour: Forest (primary) ---- */
  --forest-50: #EEF3F0;
  --forest-100: #D7E2DB;
  --forest-200: #B4C8BC;
  --forest-400: #5C8874;
  --forest-600: #2E5A49;
  --forest-700: #234639;
  --forest-800: #1A362C;
  --forest-900: #12271F;

  /* ---- Colour: Terracotta accent ---- */
  --accent-50: #FCF3EA;
  --accent-100: #F8E2CE;
  --accent-300: #E0A96E;
  --accent-500: #C4622A;
  --accent-600: #A94E1F;
  --accent-700: #853B17;

  /* ---- Colour: Cream / ivory foundation ---- */
  --cream-50: #FBF7F0;
  --cream-100: #F5EEE0;
  --cream-200: #EDE2CE;
  --white: #FFFFFF;

  /* ---- Colour: Ink / stone neutrals ---- */
  --ink-900: #221E18;
  --ink-700: #3B362C;
  --stone-500: #6E6658;
  --stone-400: #8C8374;
  --sand-100: #EAE1D0;
  --sand-200: #DDD2BB;
  --sand-300: #C9BBA0;

  /* ---- Colour: Semantic ---- */
  --success-50: #EDF5F0;
  --success-600: #2F6B4F;
  --warning-50: #FCF3E3;
  --warning-600: #A85E13;
  --error-50: #FCEFEC;
  --error-600: #B03A2E;

  /* ---- On-dark text ---- */
  --on-dark: #FBF7F0;

  /* ---- Typography: type scale (clamp-based) ---- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --text-display: clamp(2.5rem, 4.5vw, 4.25rem);
  --text-display-lh: 1.05;
  --text-h1: clamp(2.125rem, 3.4vw, 3rem);
  --text-h1-lh: 1.15;
  --text-h2: clamp(1.625rem, 2.4vw, 2.25rem);
  --text-h2-lh: 1.2;
  --text-h3: clamp(1.25rem, 1.7vw, 1.5rem);
  --text-h3-lh: 1.3;
  --text-h4: clamp(1.0625rem, 1.2vw, 1.1875rem);
  --text-h4-lh: 1.4;
  --text-body-lg: 1.125rem;
  --text-body-lg-lh: 1.7;
  --text-body: 1rem;
  --text-body-lh: 1.65;
  --text-body-sm: 0.875rem;
  --text-body-sm-lh: 1.6;
  --text-label: 0.75rem;
  --text-label-lh: 1.4;
  --text-button: 0.9375rem;
  --text-micro: 0.75rem;
  --text-micro-lh: 1.5;

  --letter-spacing-label: 0.08em;

  /* ---- Spacing scale (4px base) ---- */
  --space-1: 0.25rem;   /* 4  */
  --space-2: 0.5rem;    /* 8  */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.25rem;   /* 20 */
  --space-6: 1.5rem;    /* 24 */
  --space-8: 2rem;      /* 32 */
  --space-10: 2.5rem;   /* 40 */
  --space-12: 3rem;     /* 48 */
  --space-16: 4rem;     /* 64 */
  --space-20: 5rem;     /* 80 */
  --space-24: 6rem;     /* 96 */

  /* ---- Section rhythm ---- */
  --section-pad-mobile: 3.5rem;   /* 56px */
  --section-pad-desktop: 6rem;    /* 96px */

  /* ---- Containers ---- */
  --container: 80rem;          /* 1280px */
  --container-narrow: 45rem;   /* 720px */
  --container-wide: 90rem;     /* 1440px */

  /* ---- Border radius ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(34, 30, 24, 0.06);
  --shadow-md: 0 6px 20px rgba(34, 30, 24, 0.08);
  --shadow-lg: 0 16px 40px rgba(18, 39, 31, 0.16);

  /* ---- Focus ring ---- */
  --focus-ring: 0 0 0 2px var(--cream-50), 0 0 0 4px var(--forest-700);
  --focus-ring-dark: 0 0 0 2px var(--forest-800), 0 0 0 4px var(--on-dark);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-micro: 150ms;
  --dur-short: 250ms;
  --dur-reveal: 300ms;

  /* ---- Layout ---- */
  --header-h: 4.5rem;    /* 72px desktop */
  --header-h-mobile: 4rem;
  --sticky-bar-h: 4rem;  /* 64px */
  --z-header: 50;
  --z-drawer: 60;
  --z-sticky: 70;
}

/* ============================================================
   Base — reset, typography, layout primitives, utilities
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  object-fit: cover;
}

a {
  color: var(--forest-600);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease);
}

a:hover {
  color: var(--forest-700);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--text-h1-lh);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--text-h2-lh);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--text-h3-lh);
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-h4);
  line-height: var(--text-h4-lh);
  margin: 0;
  color: var(--ink-900);
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::placeholder {
  color: var(--stone-400);
}

/* ---- Focus ---- */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--forest-700);
  color: var(--on-dark);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur-short) var(--ease);
}

.skip-link:focus {
  top: var(--space-4);
  box-shadow: none;
}

/* ---- Containers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* ---- Sections ---- */
.section {
  padding-block: var(--section-pad-mobile);
}

.section--band {
  background: var(--cream-100);
}

.section--surface {
  background: var(--white);
}

.section--dark {
  background: var(--forest-800);
  color: var(--on-dark);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--section-pad-desktop);
  }
}

/* ---- Typography helpers ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--accent-600);
}

.text-muted {
  color: var(--stone-500);
}

.text-center {
  text-align: center;
}

.lead {
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg-lh);
}

/* ---- Motion: reveal on scroll (JS toggles .is-visible) ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Components — the Stage 3 §11 component library
   ============================================================ */

/* ---------- 11.5–11.7 Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: 600;
  line-height: 1;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background-color var(--dur-micro) var(--ease),
    color var(--dur-micro) var(--ease),
    border-color var(--dur-micro) var(--ease),
    transform var(--dur-micro) var(--ease),
    box-shadow var(--dur-micro) var(--ease);
  min-height: 46px;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--forest-700);
  color: var(--on-dark);
}

.btn--primary:hover {
  background: var(--forest-800);
  color: var(--on-dark);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--white);
  border-color: var(--sand-300);
  color: var(--forest-700);
}

.btn--secondary:hover {
  background: var(--forest-50);
  color: var(--forest-800);
  transform: translateY(-2px);
}

.btn--secondary:active {
  transform: translateY(0);
}

.btn--whatsapp {
  background: var(--success-600);
  color: var(--on-dark);
}

.btn--whatsapp:hover {
  background: #285C44;
  color: var(--on-dark);
  transform: translateY(-2px);
}

.btn--on-dark {
  background: transparent;
  border-color: rgba(251, 247, 240, 0.5);
  color: var(--on-dark);
}

.btn--on-dark:hover {
  background: rgba(251, 247, 240, 0.1);
  color: var(--on-dark);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.875rem;
  min-height: 40px;
}

.btn--lg {
  padding: 15px 34px;
  font-size: 1.0625rem;
  min-height: 52px;
}

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

.btn--disabled,
.btn:disabled {
  background: var(--forest-200);
  color: var(--forest-400);
  pointer-events: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--forest-600);
  padding-block: var(--space-2);
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--forest-700);
  text-decoration: underline;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-micro) var(--ease);
}

.text-link:hover svg {
  transform: translateX(2px);
}

/* ---------- 11.1–11.3 Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--cream-50);
  border-bottom: 1px solid var(--sand-100);
  transition: background-color var(--dur-short) var(--ease),
    box-shadow var(--dur-short) var(--ease);
}

.site-header.is-overlay {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom-color: rgba(251, 247, 240, 0.2);
}

.site-header.is-overlay .site-header__inner {
  border-bottom-color: transparent;
}

.site-header.is-scrolled,
.site-header.is-solid {
  position: sticky;
  background: var(--cream-50);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--sand-100);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h-mobile);
}

@media (min-width: 1024px) {
  .header-inner {
    height: var(--header-h);
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-900);
  text-decoration: none;
  flex: none;
}

.logo:hover {
  color: var(--ink-900);
}

.logo__mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--forest-700);
  color: var(--on-dark);
  display: grid;
  place-items: center;
}

.logo__mark svg {
  width: 22px;
  height: 22px;
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}

.logo__word small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-500);
}

.site-header.is-overlay:not(.is-scrolled):not(.is-solid) .logo__word {
  color: var(--on-dark);
}

.site-header.is-overlay:not(.is-scrolled):not(.is-solid) .logo__word small {
  color: rgba(251, 247, 240, 0.75);
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
    margin-inline: auto;
  }

  .main-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-700);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  position: relative;
  min-height: 44px;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--forest-700);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: 6px;
  height: 2px;
  background: var(--forest-600);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-micro) var(--ease);
}

.nav-item.has-mega:hover .nav-link svg,
.nav-item.has-mega.open .nav-link svg {
  transform: rotate(180deg);
}

.site-header.is-overlay:not(.is-scrolled):not(.is-solid) .nav-link {
  color: var(--on-dark);
}

.site-header.is-overlay:not(.is-scrolled):not(.is-solid) .nav-link:hover {
  color: var(--white);
}

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(42rem, 90vw);
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand-100);
  border-top: 2px solid var(--forest-700);
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  translate: 0 -8px;
  transition: opacity var(--dur-short) var(--ease),
    visibility var(--dur-short) var(--ease),
    translate var(--dur-short) var(--ease);
  z-index: calc(var(--z-header) + 1);
}

.nav-item.has-mega:hover .mega,
.nav-item.has-mega.open .mega,
.nav-item.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-6);
}

.mega__col-title {
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--stone-500);
  margin-bottom: var(--space-3);
}

.mega__list {
  display: grid;
  gap: var(--space-1);
}

.mega__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  transition: background-color var(--dur-micro) var(--ease);
}

.mega__link:hover {
  background: var(--forest-50);
  color: var(--ink-900);
}

.mega__link strong {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.mega__link span {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--stone-500);
  margin-top: 2px;
}

.mega__feature {
  background: var(--cream-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mega__feature img {
  width: 100%;
  aspect-ratio: 4 / 2.6;
  object-fit: cover;
}

.mega__feature-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex: none;
}

.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-900);
  min-height: 44px;
  padding-inline: var(--space-2);
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--forest-600);
}

.header-phone:hover {
  color: var(--forest-700);
}

.site-header.is-overlay:not(.is-scrolled):not(.is-solid) .header-phone {
  color: var(--on-dark);
}

@media (min-width: 1024px) {
  .header-phone {
    display: inline-flex;
  }

  .header-cta {
    display: inline-flex;
  }
}

.header-actions .btn--sm {
  display: none;
}

@media (min-width: 1024px) {
  .header-actions .btn--sm {
    display: inline-flex;
  }
}

/* Nav toggle (hamburger) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink-900);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.site-header.is-overlay:not(.is-scrolled):not(.is-solid) .nav-toggle {
  color: var(--on-dark);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 26rem);
  z-index: var(--z-drawer);
  background: var(--cream-50);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--dur-short) var(--ease);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--sand-100);
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink-900);
}

.drawer__close svg {
  width: 24px;
  height: 24px;
}

.drawer__nav {
  overflow-y: auto;
  padding: var(--space-3) var(--space-6) var(--space-4);
}

.drawer__list > li {
  border-bottom: 1px solid var(--sand-100);
}

.drawer__link,
.drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink-900);
  padding-block: var(--space-3);
}

.drawer__link:hover {
  color: var(--forest-700);
}

.drawer__toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-micro) var(--ease);
}

.drawer__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.drawer__sub {
  display: none;
  padding: 0 0 var(--space-3) var(--space-4);
}

.drawer__sub.is-open {
  display: block;
}

.drawer__sub a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--ink-700);
}

.drawer__sub a:hover {
  background: var(--forest-50);
  color: var(--forest-700);
}

.drawer__legal {
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--sand-100);
}

.drawer__legal a {
  display: block;
  font-size: var(--text-body-sm);
  color: var(--stone-500);
  padding-block: var(--space-2);
}

.drawer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--sand-100);
}

.drawer__actions .btn {
  width: 100%;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(18, 39, 31, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-short) var(--ease), visibility var(--dur-short) var(--ease);
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- 11.4 Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--sand-100);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-5);
}

@media (min-width: 640px) {
  .trust-strip__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--ink-700);
}

.trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--forest-600);
  flex: none;
}

/* ---------- 11.8 Breadcrumb ---------- */
.breadcrumb {
  padding-block: var(--space-4) 0;
}

.breadcrumb nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  color: var(--stone-500);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--sand-300);
}

.breadcrumb a {
  color: var(--stone-500);
}

.breadcrumb a:hover {
  color: var(--forest-700);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink-700);
  font-weight: 500;
}

/* ---------- 11.9 Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--on-dark);
  overflow: hidden;
  min-height: 72vh;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(18, 39, 31, 0.82) 0%,
    rgba(18, 39, 31, 0.55) 46%,
    rgba(18, 39, 31, 0.15) 100%
  );
}

.hero__body {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h-mobile) + var(--space-16)) var(--space-16);
  max-width: 42.5rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--accent-300);
  margin-bottom: var(--space-4);
}

.hero__title {
  color: var(--on-dark);
  font-size: var(--text-display);
  line-height: var(--text-display-lh);
  margin-bottom: var(--space-5);
  max-width: 20ch;
}

.hero__sub {
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg-lh);
  color: rgba(251, 247, 240, 0.92);
  margin-bottom: var(--space-8);
  max-width: 38rem;
}

.hero__actions {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-8);
  font-size: var(--text-body-sm);
  color: rgba(251, 247, 240, 0.85);
}

.hero__meta a {
  color: var(--on-dark);
  font-weight: 600;
}

.hero__meta a:hover {
  color: var(--white);
  text-decoration: underline;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__meta svg {
  width: 16px;
  height: 16px;
  color: var(--accent-300);
}

/* Compact hero (category/about/contact) */
.hero--compact {
  min-height: auto;
  padding-block: 0;
}

.hero--compact .hero__body {
  padding-block: calc(var(--header-h-mobile) + var(--space-10)) var(--space-12);
}

.hero--compact .hero__title {
  font-size: var(--text-h1);
  max-width: 22ch;
}

@media (min-width: 1024px) {
  .hero--compact .hero__body {
    padding-top: calc(var(--header-h) + var(--space-16));
  }
}

/* ---------- 11.10 Section heading ---------- */
.section-head {
  max-width: 42rem;
  margin-bottom: var(--space-8);
}

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

.section-head__eyebrow {
  margin-bottom: var(--space-3);
}

.section-head__title {
  margin-bottom: var(--space-3);
}

.section-head__sub {
  font-size: var(--text-body-lg);
  color: var(--stone-500);
}

.section-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- 11.11 Split section ---------- */
.split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-12);
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split--split-5 {
    grid-template-columns: 7fr 5fr;
  }
}

.split__media {
  position: relative;
}

.split__media::before {
  content: "";
  position: absolute;
  inset: var(--space-4) calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4);
  border: 1px solid var(--forest-100);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.split__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.split__media--wide img {
  aspect-ratio: 4 / 3;
}

.split__body {
  max-width: 34rem;
}

.split__body .eyebrow {
  margin-bottom: var(--space-3);
}

.split__body h2 {
  margin-bottom: var(--space-4);
}

.split__body p {
  color: var(--ink-700);
}

.split__body .btn {
  margin-top: var(--space-3);
}

/* ---------- 11.12 Category card ---------- */
.card-grid {
  display: grid;
  gap: var(--space-5);
}

.card-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (min-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--sand-100);
  transition: transform var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
  text-decoration: none;
  color: var(--ink-900);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--ink-900);
}

.category-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur-short) var(--ease);
}

.category-card:hover .category-card__media img {
  transform: scale(1.03);
}

.category-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.category-card__body h3 {
  margin-bottom: var(--space-1);
}

.category-card__body p {
  font-size: var(--text-body-sm);
  color: var(--stone-500);
}

.category-card .text-link {
  margin-top: auto;
  padding-top: var(--space-2);
}

/* ---------- 11.13 Family card ---------- */
.family-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--sand-100);
  transition: transform var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
}

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

.family-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.family-card__media img {
  width: 100%;
  height: 100%;
}

.family-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.family-card__body h3 {
  margin-bottom: 0;
}

.family-card__body > p {
  font-size: 0.9375rem;
  color: var(--ink-700);
  margin: 0;
}

.family-card__meta {
  font-size: var(--text-body-sm);
  color: var(--stone-500);
}

.family-card__price {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0.25rem 0 0;
}

.family-card .text-link {
  margin-top: auto;
}

/* ---------- 11.14 Product card ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--sand-100);
  transition: transform var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
  text-decoration: none;
  color: var(--ink-900);
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--ink-900);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-50);
}

.product-card__media img {
  width: 100%;
  height: 100%;
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

.product-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.product-card__body h4 {
  line-height: 1.35;
}

.product-card__meta {
  font-size: var(--text-body-sm);
  color: var(--stone-500);
}

.product-card .text-link {
  margin-top: auto;
  font-size: 0.875rem;
}

/* ---------- 11.15 Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-micro);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-50);
  color: var(--accent-700);
  line-height: 1.4;
}

.badge--forest {
  background: var(--forest-50);
  color: var(--forest-700);
}

.badge--warning {
  background: var(--warning-50);
  color: var(--warning-600);
}

/* ---------- 11.16 Attribute table ---------- */
.attribute-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.attribute-table th,
.attribute-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--sand-100);
  vertical-align: top;
}

.attribute-table th {
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--stone-500);
  width: 38%;
  background: var(--cream-50);
}

.attribute-table td {
  font-size: 0.9375rem;
}

.attribute-table tr:last-child th,
.attribute-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 639px) {
  .attribute-table,
  .attribute-table tbody,
  .attribute-table tr,
  .attribute-table th,
  .attribute-table td {
    display: block;
    width: 100%;
  }

  .attribute-table th {
    width: 100%;
    padding-bottom: var(--space-2);
  }

  .attribute-table td {
    padding-top: var(--space-2);
    border-bottom: 0;
  }

  .attribute-table tr {
    border-bottom: 1px solid var(--sand-100);
  }
}

/* Key information strip */
.keyinfo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--sand-100);
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 768px) {
  .keyinfo {
    grid-template-columns: repeat(4, 1fr);
  }
}

.keyinfo__cell {
  background: var(--white);
  padding: var(--space-4);
}

.keyinfo__cell span {
  display: block;
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--stone-500);
  margin-bottom: var(--space-1);
}

.keyinfo__cell strong {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-900);
}

/* ---------- 11.17 Pack-size selector ---------- */
.pack-selector {
  border: 0;
  padding: 0;
  margin: 0;
}

.pack-selector__legend {
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--stone-500);
  margin-bottom: var(--space-3);
  padding: 0;
}

.pack-selector__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pack-option {
  position: relative;
}

.pack-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.pack-option label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--sand-300);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-700);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease),
    color var(--dur-micro) var(--ease),
    border-color var(--dur-micro) var(--ease);
}

.pack-option label:hover {
  border-color: var(--forest-400);
}

.pack-option input:checked + label {
  background: var(--forest-700);
  border-color: var(--forest-700);
  color: var(--on-dark);
}

.pack-option input:focus-visible + label {
  box-shadow: var(--focus-ring);
}

.pack-option input:disabled + label {
  opacity: 0.5;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* ---------- 11.18 Audience chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--forest-50);
  color: var(--forest-700);
  font-size: var(--text-body-sm);
  font-weight: 500;
  border: 1px solid transparent;
  min-height: 34px;
}

.chip svg {
  width: 14px;
  height: 14px;
}

.chip--filter {
  cursor: pointer;
  background: var(--white);
  border-color: var(--sand-200);
  color: var(--ink-700);
}

.chip--filter[aria-pressed="true"] {
  background: var(--forest-700);
  border-color: var(--forest-700);
  color: var(--on-dark);
}

/* ---------- 11.19 Who-we-serve ---------- */
.serve-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
  .serve-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.serve-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-md);
  transition: background-color var(--dur-micro) var(--ease),
    transform var(--dur-micro) var(--ease);
  text-decoration: none;
  color: var(--ink-900);
}

.serve-card:hover {
  background: var(--forest-50);
  transform: translateY(-2px);
  color: var(--ink-900);
}

.serve-card svg {
  width: 32px;
  height: 32px;
  color: var(--forest-600);
}

.serve-card p {
  font-size: var(--text-body-sm);
  color: var(--stone-500);
  margin: 0;
}

/* ---------- 11.22 Enquiry CTA band ---------- */
.cta-band {
  text-align: center;
  padding-block: var(--space-16);
}

.cta-band__inner {
  max-width: 47.5rem;
  margin-inline: auto;
}

.cta-band__title {
  margin-bottom: var(--space-3);
}

.section--dark .cta-band__title {
  color: var(--on-dark);
}

.cta-band__sub {
  font-size: var(--text-body-lg);
  color: var(--stone-500);
  margin-bottom: var(--space-8);
}

.section--dark .cta-band__sub {
  color: rgba(251, 247, 240, 0.85);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.cta-band__note {
  margin-top: var(--space-6);
  font-size: var(--text-body-sm);
  color: var(--stone-500);
}

.section--dark .cta-band__note {
  color: rgba(251, 247, 240, 0.75);
}

/* ---------- 11.24 Contact card ---------- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.contact-card__row {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--sand-100);
}

.contact-card__row:last-of-type {
  border-bottom: 0;
}

.contact-card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--forest-50);
  color: var(--forest-700);
  display: grid;
  place-items: center;
}

.contact-card__icon svg {
  width: 20px;
  height: 20px;
}

.contact-card__label {
  display: block;
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--stone-500);
  margin-bottom: 2px;
}

.contact-card__value {
  font-size: 0.9375rem;
  color: var(--ink-900);
}

.contact-card__value a {
  font-weight: 600;
  color: var(--forest-700);
}

.contact-card__map {
  margin-top: var(--space-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--sand-100);
  line-height: 0;
}

.contact-card__map iframe {
  width: 100%;
  height: 240px;
  border: 0;
}

/* ---------- 11.25/11.26 Forms ---------- */
.form {
  background: var(--white);
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

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

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid .form-field--span2 {
    grid-column: span 2;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field label {
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--ink-700);
}

.form-field label .req {
  color: var(--accent-500);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--text-body);
  transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease);
  min-height: 48px;
}

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

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--sand-300);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(46, 90, 73, 0.15);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--error-600);
  background: var(--error-50);
}

.form-error {
  display: none;
  font-size: var(--text-body-sm);
  color: var(--error-600);
}

.form-field.has-error .form-error {
  display: block;
}

.form-field .help {
  font-size: var(--text-body-sm);
  color: var(--stone-500);
}

.form__actions {
  margin-top: var(--space-6);
}

.form__note {
  margin-top: var(--space-4);
  font-size: var(--text-body-sm);
  color: var(--stone-500);
  text-align: center;
}

.form__success {
  display: none;
  text-align: center;
  padding-block: var(--space-4);
}

.form__success.is-visible {
  display: block;
}

.form__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success-50);
  color: var(--success-600);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-4);
}

.form__success-icon svg {
  width: 28px;
  height: 28px;
}

.form__success h3 {
  margin-bottom: var(--space-2);
}

.form__success p {
  color: var(--ink-700);
  max-width: 34rem;
  margin-inline: auto;
}

.form__success .form__success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.form__success-summary {
  margin: var(--space-4) auto 0;
  max-width: 34rem;
  background: var(--cream-100);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: left;
  font-size: var(--text-body-sm);
  color: var(--ink-700);
}

.form__success-summary dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
  margin: 0;
}

.form__success-summary dt {
  font-weight: 600;
  color: var(--stone-500);
}

.form__success-summary dd {
  margin: 0;
}

/* ---------- 11.27 Accordion ---------- */
.accordion {
  display: grid;
  gap: var(--space-3);
}

.accordion__item {
  background: var(--white);
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 56px;
  padding: var(--space-4);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
  color: var(--ink-900);
}

.accordion__trigger svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--forest-600);
  transition: transform var(--dur-micro) var(--ease);
}

.accordion__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion__panel {
  display: none;
  padding: 0 var(--space-4) var(--space-4);
  font-size: 0.9375rem;
  color: var(--ink-700);
}

.accordion__panel.is-open {
  display: block;
}

/* ---------- 11.23 WhatsApp / call strips ---------- */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ---------- 11.30 Mobile sticky bar ---------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  background: var(--cream-50);
  border-top: 1px solid var(--sand-100);
  box-shadow: 0 -6px 20px rgba(34, 30, 24, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.sticky-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  max-width: 30rem;
  margin-inline: auto;
  padding: var(--space-2);
}

.sticky-bar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-700);
  background: transparent;
}

.sticky-bar__btn svg {
  width: 20px;
  height: 20px;
  color: var(--forest-600);
}

.sticky-bar__btn--primary {
  background: var(--forest-700);
  color: var(--on-dark);
}

.sticky-bar__btn--primary svg {
  color: var(--on-dark);
}

.sticky-bar__btn--whatsapp svg {
  color: var(--success-600);
}

@media (min-width: 1024px) {
  .sticky-bar {
    display: none;
  }
}

body.has-sticky-bar {
  padding-bottom: calc(var(--sticky-bar-h) + env(safe-area-inset-bottom));
}

/* Hide sticky bar when mobile drawer is open to avoid CTA duplication */
body.drawer-open .sticky-bar {
  display: none !important;
}
body.drawer-open.has-sticky-bar {
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  body.has-sticky-bar {
    padding-bottom: 0;
  }
}

/* ---------- 11.28/11.29 Footer ---------- */
.site-footer {
  background: var(--forest-800);
  color: var(--on-dark);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  }
}

.footer-brand .logo__word,
.footer-brand .logo__word small {
  color: var(--on-dark);
}

.footer-brand .logo__word small {
  color: rgba(251, 247, 240, 0.7);
}

.footer-brand p {
  color: rgba(251, 247, 240, 0.8);
  margin-top: var(--space-4);
  max-width: 26rem;
  font-size: 0.9375rem;
}

.footer-col__title {
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: rgba(251, 247, 240, 0.7);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: grid;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--on-dark);
  font-size: 0.9375rem;
  padding-block: 2px;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact {
  display: grid;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: rgba(251, 247, 240, 0.85);
}

.footer-contact a {
  color: var(--on-dark);
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact strong {
  color: var(--on-dark);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 247, 240, 0.16);
  padding-block: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--text-body-sm);
  color: rgba(251, 247, 240, 0.65);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom p {
  margin: 0;
}

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

.legal-links a {
  color: rgba(251, 247, 240, 0.75);
  font-size: var(--text-body-sm);
}

.legal-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Related products ---------- */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  gap: var(--space-3);
}

.gallery__main {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--sand-100);
}

.gallery__main:has(img[data-photo]) {
  aspect-ratio: 1 / 1;
}

.gallery__main img {
  width: 100%;
  height: 100%;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.gallery__thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--white);
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
}

.gallery__thumb.is-active {
  border-color: var(--forest-600);
}

/* ---------- Value blocks (About/business) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-block {
  background: var(--white);
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.value-block svg {
  width: 32px;
  height: 32px;
  color: var(--forest-600);
}

.value-block h3 {
  font-size: 1.125rem;
}

.value-block p {
  font-size: 0.9375rem;
  color: var(--stone-500);
  margin: 0;
}

/* ---------- Editorial gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--sand-100);
}

.gallery-grid figure img {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.gallery-grid figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-body-sm);
  color: var(--stone-500);
}

/* ---------- Legal prose ---------- */
.legal-prose h2 {
  font-size: 1.375rem;
  margin: var(--space-12) 0 var(--space-3);
}

.legal-prose h3 {
  font-size: 1.125rem;
  margin: var(--space-8) 0 var(--space-2);
}

.legal-prose p,
.legal-prose li {
  color: var(--ink-700);
  font-size: 0.9375rem;
}

.legal-prose ul {
  list-style: disc;
  padding-left: var(--space-5);
  margin: var(--space-3) 0;
}

.legal-prose li {
  margin-bottom: var(--space-2);
}

.legal-prose .lead {
  color: var(--stone-500);
}

/* ---------- Product detail layout ---------- */
.product-detail {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-12);
  }
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.product-detail__info .eyebrow {
  margin-bottom: 0;
}

.product-detail__desc {
  font-size: 1.0625rem;
  line-height: var(--text-body-lg-lh);
  color: var(--ink-700);
  margin: 0;
}

.product-detail__actions {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .product-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

.product-detail__note {
  font-size: var(--text-body-sm);
  color: var(--stone-500);
}

.product-detail__variants {
  background: var(--cream-100);
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.product-detail__variants-title {
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--stone-500);
  margin-bottom: var(--space-3);
}

.product-detail__variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.disclaimer-note {
  border-left: 3px solid var(--accent-500);
  background: var(--accent-50);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  font-size: var(--text-body-sm);
  color: var(--ink-700);
}

.disclaimer-note a {
  font-weight: 600;
}

/* ---------- Filters (category) ---------- */
.filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.filters__label {
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-label);
  color: var(--stone-500);
}

.filter-field {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  width: 100%;
}

.filter-field .form-field {
  min-width: 14rem;
}

/* ---------- Image placeholders ---------- */
.ph-caption {
  text-align: center;
  font-size: var(--text-body-sm);
  color: var(--stone-500);
  margin-top: var(--space-2);
}

/* ---------- Page header strip (no hero) ---------- */
.page-head {
  padding: var(--space-10) 0 var(--space-8);
  background: var(--cream-100);
  border-bottom: 1px solid var(--sand-100);
}

.page-head__title {
  margin-bottom: var(--space-2);
}

.page-head__sub {
  font-size: var(--text-body-lg);
  color: var(--stone-500);
  max-width: 38rem;
}

/* ---------- Real product photography ----------
   Client packshots are portrait bottles/buckets isolated on white, while the
   media containers above are square (product card, gallery thumb), 4:3 (family
   card), 4:5 (gallery main) and 4:2.6 (mega feature). The global
   `img { object-fit: cover }` would crop the top and bottom off the pack, so
   photo-backed images are contained instead. Container dimensions, aspect
   ratios and responsive behaviour are unchanged — only the fit inside them.
   Declared last so it wins over the equal-specificity `.mega__feature img`. */
img[data-photo] {
  object-fit: contain;
}

/* Letterboxing reads as part of the shot when the container matches the
   packshot's white backdrop. Cards holding a placeholder tile keep their
   original cream media background. */
.product-card__media:has(img[data-photo]),
.mega__feature:has(img[data-photo]) {
  background: var(--white);
}

/* ============================================================
   Pages — page-specific layouts (Stage 3 §12–§17)
   ============================================================ */

/* ---------- Home: hero + trust + categories ---------- */
.home-hero {
  min-height: 86vh;
}

/* Mobile hero: compact, conversion-focused viewport */
@media (max-width: 767px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero .hero__body {
    padding-block: calc(var(--header-h-mobile) + var(--space-4)) var(--space-6);
  }

  .home-hero .hero__title {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: var(--space-3);
  }

  .home-hero .hero__eyebrow {
    margin-bottom: var(--space-3);
  }

  .home-hero .hero__sub {
    font-size: var(--text-body);
    line-height: var(--text-body-lh);
    margin-bottom: var(--space-6);
  }

  .home-hero .hero__actions .btn--lg {
    padding: 12px 24px;
    font-size: 1rem;
    min-height: 48px;
  }
}

/* ---------- Hero title refinement ---------- */
.hero__title {
  max-width: 18ch;
}

@media (min-width: 768px) {
  .hero__title {
    max-width: 22ch;
  }
}

/* ---------- Hero subtitle breathing room ---------- */
.hero__sub {
  max-width: 36rem;
}

/* ---------- Section band alt rhythm ---------- */
.section--band + .section {
  padding-top: 0;
}

/* ---------- Products hub ---------- */
.hub-intro {
  max-width: 42rem;
  margin-bottom: var(--space-10);
}

/* ---------- Category pages ---------- */
.category-intro {
  max-width: 42.5rem;
  margin-bottom: var(--space-8);
}

.category-intro p {
  font-size: var(--text-body-lg);
  line-height: var(--text-body-lg-lh);
  color: var(--ink-700);
}

.category-filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .category-filters {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ---------- Product detail ---------- */
.product-page {
  padding-block: var(--space-8) var(--section-pad-mobile);
}

@media (min-width: 768px) {
  .product-page {
    padding-top: var(--space-10);
  }
}

.product-sections {
  display: grid;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

.product-sections h2 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-3);
}

/* ---------- About ---------- */
.about-values {
  margin-top: var(--space-8);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-12);
  }
}

.contact-layout .contact-card {
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
}

@media (max-width: 767px) {
  .contact-layout .contact-card {
    position: static;
  }
}

.faq-section {
  max-width: 47.5rem;
  margin-inline: auto;
}

/* ---------- Legal ---------- */
.legal-page {
  padding-block: var(--space-8) var(--section-pad-desktop);
}

.legal-prose .lead {
  font-size: var(--text-body-lg);
}

/* ---------- Narrow prose container ---------- */
.prose-container {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

/* ---------- Section alternating rhythm ---------- */
.bg-alternate {
  background: var(--white);
}

/* ---------- Editorial story (home) ---------- */
.story-gallery {
  margin-top: var(--space-12);
}

/* ---------- Quick action floating (desktop call-to-action in hero meta) ---------- */
.hero__meta .trust-mini {
  align-items: center;
}

/* ---------- Real hero image (homepage) ---------- */
.hero__media--photo img {
  object-fit: cover;
  object-position: center 40%;
}

@media (min-width: 768px) {
  .hero__media--photo img {
    object-position: 70% center;
  }
}

@media (min-width: 1024px) {
  .hero__media--photo img {
    object-position: 65% center;
  }
}
