/* =====================================================================
   BEDO AFRICA — Design System
   "Quiet authority": deep green + sage + warm off-white + antique gold.
   Fraunces (display, >=1.5rem only) + Inter (everything else).
   Gold behaves as metal: hairlines, borders, underlines, single numerals.
   Hand-built, tokenised, WCAG-minded, reduced-motion aware.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color roles */
  --surface: #F7F5F0;        /* warm off-white page canvas (never pure white) */
  --surface-card: #FCFBF8;   /* card / panel / input fill */
  --anchor: #14342B;         /* dark green structural anchor */
  --anchor-700: #1C4A3B;     /* dark green mid (hover / gradient stop) */
  --anchor-900: #0F281F;     /* deepest green (footer base, scrims) */
  --sage: #8FA98E;           /* sage green — decorative only, never text on white */
  --sage-tint: #E4EBE1;      /* pale sage alternating band */
  --sage-line: #C7D2C4;      /* hairline dividers, card borders, input borders */
  --ink: #1E2422;            /* body text (near-black, green undertone) */
  --ink-soft: #55605B;       /* secondary text, captions */
  --gold: #B8973E;           /* metal accent: strokes, hairlines, underlines */
  --gold-deep: #7A5F1E;      /* gold as TEXT on light (clears 4.5:1) */
  --gold-on-dark: #D8B968;   /* gold as text/line on dark green */
  --olive: #7C7F2E;          /* Saido's signature olive — used sparingly for the ouroboros/botanical motif */
  --olive-on-dark: #A7AB54;  /* olive on dark green */
  --danger: #9A3B2E;         /* form errors */

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.5rem, 1.6rem + 4.2vw, 4rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --fs-h2: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
  --fs-h3: 1.375rem;
  --fs-h4: 1.125rem;
  --fs-body-lg: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-label: 0.9375rem;
  --fs-eyebrow: 0.8125rem;
  --fs-caption: 0.8125rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-12: 5rem;
  --space-16: 7rem;
  --space-20: 9rem;

  /* Radii */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-card: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows (green-tinted, restrained) */
  --shadow-card: 0 1px 2px rgba(20,52,43,0.04), 0 2px 8px rgba(20,52,43,0.05);
  --shadow-card-hover: 0 2px 4px rgba(20,52,43,0.06), 0 8px 24px rgba(20,52,43,0.08);
  --shadow-header: 0 1px 0 rgba(20,52,43,0.08), 0 6px 20px rgba(20,52,43,0.06);
  --shadow-focus: 0 0 0 3px rgba(184,151,62,0.35);

  /* Layout */
  --container: 1200px;
  --container-wide: 1280px;
  --container-narrow: 800px;
  --gutter: 1.5rem;
  --measure: 68ch;

  /* Motion */
  --dur-fast: 150ms;
  --dur-ui: 200ms;
  --dur-reveal: 560ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;

  /* Neem-leaf mask for bullets */
  --leaf-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C7 6 5 13 12 22C19 13 17 6 12 2Z'/%3E%3C/svg%3E");
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select, button { font-family: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.15; }
strong, b { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: rgba(184,151,62,0.25); color: var(--anchor); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--anchor); color: var(--surface);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
  font-size: var(--fs-label); font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-12); }
@media (min-width: 768px) { .section { padding-block: var(--space-16); } }

.section--tight { padding-block: var(--space-8); }
@media (min-width: 768px) { .section--tight { padding-block: var(--space-12); } }

.section--sage { background: var(--sage-tint); }
.section--anchor { background: var(--anchor); color: var(--surface); }
.section--anchor .lead, .section--anchor p { color: rgba(247,245,240,0.86); }
/* Ensure prose/text helpers stay legible on dark bands (higher specificity than .prose p) */
.section--anchor .prose, .section--anchor .prose p, .section--anchor .prose li, .section--anchor .text-soft, .section--anchor .caption, .section--anchor .media__cap { color: rgba(247,245,240,0.82); }
.section--anchor .prose strong { color: var(--surface); }
.section--anchor .prose a { color: var(--gold-on-dark); }
.section--anchor .fact__key { color: rgba(247,245,240,0.6); }
.section--anchor .leaf-list li { color: rgba(247,245,240,0.85); }
.section--anchor .leaf-list li::before { background: var(--gold-on-dark); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

.cluster {
  display: flex; flex-wrap: wrap;
  gap: var(--space-3) var(--space-5); align-items: center;
}

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid; gap: var(--space-8); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-media { grid-template-columns: 0.85fr 1.15fr; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------- 4. Typography helpers ---------- */
.display { font-family: var(--font-display); font-size: var(--fs-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
.h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; line-height: 1.12; letter-spacing: -0.005em; }
.h3 { font-family: var(--font-body); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.h4 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; }
.lead { font-size: var(--fs-body-lg); line-height: 1.6; color: var(--ink-soft); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 0.9em; }
.prose p { color: var(--ink); }
.text-soft { color: var(--ink-soft); }
.caption { font-size: var(--fs-caption); line-height: 1.45; color: var(--ink-soft); }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* ---------- 5. Section header (eyebrow + gold rule + title) ---------- */
.section-head { max-width: 46ch; }
.section-head.center { margin-inline: auto; }
.gold-rule {
  display: block; width: 48px; height: 2px;
  background: var(--gold); border: 0; margin-bottom: var(--space-4);
  transform-origin: left;
}
.center .gold-rule { margin-inline: auto; }
.eyebrow {
  display: block; font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: var(--space-3);
}
.section-head .h2 { margin-bottom: var(--space-4); }
.section-head .lead { margin-top: 0; }
.section--anchor .eyebrow { color: var(--gold-on-dark); }
.section--anchor .gold-rule { background: var(--gold-on-dark); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.01em;
  padding: 0.875rem 1.75rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: all var(--dur-fast) ease;
  text-align: center; line-height: 1.2;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary {
  background: var(--anchor); color: var(--surface);
  box-shadow: inset 0 1px 0 rgba(216,185,104,0.35);
}
.btn--primary:hover { background: var(--anchor-700); transform: translateY(-1px); box-shadow: var(--shadow-card-hover), inset 0 1px 0 rgba(216,185,104,0.45); }
.btn--primary:active { transform: translateY(0) scale(0.99); }
.btn--secondary {
  background: transparent; color: var(--anchor); border-color: var(--anchor);
}
.btn--secondary:hover { background: var(--sage-tint); border-color: var(--anchor-700); transform: translateY(-1px); }
.btn--secondary:active { transform: scale(0.99); }
.btn--ghost { padding: 0.25rem 0; color: var(--anchor); font-weight: 600; position: relative; }
.btn--ghost .icon { transition: transform var(--dur-ui) var(--ease-out); }
.btn--ghost::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0.35); transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}
.btn--ghost:hover::after { transform: scaleX(1); }
.btn--ghost:hover .icon { transform: translateX(3px); }

/* Buttons on dark green bands */
.section--anchor .btn--primary, .hero .btn--primary, .cta-band .btn--primary {
  background: var(--surface); color: var(--anchor); box-shadow: inset 0 1px 0 rgba(184,151,62,0.4);
}
.section--anchor .btn--primary:hover, .hero .btn--primary:hover, .cta-band .btn--primary:hover { background: #fff; }
.section--anchor .btn--secondary, .hero .btn--secondary, .cta-band .btn--secondary {
  color: var(--surface); border-color: rgba(216,185,104,0.7);
}
.section--anchor .btn--secondary:hover, .hero .btn--secondary:hover, .cta-band .btn--secondary:hover {
  background: rgba(255,255,255,0.08); border-color: var(--gold-on-dark);
}
.section--anchor .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost { color: var(--surface); }
.section--anchor .btn--ghost::after, .hero .btn--ghost::after, .cta-band .btn--ghost::after { background: var(--gold-on-dark); }

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

/* ---------- 7. Icons ---------- */
.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--sage-tint); color: var(--gold-deep);
  border: 1px solid var(--sage-line);
}
.section--anchor .icon-badge { background: rgba(255,255,255,0.06); color: var(--gold-on-dark); border-color: rgba(216,185,104,0.3); }

/* ---------- 8. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--anchor); color: var(--surface);
  transition: box-shadow var(--dur-ui) ease, background var(--dur-ui) ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); background: var(--anchor-900); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--surface); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark path { stroke: var(--gold-on-dark); }
.brand__mark .vein { stroke: var(--sage); }
.brand__mark .river { stroke: var(--sage); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: 0.01em; }
.brand__tag { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-on-dark); margin-top: 3px; }

.nav__menu { display: none; }
.nav__links { display: flex; align-items: center; gap: var(--space-5); }
.nav__link {
  position: relative; font-size: var(--fs-label); font-weight: 500;
  color: rgba(247,245,240,0.88); padding: 0.5rem 0; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold-on-dark); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}
.nav__link:hover { color: var(--surface); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--surface); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: var(--space-4); }

/* dropdown for secondary nav items */
.nav__more { position: relative; }
.nav__more-btn { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-label); font-weight: 500; color: rgba(247,245,240,0.88); padding: 0.5rem 0; }
.nav__more-btn .icon { width: 16px; height: 16px; transition: transform var(--dur-ui); }
.nav__more[data-open="true"] .nav__more-btn .icon { transform: rotate(180deg); }
.nav__more-panel {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 240px;
  background: var(--surface-card); color: var(--ink); border: 1px solid var(--sage-line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card-hover);
  padding: var(--space-3); display: none; flex-direction: column; gap: 2px;
}
.nav__more[data-open="true"] .nav__more-panel { display: flex; }
.nav__more-panel a {
  padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); font-size: var(--fs-label);
  color: var(--ink); display: flex; align-items: center; gap: 0.6rem;
}
.nav__more-panel a:hover { background: var(--sage-tint); color: var(--anchor); }
.nav__more-panel .icon { width: 18px; height: 18px; color: var(--gold-deep); }

.nav__btn-quote { display: none; }

/* Hamburger */
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--surface); border-radius: var(--radius-sm);
}
.nav__toggle .icon { width: 26px; height: 26px; }
.nav__toggle .icon-close { display: none; }
body.nav-open .nav__toggle .icon-menu { display: none; }
body.nav-open .nav__toggle .icon-close { display: block; }

/* Mobile slide-in panel */
.nav-panel {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); z-index: 150;
  background: var(--anchor-900); color: var(--surface);
  transform: translateX(100%); transition: transform var(--dur-ui) var(--ease-out);
  padding: calc(var(--header-h) + 1rem) var(--space-6) var(--space-8);
  overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  display: flex; flex-direction: column;
}
body.nav-open .nav-panel { transform: translateX(0); }
.nav-panel__links { display: flex; flex-direction: column; }
.nav-panel__links a {
  padding: var(--space-4) 0; font-size: 1.125rem; font-weight: 500;
  color: rgba(247,245,240,0.9); border-bottom: 1px solid rgba(216,185,104,0.18);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-panel__links a[aria-current="page"] { color: var(--gold-on-dark); }
.nav-panel__cta { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.nav-panel__meta { margin-top: auto; padding-top: var(--space-6); font-size: var(--fs-caption); color: rgba(247,245,240,0.6); }
.nav-scrim {
  position: fixed; inset: 0; z-index: 140; background: rgba(15,40,31,0.5);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-ui) ease;
  backdrop-filter: blur(2px);
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

@media (min-width: 1080px) {
  .nav__menu { display: flex; align-items: center; gap: var(--space-6); }
  .nav__btn-quote { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ---------- 9. Hero ---------- */
.hero { position: relative; color: var(--surface); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(15,40,31,0.92) 0%, rgba(20,52,43,0.78) 42%, rgba(20,52,43,0.30) 100%);
}
.hero__inner { padding-block: clamp(var(--space-12), 8vw, var(--space-20)); }
.hero__content { max-width: 46rem; }
.hero .display { color: #fff; }
.hero__sub { font-size: var(--fs-body-lg); line-height: 1.6; color: rgba(247,245,240,0.9); max-width: 52ch; margin-top: var(--space-5); }
.hero .btn-row { margin-top: var(--space-8); }
.hero--compact .hero__inner { padding-block: clamp(var(--space-8), 6vw, var(--space-16)); }
.hero--compact .hero__content { max-width: 42rem; }

/* Video hero */
.hero--video { min-height: min(88vh, 780px); display: flex; align-items: center; }
.hero--video .hero__bg { background: var(--anchor-900); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--video .hero__inner { width: 100%; }
.hero--video .hero__scrim {
  background:
    linear-gradient(100deg, rgba(11,31,24,0.95) 0%, rgba(13,37,28,0.82) 34%, rgba(20,52,43,0.55) 66%, rgba(20,52,43,0.40) 100%),
    linear-gradient(to top, rgba(11,31,24,0.55) 0%, rgba(11,31,24,0) 40%);
}
.hero__eyebrow { color: var(--gold-on-dark); }

/* ---------- 10. Image-placeholder system ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--anchor); }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Variant A: deep green gradient + neem motif (hero/feature) */
.ph-a {
  background: linear-gradient(135deg, var(--anchor) 0%, var(--anchor-700) 62%, #245c49 100%);
  position: relative;
}
.ph-a .ph-motif { position: absolute; right: -4%; bottom: -14%; width: 42%; max-width: 360px; color: var(--gold-on-dark); opacity: 0.16; }
.hero .ph-a .ph-motif { width: 30%; }
.ph-a .ph-veins, .ph-c .ph-veins, .cta-band .ph-veins { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-a .ph-veins { color: var(--sage); opacity: 0.10; }
.ph-a .ph-label {
  position: absolute; left: var(--space-6); bottom: var(--space-6); z-index: 2;
  font-size: var(--fs-caption); letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(247,245,240,0.75); display: flex; align-items: center; gap: 0.5rem;
}
.ph-a .ph-label .icon { width: 16px; height: 16px; color: var(--gold-on-dark); }

/* Variant B: sage plate with centered keyline motif (card tiles) */
.ph-b {
  background: var(--sage-tint); position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--sage-line);
}
.ph-b .ph-motif { width: 34%; color: var(--gold-deep); opacity: 0.85; }
.ph-b::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold);
  opacity: 0.35; border-radius: calc(var(--radius-lg) - 6px); pointer-events: none;
}

/* Photo media: real photography in an image slot */
.media--photo { border: 1px solid var(--sage-line); background: var(--anchor); }
.media--photo img { filter: saturate(0.97) contrast(1.02); }
.media--photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,52,43,0.04) 0%, rgba(11,31,24,0.16) 100%);
  box-shadow: inset 0 0 0 1px rgba(184,151,62,0.16);
}
.section--anchor .media--photo { border-color: rgba(216,185,104,0.25); }

/* Variant C: full-bleed anchor band texture */
.ph-c { background: var(--anchor); position: relative; }
.ph-c .ph-veins { position: absolute; inset: 0; color: var(--sage); opacity: 0.06; }

.media__cap { font-size: var(--fs-caption); color: var(--ink-soft); margin-top: var(--space-3); }

/* ---------- 11. Cards ---------- */
.card {
  background: var(--surface-card); border: 1px solid var(--sage-line);
  border-radius: var(--radius-card); padding: var(--space-6);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
  height: 100%;
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card__icon { margin-bottom: var(--space-4); }
.card .h3 { margin-bottom: var(--space-2); }
.card p { color: var(--ink-soft); font-size: var(--fs-body); }
.card__link { margin-top: var(--space-4); display: inline-flex; }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--gold); }
.card--link { display: flex; flex-direction: column; }
.card--link:focus-within { border-color: var(--gold); box-shadow: var(--shadow-focus); }

.section--anchor .card {
  background: rgba(255,255,255,0.04); border-color: rgba(216,185,104,0.22); color: var(--surface);
}
.section--anchor .card p { color: rgba(247,245,240,0.78); }
.section--anchor .card:hover { border-color: var(--gold-on-dark); }

/* relevance note under segment cards */
.card__note {
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--sage-line); font-size: var(--fs-caption); color: var(--ink-soft);
}
.card__note strong { color: var(--gold-deep); font-weight: 600; }

/* ---------- 12. Credential bar ---------- */
.credbar { background: var(--sage-tint); border-block: 1px solid var(--sage-line); }
.credbar__inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--space-4) var(--space-6); padding-block: var(--space-4);
}
.credbar__item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-label); font-weight: 500; color: var(--ink);
  position: relative;
}
.credbar__item .icon { width: 20px; height: 20px; color: var(--gold-deep); }
.credbar__item + .credbar__item::before {
  content: ""; position: absolute; left: calc(var(--space-6) / -2 - 3px); top: 50%;
  transform: translateY(-50%); width: 1px; height: 22px; background: var(--gold); opacity: 0.5;
}
@media (max-width: 760px) {
  .credbar__inner { gap: var(--space-4); }
  .credbar__item + .credbar__item::before { display: none; }
}

/* ---------- 13. Stat / metric block ---------- */
.stats { display: grid; gap: var(--space-6); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-left: 2px solid var(--gold); padding-left: var(--space-4); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 500; line-height: 1.05; color: var(--gold-deep); }
.stat__label { font-size: var(--fs-caption); color: var(--ink-soft); margin-top: var(--space-2); letter-spacing: 0.02em; }
.section--anchor .stat { border-color: var(--gold-on-dark); }
.section--anchor .stat__num { color: var(--gold-on-dark); }
.section--anchor .stat__label { color: rgba(247,245,240,0.72); }

/* ---------- 14. Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.02em;
  color: var(--gold-deep); background: var(--sage-tint);
  border: 1px solid var(--gold); border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
}
.badge .icon { width: 14px; height: 14px; }
.section--anchor .badge { color: var(--gold-on-dark); background: rgba(255,255,255,0.05); border-color: rgba(216,185,104,0.5); }

/* labelled fact / definition grid */
.facts { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 620px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .facts--3 { grid-template-columns: repeat(3, 1fr); } }
.fact { border-top: 1px solid var(--sage-line); padding-top: var(--space-3); }
.fact__key { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 600; }
.fact__val { font-size: var(--fs-h4); font-weight: 600; margin-top: 0.35rem; color: var(--ink); }
.fact__val .gold { color: var(--gold-deep); }
.section--anchor .fact { border-color: rgba(216,185,104,0.3); }
.section--anchor .fact__key { color: rgba(247,245,240,0.65); }
.section--anchor .fact__val { color: var(--surface); }
.section--anchor .fact__val .gold { color: var(--gold-on-dark); }

/* ---------- 15. Feature / check lists ---------- */
.checklist { display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checklist .icon { width: 22px; height: 22px; color: var(--gold-deep); margin-top: 2px; }
.checklist span { color: var(--ink); }
.section--anchor .checklist .icon { color: var(--gold-on-dark); }
.section--anchor .checklist span { color: rgba(247,245,240,0.88); }

/* leaf bullet list */
.leaf-list { display: grid; gap: var(--space-3); }
.leaf-list li { position: relative; padding-left: 1.75rem; color: var(--ink); }
.leaf-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px;
  background: var(--gold-deep);
  -webkit-mask: var(--leaf-mask) center / contain no-repeat;
  mask: var(--leaf-mask) center / contain no-repeat;
}

/* ---------- 16. Accordion ---------- */
.accordion { border-top: 1px solid var(--sage-line); }
.accordion__item { border-bottom: 1px solid var(--sage-line); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) 0; text-align: left;
  font-size: var(--fs-h4); font-weight: 600; color: var(--ink);
}
.accordion__trigger .icon { width: 22px; height: 22px; color: var(--gold-deep); transition: transform var(--dur-ui) var(--ease-out); flex: none; }
.accordion__trigger[aria-expanded="true"] { color: var(--anchor); }
.accordion__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-ui) var(--ease-out); }
.accordion__trigger[aria-expanded="true"] + .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel-inner { overflow: hidden; }
.accordion__panel p { padding-bottom: var(--space-5); color: var(--ink-soft); max-width: var(--measure); }

/* ---------- 17. Forms ---------- */
.form { display: grid; gap: var(--space-5); }
.form__group { display: grid; gap: var(--space-2); }
.form__label { font-size: var(--fs-label); font-weight: 600; color: var(--ink); }
.form__label .req { color: var(--danger); margin-left: 2px; }
.form__hint { font-size: var(--fs-caption); color: var(--ink-soft); }
.form__control {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem;
  background: var(--surface-card); border: 1px solid var(--sage-line);
  border-radius: var(--radius-sm); font-size: var(--fs-body); color: var(--ink);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
textarea.form__control { min-height: 130px; resize: vertical; line-height: 1.6; }
select.form__control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237A5F1E' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem;
}
.form__control:hover { border-color: var(--sage); }
.form__control:focus { outline: none; border-color: var(--gold); box-shadow: var(--shadow-focus); }
.form__control:focus-visible { outline: none; }
.form__group.has-error .form__control { border-color: var(--danger); }
.form__error { display: none; font-size: var(--fs-caption); color: var(--danger); align-items: center; gap: 0.35rem; }
.form__group.has-error .form__error { display: flex; }
.form__error .icon { width: 15px; height: 15px; color: var(--danger); }
.form__row { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

/* inquiry-type chooser */
.choice-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 620px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4); border: 1px solid var(--sage-line); border-radius: var(--radius-card);
  background: var(--surface-card); cursor: pointer; transition: all var(--dur-fast) ease;
}
.choice:hover { border-color: var(--gold); }
.choice input { margin-top: 3px; accent-color: var(--anchor); width: 18px; height: 18px; }
.choice__title { font-weight: 600; font-size: var(--fs-label); color: var(--ink); }
.choice__desc { font-size: var(--fs-caption); color: var(--ink-soft); margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--gold); background: var(--sage-tint); box-shadow: var(--shadow-card); }

.form__step { display: none; }
.form__step.is-active { display: grid; gap: var(--space-5); }
.form__progress { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.form__note { font-size: var(--fs-caption); color: var(--ink-soft); }
.form__success {
  display: none; padding: var(--space-6); border: 1px solid var(--gold);
  border-radius: var(--radius-card); background: var(--sage-tint);
}
.form__success.is-visible { display: block; }
.form__alert { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-sm); background: rgba(154,59,46,0.08); border: 1px solid var(--danger); color: var(--danger); font-size: var(--fs-body); }

/* ---------- 18. Pull-quote ---------- */
.pullquote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.3; color: var(--anchor);
  max-width: 52ch; border-left: 2px solid var(--gold); padding-left: var(--space-5);
}
.pullquote cite { display: block; font-family: var(--font-body); font-style: normal; font-size: var(--fs-caption); font-weight: 600; color: var(--gold-deep); margin-top: var(--space-4); letter-spacing: 0.04em; }
.section--anchor .pullquote { color: var(--surface); border-color: var(--gold-on-dark); }
.section--anchor .pullquote cite { color: var(--gold-on-dark); }
.pullquote--center { border-left: 0; padding-left: 0; margin-inline: auto; text-align: center; }

/* Editorial quote + ouroboros motif */
.editorial { text-align: center; }
.editorial .ouroboros { width: 78px; height: 78px; color: var(--olive); margin: 0 auto var(--space-6); display: block; }
.section--anchor .editorial .ouroboros { color: var(--olive-on-dark); }
.editorial .lead { margin-inline: auto; margin-top: var(--space-6); }

/* ---------- 19. Process steps ---------- */
.steps { display: grid; gap: var(--space-6); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; }
.step__num {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-deep);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4);
  background: var(--surface-card);
}
.step .h4 { margin-bottom: var(--space-2); }
.step p { font-size: var(--fs-body); color: var(--ink-soft); }
.section--anchor .step__num { color: var(--gold-on-dark); background: rgba(255,255,255,0.04); border-color: var(--gold-on-dark); }

/* ---------- 20. Map (Germany <-> Kenya) ---------- */
.supplymap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(216,185,104,0.22); box-shadow: var(--shadow-card); }
.supplymap img { width: 100%; height: auto; display: block; }
.supplymap svg { width: 100%; height: auto; }
.supplymap .map-outline { fill: none; stroke: var(--sage-line); stroke-width: 1; }
.supplymap .map-land { fill: var(--sage-tint); stroke: var(--sage-line); stroke-width: 1; }
.section--anchor .supplymap .map-land { fill: rgba(255,255,255,0.05); stroke: rgba(216,185,104,0.25); }
.supplymap .map-arc { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.9; }
.section--anchor .supplymap .map-arc { stroke: var(--gold-on-dark); }
.map-node { cursor: pointer; }
.map-node .dot { fill: var(--gold-deep); transition: r var(--dur-ui) var(--ease-out); }
.section--anchor .map-node .dot { fill: var(--gold-on-dark); }
.map-node .ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.5; }
.map-node .lbl { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--anchor); }
.section--anchor .map-node .lbl { fill: var(--surface); }
.map-node .sub { font-size: 11px; fill: var(--ink-soft); font-weight: 500; }
.section--anchor .map-node .sub { fill: rgba(247,245,240,0.7); }
.map-node:hover .dot, .map-node:focus-visible .dot { r: 8; }
.map-legend { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-5); }
.map-legend__item { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-caption); color: var(--ink-soft); }
.map-legend__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-deep); }
.section--anchor .map-legend__item { color: rgba(247,245,240,0.75); }
.section--anchor .map-legend__dot { background: var(--gold-on-dark); }

/* ---------- 21. Resource cards (gated / ungated) ---------- */
.resource {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--surface-card); border: 1px solid var(--sage-line);
  border-radius: var(--radius-card); padding: var(--space-6); height: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}
.resource:hover { border-color: var(--gold); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.resource__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.resource__tag { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); }
.resource__tag--open { color: var(--anchor-700); background: var(--sage-tint); }
.resource__tag--gated { color: var(--gold-deep); background: var(--sage-tint); border: 1px solid var(--gold); }
.resource .icon-doc { color: var(--gold-deep); }
.resource h3 { font-size: var(--fs-h4); margin-top: var(--space-2); }
.resource p { font-size: var(--fs-body); color: var(--ink-soft); flex: 1; }
.resource__action { margin-top: var(--space-2); }

/* ---------- 22. CTA band ---------- */
.cta-band { background: var(--anchor); color: var(--surface); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--gold-on-dark); }
.cta-band .ph-veins { position: absolute; inset: 0; color: var(--sage); opacity: 0.05; z-index: 0; }
.cta-band__inner { position: relative; z-index: 1; text-align: center; max-width: 40ch; margin-inline: auto; }
.cta-band .h2 { color: #fff; }
.cta-band p { color: rgba(247,245,240,0.85); margin-top: var(--space-4); }
.cta-band .btn-row { justify-content: center; margin-top: var(--space-8); }

/* ---------- 23. Footer ---------- */
.site-footer { background: var(--anchor-900); color: rgba(247,245,240,0.72); }
.footer__cred {
  border-bottom: 1px solid rgba(216,185,104,0.2);
}
.footer__cred .credbar__inner { color: rgba(247,245,240,0.85); }
.footer__cred .credbar__item { color: rgba(247,245,240,0.85); }
.footer__cred .credbar__item .icon { color: var(--gold-on-dark); }
.footer__cred .credbar__item + .credbar__item::before { background: var(--gold-on-dark); }
.footer__main { display: grid; gap: var(--space-8); grid-template-columns: 1fr; padding-block: var(--space-12); }
@media (min-width: 720px) { .footer__main { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__main { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer__brand .brand { margin-bottom: var(--space-4); }
.footer__brand p { font-size: var(--fs-body); color: rgba(247,245,240,0.7); max-width: 34ch; }
.footer__col h4 { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-on-dark); margin-bottom: var(--space-4); }
.footer__col ul { display: grid; gap: var(--space-3); }
.footer__col a { font-size: var(--fs-label); color: rgba(247,245,240,0.75); position: relative; }
.footer__col a:hover { color: var(--surface); }
.footer__col a.is-soon { color: rgba(247,245,240,0.4); cursor: default; }
.footer__col a.is-soon::after { content: " · soon"; font-size: 0.7em; color: var(--gold-on-dark); }
.footer__contact li { font-size: var(--fs-label); color: rgba(247,245,240,0.75); line-height: 1.5; display: flex; gap: 0.6rem; align-items: flex-start; }
.footer__contact .icon { width: 17px; height: 17px; color: var(--gold-on-dark); margin-top: 3px; flex: none; }
.footer__bottom {
  border-top: 1px solid rgba(216,185,104,0.2); padding-block: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center;
}
.footer__bottom p { font-size: var(--fs-caption); color: rgba(247,245,240,0.55); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer__legal a { font-size: var(--fs-caption); color: rgba(247,245,240,0.65); }
.footer__legal a:hover { color: var(--surface); }

/* ---------- 24. Breadcrumb / page intro helpers ---------- */
.pageheader { background: var(--anchor); color: var(--surface); }
.breadcrumb { font-size: var(--fs-caption); color: rgba(247,245,240,0.65); margin-bottom: var(--space-4); }
.breadcrumb a:hover { color: var(--gold-on-dark); }
.breadcrumb span { color: var(--gold-on-dark); }

/* jump-link nav (faq / legal) */
.jumpnav { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.jumpnav a {
  font-size: var(--fs-label); font-weight: 500; padding: 0.5rem 1rem;
  border: 1px solid var(--sage-line); border-radius: var(--radius-pill); color: var(--anchor);
  transition: all var(--dur-fast) ease;
}
.jumpnav a:hover { border-color: var(--gold); background: var(--sage-tint); }

/* ---------- 25. Cookie banner ---------- */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 180;
  max-width: 560px; margin-inline: auto;
  background: var(--anchor-900); color: rgba(247,245,240,0.85);
  border: 1px solid rgba(216,185,104,0.3); border-radius: var(--radius-card);
  padding: var(--space-5); box-shadow: var(--shadow-card-hover);
  display: none; gap: var(--space-4); align-items: center; flex-wrap: wrap;
}
.cookie.is-visible { display: flex; }
.cookie p { font-size: var(--fs-caption); flex: 1 1 260px; line-height: 1.5; }
.cookie a { color: var(--gold-on-dark); text-decoration: underline; }
.cookie__actions { display: flex; gap: var(--space-3); }
.cookie .btn { padding: 0.6rem 1.1rem; font-size: var(--fs-caption); }

/* ---------- 26. Reveal animation ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][style*="--i"] { transition-delay: calc(var(--i) * 70ms); }

/* ---------- 27. Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.gold { color: var(--gold-deep); }
.hairline { border: 0; border-top: 1px solid var(--sage-line); }
.section--anchor .hairline { border-color: rgba(216,185,104,0.25); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- 28. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 29. Print ---------- */
@media print {
  .site-header, .site-footer, .cookie, .cta-band, .nav-panel, .nav-scrim { display: none; }
  body { color: #000; background: #fff; }
}
