@import url('/css/fonts.css');

/* ==========================================================================
   Ferme Intégrée de Kokounou — design system "Verger"
   ========================================================================== */

:root {
  --ink: #20301F;
  --ink-soft: #3B4C39;
  --slate: #6B7A68;
  --mist: #BFC8BC;
  --cream: #FCF9F3;
  --paper: #FFFFFF;
  --emerald: #0F8C5C;
  --emerald-deep: #0A6B47;
  --emerald-glow: rgba(15, 140, 92, .12);
  --gold: #C9A227;
  --gold-soft: #E8C547;
  --clay: #C2703C;
  --border: rgba(32, 48, 31, .09);
  --border-strong: rgba(32, 48, 31, .16);

  --sh-sm: 0 1px 2px rgba(32,48,31,.04), 0 1px 3px rgba(32,48,31,.06);
  --sh-md: 0 4px 14px rgba(32,48,31,.07), 0 2px 4px rgba(32,48,31,.04);
  --sh-lg: 0 22px 44px rgba(32,48,31,.11), 0 8px 16px rgba(32,48,31,.06);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: 32px;
  --maxw: 1260px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- layout ------------------------------------------------------ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: 92px 0; position: relative; }
.sec-tight { padding: 64px 0; }
.sec-paper { background: var(--paper); }
.sec-cream { background: var(--cream); }

.sec-dark {
  background: var(--ink); color: var(--cream); position: relative; overflow: hidden;
}
.sec-dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 26%, rgba(15,140,92,.18) 0%, transparent 52%),
    radial-gradient(circle at 84% 76%, rgba(201,162,39,.13) 0%, transparent 52%);
}
.sec-dark > .container, .sec-dark > .container-narrow { position: relative; z-index: 1; }
.sec-dark .eyebrow { color: var(--gold-soft); }
.sec-dark .eyebrow::before { background: var(--gold-soft); }
.sec-dark .display, .sec-dark h2, .sec-dark h3 { color: var(--cream); }
.sec-dark .lead, .sec-dark p { color: rgba(252,249,243,.72); }

/* ---------- typography -------------------------------------------------- */
.display {
  font-family: var(--serif); font-weight: 700; line-height: 1.06;
  letter-spacing: -.02em; color: var(--ink);
}
h1.display { font-size: clamp(34px, 5vw, 66px); font-weight: 800; }
h2.display { font-size: clamp(27px, 3.6vw, 45px); }
h3.display { font-size: clamp(20px, 2vw, 26px); }
.display em { font-style: italic; }

h2, h3, h4 { font-weight: 700; line-height: 1.28; color: var(--ink); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

.lead { font-size: 18.5px; color: var(--slate); line-height: 1.66; max-width: 62ch; }
.prose p { margin-bottom: 18px; color: var(--ink-soft); line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em; color: var(--emerald);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--emerald); flex: none; }

.accent {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--emerald);
  font-style: italic;
}
.sec-dark .accent { background: linear-gradient(135deg, var(--gold-soft) 0%, #7fd2a8 100%); -webkit-background-clip: text; background-clip: text; }

.head-c { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.head-c h2 { margin: 18px 0 18px; }
.head-c .lead { margin: 0 auto; }
.head-r { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.head-r h2 { margin: 18px 0 0; }
.head-l { max-width: 720px; margin-bottom: 44px; }
.head-l h2 { margin: 18px 0 18px; }

/* ---------- buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; font-size: 15px; font-weight: 600;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.4,0,.2,1), background-color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap; text-align: center;
}
.btn-em { background: var(--emerald); color: #fff; box-shadow: 0 4px 14px rgba(15,140,92,.3); }
.btn-em:hover { background: var(--emerald-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,140,92,.4); }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: var(--sh-md); }
.btn-ink:hover { background: var(--emerald-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }
.sec-dark .btn-ghost { color: var(--cream); border-color: rgba(255,255,255,.24); }
.sec-dark .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.btn-gold { background: var(--gold); color: #241b02; box-shadow: 0 4px 14px rgba(201,162,39,.3); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- header ------------------------------------------------------ */
.topline {
  background: var(--ink); color: rgba(252,249,243,.82);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  text-align: center; padding: 9px 20px;
}
.topline b { color: var(--gold-soft); font-weight: 500; }

.site-header {
  position: sticky; top: 0; z-index: 60; padding: 14px 0;
  background: rgba(252,249,243,.9);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--gold-soft), var(--clay));
  display: grid; place-items: center; font-size: 19px;
  box-shadow: 0 4px 12px rgba(194,112,60,.25);
}
.brand small {
  display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 400;
  letter-spacing: .13em; text-transform: uppercase; color: var(--slate); margin-top: 2px;
}

.nav { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav > li { position: relative; }
.nav > li > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  padding: 9px 12px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav > li > a:hover, .nav-trigger:hover { color: var(--emerald); background: var(--emerald-glow); }
.nav > li > a[aria-current="page"] { color: var(--emerald); background: var(--emerald-glow); }
.nav-trigger svg { width: 11px; height: 11px; transition: transform .2s; }
.nav-group[data-open="true"] .nav-trigger svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 292px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--sh-lg); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
/* The menu sits 10px below the trigger. This invisible bridge spans that gap so
   the pointer never crosses unhovered space on its way down to the menu. */
.nav-menu::before {
  content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.nav-group[data-open="true"] .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; transition: background-color .18s; }
.nav-menu a:hover { background: var(--cream); color: var(--emerald); }
.nav-menu a span { display: block; font-size: 12.5px; color: var(--slate); margin-top: 2px; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch {
  font-family: var(--mono); font-size: 12px; color: var(--slate);
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- hero -------------------------------------------------------- */
.hero { padding: 60px 0 76px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 88% 14%, rgba(201,162,39,.09) 0%, transparent 44%),
    radial-gradient(circle at 6% 82%, rgba(15,140,92,.06) 0%, transparent 44%);
}
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 22px; }
.hero .lead { margin-bottom: 32px; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.pills { display: flex; gap: 9px; flex-wrap: wrap; }
.pill {
  background: var(--paper); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 15px; font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
  box-shadow: var(--sh-sm); display: inline-flex; gap: 8px; align-items: center;
}

.hero-photo { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--sh-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.2; }

.float {
  position: absolute; background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 16px; padding: 15px 19px; box-shadow: var(--sh-md);
}
.float .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); margin-bottom: 5px; }
.float .val { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.15; }
.float .sub { font-size: 12px; color: var(--slate); margin-top: 3px; }
.float-bl { left: 20px; bottom: 20px; }
.float-tr { right: 20px; top: 20px; display: flex; align-items: center; gap: 10px; padding: 11px 17px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }

.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 7px var(--emerald); animation: pulse 2s ease-in-out infinite; flex: none; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.35); } }

/* page hero (inner pages) */
.page-hero { padding: 52px 0 60px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 84% 10%, rgba(201,162,39,.08) 0%, transparent 46%);
}
.page-hero > .container { position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.page-hero h1 { margin: 18px 0 20px; }
.page-hero .lead { max-width: 56ch; }
.page-hero-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--sh-lg); }
.page-hero-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.breadcrumb { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; color: var(--slate); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--emerald); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- cards & grids ---------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-wide { grid-template-columns: 1.15fr .85fr; }

.card {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.sec-paper .card { background: var(--cream); }
.sec-cream .card { background: var(--paper); }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--emerald); }
.card .icn {
  width: 46px; height: 46px; border-radius: 13px; background: var(--emerald-glow);
  display: grid; place-items: center; font-size: 21px; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 14.5px; line-height: 1.65; }
.card .num {
  font-family: var(--mono); font-size: 11px; color: var(--emerald);
  letter-spacing: .12em; margin-bottom: 14px; display: block;
}
.sec-dark .card {
  background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09);
}
.sec-dark .card:hover { background: rgba(255,255,255,.07); border-color: rgba(201,162,39,.32); }
.sec-dark .card .icn { background: rgba(201,162,39,.14); }
.sec-dark .card .num { color: var(--gold-soft); }
.sec-dark .card p { color: rgba(252,249,243,.64); }

/* product cards */
.product {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.sec-paper .product { background: var(--cream); }
.product:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--emerald); }
.product-im { aspect-ratio: 4/3; position: relative; overflow: hidden; background: #EFE8DA; }
.product-im img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product-im img { transform: scale(1.05); }
.product-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 56px; }
.product-ph.warm { background: linear-gradient(135deg, #F3D9A6, #C2703C); }
.product-ph.cool { background: linear-gradient(135deg, #A9D3B6, #0A6B47); }
.product-badge {
  position: absolute; top: 13px; left: 13px;
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 5px 12px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--emerald); font-weight: 500;
}
.product-b { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-b h3 { font-family: var(--serif); font-weight: 700; font-size: 21px; margin-bottom: 7px; }
.product-desc { font-size: 13.8px; color: var(--slate); line-height: 1.6; margin-bottom: 14px; }
.product-format { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); margin-bottom: 16px; }
.product-bot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 15px; border-top: 1px solid var(--border);
}
.product-price { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.1; }
.product-price small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11.5px; color: var(--slate); margin-top: 3px; }

/* ---------- numbered steps --------------------------------------------- */
.steps { display: grid; gap: 20px; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 26px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 30px;
  transition: border-color .25s, box-shadow .25s;
}
.sec-paper .step { background: var(--cream); }
.step:hover { border-color: var(--emerald); box-shadow: var(--sh-sm); }
.step-n {
  font-family: var(--serif); font-size: 25px; font-weight: 700; color: var(--emerald);
  line-height: 1; padding-top: 3px;
}
.step-when {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--clay); margin-bottom: 8px;
}
.step h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); line-height: 1.72; font-size: 15px; }
.step-media { margin-top: 18px; border-radius: var(--radius-sm); overflow: hidden; }
.step-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.note {
  margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--gold);
  background: rgba(201,162,39,.07); border-radius: 0 10px 10px 0;
  font-size: 14px; color: var(--ink-soft); line-height: 1.65;
}
.note strong { color: var(--ink); }

.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-step { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 26px 24px; }
.sec-cream .mini-step { background: var(--paper); }
.sec-dark .mini-step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); }
.mini-step .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--emerald-glow); color: var(--emerald);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.sec-dark .mini-step .n { background: rgba(201,162,39,.16); color: var(--gold-soft); }
.mini-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.mini-step p { font-size: 13.8px; color: var(--slate); line-height: 1.62; }
.sec-dark .mini-step p { color: rgba(252,249,243,.64); }

/* ---------- figures / stats -------------------------------------------- */
.figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-md);
}
.figure { padding: 34px 26px; border-right: 1px solid var(--border); text-align: center; }
.figure:last-child { border-right: 0; }
.figure .v { font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 3vw, 40px); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.figure .l { font-size: 12.5px; color: var(--slate); text-transform: uppercase; letter-spacing: .07em; margin-top: 10px; font-weight: 500; }
.figure .n { font-size: 12.5px; color: var(--mist); margin-top: 10px; font-style: italic; line-height: 1.5; }
.figures-6 { grid-template-columns: repeat(3, 1fr); }
.figures-6 .figure:nth-child(3n) { border-right: 0; }
.figures-6 .figure:nth-child(-n+3) { border-bottom: 1px solid var(--border); }

/* ---------- tables ------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper); }
.sec-dark .table-wrap { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.09); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
thead th {
  text-align: left; padding: 15px 20px; background: var(--cream);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate); font-weight: 500; white-space: nowrap;
}
.sec-dark thead th { background: rgba(255,255,255,.05); color: var(--gold-soft); }
tbody td { padding: 15px 20px; border-top: 1px solid var(--border); color: var(--ink-soft); vertical-align: top; }
.sec-dark tbody td { border-color: rgba(255,255,255,.09); color: rgba(252,249,243,.75); }
tbody tr:hover td { background: rgba(15,140,92,.03); }
td strong, td b { color: var(--ink); font-weight: 600; }
.sec-dark td strong { color: var(--cream); }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  padding: 4px 9px; border-radius: 5px; letter-spacing: .05em; white-space: nowrap;
}
.tag-green { background: var(--emerald-glow); color: var(--emerald-deep); }
.tag-gold { background: rgba(201,162,39,.14); color: #8a6f14; }
.tag-clay { background: rgba(194,112,60,.13); color: #96501f; }

/* ---------- seasonality calendar --------------------------------------- */
.calendar { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--sh-md); overflow: hidden; }
.cal-scroll { overflow-x: auto; }
.cal-row { display: grid; grid-template-columns: 190px repeat(12, 1fr); align-items: center; border-bottom: 1px solid var(--border); min-width: 640px; }
.cal-row:last-child { border-bottom: 0; }
.cal-row.head { background: var(--cream); }
.cal-name { padding: 14px 20px; font-weight: 600; display: flex; gap: 9px; align-items: center; font-size: 13.5px; }
.cal-row.head .cal-name { font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
.cal-m { padding: 13px 3px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--slate); }
.cal-bar { display: block; height: 9px; border-radius: 999px; background: rgba(32,48,31,.07); margin: 0 3px; }
.cal-bar.peak { background: linear-gradient(90deg, var(--emerald), var(--emerald-deep)); }
.cal-bar.edge { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }
.cal-legend { display: flex; gap: 22px; justify-content: center; margin-top: 20px; font-size: 12.5px; color: var(--slate); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; gap: 8px; align-items: center; }
.cal-legend i { width: 22px; height: 8px; border-radius: 999px; display: block; }

/* ---------- lists ------------------------------------------------------- */
.check-list { list-style: none; display: grid; gap: 13px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 13px; align-items: start; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.check-list .ck {
  width: 23px; height: 23px; border-radius: 50%; background: var(--emerald-glow);
  color: var(--emerald); display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 2px;
}
.sec-dark .check-list li { color: rgba(252,249,243,.78); }
.sec-dark .check-list .ck { background: rgba(15,140,92,.2); color: #7fd2a8; }
.x-list { list-style: none; display: grid; gap: 11px; }
.x-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--ink-soft); }
.x-list .xk { color: var(--clay); font-weight: 700; }

/* ---------- gallery ----------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); border: 1px solid var(--border); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 15px 18px; font-size: 13.5px; color: var(--slate); line-height: 1.55; }

/* ---------- ripeness swatches ------------------------------------------ */
.ripeness { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ripe { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.ripe .sw { height: 84px; }
.ripe .b { padding: 20px 22px; }
.ripe h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.ripe p { font-size: 13.8px; color: var(--slate); line-height: 1.6; }

/* ---------- quality classes -------------------------------------------- */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.class-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; position: relative; overflow: hidden; }
.class-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.class-card.gold::before { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }
.class-card.green::before { background: linear-gradient(90deg, var(--emerald), var(--emerald-deep)); }
.class-card.clay::before { background: linear-gradient(90deg, #E0A06C, var(--clay)); }
.class-code { font-family: var(--serif); font-size: 34px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.class-card.gold .class-code { color: var(--gold); }
.class-card.green .class-code { color: var(--emerald); }
.class-card.clay .class-code { color: var(--clay); }
.class-card h3 { font-size: 17px; margin-bottom: 12px; }
.class-card p { font-size: 14.2px; color: var(--slate); line-height: 1.66; }
.class-goes { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); }

/* ---------- recipe / compost mix bars ----------------------------------- */
.mix { display: grid; gap: 12px; }
.mix-row { display: grid; grid-template-columns: 62px 1fr; gap: 16px; align-items: center; }
.mix-pct { font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--emerald); text-align: right; }
.mix-bar { position: relative; background: rgba(32,48,31,.06); border-radius: 999px; height: 44px; overflow: hidden; display: flex; align-items: center; }
.sec-dark .mix-bar { background: rgba(255,255,255,.07); }
.mix-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(15,140,92,.22), rgba(15,140,92,.1)); }
.mix-text { position: relative; padding: 0 18px; font-size: 14px; }
.mix-text b { display: block; font-size: 14.5px; }
.mix-text span { color: var(--slate); font-size: 12.8px; }
.sec-dark .mix-text span { color: rgba(252,249,243,.6); }

/* ---------- quotes ------------------------------------------------------ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.quote-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--emerald), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--emerald); }
.quote-card:hover::before { transform: scaleX(1); }
.quote-card p { font-family: var(--serif); font-size: 18.5px; line-height: 1.5; margin-bottom: 20px; font-weight: 600; }
.quote-who { display: flex; align-items: center; gap: 13px; }
.quote-av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--clay), #8E3D22); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.quote-name { font-weight: 600; font-size: 14px; }
.quote-role { color: var(--slate); font-size: 12.5px; }

/* ---------- journal ----------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--border); transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; }
.sec-cream .post { background: var(--paper); }
.post:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--emerald); }
.post-im { aspect-ratio: 16/10; overflow: hidden; }
.post-im img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post:hover .post-im img { transform: scale(1.05); }
.post-b { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-kind { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: 11px; }
.post h3 { font-family: var(--serif); font-weight: 700; font-size: 21px; margin-bottom: 10px; line-height: 1.25; }
.post p { font-size: 14.2px; color: var(--slate); line-height: 1.62; }
.post-more { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--emerald); }
.post-meta { font-family: var(--mono); font-size: 11px; color: var(--mist); margin-top: 12px; }

.article { padding: 44px 0 80px; }
.article-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.article-head h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 50px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 16px 0 20px; }
.article-head .lead { margin: 0 auto; font-size: 18px; }
.article-meta { font-family: var(--mono); font-size: 11.5px; color: var(--slate); letter-spacing: .06em; margin-top: 22px; }
.article-hero { max-width: 1000px; margin: 0 auto 44px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-lg); }
.article-hero img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body > * { margin-bottom: 22px; }
.article-body p { font-size: 17px; line-height: 1.78; color: var(--ink-soft); }
.article-body h2 { font-family: var(--serif); font-size: 27px; font-weight: 700; margin: 44px 0 18px; }
.article-body ul { padding-left: 0; list-style: none; display: grid; gap: 11px; }
.article-body ul li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
.article-body ul li::before { content: '—'; color: var(--emerald); font-weight: 600; }
.article-body figure { margin: 34px 0; border-radius: var(--radius-sm); overflow: hidden; }
.article-body figure img { width: 100%; }
.article-body figcaption { padding: 14px 4px 0; font-size: 13.5px; color: var(--slate); font-style: italic; }
.article-body .table-wrap { margin: 30px 0; }
.article-body .note { margin: 30px 0; padding: 20px 24px; }
.article-body .note b { display: block; margin-bottom: 6px; }

/* ---------- forms ------------------------------------------------------- */
.form-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--sh-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.field label .req { color: var(--clay); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border-strong);
  border-radius: 12px; background: var(--cream); font-size: 15.5px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); background: var(--paper); }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--clay); background: rgba(194,112,60,.05); }
.field .hint { font-size: 12.5px; color: var(--slate); margin-top: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 15px 18px; font-size: 14.5px; margin-bottom: 20px; display: none; }
.form-status[data-state="ok"] { display: block; background: var(--emerald-glow); color: var(--emerald-deep); border: 1px solid rgba(15,140,92,.25); }
.form-status[data-state="error"] { display: block; background: rgba(194,112,60,.09); color: #8e4a1c; border: 1px solid rgba(194,112,60,.28); }

.newsletter-box {
  background: var(--paper); border: 1px solid var(--border); border-radius: 28px;
  box-shadow: var(--sh-lg); padding: 52px 48px; display: grid;
  grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter-box::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 92% 12%, rgba(201,162,39,.1) 0%, transparent 46%); }
.newsletter-box > * { position: relative; z-index: 1; }
.newsletter-box h2 { margin: 16px 0 16px; }
.newsletter-field { display: flex; background: var(--cream); border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; transition: border-color .2s; }
.newsletter-field:focus-within { border-color: var(--emerald); }
.newsletter-field input { flex: 1; border: 0; background: transparent; outline: 0; padding: 15px 22px; font-size: 15px; min-width: 0; }
.newsletter-fine { font-size: 12.5px; color: var(--slate); margin-top: 12px; text-align: center; }

/* ---------- CTA banner -------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { margin: 18px 0 18px; }
.cta-band p { max-width: 58ch; margin: 0 auto 32px; font-size: 17px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(252,249,243,.62); padding: 62px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.site-footer .brand { color: var(--cream); margin-bottom: 16px; }
.site-footer .brand small { color: rgba(252,249,243,.45); }
.footer-about { font-size: 14px; line-height: 1.65; max-width: 320px; }
.footer-col h4 { color: var(--cream); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 16px; font-weight: 500; }
.footer-col ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.09); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; flex-wrap: wrap; gap: 14px; }
.footer-bottom .standards { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: rgba(252,249,243,.42); }

/* ---------- 404 --------------------------------------------------------- */
.notfound { padding: 100px 0; text-align: center; }
.notfound .code { font-family: var(--serif); font-size: clamp(70px, 12vw, 150px); font-weight: 800; line-height: 1; color: var(--emerald-glow); }
.notfound h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); margin: -12px 0 18px; }
.notfound .links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- responsive -------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figure:nth-child(2n) { border-right: 0; }
  .figure:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .mini-steps { grid-template-columns: repeat(2, 1fr); }
  .ripeness { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .sec { padding: 68px 0; }
  .nav, .nav-actions .lang-desktop { display: none; }
  .nav-toggle { display: block; }
  .site-header[data-open="true"] .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px; box-shadow: var(--sh-lg);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .site-header[data-open="true"] .nav > li > a,
  .site-header[data-open="true"] .nav-trigger { width: 100%; padding: 12px 14px; font-size: 16px; }
  .nav-menu::before { content: none; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0;
    margin: 2px 0 8px 14px; padding: 0 0 0 6px; display: none; min-width: 0; }
  .nav-group[data-open="true"] .nav-menu { display: block; }
  .hero-grid, .page-hero-grid, .split, .split-wide, .newsletter-box { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-2, .quotes, .posts, .classes, .gallery { grid-template-columns: 1fr; }
  .figures-6 { grid-template-columns: repeat(2, 1fr); }
  .figures-6 .figure { border-right: 0; border-bottom: 1px solid var(--border); }
  .figures-6 .figure:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-box { padding: 36px 26px; }
  .form-card { padding: 28px 22px; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 26px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
}

@media (max-width: 620px) {
  /* The brand tagline is what makes the header overflow on narrow phones and
     pushes the menu toggle off-screen. Drop it before anything else. */
  .site-header .brand small { display: none; }
  .site-header .brand { font-size: 17px; }
  .nav-actions { gap: 8px; }
}

@media (max-width: 400px) {
  /* Last resort: the header CTA gives way so the toggle always stays reachable.
     Ordering is still one tap away inside the menu. */
  .nav-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .grid-4, .mini-steps, .ripeness, .figures, .figures-6 { grid-template-columns: 1fr; }
  .figure { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .figure:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
  .float-bl { left: 12px; bottom: 12px; right: 12px; }
  .float-tr { right: 12px; top: 12px; }
}
