/* O&J Commodities — main stylesheet
   Palette taken from the client mock-ups; gold is darkened where it carries small text (WCAG AA). */
:root {
  --forest: #0F3B2A;
  --forest-deep: #0A2C1F;
  --forest-soft: #1A4D38;
  --gold: #B8913A;          /* rules, icons, large display text */
  --gold-light: #D4AE5A;    /* gold on dark green */
  --gold-ink: #85661F;      /* gold text on cream, ≥ 4.5:1 */
  --gold-btn: #8F6F28;      /* button fill, white text ≥ 4.5:1 */
  --gold-btn-hover: #7A5E21;
  --cream: #F7F4EE;
  --cream-deep: #EFE9DD;
  --paper: #FFFDF9;
  --ink: #1E1E1E;
  --muted: #55534D;
  --line: #E2D9C7;
  --wa: #25D366;
  --wa-card: #117A41;

  --serif-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --max: 1240px;
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(15, 59, 42, .06), 0 10px 30px -12px rgba(15, 59, 42, .25);
  color-scheme: light;
}
html.nav-compact { --header-h: 76px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-btn); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--forest); color: #fff; padding: .7rem 1rem; border-radius: var(--radius); transition: top .2s; }
.skip:focus { top: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- type ---------- */
.h2 { font: 400 clamp(2rem, 1.4rem + 2.2vw, 3rem)/1.12 var(--serif-display); letter-spacing: -.01em; color: var(--forest); text-wrap: balance; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem; margin: 0 0 1.1rem;
  font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 2.6rem; height: 1px; background: var(--gold); }
.eyebrow::after { width: 1.4rem; }
.eyebrow--light { color: var(--gold-light); }
.eyebrow--light::before, .eyebrow--light::after { background: var(--gold-light); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold-btn); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem; white-space: nowrap;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--radius); border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--gold { background: linear-gradient(180deg, #9A7830, var(--gold-btn)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -8px rgba(110, 82, 20, .6); }
.btn--gold:hover { background: var(--gold-btn-hover); }
.btn--outline { --bg: transparent; --fg: var(--gold-ink); --bd: var(--gold); }
.btn--outline:hover { --bg: var(--gold-btn); --fg: #fff; --bd: var(--gold-btn); }
.btn--text { --bg: transparent; --fg: var(--forest); padding-inline: .4rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .35em; text-decoration-thickness: 1px; }
.btn--text:hover { --fg: var(--gold-ink); }
.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: .95rem 1.75rem; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 1.75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: var(--header-h);
  background: rgba(247, 244, 238, .94); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu */
@supports (backdrop-filter: blur(1px)) { .site-header { background: transparent; } .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(247, 244, 238, .82); backdrop-filter: saturate(1.4) blur(14px); } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(15, 59, 42, .4); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 1.5rem; text-decoration: none; flex: none; }
.brand__logo { width: 136px; height: auto; }
.brand__tag { display: flex; align-items: center; gap: .8rem; padding-left: 1.5rem; border-left: 1.5px solid var(--gold); height: 44px; font: 500 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--forest); }
.brand__tag i { width: 1.5px; height: 1rem; background: var(--gold); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(.8rem, 1.6vw, 1.9rem); }
.nav__link { position: relative; display: block; white-space: nowrap; padding: .5rem 0; font: 500 .95rem/1.2 var(--sans); color: var(--ink); text-decoration: none; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link[aria-current] { color: var(--gold-ink); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--cream-deep); border: 1px solid var(--line); }
.lang__opt { min-width: 44px; min-height: 36px; display: grid; place-items: center; padding: 0 .7rem; border-radius: 999px; font: 600 .8rem/1 var(--sans); letter-spacing: .06em; color: var(--muted); text-decoration: none; transition: background-color .2s, color .2s; }
.lang__opt:hover { color: var(--forest); }
.lang__opt[aria-current] { background: var(--forest); color: #fff; }
.menu-btn { display: none; width: 48px; height: 48px; place-items: center; border: 0; border-radius: var(--radius); background: transparent; color: var(--forest); cursor: pointer; }
.menu-btn .icon { width: 30px; height: 30px; }
.menu-btn .icon--close, .menu-btn[aria-expanded="true"] .icon--open { display: none; }
.menu-btn[aria-expanded="true"] .icon--close { display: block; }

/* Header fit (main.js + inline head script): when the links don't fit on one line, hide the tagline
   (html.hide-tag), then the CTA, which duplicates the Contact link (html.hide-cta), then switch to the menu
   button (html.nav-compact; always below 1280px). Without JS the links are hidden below 1280px, as before (the menu button needs JS). */
@media (max-width: 1599px) { .brand__tag { display: none; } }
html.hide-tag .brand__tag, html.hide-cta .header-cta { display: none; }
@media (max-width: 1279px) { html:not(.js) .nav { display: none; } }
html.nav-measuring .site-header, html.nav-measuring .site-header * { transition: none !important; }
html.nav-compact .menu-btn { display: grid; }
html.nav-compact .header-cta { display: none; }
html.nav-compact .brand__logo { width: 112px; }
html.nav-compact .nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--cream); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
html.nav-compact .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
html.nav-compact .nav__list { flex-direction: column; gap: 0; }
html.nav-compact .nav__list li { border-bottom: 1px solid var(--line); }
html.nav-compact .nav__link { padding: 1.05rem 0; font: 400 1.6rem/1.2 var(--serif); color: var(--forest); }
html.nav-compact .nav__link:hover, html.nav-compact .nav__link[aria-current] { color: var(--gold-ink); }
html.nav-compact .nav__link::after { display: none; }
html.nav-compact .nav__mobile-extra { display: grid; }
html.nav-compact body.menu-open { overflow: hidden; }
@media (max-width: 420px) { html .brand__logo, html.nav-compact .brand__logo { width: 96px; } .site-header__actions { gap: .5rem; } .lang__opt { min-width: 40px; padding: 0 .55rem; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); color: #fff; }
.hero::before { /* faint leaf texture on the green panel */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(120% 90% at 0% 0%, #164A35 0%, transparent 55%), radial-gradient(80% 80% at 30% 120%, #0A2C1F 0%, transparent 60%);
}
.hero__media { position: absolute; inset: 0 0 0 auto; width: 44%; z-index: -1; }
.hero__slide { position: absolute; inset: 0; }
.hero__slide:not(.is-active) { display: none; }
.hero__pic, .hero__pic img { width: 100%; height: 100%; }
.hero__pic { background: var(--ph, #3b2a1a); }
.hero__pic img { object-fit: cover; object-position: 60% 50%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest) 0%, rgba(15,59,42,.9) 16%, rgba(15,59,42,.5) 34%, rgba(15,59,42,.1) 54%, rgba(15,59,42,0) 70%); }
.hero__dots { display: none; }
.hero__content { position: relative; padding-block: clamp(4rem, 9vh, 6.5rem) clamp(4rem, 9vh, 6rem); min-height: clamp(520px, 72vh, 640px); display: flex; flex-direction: column; justify-content: center; }
.hero__title { font: 400 clamp(2.6rem, 1.4rem + 3.1vw, 4.25rem)/1.06 var(--serif-display); letter-spacing: -.015em; }
.hero__content > * { align-self: flex-start; }
@media (min-width: 900px) { .hero__title { max-width: 46vw; text-wrap: balance; } .hero__l1, .hero__l2 { display: inline; } .hero__l1::after { content: "\A"; white-space: pre; } }
.hero__title:lang(fr) { font-size: clamp(2.4rem, 1.3rem + 2.7vw, 3.75rem); }
.hero__l1, .hero__l2 { display: block; }
.hero__l2 { color: var(--gold-light); }
.hero__lead { position: relative; max-width: 26ch; margin: 2.4rem 0 2.25rem; padding-top: 2rem; font: 400 clamp(1.3rem, 1rem + .9vw, 1.75rem)/1.35 var(--serif); color: #F3EFE6; }
.hero__lead::before { content: ""; position: absolute; top: 0; left: 0; width: 5.5rem; height: 2px; background: var(--gold); }
.hero .btn--gold { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px rgba(212,174,90,.5), 0 14px 30px -12px rgba(0,0,0,.6); }

.hero__map { position: absolute; z-index: 0; pointer-events: none; top: 50%; left: 47%; width: clamp(320px, 32vw, 500px); transform: translateY(-50%); }
.trade-map { width: 100%; height: auto; overflow: visible; }
.trade-map__land { stroke: #2E6A4E; stroke-width: 4.2; stroke-linecap: round; opacity: .85; }
.trade-map__route { fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(212,174,90,.45)); }
.trade-map__route--out { stroke-dasharray: .015 .02; opacity: .75; filter: none; }
.trade-map__port circle { fill: var(--gold-light); }
.trade-map__leader { fill: none; stroke: var(--gold-light); stroke-width: 1; opacity: .6; }
.trade-map text { fill: #F3EFE6; font: 500 17px/1 var(--sans); letter-spacing: .02em; }
.trade-map__sub, .trade-map__out-label { fill: #B9C7B9 !important; font-size: 14px !important; letter-spacing: .14em !important; text-transform: uppercase; }
.trade-map__origin text:first-of-type { letter-spacing: .14em; text-transform: uppercase; font-size: 16px; font-weight: 600; }
.trade-map__dot { fill: var(--gold-light); stroke: var(--forest); stroke-width: 2; }
.trade-map__pulse { fill: none; stroke: var(--gold-light); stroke-width: 1.5; opacity: 0; }

/* Route animation: plays once, after the loader closes (html.map-go). */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero .trade-map__route { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  html.js .hero .trade-map__route--out { stroke-dasharray: .015 .02; stroke-dashoffset: 0; opacity: 0; }
  html.js .hero .trade-map__port, html.js .hero .trade-map__out-label { opacity: 0; }
  html.map-go .hero .trade-map__route { animation: route-draw 2.2s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .18s); }
  html.map-go .hero .trade-map__route--out { animation: fade-in 1s ease forwards 1.6s; }
  html.map-go .hero .trade-map__port { animation: fade-in .6s ease forwards; animation-delay: calc(2s + var(--i) * .18s); }
  html.map-go .hero .trade-map__out-label { animation: fade-in .6s ease forwards 2.2s; }
  html.map-go .hero .trade-map__pulse { animation: pulse 2.4s ease-out 3 .1s; }
}
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pulse { 0% { r: 5px; opacity: .9; } 100% { r: 22px; opacity: 0; } }

@media (max-width: 1199px) and (min-width: 900px) {
  .hero__map { left: 52%; width: 28vw; opacity: .9; }
  .hero__media { width: 40%; }
  .hero__map .trade-map__ports text { display: none; }
}

/* Mobile hero: full-bleed carousel with curved lower edge */
@media (max-width: 899px) {
  .hero { min-height: min(86svh, 720px); display: flex; flex-direction: column; justify-content: flex-end; border-radius: 0 0 50% 50% / 0 0 34px 34px; }
  .hero::before { display: none; }
  .hero__media { width: 100%; }
  .hero__slide { transition: opacity .8s ease; }
  html.js .hero__slide:not(.is-active) { display: block; opacity: 0; }
  .hero__pic img { object-position: 50% 40%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(10,44,31,.25) 0%, rgba(10,44,31,.15) 35%, rgba(10,44,31,.8) 68%, rgba(10,44,31,.95) 100%); }
  .hero__map { display: none; }
  .hero__content { min-height: 0; padding-block: 8rem 4.4rem; }
  .hero__title { font-size: clamp(2.35rem, 1.2rem + 5.4vw, 3.2rem); }
  .hero__lead { margin: 1.4rem 0 1.75rem; padding-top: 1.4rem; font-size: 1.2rem; }
  .hero__dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.6rem; display: flex; justify-content: center; gap: .25rem; }
  .hero__dot { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
  .hero__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7); transition: background-color .3s, transform .3s; }
  .hero__dot[aria-selected="true"]::before { background: var(--gold-light); transform: scale(1.25); }
  .hero .btn--lg { align-self: flex-start; }
}

/* ---------- pillars ---------- */
.pillars { background: var(--cream-deep); border-bottom: 1px solid var(--line); }
.pillars__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { display: flex; gap: 1.25rem; align-items: center; padding: 1.9rem clamp(1rem, 2.4vw, 2.5rem); }
.pillar + .pillar { border-left: 1px solid #D5C9AE; }
.pillar:first-child { padding-left: 0; }
.pillar__icon { flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #F3EBD6; box-shadow: inset 0 0 0 3px rgba(212,174,90,.25); }
.pillar__icon .icon { width: 34px; height: 34px; stroke-width: 1.4; }
.pillar__title { font: 400 1.45rem/1.2 var(--serif); color: var(--ink); margin-bottom: .35rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; max-width: 30ch; }
@media (max-width: 899px) {
  .pillars { background: var(--cream); border: 0; padding-top: 1.5rem; }
  .pillar { flex-direction: column; text-align: center; gap: .6rem; padding: .75rem .4rem; }
  .pillar:first-child { padding-left: .4rem; }
  .pillar + .pillar { border-left-color: var(--gold); }
  .pillar__icon { width: auto; height: auto; background: none; box-shadow: none; color: var(--gold-ink); }
  .pillar__icon .icon { width: 36px; height: 36px; }
  .pillar__title { font: 500 .88rem/1.3 var(--sans); margin: 0; }
  .pillar p { display: none; }
}

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.about { overflow: hidden; }
.about::after, .beans::after { /* cocoa branch watermark, as on the mock-ups */
  content: ""; position: absolute; right: -40px; top: 10%; width: 300px; height: 380px; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 380' fill='none' stroke='%23C9B48A' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M290 10C230 60 190 120 170 200s-20 130-10 170'/%3E%3Cpath d='M210 120c-40-30-95-35-150-10 45 35 105 45 150 10Zm-150-10c50 0 100 5 150 10'/%3E%3Cpath d='M246 60c40-30 50-50 52-55-35 2-70 22-52 55Z'/%3E%3Cpath d='M175 205c-30 5-55 35-58 80 2 45 25 75 48 82 25-8 45-38 45-82s-15-75-35-80Zm-10 2v158m-24-140c-8 25-10 55-5 85m53-85c8 25 10 55 4 85'/%3E%3Cpath d='M180 255c25-15 60-12 85 15-25 25-60 22-85-15Zm0 0 85 15'/%3E%3C/svg%3E") no-repeat center / contain;
}
.about__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 1; }
.about__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.about__pic, .about__pic img { width: 100%; height: 100%; }
.about__pic { background: var(--ph); }
.about__pic img { object-fit: cover; object-position: 40% 50%; }
.about__text { max-width: 36rem; }
.about__text .h2 { margin-bottom: 1.4rem; }
.about__text p { color: #3A3934; }
@media (max-width: 899px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: 2; aspect-ratio: 16 / 10; }
  .about::after { display: none; }
}

/* approach: dark band, real sequence → numbered */
.approach { background: var(--forest); color: #EAE6DC; overflow: hidden; }
.approach .h2 { color: #fff; margin-bottom: 1.25rem; }
.approach__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); }
.approach__intro { max-width: 34ch; color: #CFD8CF; font-size: 1.1rem; }
.approach__map { width: min(100%, 460px); height: auto; margin-top: 2rem; opacity: .95; }
.steps { position: relative; counter-reset: s; align-self: center; }
.steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: linear-gradient(var(--gold), rgba(184,145,58,.2)); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; padding-block: 1.5rem; }
.step + .step { border-top: 1px solid rgba(255,255,255,.08); }
.step__n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); border: 1px solid var(--gold); color: var(--gold-light); font: 400 1.5rem/1 var(--serif-display); }
.step__title { font: 400 1.5rem/1.25 var(--serif); color: #fff; margin: .55rem 0 .4rem; }
.step p { margin: 0; color: #C9D3C9; max-width: 46ch; }
@media (max-width: 899px) {
  .approach__grid { grid-template-columns: 1fr; }
  .approach__map { width: min(100%, 420px); margin-inline: auto; }
  .step { grid-template-columns: 44px 1fr; gap: 1rem; }
  .step__n { width: 44px; height: 44px; font-size: 1.2rem; }
  .steps::before { left: 21px; }
  .step__title { margin-top: .3rem; font-size: 1.3rem; }
}

/* cocoa beans */
.beans { overflow: hidden; }
.beans::after { top: auto; bottom: 4%; right: auto; left: -60px; transform: scaleX(-1); opacity: .4; }
.beans__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 1; }
.beans__intro { font-size: 1.1rem; color: #3A3934; max-width: 40ch; margin-top: 1.25rem; }
.specs { margin: 1.75rem 0 2.25rem; border-top: 1px solid var(--line); }
.specs__row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 500 .9rem/1.5 var(--sans); color: var(--forest); }
.specs dd { color: #3A3934; font-size: 1rem; line-height: 1.55; }
.beans__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); aspect-ratio: 5 / 4; }
.beans__pic, .beans__pic img { width: 100%; height: 100%; }
.beans__pic img { object-fit: cover; object-position: 50% 50%; }
@media (max-width: 899px) {
  .beans__grid { grid-template-columns: 1fr; }
  .beans__media { aspect-ratio: 16 / 11; }
  .specs__row { grid-template-columns: 1fr; gap: .15rem; }
}

/* certification partners */
.partners { background: var(--cream-deep); border-block: 1px solid var(--line); }
.partners__head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.partners__head .eyebrow::after { width: 2.6rem; }
.partners__head .h2 { margin-bottom: 1.25rem; }
.partners__intro { font-size: 1.1rem; color: #3A3934; margin-inline: auto; max-width: 52ch; }
.partners__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); max-width: 60rem; margin-inline: auto; }
.partner { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.partner__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.25rem; background: var(--forest); color: #F3EBD6; box-shadow: inset 0 0 0 3px rgba(212,174,90,.25); }
.partner__icon .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.partner__role { margin: 0 0 .35rem; font: 500 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.partner__name { margin: 0 0 .75rem; font: 400 1.75rem/1.2 var(--serif); color: var(--forest); }
.partner__text { margin: 0 0 1.25rem; color: #3A3934; line-height: 1.6; }
.partner__link { margin-top: auto; }
.partner__link:hover .icon { transform: none; }
@media (max-width: 767px) { .partners__list { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { position: relative; background: var(--paper); padding-bottom: clamp(4rem, 8vw, 6rem); }
.contact__banner { position: relative; isolation: isolate; color: #fff; padding-block: clamp(4.5rem, 10vw, 8rem) clamp(6rem, 11vw, 9rem); }
.contact__bg { position: absolute; inset: 0; z-index: -1; background: #3a2615; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.contact__banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(43,26,12,.88) 0%, rgba(43,26,12,.62) 55%, rgba(43,26,12,.25) 100%); }
.contact__title { color: #fff; font-size: clamp(2.4rem, 1.5rem + 3vw, 3.8rem); margin-bottom: 1rem; }
.contact__head p { max-width: 38ch; font-size: 1.15rem; color: #F1E9DD; margin: 0; }
.contact__body { position: relative; margin-top: -4rem; }
.contact__body::before { /* white sheet rising over the photo, as on the mobile mock-up */
  content: ""; position: absolute; z-index: 0; inset: 0 max(0px, calc(var(--gutter) - 1.5rem)) auto; height: 6rem; border-radius: 28px 28px 0 0; background: var(--paper);
}
.contact__cards { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding-top: 1.5rem; }
.ccard { display: flex; align-items: center; gap: 1.25rem; min-height: 112px; padding: 1.4rem 1.6rem; border-radius: var(--radius-lg); color: #fff; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 12px 28px -16px rgba(0,0,0,.5); }
.ccard:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -16px rgba(0,0,0,.55); }
.ccard--email { background: var(--forest); }
.ccard--wa { background: linear-gradient(135deg, #138A47, var(--wa-card)); }
.ccard__icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; }
.ccard__icon .icon { width: 44px; height: 44px; stroke-width: 1.3; }
.ccard__text { display: grid; gap: .2rem; min-width: 0; }
.ccard__text strong { font: 600 1.3rem/1.2 var(--sans); }
.ccard__text span { color: rgba(255,255,255,.88); font-size: 1rem; overflow-wrap: anywhere; }
.ccard__arrow { margin-left: auto; width: 26px; height: 26px; transition: transform .25s var(--ease); }
.ccard:hover .ccard__arrow { transform: translateX(4px); }
@media (max-width: 767px) {
  .contact__cards { grid-template-columns: 1fr; }
  .ccard { gap: .9rem; padding: 1.15rem 1.1rem; min-height: 96px; }
  .ccard__icon { width: 40px; height: 40px; }
  .ccard__icon .icon { width: 34px; height: 34px; }
  .ccard__text strong { font-size: 1.15rem; }
  .ccard__text span { font-size: .95rem; overflow-wrap: normal; }
  .ccard__arrow { width: 22px; height: 22px; }
}
.enquiry { margin-top: 3rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.enquiry__title { font: 400 1.6rem/1.2 var(--serif); color: var(--forest); margin-bottom: 1.25rem; }
.enquiry__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; margin-bottom: 1.5rem; }
.field { display: grid; gap: .35rem; font-size: .9rem; font-weight: 500; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #CFC4AE; border-radius: var(--radius); background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold-btn); outline-offset: 0; border-color: transparent; }
.enquiry__status { margin: 1rem 0 0; font-weight: 500; }
@media (max-width: 599px) { .enquiry__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--forest-deep); color: #D5DDD5; --logo-ink: #F7F4EE; --logo-word: #F7F4EE; --logo-rib: var(--forest-deep); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { text-decoration: none; }
.site-footer__grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 2rem clamp(2rem, 4vw, 4rem); align-items: center; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__logo { width: 150px; }
.site-footer__tag { margin: .8rem 0 0; font: 500 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.site-footer__tag span { color: var(--gold); margin: 0 .4rem; }
.site-footer__place { display: flex; gap: .9rem; align-items: center; padding-left: clamp(0rem, 3vw, 3rem); border-left: 1px solid rgba(212,174,90,.4); }
.site-footer__place .icon { width: 34px; height: 34px; color: var(--gold-light); }
.site-footer__place p { margin: 0; display: grid; }
.site-footer__place span { font-size: .9rem; }
.site-footer__place strong { font: 400 1.6rem/1.2 var(--serif); color: #fff; }
.site-footer__links { display: grid; gap: .45rem; }
.site-footer__links a { display: flex; align-items: center; gap: .7rem; padding: .2rem 0; color: #E4E9E4; font-size: .98rem; }
.site-footer__links a:hover { color: var(--gold-light); }
.site-footer__links .icon { width: 20px; height: 20px; color: var(--gold-light); }
.site-footer__legal { grid-column: 1 / -1; padding-block: 1.4rem; border-block: 1px solid rgba(212,174,90,.45); font-size: .95rem; line-height: 1.55; color: #D5DDD5; }
.site-footer__legal p { margin: 0; }
.site-footer__legal strong { display: block; margin-bottom: .2rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.site-footer__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem 1.5rem; font-size: .88rem; color: #A9B7AA; }
.site-footer__base p { margin: 0; }
.site-footer .lang { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.site-footer .lang__opt { color: #C9D3C9; }
.site-footer .lang__opt[aria-current] { background: var(--gold-btn); color: #fff; }
@media (max-width: 1079px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__place { border: 0; padding: 0; }
}
@media (max-width: 599px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__base { flex-direction: column-reverse; align-items: flex-start; padding-bottom: 6rem; }
}

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 30; right: max(1.1rem, env(safe-area-inset-right)); bottom: max(1.1rem, env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35), 0 0 0 4px rgba(255,255,255,.65);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float .icon { width: 32px; height: 32px; stroke-width: 1.8; }
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline-color: var(--forest); }
body.menu-open .wa-float { display: none; }

/* ---------- floating cocoa price badge (bottom-left, mirrors the WhatsApp button) ---------- */
.price-badge {
  position: fixed; z-index: 30; left: max(1.1rem, env(safe-area-inset-left)); bottom: max(1.1rem, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .45rem .9rem .45rem .45rem; border-radius: 999px;
  background: var(--forest); color: var(--cream); text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35), 0 0 0 1px rgba(212,174,90,.35);
  transition: transform .25s var(--ease), background .25s;
}
.price-badge:hover { background: var(--forest-soft); transform: translateY(-2px); }
.price-badge:focus-visible { outline-color: var(--gold-light); }
.price-badge__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(212,174,90,.16); color: var(--gold-light); }
.price-badge__icon .icon { width: 22px; height: 22px; }
.price-badge__text { display: grid; line-height: 1.15; }
.price-badge__text strong { font: 600 .9rem/1.2 var(--sans); }
.price-badge__text small { font-size: .74rem; color: #B9C7B9; }
.price-badge__ext { width: 15px; height: 15px; color: var(--gold-light); }
body.menu-open .price-badge { display: none; }
/* small screens: icon only, so it never covers content next to the WhatsApp button */
@media (max-width: 599px) {
  .price-badge { gap: 0; padding: .3rem; min-height: 0; }
  .price-badge__text, .price-badge__ext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-badge__icon { width: 48px; height: 48px; }
}

/* ---------- loader ---------- */
.loader { display: none; }
html.show-loader .loader {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 2rem 1.5rem;
  background: radial-gradient(120% 70% at 50% 100%, #EFE6D3 0%, #FFFDF9 55%); color: var(--forest);
  transition: opacity .45s ease, visibility 0s .45s;
}
html.loader-done .loader { opacity: 0; visibility: hidden; }
.loader__inner { width: min(100%, 360px); display: grid; justify-items: center; text-align: center; }
.loader__logo { width: 168px; }
.loader__tag { display: flex; align-items: center; gap: .7rem; margin: 1rem 0 0; font: 600 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.loader__tag i { width: 1.5px; height: .9rem; background: var(--gold); }
.loader__title { margin: 2.2rem 0 1.8rem; font: 400 1.6rem/1.2 var(--serif); text-wrap: balance; }
.loader__ring { position: relative; width: 132px; height: 132px; }
.loader__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke-width: 5; }
.loader__track { stroke: #E7E0D0; }
.loader__bar { stroke: url(#lg); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .35s ease; }
.loader__ring p { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; font-size: .85rem; color: var(--muted); }
.loader__ring strong { font: 500 1.35rem/1.3 var(--sans); color: var(--forest); }
.loader__steps { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 2.2rem; font-size: .78rem; color: var(--muted); }
.loader__steps li { position: relative; display: grid; justify-items: center; gap: .35rem; opacity: .35; transition: opacity .3s; }
.loader__steps li.is-on { opacity: 1; color: var(--forest); }
.loader__steps li + li::before { content: ""; position: absolute; top: 16px; right: 72%; width: 56%; height: 1px; background: var(--gold); opacity: .5; }
.loader__steps svg { width: 32px; height: 32px; color: var(--forest); }

/* ---------- gallery ---------- */
.g-intro { padding-block: clamp(3rem, 7vw, 5.5rem) 2rem; }
.g-intro__title { font: 400 clamp(2.8rem, 1.6rem + 4vw, 4.6rem)/1.05 var(--serif-display); color: var(--forest); }
.g-intro__text { margin: 1rem 0 2rem; max-width: 46ch; font-size: 1.15rem; color: #3A3934; }
.filters { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream-deep); border: 1px solid var(--line); }
.filters__btn { min-height: 40px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: transparent; font-size: .92rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.filters__btn:hover { color: var(--forest); }
.filters__btn[aria-pressed="true"] { background: var(--forest); color: #fff; }
.g-grid-wrap { padding-bottom: clamp(3rem, 7vw, 5rem); }
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(200px, 22vw, 300px); grid-auto-flow: dense; gap: clamp(.75rem, 1.4vw, 1.25rem); }
.g-item--wide { grid-column: span 2; }
.g-item[hidden] { display: none; }
.g-item__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; background: var(--cream-deep); text-align: left; }
.g-item__pic, .g-item__pic img { width: 100%; height: 100%; }
.g-item__pic { background: var(--ph); }
.g-item__pic img { object-fit: cover; transition: transform .6s var(--ease); }
.g-item__btn:hover img { transform: scale(1.04); }
.g-item__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 1rem; color: #fff; font-size: .95rem; line-height: 1.4; background: linear-gradient(transparent, rgba(10,30,20,.85)); }
.g-item__cat { display: block; margin-bottom: .2rem; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.g-item__zoom { position: absolute; top: .8rem; right: .8rem; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(255,253,249,.9); color: var(--forest); opacity: 0; transition: opacity .25s; }
.g-item__btn:hover .g-item__zoom, .g-item__btn:focus-visible .g-item__zoom { opacity: 1; }
@media (max-width: 1023px) { .g-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(180px, 34vw, 280px); } }
@media (max-width: 599px) { .g-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } .g-item--wide { grid-column: auto; } .g-item__btn { aspect-ratio: 4 / 3; height: auto; } .g-item__zoom { opacity: 1; } }
.g-cta { background: var(--forest); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.g-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.g-cta .h2 { color: #fff; }

.lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #08160F; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(8, 22, 15, .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox__stage { display: grid; place-items: center; padding: clamp(3.5rem, 6vw, 4.5rem) clamp(.5rem, 7vw, 6rem) .5rem; min-height: 0; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transition: opacity .25s, transform .3s var(--ease); }
.lightbox__stage img.is-loading { opacity: .3; }
.lightbox__cap { display: flex; justify-content: center; gap: 1rem; align-items: baseline; padding: 1rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 1rem; }
.lightbox__count { color: #A9B7AA; font-size: .85rem; font-variant-numeric: tabular-nums; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background-color .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.18); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
@media (max-width: 599px) { .lightbox__prev, .lightbox__next { top: auto; bottom: calc(4.2rem + env(safe-area-inset-bottom)); transform: none; } }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; align-content: center; gap: 3rem; padding-block: 4rem; }
.nf__svg { width: 160px; }
.nf__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.nf__cols p { margin: 1rem 0 1.5rem; color: var(--muted); }
@media (max-width: 699px) { .nf__cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
