/* ==========================================================================
   THAI AGRO OILS — Design System
   Plain CSS, no build step. Mobile-first.
   Breakpoints: 480 · 768 · 1024 · 1180 (desktop nav) · 1440 · 1600
   Contents:
     1. Font + tokens      7. Breadcrumbs        13. FAQ
     2. Base               8. Heroes             14. Tables / spec
     3. Layout             9. Cards              15. Forms
     4. Typography        10. Steps              16. Footer
     5. Buttons + links   11. CTA band           17. Mobile bar
     6. Header + nav      12. Verify marker      18. Prose, utilities, motion
   ========================================================================== */

/* 1. Font + tokens ------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"),
       url("../fonts/archivo-variable.woff2") format("woff2");
}

:root {
  /* Brand colours */
  --plantation: #1e3a2b;      /* primary dark green */
  --plantation-2: #2b5140;    /* hover / raised dark */
  --plantation-3: #e3ebe5;    /* pale green tint */
  --amber: #e0a526;           /* oil amber: fills only, never small text on white */
  --amber-strong: #c98a12;
  --amber-ink: #7a5208;       /* amber-family text colour, 7:1 on white */
  --paper: #f6f7f3;           /* section tint */
  --white: #ffffff;
  --ink: #18211c;             /* body text, 15.9:1 on white */
  --muted: #4e5a52;           /* secondary text, 7.0:1 on white */
  --line: #d9ded6;
  --line-strong: #b9c2b8;
  --error: #a32a1c;
  --success: #1f6b3a;

  /* Oil shades (used in vials and product swatches) */
  --oil-1: #f4e6a8;
  --oil-2: #ecca62;
  --oil-3: #e0a526;
  --oil-4: #c47a16;
  --oil-5: #9a4f12;

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-sm: 0.9375rem;                                   /* 15px */
  --fs-base: 1.0625rem;                                 /* 17px */
  --fs-lead: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);        /* ref: 16px mobile / 18px desktop */
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --fs-h2: clamp(1.875rem, 1.6rem + 0.9vw, 2.25rem);          /* ref: 30px mobile / 36px desktop */
  --fs-h1: clamp(2rem, 1.35rem + 2.8vw, 3.75rem);
  --lh-body: 1.6;
  --lh-tight: 1.1;

  /* Spacing scale (rem) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(4rem, 3.125rem + 3.6vw, 6rem);          /* ref: 64px mobile / 96px desktop */
  --head-gap: 0.75rem;      /* heading -> intro paragraph */
  --head-to-grid: 2.5rem;   /* section intro -> grid/content */
  --grid-gap: 1.5rem;       /* ref card gap 24px */
  --card-pad: 1.25rem;      /* ref card padding 20px */

  /* Layout */
  --container: 1216px;      /* ref content width (gutter 112px at 1440) */
  --container-narrow: 760px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --header-h: 72px;

  /* Shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;

  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--plantation);
  --ease: cubic-bezier(.2,.7,.2,1);
}


/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--oil-2); color: var(--ink); }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--plantation); color: var(--white);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md); font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

.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 -------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper); }
.section--dark { background: var(--plantation); color: #e9efe9; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--tight { padding-block: calc(var(--section-y) * .6); }

.section-head { max-width: 46rem; margin-bottom: var(--head-to-grid); }
.section-head p { color: var(--muted); font-size: var(--fs-lead); margin: var(--head-gap) 0 0; }
.section--dark .section-head p { color: #c9d6cc; }
.section-head--split { max-width: none; display: grid; gap: var(--s-5); align-items: end; }
@media (min-width: 1024px) { .section-head--split { grid-template-columns: 1fr auto; } .section-head--split > div { max-width: 46rem; } }

.grid { display: grid; gap: var(--grid-gap); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 768px) { .split { gap: var(--s-7); } }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .split--wide-left { grid-template-columns: 1.4fr 1fr; }
}

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

/* 4. Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; color: var(--plantation); font-weight: 700; line-height: var(--lh-tight); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-stretch: 114%; letter-spacing: -0.015em; font-weight: 750; }
h2 { font-size: var(--fs-h2); font-stretch: 110%; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-stretch: 102%; line-height: 1.25; font-weight: 650; }
h4 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 650; }
p { margin: 0 0 var(--s-4); max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.55; }
small, .small { font-size: var(--fs-sm); }
strong { font-weight: 650; }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
li + li { margin-top: var(--s-2); }

.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 1.75rem; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem;
  border-left: 2.5px solid var(--amber-strong); border-bottom: 2.5px solid var(--amber-strong);
  transform: rotate(-45deg) translateY(-2px);
}

/* 5. Buttons + links ----------------------------------------------------- */
a { color: var(--plantation); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plantation-2); text-decoration-thickness: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0.75rem 1.4rem;
  border: 2px solid transparent; border-radius: var(--r-md);
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-strong); border-color: var(--amber-strong); color: var(--ink); }
.btn--secondary { background: transparent; color: var(--plantation); border-color: var(--plantation); }
.btn--secondary:hover { background: var(--plantation); color: var(--white); }
.btn--dark { background: var(--plantation); color: var(--white); border-color: var(--plantation); }
.btn--dark:hover { background: var(--plantation-2); border-color: var(--plantation-2); color: var(--white); }
.btn--light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: var(--white); color: var(--plantation); border-color: var(--white); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.section--dark :focus-visible, .site-footer :focus-visible, .topbar :focus-visible { box-shadow: 0 0 0 3px var(--plantation), 0 0 0 6px var(--amber); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 479px) { .btn-row > .btn { flex: 1 1 100%; } }

.text-link { font-weight: 650; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-color: var(--plantation); }

/* 6. Header + nav -------------------------------------------------------- */
.topbar { background: var(--plantation); color: #dfe8e1; font-size: .875rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: var(--s-5); min-height: 38px; align-items: center; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; padding-block: .35rem; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; }
.topbar__addr { margin-right: auto; display: none; }
@media (max-width: 767px) { .topbar { display: none; } }
@media (min-width: 1180px) { .topbar__addr { display: inline-flex; align-items: center; gap: .4rem; } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(10px); } }
.site-header .container { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; margin-right: auto; line-height: 0; }
.brand__logo { height: 56px; width: auto; }
@media (min-width: 1180px) { :root { --header-h: 84px; } .site-header .brand__logo { height: 66px; } }
@media (max-width: 479px) { .brand__logo { height: 46px; } }
@media (max-width: 359px) { .brand__logo { height: 40px; } }
.footer__brand .brand__logo { height: 72px; }

.nav { display: none; }
.header-cta { display: none; }
@media (min-width: 1180px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
}
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav__list > li { margin: 0; position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: .975rem; border-radius: var(--r-sm);
}
.nav__link:hover { color: var(--plantation); background: var(--plantation-3); }
.nav__link[aria-current="page"] { color: var(--plantation); box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem;
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; font-weight: 600;
}
.menu-toggle svg { width: 20px; height: 20px; }
@media (min-width: 1180px) { .menu-toggle { display: none; } }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; display: flex; justify-content: flex-end;
  background: rgba(24,33,28,.45); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu__panel {
  width: min(420px, 100%); height: 100%; overflow-y: auto; background: var(--white);
  padding: var(--s-4) var(--gutter) var(--s-7); transform: translateX(16px); transition: transform .25s var(--ease);
  display: flex; flex-direction: column; gap: var(--s-5);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.mobile-menu__close { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--white); cursor: pointer; font-weight: 600; }
.mobile-menu__close svg { width: 18px; height: 18px; }
.mobile-nav { list-style: none; margin: 0; padding: 0; }
.mobile-nav > li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav a { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.mobile-nav a[aria-current="page"] { color: var(--plantation); box-shadow: inset 4px 0 0 var(--amber); padding-left: .75rem; }
.mobile-menu__contact { display: grid; gap: var(--s-3); }
.mobile-menu__contact a.contact-line { display: flex; gap: .6rem; align-items: center; color: var(--ink); text-decoration: none; min-height: 44px; }
.mobile-menu__contact svg { width: 18px; height: 18px; color: var(--plantation); flex: none; }
body.menu-open { overflow: hidden; }

/* 7. Breadcrumbs --------------------------------------------------------- */
.breadcrumbs { font-size: var(--fs-sm); color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--plantation); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 550; }

/* 8. Heroes -------------------------------------------------------------- */
/* Homepage hero: copy left, sample-vial rack right */
.hero { position: relative; overflow: hidden; background: var(--paper); padding-block: clamp(2.5rem, 1.5rem + 5vw, 6.5rem) clamp(3rem, 2rem + 5vw, 7rem); }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); } }
.hero h1 { max-width: 15ch; }
.hero__lead { font-size: var(--fs-lead); color: var(--muted); margin: var(--s-5) 0 var(--s-6); max-width: 36rem; }
.hero__points { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.hero__points li { margin: 0; display: flex; gap: .6rem; align-items: flex-start; }
.hero__points svg { width: 18px; height: 18px; color: var(--plantation); flex: none; margin-top: .15rem; }
@media (min-width: 640px) { .hero__points { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s-3) var(--s-6); } }

@media (prefers-reduced-motion: no-preference) {
    @keyframes fill-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* Inner page hero */
.page-hero { background: var(--paper); padding-block: var(--s-6) clamp(2.5rem, 1.8rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-hero .breadcrumbs { margin-bottom: var(--s-6); }
.page-hero h1 { max-width: 20ch; }
.page-hero__lead { font-size: var(--fs-lead); color: var(--muted); margin: var(--s-5) 0 0; max-width: 44rem; }
.page-hero .btn-row { margin-top: var(--s-6); }
.page-hero--product .page-hero__grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .page-hero--product .page-hero__grid { grid-template-columns: 1.3fr 1fr; } }
.page-hero__art { max-width: 380px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); justify-self: center; box-shadow: 0 18px 40px -24px rgba(30,58,43,.45); }

/* 9. Cards --------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--card-pad); }
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--muted); }
.card__foot { margin-top: auto; padding-top: var(--s-5); }

/* Product card: oil-colour band encodes the product */
.product-card { padding: 0; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.product-card:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px -28px rgba(30,58,43,.5); }
.product-card__band { height: 4px; background: linear-gradient(90deg, var(--oil), color-mix(in srgb, var(--oil) 70%, #000)); }
.product-card__media { background: var(--paper); aspect-ratio: 4 / 3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .product-card:hover .product-card__media img { transform: scale(1.03); } }
.product-card__body { padding: var(--card-pad); display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 a { text-decoration: none; color: inherit; }
.product-card__body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole card clickable */
.product-card__body h3 a:hover { text-decoration: underline; }
.product-card .btn-row { position: relative; z-index: 1; }
.product-card__body h3 a:focus-visible { box-shadow: none; outline: none; }
.product-card:focus-within:has(h3 a:focus-visible) { box-shadow: var(--focus); }

/* Feature item: icon + text, no card chrome */
.feature { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start; }
.feature__icon { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--plantation-3); color: var(--plantation); display: grid; place-items: center; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.feature p { color: var(--muted); margin: 0; }
.section--dark .feature__icon { background: rgba(255,255,255,.08); color: var(--amber); }
.section--dark .feature p { color: #c9d6cc; }

/* Segment card (industries) with ruled top */
.segment { border-top: 3px solid var(--plantation); padding-top: var(--s-5); }
.segment h3 { margin-bottom: var(--s-3); }
.segment p { color: var(--muted); }
.segment__meta { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-4); }
.segment__meta strong { color: var(--ink); }

/* Fact list (company info, export snapshot) */
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.facts > div { display: grid; gap: .2rem var(--s-5); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
@media (min-width: 480px) { .facts > div { grid-template-columns: minmax(7.5rem, 34%) 1fr; } }
.facts dt { font-weight: 650; color: var(--plantation); }
.facts dd { margin: 0; color: var(--ink); }

/* 10. Steps (real sequences only) --------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); } }
.steps li { counter-increment: step; margin: 0; position: relative; padding-top: var(--s-7); }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750; background: var(--amber); color: var(--ink);
}
@media (min-width: 1180px) {
  .steps li::after { content: ""; position: absolute; top: 1.2rem; left: 3.2rem; right: -1rem; height: 2px; background: var(--line-strong); }
  .steps li:last-child::after { display: none; }
}
.steps h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); }
.steps p { color: var(--muted); margin: 0; }
.section--dark .steps p { color: #c9d6cc; }
.section--dark .steps li::after { background: rgba(255,255,255,.2); }

/* 11. CTA band ----------------------------------------------------------- */
.cta-band { background: var(--plantation); color: #e2ebe4; border-radius: var(--r-lg); padding: clamp(2rem, 1.2rem + 3.5vw, 4rem); display: grid; gap: var(--s-6); position: relative; overflow: hidden; }
.cta-band::after { /* oil-shade strip on the right edge */
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px;
  background: linear-gradient(var(--oil-1), var(--oil-2), var(--oil-3), var(--oil-4), var(--oil-5));
}
@media (min-width: 1024px) { .cta-band { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #c9d6cc; margin-top: var(--s-4); }
.cta-band__checklist { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cta-band__checklist li { margin: 0; font-size: var(--fs-sm); padding: .3rem .75rem; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.25); color: #e2ebe4; }
.cta-band__actions { display: grid; gap: var(--s-3); }
@media (min-width: 480px) and (max-width: 1023px) { .cta-band__actions { grid-template-columns: 1fr 1fr; } }
.cta-band__phone { font-size: var(--fs-sm); color: #c9d6cc; }
.cta-band__phone a { color: var(--white); font-weight: 650; }

/* 12. Note ---------------------------------------------------------------- */
.note { border-left: 4px solid var(--line-strong); background: var(--paper); padding: var(--s-4) var(--s-5); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--muted); font-size: var(--fs-sm); }
.note p { color: var(--muted); }

/* 13. FAQ (native details/summary) --------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5) 0; font-weight: 650; font-size: var(--fs-h4); color: var(--plantation); min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background:
    linear-gradient(var(--plantation), var(--plantation)) center / 12px 2px no-repeat,
    linear-gradient(var(--plantation), var(--plantation)) center / 2px 12px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--plantation-2); }
.faq__answer { padding: 0 0 var(--s-5); color: var(--muted); max-width: 68ch; }
.faq__answer p { color: var(--muted); }

/* 14. Tables / spec ------------------------------------------------------ */
.table-wrap:focus-visible { box-shadow: var(--focus); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper); color: var(--plantation); font-weight: 650; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 650; color: var(--plantation); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; padding: .45rem .85rem; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); font-size: var(--fs-sm); }

/* 15. Forms -------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.form legend { font-weight: 700; font-stretch: 108%; color: var(--plantation); font-size: var(--fs-h4); padding: 0; margin-bottom: var(--s-3); }
.form__row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } .form__row--3 { grid-template-columns: 2fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field .label { font-weight: 600; font-size: var(--fs-sm); }
.field .req { color: var(--error); }
.field .hint { font-size: .85rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; background: var(--white);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md); font-size: 1rem; /* 16px+: no iOS zoom */
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--plantation) 50%), linear-gradient(135deg, var(--plantation) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--plantation); border-radius: var(--r-md); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: .875rem; font-weight: 600; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); }
.check input, .radio-row input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--plantation); flex: none; }
.radio-row label { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; font-weight: 500; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--r-md); padding: var(--s-4) var(--s-5); font-weight: 550; }
.form-status--success { background: #e6f2ea; color: var(--success); border: 1.5px solid #9ccbad; }
.form-status--error { background: #fbebe8; color: var(--error); border: 1.5px solid #e4aba2; }
.form-note { font-size: .875rem; color: var(--muted); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Contact side panel */
.contact-panel { background: var(--paper); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .contact-panel { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.contact-item { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); align-items: start; }
.contact-item__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--plantation); }
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item h3 { font-size: 1rem; margin-bottom: .15rem; }
.contact-item p, .contact-item address { font-style: normal; margin: 0; color: var(--muted); }
.contact-item a { font-weight: 650; word-break: break-word; }

/* 16. Footer ------------------------------------------------------------- */
.site-footer { background: #15291f; color: #c3d0c6; padding-top: var(--s-8); font-size: var(--fs-sm); }
.site-footer a:not(.btn) { color: #e6eee8; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--s-7); } }
.footer__brand .brand { margin-bottom: var(--s-4); }
.footer__brand p { color: #b4c3b8; max-width: 34ch; }
.site-footer h2 { font-size: 1rem; font-stretch: 105%; color: var(--white); margin-bottom: var(--s-4); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin: 0; }
.footer__list a { display: inline-block; padding-block: .35rem; }
.footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.footer__contact li { margin: 0; display: grid; grid-template-columns: 18px 1fr; gap: .6rem; }
.footer__contact svg { width: 16px; height: 16px; margin-top: .2rem; color: var(--amber); }
.footer__contact address { font-style: normal; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; color: #a9b9ad; }
.footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-5); margin: 0; padding: 0; }
.footer__bottom li { margin: 0; }

/* 17. Mobile action bar -------------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(24,33,28,.4);
}
.mobile-bar .btn { min-height: 46px; padding-inline: .5rem; font-size: .95rem; }
body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* 18. Prose, utilities, motion ------------------------------------------- */
.prose { font-size: 1.0625rem; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { margin: 0; }
.prose .table-wrap { margin-block: var(--s-5); }
.answer-box { border-left: 4px solid var(--amber); background: var(--paper); padding: var(--s-4) var(--s-5); border-radius: 0 var(--r-md) var(--r-md) 0; }
.answer-box p { margin: 0; }
.article-meta { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-4); }



.error-page { text-align: left; padding-block: var(--s-9); }
.error-page__code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 800; font-stretch: 125%; color: #a8650f; line-height: 1; margin-bottom: var(--s-4); }

.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0 !important; } .mb-5 { margin-bottom: var(--s-5); }
.text-muted { color: var(--muted); }

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

@media print {
  .topbar, .site-header, .mobile-bar, .mobile-menu, .cta-band, .site-footer { display: none !important; }
  body { padding: 0; }
  a { color: inherit; }
}

/* "Need a different oil?" card that completes the product grid */
.card--ask { background: var(--plantation); border-color: var(--plantation); color: #e2ebe4; justify-content: center; }
.card--ask h3 { color: var(--white); }
.card--ask p { color: #c9d6cc; }
.card--ask :focus-visible { box-shadow: 0 0 0 3px var(--plantation), 0 0 0 6px var(--amber); }
@media (max-width: 359px) { .mobile-bar svg { display: none; } .mobile-bar .btn { font-size: .9rem; } }
/* Touch targets: standalone contact links in panels get >=44px tap height */
.contact-item a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-item p + a, .contact-item h3 + a { margin-top: -.5rem; }

/* Full-width "ask about another oil" card spanning the product grid */
.card--wide { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .card--wide { flex-direction: row; align-items: center; gap: var(--s-6); padding: var(--s-6); }
  .card--wide h3 { margin: 0; flex: 0 0 auto; }
  .card--wide p { margin: 0; flex: 1; }
  .card--wide .card__foot { margin: 0; padding: 0; flex: 0 0 auto; }
}

/* Home "About" intro: stats strip + text/cards + 2x2 image grid */
.about-intro { padding-top: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
.stat-strip { list-style: none; margin: 0; padding: 0 0 clamp(1.75rem, 1.2rem + 2vw, 3rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); border-bottom: 1px solid var(--line); text-align: center; }
@media (min-width: 768px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip li { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.stat__value { font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.4rem); font-weight: 800; font-stretch: 112%; line-height: 1.05; color: #a8650f; }
.stat__label { font-size: var(--fs-sm); font-weight: 550; color: var(--ink); }
.about-intro__grid { display: grid; gap: var(--s-7); align-items: center; margin-top: calc(var(--section-y) * .75); }
@media (min-width: 1024px) { .about-intro__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); } }
.kicker { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; color: #a8650f; margin-bottom: var(--s-3); }
.check-row { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); }
.check-row li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); font-weight: 550; }
.check-row svg { width: 18px; height: 18px; color: var(--amber-strong); flex: none; }
.mini-cards { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 640px) { .mini-cards { grid-template-columns: repeat(3, 1fr); } }
.mini-card { background: #fffaf0; border: 1px solid #f0e3c4; border-radius: var(--r-lg); padding: var(--s-4); }
.mini-card__icon { width: 36px; height: 36px; border-radius: var(--r-md); background: #fbefcf; color: #a8650f; display: grid; place-items: center; margin-bottom: var(--s-3); }
.mini-card__icon svg { width: 20px; height: 20px; }
.mini-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.mini-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.5rem, .3rem + 1vw, .9rem); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }

/* Stock photography: figures in guides/articles */
.figure { margin: 0 0 var(--s-6); }
.figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); background: var(--paper); }
.prose .figure { margin-block: var(--s-6); }
.prose .figure:first-child { margin-top: 0; }
.photo-grid img { height: auto; background: var(--paper); }

/* Product filter (Products page). Hidden without JS so no inert controls appear;
   the 'js' class is set in <head> before first paint, so the bar never shifts the layout. */
.product-filter { display: none; }
.js .product-filter { display: flex; flex-wrap: wrap; gap: var(--s-2); padding-block: 6px; }
.product-filter__btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--white);
  color: var(--ink); font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s; touch-action: manipulation;
}
.product-filter__btn:hover { border-color: var(--plantation); color: var(--plantation); }
.product-filter__btn[aria-pressed="true"] { background: var(--plantation); border-color: var(--plantation); color: var(--white); }
.product-filter__btn:focus-visible { border-radius: var(--r-pill); }
.product-filter__count {
  display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem;
  border-radius: var(--r-pill); background: var(--plantation-3); color: var(--plantation); font-size: .8rem; font-weight: 700;
}
.product-filter__btn[aria-pressed="true"] .product-filter__count { background: var(--amber); color: var(--ink); }
@media (max-width: 767px) {
  /* one swipeable row on phones; scrolls inside its own box, never the page */
  .js .product-filter {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .js .product-filter::-webkit-scrollbar { display: none; }
  .product-filter__btn { scroll-snap-align: start; flex: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .product-card.is-entering { animation: card-in .28s var(--ease) both; }
  @keyframes card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* 8-item main nav: keep labels on one line; tighten only in the 1180-1279px band */
.nav__link, .header-cta { white-space: nowrap; }
@media (min-width: 1180px) and (max-width: 1279px) {
  .nav__link { padding: 0 .55rem; font-size: .95rem; }
  .site-header .brand__logo { height: 58px; }
  .site-header .container { gap: var(--s-3); }
}

/* ==========================================================================
   Blog & Buyer Guides hub (blog.html)
   ========================================================================== */
.blog-hero { background: var(--paper); padding-block: var(--s-6) clamp(3rem, 2rem + 4vw, 5.5rem); border-bottom: 1px solid var(--line); }
.blog-hero h1 { max-width: 16ch; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.25rem); }
.blog-hero__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 60ch; margin: var(--s-5) 0 0; }
.blog-hero__audience { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.blog-hero__audience::before { content: "Written for"; font-size: var(--fs-sm); font-weight: 650; color: var(--plantation); margin-right: .35rem; }
.blog-hero__audience li { margin: 0; font-size: .875rem; padding: .3rem .8rem; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); }

.blog-section-title { font-size: var(--fs-h3); font-stretch: 106%; margin-bottom: var(--s-5); }

/* Topic tiles: editorial category navigation that filters the guides */
.topic-tiles { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .topic-tiles { grid-template-columns: repeat(3, 1fr); } }
.topic-tile {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; column-gap: var(--s-4); row-gap: .35rem;
  text-align: left; padding: var(--s-5); cursor: pointer; touch-action: manipulation;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); color: var(--ink);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.topic-tile:hover { border-color: var(--plantation); box-shadow: 0 14px 30px -24px rgba(30,58,43,.5); }
.topic-tile__icon { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--plantation-3); color: var(--plantation); }
.topic-tile__icon svg { width: 22px; height: 22px; }
.topic-tile__name { font-weight: 700; font-stretch: 106%; font-size: 1.0625rem; color: var(--plantation); display: flex; align-items: center; gap: .5rem; }
.topic-tile__count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: var(--r-pill); background: var(--plantation-3); font-size: .8rem; font-weight: 700; }
.topic-tile__desc { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.topic-tile[aria-pressed="true"] { background: var(--plantation); border-color: var(--plantation); }
.topic-tile[aria-pressed="true"] .topic-tile__name { color: var(--white); }
.topic-tile[aria-pressed="true"] .topic-tile__desc { color: #dfe8e1; }
.topic-tile[aria-pressed="true"] .topic-tile__icon { background: rgba(255,255,255,.1); color: var(--amber); }
.topic-tile[aria-pressed="true"] .topic-tile__count { background: var(--amber); color: var(--ink); }
.topic-tile:focus-visible { border-radius: var(--r-lg); }
@media (max-width: 767px) {
  /* swipeable row of compact tiles; scrolls inside its own box, never the page */
  .topic-tiles { grid-auto-flow: column; grid-auto-columns: minmax(240px, 78%); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter); scroll-padding-inline: var(--gutter); }
  .topic-tiles::-webkit-scrollbar { display: none; }
  .topic-tile { scroll-snap-align: start; padding: var(--s-4); }
  .topic-tile__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Featured guide: wide image + text panel */
.featured-guide { margin-top: var(--s-7); display: grid; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 900px) { .featured-guide { grid-template-columns: 1.3fr 1fr; align-items: stretch; } }
.featured-guide__media { display: block; overflow: hidden; background: var(--line); }
.featured-guide__media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.featured-guide__body { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.featured-guide__title { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); margin: var(--s-3) 0 var(--s-4); }
.featured-guide__title a { color: inherit; text-decoration: none; }
.featured-guide__title a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
.featured-guide__excerpt { color: var(--muted); font-size: 1.0625rem; }
.featured-guide__flag { display: inline-block; margin-right: .6rem; padding: .15rem .55rem; border-radius: var(--r-sm); background: var(--amber); color: var(--ink); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.featured-guide .btn { align-self: flex-start; }
.featured-guide:hover .featured-guide__media img { transform: scale(1.03); }

/* Guide cards: borderless editorial cards, image-led */
.guide-grid { display: grid; gap: var(--s-7) var(--s-6); }
@media (min-width: 768px) { .guide-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-6); } }
.guide-card { display: flex; flex-direction: column; }
.guide-card__media { display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.guide-card__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.guide-card:hover .guide-card__media img { transform: scale(1.04); }
.guide-card__body { display: flex; flex-direction: column; flex: 1; padding-top: var(--s-5); }
.guide-card__cat { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--s-3); font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: #a8650f; }
.guide-card__kind { font-weight: 600; letter-spacing: 0; color: var(--muted); padding: .1rem .5rem; border: 1px solid var(--line); border-radius: var(--r-pill); }
.guide-card__title { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25; margin: 0 0 var(--s-3); }
.guide-card__title a { color: var(--plantation); text-decoration: none; }
.guide-card__title a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.guide-card__excerpt { color: var(--muted); margin: 0 0 var(--s-5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card__meta { margin: auto 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-size: .875rem; color: var(--muted); max-width: none; }
.featured-guide .guide-card__meta { border-top: 0; padding-top: 0; margin: var(--s-2) 0 0; }
.guide-card__cta { margin-left: auto; font-weight: 700; color: var(--plantation); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; }
.guide-card__arrow { transition: transform .2s var(--ease); }
.guide-card:hover .guide-card__arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .guide-card__media img, .featured-guide__media img, .guide-card__arrow { transition: none; } }
@media (prefers-reduced-motion: no-preference) { .guide-card.is-entering { animation: card-in .28s var(--ease) both; } }
/* AA contrast on the pale blog backgrounds */
.blog-hero .kicker, .guide-card__cat { color: var(--amber-ink); }
.blog-related { max-width: 62ch; font-size: 1.0625rem; color: var(--muted); border-left: 4px solid var(--amber); padding-left: var(--s-5); margin: 0; }

/* Production process cards (home) */
.process-card { padding-top: var(--s-5); }
.process-card__num { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 750; margin-bottom: var(--s-4); }
/* Floating WhatsApp button (desktop; phones use the bottom action bar) */
.wa-float { display: none; }
@media (min-width: 768px) {
  .wa-float { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 80; display: inline-flex; align-items: center; gap: .5rem;
    min-height: 48px; padding: .7rem 1.1rem; border-radius: var(--r-pill); background: var(--plantation); color: var(--white);
    font-weight: 650; font-size: .95rem; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(24,33,28,.55); transition: background-color .15s, transform .15s; }
  .wa-float:hover { background: var(--plantation-2); color: var(--white); transform: translateY(-2px); }
  .wa-float svg { width: 20px; height: 20px; color: var(--amber); }
  .wa-float:focus-visible { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--plantation); }
}
@media print { .wa-float { display: none !important; } }
@media (min-width: 768px) { .footer__bottom { padding-bottom: calc(var(--s-5) + 64px); } }

/* Homepage hero with AI-generated image (LCP).
   Desktop: full-bleed photo with green gradient behind the text. Phones: photo banner above the text. */
.hero--image { position: relative; isolation: isolate; padding: 0; background: var(--plantation); color: #e9efe9; overflow: hidden; }
.hero--image .hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 72% 60%; }
@media (min-width: 640px) and (max-width: 1023px) { .hero--image .hero__media img { aspect-ratio: 16 / 8; } }
.hero__content { padding-block: var(--s-6) var(--s-7); }
.hero--image h1 { color: var(--white); max-width: 16ch; }
.hero__kicker { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .03em; color: var(--amber); margin-bottom: var(--s-3); }
.hero--image .hero__lead { color: #d8e3da; }
.hero--image .hero__points { color: #d8e3da; }
.hero--image .hero__points svg { color: var(--amber); }
@media (min-width: 1024px) {
  .hero--image { min-height: clamp(560px, calc(88vh - var(--header-h)), 780px); display: flex; align-items: center; }
  .hero--image .hero__media { position: absolute; inset: 0; z-index: -2; }
  .hero--image .hero__media img { height: 100%; aspect-ratio: auto; object-position: 70% center; }
  .hero--image::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(18,36,26,.92) 0%, rgba(18,36,26,.80) 34%, rgba(18,36,26,.35) 62%, rgba(18,36,26,0) 82%); }
  .hero__content { padding-block: var(--s-8); }
  .hero__content > * { max-width: 600px; }
}
@media (min-width: 640px) { .hero--image .hero__points { grid-template-columns: repeat(3, auto); } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__content > * { max-width: 500px; }
  .hero--image .hero__media img { object-position: 82% center; }
}

/* Product card buyer metadata + image badges (reference-style information design) */
.product-card__media { position: relative; }
.product-card__badges { position: absolute; top: var(--s-3); left: var(--s-3); display: flex; flex-wrap: wrap; gap: .35rem; z-index: 1; pointer-events: none; }
.product-badge { font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--r-pill); background: rgba(255,255,255,.94); color: var(--plantation); box-shadow: 0 2px 8px -2px rgba(24,33,28,.25); }
.product-badge--guide { background: var(--amber); color: var(--ink); }

/* Home Export & Logistics: image left, content right */
.export-feature { display: grid; gap: var(--s-6); align-items: stretch; }
.export-feature__media { border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.export-feature__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.export-feature__grid { margin-top: var(--s-6); gap: var(--s-5); }
@media (min-width: 1024px) {
  .export-feature { grid-template-columns: 0.95fr 1.05fr; gap: var(--s-8); }
  .export-feature__media img { height: 100%; aspect-ratio: auto; min-height: 480px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .export-feature { align-items: center; }
  .export-feature__media img { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
}

/* Product card information system (reference-style hierarchy, data-driven from product_data.json) */
.product-card__body { gap: 0; }
.product-card__title { font-size: 1.125rem; line-height: 1.3; margin: 0 0 .5rem; }
.product-card__desc { color: var(--muted); font-size: .9375rem; line-height: 1.6; margin: 0 0 .875rem; }
.spec-chips, .pack-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.spec-chips li, .pack-chips li { margin: 0; }
.spec-chip { font-size: .6875rem; font-weight: 600; line-height: 1.45; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink); background: var(--white); }
.pack-chips { margin: 0 0 .75rem; }
.pack-chip { font-size: .75rem; font-weight: 700; line-height: 1.45; padding: 3px 9px; border-radius: 4px; background: var(--plantation-3); color: var(--plantation); }
.product-card__supply { display: flex; align-items: center; gap: .4rem; margin: 0 0 1rem; font-size: .82rem; font-weight: 600; color: var(--muted); max-width: none; }
.product-card__supply svg { width: 16px; height: 16px; flex: none; color: var(--amber-strong); }
.product-card .card__foot { margin-top: auto; padding-top: 0; }
.catalogue-note { font-size: .85rem; color: var(--muted); margin: var(--s-3) 0 0; max-width: none; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   Calibration layer (measured against the reference at 390px and 1440px)
   ========================================================================== */
/* Product card buttons: side by side at every width, 40px tall (ref) */
.product-card .card__foot.btn-row { flex-wrap: nowrap; gap: .5rem; }
.product-card .card__foot.btn-row > .btn { flex: 1 1 0; min-width: 0; min-height: 40px; padding: .5rem .75rem; font-size: .875rem; }
/* Filter tabs: ref 38px / 14px on desktop; keep 44px touch targets on touch screens */
.product-filter__btn { font-size: .875rem; }
@media (min-width: 1024px) and (pointer: fine) { .product-filter__btn { min-height: 38px; padding: .45rem 1rem; } }
.js .product-filter { gap: .5rem; }
/* Section heading rhythm */
h2 + p.lead, h2 + .lead { margin-top: var(--head-gap); }
.kicker + h2, .kicker + h1 { margin-top: 0; }
@media (min-width: 1024px) and (pointer: fine) {
  .product-filter__btn { padding: .375rem .95rem; }
  .product-filter__count { min-width: 1.35rem; height: 1.35rem; font-size: .72rem; }
}

/* Blog calibration (ref: 992px column, 48px H1, bordered 24px-padded cards, 20px titles, 24px gaps, 64px rhythm) */
.blog-hero { padding-block: var(--s-6) clamp(2.5rem, 2rem + 2vw, 4rem); }
.blog-hero h1 { font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3rem); max-width: 18ch; }
.blog-hero__lead { margin-top: var(--head-gap); }
.blog-hero .container, .blog-topics .container, .blog-list .container, .blog-list + .section .container { max-width: calc(992px + var(--gutter) * 2); }
.blog-topics, .blog-list { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.blog-topics { padding-bottom: 0; }
.blog-section-title { font-size: 1.375rem; margin-bottom: 1.25rem; }
.topic-tile { padding: 1.25rem; border-radius: 12px; }
.featured-guide { margin-top: 2rem; border-radius: 12px; border: 1px solid var(--line); }
.featured-guide__body { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.featured-guide__title { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin: .5rem 0 .75rem; }
.guide-grid { gap: 1.5rem; }
@media (min-width: 768px) { .guide-grid { gap: 1.5rem; } }
.guide-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.guide-card:hover { border-color: var(--line-strong); box-shadow: 0 16px 32px -26px rgba(30,58,43,.45); }
.guide-card__media { border-radius: 0; }
.guide-card__body { padding: 1.5rem; }
.guide-card__title { font-size: 1.25rem; line-height: 1.3; }
.guide-card__excerpt { margin-bottom: 1rem; font-size: .9375rem; }
.mt-8 { margin-top: 2.5rem; }

/* Spec chips row: last metadata row before the CTA area */
.spec-chips { margin: 0 0 1.125rem; }
.spec-chips--grade { margin-top: -.625rem; }

/* Pack-size chips + supply line: measured from the reference product cards
   (chip 11px/500, 2px 8px, radius 4, 1px border, gap 6px; supply 12px/600, 16px line, 12px below chips, 18px above CTA) */
.product-card__desc { margin-bottom: 1rem; }
.pack-chips { gap: 6px; margin: 0; }
.pack-chip { font-size: .6875rem; font-weight: 500; line-height: 1.5; padding: 2px 8px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.product-card__supply { display: block; margin: 12px 0 18px; font-size: .75rem; font-weight: 600; line-height: 16px; color: var(--plantation); }
@media (max-width: 359px) {
  .product-card .card__foot.btn-row { flex-wrap: wrap; }
  .product-card .card__foot.btn-row > .btn { flex: 1 1 100%; }
}
