/* ============================================================
   highveld — Quiet Authority design system
   Typography-led, muted high-grassland palette, lots of paper.
   ============================================================ */

:root {
  /* Palette — warm paper, tea-leaf ink, dry gold, slate */
  --paper:      #F6F2E9;
  --paper-2:    #EFE9DB;
  --ink:        #20231C;
  --ink-soft:   #4A4E44;
  --slate:      #6B7268;
  --line:       #D9D1BF;

  /* Brand greens + gold */
  --leaf:       #2B3A26;
  --leaf-deep:  #1E2A1A;
  --gold:       #B98C3F;
  --gold-soft:  #C9A765;

  /* Per-origin accents */
  --o-malawi:   #2E6B4F;   /* green */
  --o-kenya:    #C08A2E;   /* amber/gold */
  --o-purple:   #5C4A78;   /* purple tea */
  --o-rooibos:  #A6492C;   /* red-brown */
  --o-flight:   var(--ink);
  --o-sub:      var(--slate);

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 5rem);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; line-height: 1.15; }

/* ---------- shared bits ---------- */
.section-tag {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.section-tag.light { color: var(--gold-soft); }
.light { color: var(--paper); }
.light-muted { color: rgba(246,242,233,0.72); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-solid { background: var(--leaf); color: var(--paper); }
.btn-solid:hover { background: var(--leaf-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--pad);
  background: rgba(246,242,233,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a { font-size: 0.9rem; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 0.55rem 1.15rem; }

/* language switcher (NL ⇄ EN) */
.lang-switch {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0.4rem 0.6rem; margin-left: 0.25rem;
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }

/* injected by shop.js when the webshop is switched on */
.nav-cart {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0.5rem 0.9rem; margin-left: 0.25rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: border-color .2s, background .2s;
}
.nav-cart:hover { border-color: var(--ink); }
.nav-cart .snipcart-items-count {
  font-family: var(--mono); font-size: 0.78rem;
  background: var(--leaf); color: var(--paper);
  border-radius: 100px; padding: 0.05rem 0.45rem; min-width: 1.4em; text-align: center;
}

/* hamburger — hidden on desktop, shown on mobile via media query */
.nav-links-cta { display: none; }
.nav-toggle {
  display: none;
  margin-left: 0.5rem;
  width: 42px; height: 42px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: clamp(4rem, 12vh, 9rem) var(--pad) clamp(3rem, 8vh, 6rem);
  max-width: var(--maxw); margin: 0 auto;
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/img/hero-terrain.webp") center 60% / cover no-repeat;
}
/* warm paper wash — opaque on the left where the headline sits, clearing to the right */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--paper) 18%, rgba(246,242,233,0.72) 45%, rgba(246,242,233,0.30) 75%, rgba(246,242,233,0.10) 100%),
    linear-gradient(to top, var(--paper) 2%, rgba(246,242,233,0) 35%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-mark { position: relative; z-index: 1; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 1.5rem; font-weight: 500;
}
.hero-title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  margin-bottom: 1.8rem;
  max-width: 16ch;
}
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 54ch; color: var(--ink-soft); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-mark { display: flex; align-items: center; gap: 1rem; margin-top: clamp(3rem, 8vh, 5rem); }
.mark-line { height: 1px; width: 60px; background: var(--gold); }
.mark-label { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }

/* ===================== PROBLEM ===================== */
.problem { background: var(--paper-2); padding: clamp(4rem, 10vh, 7rem) 0; }
.problem-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.problem-copy h2 { margin-bottom: 1.5rem; }
.problem-copy p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 50ch; }
.problem-copy p:last-child { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-style: italic; }

.stat-stack { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
.stat { padding: 1.5rem; width: 100%; border-radius: 3px; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 3.6rem); line-height: 1; }
.stat-label { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }
.stat-before { background: var(--paper); border: 1px solid var(--line); color: var(--slate); }
.stat-before .stat-num { color: var(--slate); }
.stat-after { background: var(--leaf); color: var(--paper); }
.stat-after .stat-num { color: var(--gold-soft); }
.stat-after .stat-label { color: rgba(246,242,233,0.8); }
.stat-arrow { font-size: 1.5rem; color: var(--gold); }

/* ===================== RECEIPT ===================== */
.receipt-section {
  background: var(--leaf-deep); color: var(--paper);
  padding: clamp(4rem, 10vh, 7rem) var(--pad);
}
.receipt-intro { max-width: 56ch; margin: 0 auto clamp(2.5rem, 5vh, 3.5rem); text-align: center; }
.receipt-intro h2 { margin-bottom: 1.2rem; }

.receipt-card {
  max-width: 560px; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.5);
}
.receipt-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--slate);
  padding-bottom: 1rem; margin-bottom: 1.25rem;
  border-bottom: 1px dashed var(--line);
}
#receipt-origin { color: var(--gold); font-weight: 500; }

.receipt-slider { text-align: center; margin-bottom: 1.5rem; }
.receipt-slider label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--slate); }
#price-out { display: block; font-family: var(--serif); font-size: 2.8rem; line-height: 1.1; margin: 0.2rem 0 0.8rem; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; background: var(--line); border-radius: 2px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--leaf); border: 3px solid var(--paper);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--leaf); border: 3px solid var(--paper); cursor: pointer;
}

.receipt-lines { font-family: var(--mono); font-size: 0.92rem; }
.rline { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.rline em { color: var(--slate); font-style: normal; }
.rline.sub { padding: 0.15rem 0 0.15rem 1.25rem; font-size: 0.8rem; color: var(--slate); }
.rline-farm { color: var(--o-malawi); font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.rline-total { border-top: 1px dashed var(--line); margin-top: 0.5rem; padding-top: 0.7rem; color: var(--ink-soft); }
.receipt-foot { font-family: var(--sans); font-size: 0.85rem; color: var(--slate); margin-top: 1.5rem; line-height: 1.5; }
.receipt-foot strong { color: var(--leaf); }

/* ===================== RANGE ===================== */
.range { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 10vh, 7rem) var(--pad); }
.range-head { max-width: 50ch; margin-bottom: 3rem; }
.range-head h2 { margin-bottom: 1rem; }
.range-lede { color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
  --accent: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card[data-origin="kenya"]   { --accent: var(--o-kenya); }
.card[data-origin="purple"]  { --accent: var(--o-purple); }
.card[data-origin="malawi"]  { --accent: var(--o-malawi); }
.card[data-origin="rooibos"] { --accent: var(--o-rooibos); }
.card[data-origin="flight"]  { --accent: var(--o-flight); }
.card[data-origin="sub"]     { --accent: var(--o-sub); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(0,0,0,0.4); border-color: var(--accent); }

.card-media {
  margin: -1.75rem -1.75rem 1.5rem;
  height: 180px; overflow: hidden;
  border-radius: 4px 4px 0 0;
  border-bottom: 3px solid var(--accent);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.origin-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.card-origin { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--slate); }
.card h3 { margin-bottom: 0.35rem; }
.card-sub { font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 0.9rem; }
.card-body { font-size: 0.92rem; color: var(--ink-soft); flex: 1; margin-bottom: 1.5rem; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 1rem; }
.price { font-family: var(--serif); font-size: 1.5rem; }
.weight { font-size: 0.8rem; color: var(--slate); }
.card-feature { background: var(--paper-2); }
.card-flight, .card-sub-offer { background: var(--paper-2); }

/* ===================== FARMS ===================== */
.farms { background: var(--paper-2); padding: clamp(4rem, 10vh, 7rem) 0; }
.farms-head { max-width: var(--maxw); margin: 0 auto 3rem; padding: 0 var(--pad); }
.farm-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.farm {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 2rem; position: relative; overflow: hidden;
}
.farm-marker { position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.farm-marker[data-origin="malawi"] { background: var(--o-malawi); }
.farm-marker[data-origin="kenya"]  { background: var(--o-kenya); }
.farm-photo {
  width: calc(100% + 4rem); margin: -2rem -2rem 1.5rem;
  height: 280px; object-fit: cover;
}
.farm h3 { margin: 0.5rem 0 0.3rem; }
.farm-where { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate); margin-bottom: 1rem; }
.farm p { color: var(--ink-soft); font-size: 0.95rem; }
.farms-note {
  max-width: var(--maxw); margin: 2rem auto 0; padding: 0 var(--pad);
  color: var(--slate); font-style: italic; font-family: var(--serif); font-size: 1.05rem;
}

/* ===================== STORY / MANIFESTO ===================== */
.story { background: var(--leaf); color: var(--paper); padding: clamp(5rem, 12vh, 8rem) var(--pad); }
.story-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.manifesto { margin: 1.5rem 0 2rem; }
.manifesto p {
  font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.4; margin-bottom: 1.25rem; color: rgba(246,242,233,0.92);
}
.manifesto-kick { color: var(--gold-soft) !important; font-style: italic; }
.story-sign { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246,242,233,0.6); }

/* ===================== SIGNUP ===================== */
.signup { padding: clamp(4rem, 10vh, 6rem) var(--pad); }
.signup-inner { max-width: 540px; margin: 0 auto; text-align: center; }
.signup-inner h2 { margin-bottom: 0.75rem; }
.signup-inner > p { color: var(--ink-soft); margin-bottom: 2rem; }
.signup-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.signup-form input {
  flex: 1; min-width: 220px;
  padding: 0.85rem 1.1rem; font-size: 1rem; font-family: var(--sans);
  border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.signup-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.signup-note { margin-top: 1rem; color: var(--o-malawi); font-weight: 500; }

/* ===================== FOOTER ===================== */
.footer { background: var(--leaf-deep); color: rgba(246,242,233,0.75); padding: clamp(3rem, 7vh, 4.5rem) var(--pad) 2.5rem; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.footer-brand .brand { color: var(--paper); display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.9rem; color: rgba(246,242,233,0.75); transition: color .2s; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-fine { grid-column: 1 / -1; border-top: 1px solid rgba(246,242,233,0.15); padding-top: 1.5rem; margin-top: 1rem; font-size: 0.8rem; color: rgba(246,242,233,0.5); }

/* ===================== STRETCHED CARD LINKS ===================== */
/* Whole-card click targets for range + farm cards, without nesting
   interactive elements. The card itself stays the visual unit. */
.card { position: relative; }
.card-link {
  position: absolute; inset: 0; z-index: 2;
  border-radius: inherit;
  /* invisible but focusable */
}
.card-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.farm-readmore {
  display: inline-block; margin-top: 1.25rem;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); font-weight: 600;
  transition: transform .25s var(--ease);
}
.farm:hover .farm-readmore { transform: translateX(4px); }

/* ===================== BREADCRUMB ===================== */
.crumb {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.04em; color: var(--slate);
  margin-bottom: 1.5rem;
}
.crumb a { color: var(--slate); transition: color .2s; }
.crumb a:hover { color: var(--ink); }
.crumb span { margin: 0 0.4rem; opacity: 0.5; }
.crumb em { font-style: normal; color: var(--ink); }
.crumb.light, .crumb.light a { color: rgba(246,242,233,0.7); }
.crumb.light em { color: var(--paper); }
.crumb.light a:hover { color: var(--paper); }

/* ===================== SUBPAGE HERO (farms) ===================== */
.subpage-hero {
  position: relative; overflow: hidden;
  min-height: 56vh;
  display: flex; align-items: flex-end;
  padding: clamp(3rem, 10vh, 6rem) var(--pad) clamp(2.5rem, 6vh, 4rem);
  color: var(--paper);
}
.subpage-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.subpage-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(15deg, var(--leaf-deep) 6%, rgba(30,42,26,0.78) 38%, rgba(30,42,26,0.30) 70%, rgba(30,42,26,0.12) 100%);
}
.subpage-hero[data-origin="kenya"] .subpage-hero-bg::after {
  background:
    linear-gradient(15deg, #2a2415 6%, rgba(42,36,21,0.78) 38%, rgba(42,36,21,0.28) 70%, rgba(42,36,21,0.10) 100%);
}
.subpage-hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.subpage-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 0.4rem 0 1.2rem;
}
.subpage-lede {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 46ch; color: rgba(246,242,233,0.88);
}

/* ===================== FARM FACTS STRIP ===================== */
.farm-facts-strip { background: var(--leaf); color: var(--paper); }
.farm-facts {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(1.75rem, 4vw, 2.5rem) var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.fact { display: flex; flex-direction: column; gap: 0.35rem; }
.fact-num { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold-soft); line-height: 1; }
.fact-label { font-size: 0.85rem; color: rgba(246,242,233,0.8); }

/* ===================== FARM BODY ===================== */
.farm-body { padding: clamp(4rem, 10vh, 7rem) var(--pad); }
.farm-body-inner { max-width: 680px; margin: 0 auto; }
.farm-body-inner h2 { margin-bottom: 1.75rem; }
.farm-body-inner p { color: var(--ink-soft); margin-bottom: 1.25rem; font-size: 1.05rem; }

/* ===================== FARM LEAF (their products) ===================== */
.farm-leaf { background: var(--paper-2); padding: clamp(4rem, 10vh, 7rem) var(--pad); }
.farm-leaf-inner { max-width: var(--maxw); margin: 0 auto; }
.farm-leaf-inner h2 { margin-bottom: 1rem; }
.farm-leaf-lede { color: var(--ink-soft); max-width: 50ch; margin-bottom: 2.5rem; }

/* ===================== FARM CTA ===================== */
.farm-cta { background: var(--leaf-deep); color: var(--paper); padding: clamp(4rem, 10vh, 6rem) var(--pad); }
.farm-cta-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.farm-cta-num { font-family: var(--serif); font-size: clamp(4rem, 12vw, 7rem); color: var(--gold-soft); line-height: 1; margin: 0.5rem 0; }
.farm-cta .hero-actions { margin-top: 2rem; }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(246,242,233,0.5); }
.btn-ghost-light:hover { background: var(--paper); color: var(--leaf-deep); border-color: var(--paper); }

/* ===================== PRODUCT DETAIL (PDP) ===================== */
.pdp { min-height: 60vh; }
.pdp-noscript { max-width: var(--maxw); margin: 0 auto; padding: 4rem var(--pad); }
.pdp-noscript a { color: var(--gold); font-weight: 600; }
.pdp-section { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.75rem, 5vh, 3rem) var(--pad) clamp(2rem, 6vh, 4rem); }
.pdp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.pdp-media {
  border-radius: 4px; overflow: hidden;
  border-bottom: 4px solid var(--accent, var(--ink));
  background: var(--paper-2);
  aspect-ratio: 1 / 1;
}
.pdp-media[data-origin="kenya"]   { --accent: var(--o-kenya); }
.pdp-media[data-origin="purple"]  { --accent: var(--o-purple); }
.pdp-media[data-origin="malawi"]  { --accent: var(--o-malawi); }
.pdp-media[data-origin="rooibos"] { --accent: var(--o-rooibos); }
.pdp-media[data-origin="flight"]  { --accent: var(--o-flight); }
.pdp-media[data-origin="sub"]     { --accent: var(--o-sub); }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--leaf); color: var(--gold-soft);
}
.pdp-media-mark { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.02em; }

.pdp-info[data-origin="kenya"]   { --accent: var(--o-kenya); }
.pdp-info[data-origin="purple"]  { --accent: var(--o-purple); }
.pdp-info[data-origin="malawi"]  { --accent: var(--o-malawi); }
.pdp-info[data-origin="rooibos"] { --accent: var(--o-rooibos); }
.pdp-info[data-origin="flight"]  { --accent: var(--o-flight); }
.pdp-info[data-origin="sub"]     { --accent: var(--o-sub); }
.pdp-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.pdp-top .origin-dot { background: var(--accent); }
.pdp-name { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.4rem; }
.pdp-type { font-size: 0.9rem; color: var(--accent); font-weight: 500; margin-bottom: 1.5rem; }
.pdp-short { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--ink); margin-bottom: 1.5rem; }
.pdp-para { color: var(--ink-soft); margin-bottom: 1.1rem; }
.pdp-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.pdp-notes li {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-soft);
}

.pdp-buy {
  margin: 2rem 0 1.5rem; padding: 1.5rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.pdp-price-wrap { display: flex; flex-direction: column; }
.pdp-buy .price { font-size: 2rem; }
.pdp-buy .weight { font-size: 0.8rem; }
.pdp-buy .btn { margin-left: auto; }
.pdp-buy-note { flex-basis: 100%; color: var(--o-malawi); font-size: 0.9rem; margin: 0; }

.pdp-receipt {
  display: flex; align-items: baseline; gap: 0.9rem;
  background: var(--paper-2); border-left: 3px solid var(--o-malawi);
  padding: 1.1rem 1.25rem; border-radius: 0 4px 4px 0; margin-bottom: 1.5rem;
}
.pdp-receipt-num { font-family: var(--serif); font-size: 1.8rem; color: var(--o-malawi); line-height: 1; }
.pdp-receipt-label { font-size: 0.9rem; color: var(--ink-soft); }
.pdp-receipt-label a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.pdp-farm-link {
  display: inline-block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent, var(--gold)); font-weight: 600;
  transition: transform .25s var(--ease);
}
.pdp-farm-link:hover { transform: translateX(4px); }

/* brewing */
.brew { max-width: var(--maxw); margin: 0 auto; }
.brew-table {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  margin-top: 1.25rem;
}
.brew-table dt {
  background: var(--paper-2); padding: 0.9rem 1rem 0.4rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate);
}
.brew-table dd {
  background: var(--paper); padding: 0 1rem 1rem; margin: 0;
  font-family: var(--mono); font-size: 0.95rem; color: var(--ink);
}
/* place each dt above its dd in the same column */
.brew-table dt:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.brew-table dd:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.brew-table dt:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.brew-table dd:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.brew-table dt:nth-of-type(3) { grid-column: 3; grid-row: 1; }
.brew-table dd:nth-of-type(3) { grid-column: 3; grid-row: 2; }
.brew-table dt:nth-of-type(4) { grid-column: 4; grid-row: 1; }
.brew-table dd:nth-of-type(4) { grid-column: 4; grid-row: 2; }
.brew-table dt:nth-of-type(5) { grid-column: 5; grid-row: 1; }
.brew-table dd:nth-of-type(5) { grid-column: 5; grid-row: 2; }

/* ===================== RELATED ===================== */
.related { background: var(--paper-2); }
.related { max-width: none; padding: clamp(3rem, 8vh, 5rem) var(--pad); }
.related .section-tag, .related-row { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.related-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.related-card {
  --accent: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem;
  border-top: 3px solid var(--accent);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.related-card[data-origin="kenya"]   { --accent: var(--o-kenya); }
.related-card[data-origin="purple"]  { --accent: var(--o-purple); }
.related-card[data-origin="malawi"]  { --accent: var(--o-malawi); }
.related-card[data-origin="rooibos"] { --accent: var(--o-rooibos); }
.related-card[data-origin="flight"]  { --accent: var(--o-flight); }
.related-card[data-origin="sub"]     { --accent: var(--o-sub); }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -26px rgba(0,0,0,0.4); }
.related-card .card-origin { color: var(--slate); }
.related-name { font-family: var(--serif); font-size: 1.3rem; }
.related-type { font-size: 0.85rem; color: var(--accent); font-weight: 500; }
.related-card .price { font-size: 1.3rem; margin-top: 0.4rem; }

/* ===================== CONTENT / LEGAL / PROSE PAGES ===================== */
.page-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--pad) clamp(1.75rem, 5vh, 3rem);
}
.page-head-inner { max-width: 780px; margin: 0 auto; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0.4rem 0 0.8rem; }
.page-head .lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }

.prose { max-width: 780px; margin: 0 auto; padding: clamp(2.5rem, 6vh, 4rem) var(--pad); }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; font-family: var(--sans); font-weight: 600; margin: 1.6rem 0 0.5rem; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--gold); text-decoration: underline; }
.prose a:hover { color: var(--leaf); }
.prose strong { color: var(--ink); }
.prose .updated { font-size: 0.85rem; color: var(--slate); font-style: italic; margin-bottom: 2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); }
.prose td { color: var(--ink-soft); }

/* ===================== FAQ ===================== */
.faq { max-width: 780px; margin: 0 auto; padding: clamp(2.5rem, 6vh, 4rem) var(--pad); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 0; gap: 1rem;
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--serif); font-size: 1.18rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0 1.2rem; }
.faq-item .faq-a p { color: var(--ink-soft); margin: 0 0 0.7rem; }
.faq-item .faq-a a { color: var(--gold); text-decoration: underline; }

/* ===================== CONTACT FORM ===================== */
.contact-grid { max-width: 780px; margin: 0 auto; padding: clamp(2.5rem, 6vh, 4rem) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-detail p { color: var(--ink-soft); margin-bottom: 0.6rem; }
.contact-detail a { color: var(--gold); text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-form label { font-size: 0.85rem; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.8rem 1rem; font: inherit;
  border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-form .form-note { color: var(--o-malawi); font-weight: 500; font-size: 0.9rem; }

/* ===================== FOOTER LEGAL ROW ===================== */
.footer-legal {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.1rem;
  padding-top: 1.4rem; margin-top: 0.6rem;
  border-top: 1px solid rgba(246,242,233,0.12);
}
.footer-legal a { font-size: 0.8rem; color: rgba(246,242,233,0.55); transition: color .2s; }
.footer-legal a:hover { color: var(--gold-soft); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-media { aspect-ratio: 16 / 10; }
  .farm-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  /* brew table: from one 5-col row to stacked label/value pairs */
  .brew-table { grid-template-columns: max-content 1fr; }
  .brew-table dt, .brew-table dd { grid-column: auto !important; grid-row: auto !important; }
  .brew-table dt { padding: 0.7rem 1rem; }
  .brew-table dd { padding: 0.7rem 1rem; text-align: right; }
  .pdp-buy .btn { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0 var(--pad);
    max-height: 0; overflow: hidden;
    box-shadow: 0 16px 30px -20px rgba(0,0,0,0.35);
    transition: max-height .35s var(--ease);
  }
  .nav-links.open { max-height: 22rem; }
  .nav-links a {
    padding: 1.05rem 0; font-size: 1.05rem; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links-cta { display: block; color: var(--leaf); font-weight: 600; }

  .problem-grid { grid-template-columns: 1fr; }
  .farm-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
