/* =====================================================================
   SAMPOKO Consulting & Projects — main stylesheet
   Plain CSS, mobile-first. No build step.

   Contents
   01  Brand tokens (colours, fonts, spacing)
   02  Base / reset
   03  Layout helpers & typography
   04  Buttons, chips, links
   05  Preloader (approved preloader 1 — logo assemble)
   06  Top bar & navigation
   07  Hero & page heroes
   08  Home sections (stats, about, products, why, CTA, contact)
   09  Product cards & product finder
   10  Category pages (sub-nav, product families, spec tables)
   11  Forms
   12  About, Quality, Catalogue, Contact, Privacy, 404
   13  Footer
   14  Floating WhatsApp, cookie banner, toast
   15  Motion (reveal animations) & reduced motion
   ===================================================================== */

/* ---------- 01  Fonts & brand tokens ---------- */
/* Oswald + Montserrat (Google Fonts, SIL Open Font License) are self-hosted in assets/fonts
   so pages never wait on a third-party server. Both are variable fonts: one file covers all weights.
   The second src is only used when the local file cannot load — browsers block local font files
   when a page is opened straight from disk (file://), so previews still show the right fonts. */
@font-face {
  font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("../assets/fonts/oswald-latin.woff2") format("woff2"),
       url("https://fonts.gstatic.com/s/oswald/v57/TK3IWkUHHAIjg75cFRf3bXL8LICs1_Fv40pKlN4NNSeSASz7FmlWHYg.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2"),
       url("https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #245678;          /* SAMPOKO Navy — headings, primary buttons */
  --navy-dark: #1d4663;
  --deep: #0F2A40;          /* Deep Navy — top bar, hero, dark sections, footer */
  --deep-dark: #0a1e2e;
  --gold: #B39441;          /* SAMPOKO Gold — accents, rules, CTA */
  --gold-hover: #AA8C3D;
  --gold-ink: #85692A;      /* Gold for SMALL text on white/light grey (meets WCAG AA 4.5:1) */
  --gold-light: #CDB067;    /* Gold for large numbers on SAMPOKO Navy (meets AA large-text) */
  /* Text colour on gold surfaces. Deep Navy passes WCAG AA (5.1:1).
     Change to #FFFFFF to match the Figma exactly (white on gold is 2.9:1 and fails AA). */
  --on-gold: var(--deep);
  --light: #F3F5F7;         /* Light Grey — alternate sections, form panel */
  --ink: #1C2B36;           /* Body text */
  --muted: #5B6B77;         /* Secondary text */
  --line: #DCE3E8;          /* Borders */
  --field-border: #7D8C99;  /* Form field borders (3:1 non-text contrast) */
  --white: #FFFFFF;
  --row-alt: #F6EEDA;       /* Gold-tinted alternate table rows */
  --row-hover: #E7EFF5;     /* Table row under the pointer */
  --error: #B42318;
  --whatsapp: #1A9E4B;
  --whatsapp-hover: #168A41;

  /* Channel values, for transparent versions of the brand colours: rgb(var(--deep-rgb) / .5) */
  --deep-rgb: 15 42 64;
  --gold-rgb: 179 148 65;
  --white-rgb: 255 255 255;

  /* On dark backgrounds (Deep Navy, Navy): text, lines and tints */
  --text-on-dark: rgb(var(--white-rgb) / .86);
  --text-on-dark-soft: rgb(var(--white-rgb) / .78);
  --text-on-dark-muted: rgb(var(--white-rgb) / .72);
  --line-on-dark: rgb(var(--white-rgb) / .15);
  --tint-on-dark: rgb(var(--white-rgb) / .05);
  --tint-on-dark-hover: rgb(var(--white-rgb) / .08);
  --tint-on-dark-strong: rgb(var(--white-rgb) / .14);

  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Type scale (headings h1/h2 use fluid clamp() sizes in section 03) */
  --text-2xs: 12px;         /* small tags */
  --text-xs: 13px;          /* labels, hints, captions, table heads */
  --text-sm: 14px;          /* card text, tables, chips */
  --text-md: 15px;          /* buttons, nav, small body */
  --text-base: 16px;        /* body */
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 22px;         /* card headings */
  --text-3xl: 26px;         /* h3, product card titles */
  --text-4xl: 28px;
  --text-stat: 40px;        /* big numbers */

  /* Spacing scale — 8px system. Layout uses multiples of 8; the 4px half-steps
     (4, 12, 20, 28) are only for spacing inside small components. --space-N = N × 4px. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-20: 80px;
  --space-24: 96px;
  --space-28: 112px;

  --radius: 4px;            /* cards, panels */
  --radius-sm: 2px;         /* buttons, chips, form fields */

  /* Shadows: soft and navy-tinted, never above 14% */
  --shadow-sm: 0 4px 14px rgb(var(--deep-rgb) / .06);
  --shadow-card: 0 8px 24px rgb(var(--deep-rgb) / .07);
  --shadow-card-hover: 0 16px 32px rgb(var(--deep-rgb) / .12);
  --shadow-lg: 0 18px 40px rgb(var(--deep-rgb) / .14);

  --container: 1200px;
  --gutter: 20px;
  --section-y: 64px;
  --header-h: 72px;
  --subnav-h: 59px;         /* height of the sticky in-page menu on product pages */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .3s;               /* standard motion: hovers, menus, reveals stay within 200–400ms */
}
@media (min-width: 768px) { :root { --gutter: 32px; --section-y: 88px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --section-y: 104px; --header-h: 92px; } }

/* ---------- 02  Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}
/* Lock page scroll while the mobile menu is open. Set on <body>, not <html>: on <html> it would make <body>
   the scroll container, and the sticky header (with the close button) would jump off-screen. */
html.nav-open body { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--navy);
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--gold); }
.cta-band :focus-visible { outline-color: var(--deep); }
[hidden] { display: none !important; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -120px; z-index: 100001;
  background: var(--gold); color: var(--on-gold); padding: var(--space-3) var(--space-5);
  font-family: var(--font-head); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--on-gold); }

/* ---------- 03  Layout helpers & typography ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--light { background: var(--light); }
.section--deep { background: var(--deep); color: var(--text-on-dark-soft); }
.section--deep h2, .section--deep h3 { color: var(--white); }

.h1 {
  font-size: clamp(2.75rem, 1.35rem + 5.3vw, 5rem);
  font-weight: 700; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em;
}
.h2 { font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem); }
.h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.625rem); }
.lead { font-size: clamp(1rem, .95rem + .25vw, 1.0625rem); color: var(--muted); }
.muted { color: var(--muted); }
.mt-lg { margin-top: var(--space-8) !important; }   /* utility: must beat component margins */

/* Comfortable reading width: about 70 characters a line for running text */
.lead, .split p, .category-intro p, .family__head p, .prose p, .prose li, .timeline__step p, .why-head p,
.notes p, .notes li, .cat-card p { max-width: 35em; }
.section-head--center .lead, .error-page .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-4);
  margin: 0 0 var(--space-4);
  font-family: var(--font-head); font-weight: 500; font-size: var(--text-sm); line-height: 1.3;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--gold); flex: none; }
.on-dark .eyebrow, .section--deep .eyebrow { color: var(--gold); }

.section-head { max-width: 760px; margin-bottom: var(--space-12); }
.section-head p:last-child { margin-bottom: 0; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-foot { margin-top: var(--space-12); display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-4); }

.split { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-20); }
  .split--wide-text { grid-template-columns: .9fr 1.1fr; }
}

.bullets, .checklist { list-style: none; padding: 0; margin: 0 0 1.25em; display: grid; gap: var(--space-3); }
.bullets li, .checklist li { position: relative; padding-left: var(--space-6); }
.bullets li::before, .checklist li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--gold);
}
.checklist { margin-bottom: var(--space-8); }
.checklist li { font-weight: 600; font-size: var(--text-md); color: var(--ink); padding-left: var(--space-7); }
.checklist li::before { width: 10px; height: 10px; top: .5em; }
.on-dark .bullets li, .section--deep .bullets li { color: var(--text-on-dark-soft); }

/* ---------- 04  Buttons, chips, links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 48px; padding: var(--space-4) var(--space-7);
  font-family: var(--font-head); font-weight: 500; font-size: var(--text-md); line-height: 1.15;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }   /* lifts only where there is a real pointer, so taps don't leave cards "stuck" up */
.btn:active { transform: none; }
.btn .icon { font-size: 18px; }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); color: var(--white); }
.btn--deep { background: var(--deep); color: var(--white); }
.btn--deep:hover { background: var(--deep-dark); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--tint-on-dark-strong); color: var(--white); }
.btn--outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }
.btn--sm { min-height: 40px; padding: var(--space-3) var(--space-4); font-size: var(--text-sm); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
@media (max-width: 599px) { .btn-row--stack > .btn { width: 100%; } }

.chip {
  display: inline-block; align-self: flex-start;
  padding: var(--space-2) var(--space-3); margin-bottom: var(--space-5);
  background: var(--light); border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: 600; line-height: 1.4; color: var(--ink);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-head); font-weight: 500; font-size: var(--text-sm);
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy); text-decoration: none;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--deep); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(4px); } }

/* ---------- 05  Preloader ---------- */
/* ===== SAMPOKO PRELOADER 1 — copied from preloaders/preloader-1-logo-assemble.html =====
   Only change from the source: colours point at the brand variables (same values, so it renders identically). */
#sp-preloader{position:fixed;inset:0;z-index:99999;background:var(--deep);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:18px;transition:opacity .5s ease,visibility .5s ease}
#sp-preloader.sp-hide{opacity:0;visibility:hidden}
#sp-preloader .sp-gold{animation:spInG 1s cubic-bezier(.2,.8,.2,1) both}
#sp-preloader .sp-navy{animation:spInN 1s cubic-bezier(.2,.8,.2,1) .15s both}
@keyframes spInG{from{transform:translate(-60px,-60px);opacity:0}to{transform:none;opacity:1}}
@keyframes spInN{from{transform:translate(60px,60px);opacity:0}to{transform:none;opacity:1}}
#sp-preloader .sp-word{font-family:Oswald,sans-serif;letter-spacing:.35em;color:var(--white);font-size:28px;margin-right:-.35em;animation:spFade .6s ease .9s both}
#sp-preloader .sp-tag{font-family:Oswald,sans-serif;letter-spacing:.2em;color:var(--gold);font-size:12px;animation:spFade .6s ease 1.1s both}
@keyframes spFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
#sp-preloader .sp-track{width:200px;height:3px;background:var(--line-on-dark);overflow:hidden}
#sp-preloader .sp-bar{height:100%;width:0;background:var(--gold);transition:width .2s linear}
/* ===== end preloader CSS ===== */
/* Site additions: hide instantly on repeat views (class set in <head>) and for reduced motion */
.sp-seen #sp-preloader { display: none; }
@media (prefers-reduced-motion: reduce) { #sp-preloader { display: none; } }

/* ---------- 06  Top bar & navigation ---------- */
.topbar { background: var(--deep); color: var(--text-on-dark); font-size: var(--text-xs); line-height: 1.4; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 40px; }
.topbar__contacts { display: flex; flex-wrap: nowrap; gap: var(--space-6);   /* one line at every width: no jump while fonts load */ list-style: none; margin: 0; padding: 0; }
.topbar__contacts a { display: inline-flex; align-items: center; gap: var(--space-2); color: inherit; text-decoration: none; padding-block: var(--space-2); }
.topbar__contacts a:hover { color: var(--gold); }
.topbar__contacts .icon { color: var(--gold); font-size: 14px; }
.topbar__badge {
  margin: 0; font-family: var(--font-head); font-weight: 500; font-size: var(--text-xs);
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold); white-space: nowrap;
}
/* .hide-sm: hidden on phones. .hide-md: hidden on phones and tablets (below 1024px). */
@media (max-width: 767px) {
  .hide-sm, .topbar .topbar__badge { display: none; }   /* the badge stays visible inside the mobile menu */
  .topbar__inner { justify-content: center; }
}
@media (max-width: 1023.98px) { .hide-md { display: none; } }

.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: var(--shadow-card); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-h); }
.nav__logo { display: block; flex: none; width: 168px; }
.nav__logo img { width: 100%; height: auto; }
@media (min-width: 1024px) { .nav__logo { width: 220px; } }

.nav__toggle {
  position: relative; z-index: 1200;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: calc(var(--space-2) * -1);
  background: transparent; border: 0; color: var(--deep);
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 26px; height: 2px; background: currentColor; transition: transform .3s var(--ease), background-color .2s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -8px; }
.nav__toggle-bars::after { top: 8px; }
.nav-open .nav__toggle { color: var(--white); }
.nav-open .nav__toggle-bars { background: transparent; }
.nav-open .nav__toggle-bars::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav__toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center;
  font-family: var(--font-head); font-weight: 500; font-size: var(--text-md);
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--deep);
}
.nav__link:hover { color: var(--navy); }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: inherit; padding: 0; }
.sub-toggle .icon { transition: transform .25s var(--ease); }
.has-sub.is-open > .sub-toggle .icon { transform: rotate(180deg); }
.submenu { list-style: none; margin: 0; padding: 0; }
.submenu a { display: block; text-decoration: none; }
.submenu__all { font-weight: 600; }
.nav__cta { position: relative; }
.quote-count {
  position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 var(--space-2);
  display: inline-grid; place-items: center; border-radius: 11px;
  background: var(--gold); color: var(--on-gold); font-family: var(--font-body); font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0;
}
.nav__extra { display: none; }

/* Mobile: full-screen Deep Navy menu */
@media (max-width: 1023.98px) {
  .nav__menu {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; flex-direction: column;
    padding: calc(var(--header-h) + var(--space-14)) var(--gutter) var(--space-10);
    background: var(--deep); overflow-y: auto; overscroll-behavior: contain;
    /* visibility flips instantly on open (so focus can move in) and waits for the fade on close */
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .nav-open .nav__menu { opacity: 1; visibility: visible; transition-delay: 0s; }
  /* Keep the logo visible above the open menu, on a white panel (brand rule for dark backgrounds) */
  .nav__logo { position: relative; z-index: 1200; transition: box-shadow .3s ease; }
  .nav-open .nav__logo { background: var(--white); box-shadow: 0 0 0 var(--space-2) var(--white); }
  .nav__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line-on-dark); }
  .nav__link { flex: 1; padding: var(--space-4) 0; font-size: var(--text-3xl); color: var(--white); }
  .nav__link:hover, .nav__link[aria-current="page"] { color: var(--gold); }
  .sub-toggle { width: 48px; height: 48px; color: var(--white); font-size: 24px; }
  .submenu { display: none; width: 100%; padding: 0 0 var(--space-4) var(--space-1); }
  .has-sub.is-open .submenu { display: block; }
  .submenu a { padding: var(--space-2) 0; color: var(--text-on-dark-soft); font-size: var(--text-base); }
  .submenu a:hover, .submenu a[aria-current="page"] { color: var(--gold); }
  .nav__cta { margin-top: var(--space-8); align-self: stretch; }
  .nav__extra { display: grid; gap: var(--space-3); margin-top: var(--space-8); font-size: var(--text-md); }
  .nav__extra a { color: var(--text-on-dark); text-decoration: none; display: inline-flex; gap: var(--space-3); align-items: center; }
  .nav__extra .icon { color: var(--gold); }
  .nav__extra .topbar__badge { margin-top: var(--space-3); }
  .nav__menu :focus-visible, .nav-open .nav__toggle:focus-visible { outline-color: var(--gold); }
}
/* Desktop navigation */
@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .nav__menu { display: flex; align-items: center; gap: var(--space-10); }
  .nav__list { display: flex; align-items: center; gap: var(--space-8); }
  .nav__item { display: flex; align-items: center; height: var(--header-h); }
  .nav__link { padding: var(--space-2) 0; }
  .nav__link[aria-current="page"]::after, .nav__link.is-current::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 3px; background: var(--gold);
  }
  .sub-toggle { width: 26px; height: 32px; margin-left: var(--space-1); font-size: 16px; color: var(--deep); }
  .submenu {
    position: absolute; top: 100%; left: -24px; min-width: 300px; padding: var(--space-3) 0;
    background: var(--white); border-top: 3px solid var(--gold); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s var(--ease), visibility 0s linear .2s;
  }
  .has-sub:hover > .submenu, .has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .submenu a { padding: var(--space-3) var(--space-6); font-size: var(--text-md); font-weight: 500; color: var(--ink); }
  .submenu a:hover, .submenu a:focus-visible { background: var(--light); color: var(--navy); }
  .submenu a[aria-current="page"] { color: var(--navy); box-shadow: inset 3px 0 0 var(--gold); }
  .submenu__all { border-top: 1px solid var(--line); margin-top: var(--space-2); padding-top: var(--space-2); }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .nav__menu { gap: var(--space-7); }
  .nav__list { gap: var(--space-6); }
  .nav__logo { width: 190px; }
}

/* ---------- 07  Hero & page heroes ---------- */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: var(--white); }
.hero__media, .page-hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(var(--deep-rgb) / .90) 0%, rgb(var(--deep-rgb) / .82) 100%);
}
@media (min-width: 768px) {
  .hero::before, .page-hero::before {
    background: linear-gradient(90deg, rgb(var(--deep-rgb) / .96) 0%, rgb(var(--deep-rgb) / .80) 45%, rgb(var(--deep-rgb) / .05) 100%);
  }
}
.hero__inner { display: flex; flex-direction: column; justify-content: center; min-height: 560px; padding-block: var(--space-20); }
@media (min-width: 1024px) { .hero__inner { min-height: 760px; } }
.hero__content { max-width: 800px; }
.hero h1 { color: var(--white); margin-bottom: var(--space-6); }
.hero__sub { max-width: 560px; margin-bottom: var(--space-10); font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--text-on-dark); }
.hero .eyebrow { color: var(--gold); }

.page-hero__inner { padding-block: var(--space-16) var(--space-14); }
@media (min-width: 1024px) { .page-hero__inner { padding-block: var(--space-28) var(--space-24); } }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 1.35rem + 3.8vw, 4.25rem); font-weight: 700; text-transform: uppercase; line-height: 1.04; margin-bottom: var(--space-5); }
.page-hero p { max-width: 640px; color: var(--text-on-dark); font-size: clamp(1rem, .95rem + .3vw, 1.125rem); margin-bottom: 0; }
.page-hero .btn-row { margin-top: var(--space-8); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); list-style: none; margin: 0 0 var(--space-6); padding: 0; font-size: var(--text-xs); color: var(--text-on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-3); color: var(--gold); }
.breadcrumb a { color: var(--text-on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }

/* Hero entrance (fade-up). Paused while the preloader is on screen. */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__content > *, .page-hero__inner > * { animation: fadeUp .4s var(--ease) both; }
.hero__content > :nth-child(2), .page-hero__inner > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3), .page-hero__inner > :nth-child(3) { animation-delay: .16s; }
.hero__content > :nth-child(4), .page-hero__inner > :nth-child(4) { animation-delay: .24s; }
.hero__content > :nth-child(5), .page-hero__inner > :nth-child(5) { animation-delay: .32s; }
.sp-active .hero__content > *, .sp-active .page-hero__inner > * { animation-play-state: paused; }

/* ---------- 08  Home sections ---------- */
/* Stats strip */
.stats { background: var(--navy); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); padding: var(--space-10) 0; margin: 0; list-style: none; }
.stat__num, .stat__label { display: block; }
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: var(--space-14); } }
.stat { margin: 0; }
.stat__num {
  display: block; margin: 0 0 var(--space-1); font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; color: var(--gold-light);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__label { margin: 0; font-size: var(--text-sm); color: var(--text-on-dark); }

/* Media with offset gold block */
.media-frame { position: relative; margin: var(--space-4) 0 0 var(--space-4); }
.media-frame::before { content: ""; position: absolute; top: -16px; left: -16px; width: 120px; height: 120px; background: var(--gold); }
.media-frame img, .media-frame picture { position: relative; width: 100%; }
.media-frame img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 768px) {
  .media-frame { margin: var(--space-6) 0 0 var(--space-6); }
  .media-frame::before { top: -24px; left: -24px; width: 200px; height: 200px; }
}
.media-frame--right { margin: var(--space-4) var(--space-4) 0 0; }
.media-frame--right::before { left: auto; right: -16px; }
@media (min-width: 768px) { .media-frame--right { margin: var(--space-6) var(--space-6) 0 0; } .media-frame--right::before { right: -24px; } }

/* Why SAMPOKO */
.why-head { display: grid; gap: var(--space-5); margin-bottom: var(--space-12); }
.why-head h2 { margin-bottom: 0; }
.why-head p { margin: 0; color: var(--text-on-dark-soft); }
@media (min-width: 1024px) { .why-head { grid-template-columns: 1.1fr .9fr; gap: var(--space-20); align-items: end; } }
.tiles { display: grid; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  padding: var(--space-8) var(--space-7); border: 1px solid var(--line-on-dark); border-radius: var(--radius-sm);
  background: var(--tint-on-dark); transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
@media (hover: hover) {
  .tile:hover { border-color: rgb(var(--gold-rgb) / .7); background: var(--tint-on-dark-hover); transform: translateY(-3px); }
}
.tile__num { display: block; margin-bottom: var(--space-6); font-family: var(--font-head); font-weight: 600; font-size: var(--text-stat); line-height: 1; color: var(--gold); }
.tile h3 { font-size: var(--text-2xl); font-weight: 500; color: var(--white); margin-bottom: var(--space-3); }
.tile p { margin: 0; font-size: var(--text-sm); color: var(--text-on-dark-soft); }

/* Gold quote CTA band */
.cta-band { background: var(--gold); color: var(--on-gold); overflow: hidden; }
.cta-band__grid { display: grid; align-items: center; }
.cta-band__text { padding-block: var(--space-16); }
.cta-band h2 { color: inherit; margin-bottom: var(--space-4); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.375rem); }
.cta-band p { max-width: 540px; margin-bottom: var(--space-8); font-size: var(--text-base); }
.cta-band .btn--outline { border-color: currentColor; color: inherit; }
.cta-band .btn--outline:hover { background: var(--tint-on-dark-strong); color: inherit; }
.cta-band__media { align-self: stretch; margin-inline: calc(-1 * var(--gutter)); }
.cta-band__media img { width: 100%; height: 100%; min-height: 280px; max-height: 420px; object-fit: cover; }
/* Desktop: the photo runs to the right edge of the screen as a clean split panel.
   The image is positioned inside its column, so the band's height is set by the text, not the photo. */
@media (min-width: 1024px) {
  .cta-band__grid { grid-template-columns: minmax(0, 1fr) 440px; gap: var(--space-12); min-height: 440px; }
  .cta-band__text { padding-block: var(--space-20); }
  .cta-band__media { position: relative; margin: 0 calc((100vw - min(var(--container), 100vw - 2 * var(--gutter))) / -2) 0 0; }
  .cta-band__media img { position: absolute; inset: 0; min-height: 0; max-height: none; object-position: 30% center; }
}

/* Contact section */
.contact-grid { display: grid; gap: var(--space-12); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--space-18); align-items: start; } }
.contact-list { display: grid; gap: var(--space-6); list-style: none; margin: var(--space-8) 0 0; padding: 0; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; }
.contact-item__icon { display: grid; place-items: center; width: 44px; height: 44px; background: var(--navy); color: var(--gold); font-size: 20px; }
.contact-item__label { display: block; margin-bottom: var(--space-1); font-family: var(--font-head); font-weight: 500; font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.contact-item a { color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--navy); text-decoration: underline; }
.contact-item p { margin: 0; }

/* ---------- 09  Product cards & product finder ---------- */
.card-grid { display: grid; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-7); } }
/* Five cards: the odd ones out sit centred instead of leaving an empty slot */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .card-grid--5 { grid-template-columns: repeat(4, 1fr); }
  .card-grid--5 > li { grid-column: span 2; }
  .card-grid--5 > li:nth-child(5) { grid-column: 2 / span 2; }
}
@media (min-width: 1024px) {
  .card-grid--5 { grid-template-columns: repeat(6, 1fr); }
  .card-grid--5 > li { grid-column: span 2; }
  .card-grid--5 > li:nth-child(4) { grid-column: 2 / span 2; }
}
.product-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.product-card__media { position: relative; display: flex; align-items: center; justify-content: center; height: 240px; padding: var(--space-5); overflow: hidden; background: var(--white); border-bottom: 4px solid var(--gold); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
@media (hover: hover) {
  .product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
  .product-card:hover .product-card__media img { transform: scale(1.04); }
}
/* The whole card is clickable, so keyboard focus rings the whole card */
@supports selector(:has(*)) {
  .product-card:has(.link-arrow:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
  .product-card .link-arrow:focus-visible { outline: none; }
}
/* Corner badge on a product image, e.g. the taper angle */
.media-badge {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 1;
  padding: var(--space-1) var(--space-3); background: var(--deep); color: var(--gold);
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-lg); line-height: 1.3; letter-spacing: .04em;
}
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: var(--space-7); }
.product-card__tag { margin: 0 0 var(--space-2); font-family: var(--font-head); font-weight: 500; font-size: var(--text-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.product-card__title { margin: 0 0 var(--space-3); font-size: var(--text-3xl); font-weight: 500; line-height: 1.15; }
.product-card__text { margin: 0 0 var(--space-4); font-size: var(--text-sm); line-height: 1.65; color: var(--muted); }
.product-card .link-arrow { margin-top: auto; }
.product-card .link-arrow::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
.product-card--compact .product-card__media { height: 190px; }
.product-card--compact .product-card__body { padding: var(--space-6); }
.product-card--compact .product-card__title { font-size: var(--text-2xl); }

.finder { display: grid; gap: var(--space-5); margin-bottom: var(--space-8); padding: var(--space-6); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); }
@media (min-width: 1024px) { .finder { grid-template-columns: 1fr auto; align-items: end; padding: var(--space-7); } }
.finder__label { display: block; margin-bottom: var(--space-3); font-family: var(--font-head); font-weight: 500; font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--deep); }
.finder__type { min-width: 240px; }
.results-count { margin: 0 0 var(--space-5); font-size: var(--text-sm); color: var(--muted); }
.empty-state { padding: var(--space-10) var(--space-6); text-align: center; background: var(--white); border: 1px dashed var(--field-border); }
.empty-state p { margin-bottom: var(--space-4); }
.empty-state .btn-row { justify-content: center; }

.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.filter-chip {
  min-height: 40px; padding: var(--space-2) var(--space-4);
  font-family: var(--font-head); font-weight: 500; font-size: var(--text-sm); letter-spacing: .08em; text-transform: uppercase;
  background: var(--white); color: var(--deep); border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.select {
  width: 100%; min-height: 44px; padding: var(--space-3) var(--space-10) var(--space-3) var(--space-4); appearance: none; -webkit-appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23245678' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  border: 1px solid var(--field-border); border-radius: var(--radius-sm); font-size: var(--text-md);
}

/* ---------- 10  Category pages ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 900; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.subnav__list { display: flex; gap: var(--space-2); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.subnav__list a {
  display: block; padding: var(--space-4); line-height: 24px; white-space: nowrap; border-bottom: 3px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: var(--text-sm); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--deep);
}
.subnav__list a:hover { color: var(--navy); border-bottom-color: var(--line); }
.subnav__list a[aria-current="true"] { color: var(--navy); border-bottom-color: var(--gold); }

.category-intro { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .category-intro { grid-template-columns: 1.15fr .85fr; gap: var(--space-18); align-items: start; } }
.outcomes { padding: var(--space-7); background: var(--light); border-left: 4px solid var(--gold); }
.outcomes h2 { font-size: var(--text-2xl); font-weight: 500; }
.outcomes .bullets { margin: 0; font-size: var(--text-md); }

.family { padding-block: var(--section-y); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--subnav-h)); }
.subnav ~ .section[id], .subnav ~ div .family, #related { scroll-margin-top: calc(var(--header-h) + var(--subnav-h)); }
.family--light { background: var(--light); border-top: 0; }
.family__head { display: grid; gap: var(--space-10); margin-bottom: var(--space-10); }
@media (min-width: 1024px) { .family__head { grid-template-columns: 1.1fr .9fr; gap: var(--space-16); align-items: start; } }
.family__subtitle { margin: calc(var(--space-2) * -1) 0 var(--space-5); font-size: var(--text-lg); color: var(--muted); }
.family__lists { display: grid; gap: var(--space-2) var(--space-8); }
@media (min-width: 640px) { .family__lists { grid-template-columns: 1fr 1fr; } }
.family__lists h3 { margin-bottom: var(--space-3); font-size: var(--text-lg); font-weight: 500; color: var(--deep); }
.family__lists .bullets { font-size: var(--text-md); gap: var(--space-2); }
.family__media { position: relative; display: grid; place-items: center; margin: 0; padding: var(--space-6); background: var(--white); border: 1px solid var(--line); border-bottom: 4px solid var(--gold); }
.family__media img { width: 100%; max-height: 340px; object-fit: contain; }
@media (min-width: 1024px) { .split > .family__media { min-height: 320px; grid-template-rows: 1fr auto; } }   /* long, thin products still balance the text beside them; caption stays at the foot */
.family__media figcaption { width: 100%; margin-top: var(--space-4); font-size: var(--text-xs); color: var(--muted); }

.table-block { margin-top: var(--space-2); }
.table-block__head { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: baseline; justify-content: space-between; margin-bottom: var(--space-4); }
.table-block__head h3 { margin: 0; font-size: var(--text-xl); font-weight: 500; color: var(--deep); }
.table-hint { margin: 0; font-size: var(--text-xs); color: var(--muted); }
.table-hint__swipe { color: var(--navy); font-weight: 600; white-space: nowrap; }
/* Phones and tablets: tables scroll sideways only (no scroll box inside the page).
   main.js adds .has-more while columns are hidden off the right edge, which fades that edge. */
.table-wrap { position: relative; overflow-x: auto; background: var(--white); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.table-wrap.has-more {
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 56px), transparent);   /* mask: only the alpha matters */
  mask-image: linear-gradient(to right, black calc(100% - 56px), transparent);
}
.table-wrap:focus-visible { outline-offset: 2px; }
/* Desktop: tables fit the container, so let them flow with the page and pin the
   header row below the sticky navigation + sub-navigation instead. */
@media (min-width: 1024px) {
  .table-wrap { overflow: visible; max-height: none; }
  .spec-table thead th { top: calc(var(--header-h) + var(--subnav-h)); }
}
.spec-table, .data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); line-height: 1.4; }
.spec-table { min-width: 760px; }
.spec-table caption, .data-table caption { padding: 0; }
.spec-table thead th {
  position: sticky; top: 0; z-index: 2; padding: var(--space-4) var(--space-3); vertical-align: bottom; text-align: center;
  background: var(--navy); color: var(--white); font-weight: 600; font-size: var(--text-xs); line-height: 1.3;
  border-right: 1px solid var(--line-on-dark);
}
.spec-table thead th:first-child { left: 0; z-index: 3; text-align: left; }
.spec-table thead th:last-child { border-right: 0; }
.spec-table tbody tr { background: var(--white); }
.spec-table tbody tr:nth-child(even) { background: var(--row-alt); }
.spec-table.is-striped tbody tr { background: var(--white); }
.spec-table.is-striped tbody tr.is-alt { background: var(--row-alt); }
.spec-table tbody tr:hover { background: var(--row-hover); }
.spec-table td, .spec-table tbody th { padding: var(--space-3); text-align: center; white-space: nowrap; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-table tbody tr:last-child > * { border-bottom: 0; }
.spec-table tbody th { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 600; color: var(--deep); background: inherit; box-shadow: 1px 0 0 var(--line); }
.spec-table td:last-child { border-right: 0; }
.spec-table .col-quote { text-align: right; }
.add-quote {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 34px; padding: var(--space-2) var(--space-3);
  font-family: var(--font-head); font-weight: 500; font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: transparent; color: var(--navy); border: 1.5px solid var(--navy); border-radius: var(--radius-sm);
  transition: background-color .2s, color .2s, border-color .2s;
}
.add-quote:hover { background: var(--navy); color: var(--white); }
.add-quote[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.table-empty { margin: 0; padding: var(--space-5); text-align: center; background: var(--white); border: 1px solid var(--line); border-top: 0; font-size: var(--text-sm); color: var(--muted); }

.data-table th, .data-table td { padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--navy); color: var(--white); font-size: var(--text-xs); font-weight: 600; }
.data-table tbody th { width: 34%; font-weight: 600; color: var(--deep); }
.data-table tbody tr:nth-child(even) { background: var(--row-alt); }

.table-filter { display: grid; gap: var(--space-4); margin-bottom: var(--space-10); padding: var(--space-5) var(--space-6); background: var(--white); border: 1px solid var(--line); }
@media (min-width: 900px) { .table-filter { grid-template-columns: 1fr minmax(240px, 320px); align-items: end; } }
.table-filter__status { grid-column: 1 / -1; margin: 0; font-size: var(--text-sm); color: var(--muted); }
html:not(.js) .table-filter { display: none; }
.btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.search-field { position: relative; }
.search-field .icon { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.search-field input { width: 100%; min-height: 44px; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10); border: 1px solid var(--field-border); border-radius: var(--radius-sm); background: var(--white); font-size: var(--text-md); }

.notes { margin-top: var(--space-6); padding: var(--space-6); background: var(--white); border-left: 4px solid var(--gold); font-size: var(--text-md); }
.family--light .notes { background: var(--white); }
.notes h4 { margin: 0 0 var(--space-3); font-size: var(--text-base); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--deep); }
.notes ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-2); }
.notes p:last-child { margin-bottom: 0; }
.patent-note { margin: var(--space-5) 0 0; font-size: var(--text-sm); color: var(--muted); }
.family__actions { margin-top: var(--space-7); display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Order-code guide */
.code-guide { display: grid; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .code-guide { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .code-guide { grid-template-columns: repeat(3, 1fr); } }
.code-card { padding: var(--space-7) var(--space-6); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); }
.code-card__key { display: block; margin-bottom: var(--space-2); font-family: var(--font-head); font-weight: 600; font-size: var(--text-4xl); line-height: 1.1; color: var(--navy); }
.code-card h3 { margin-bottom: var(--space-2); font-size: var(--text-lg); font-weight: 500; color: var(--deep); }
.code-card p { margin: 0 0 var(--space-3); font-size: var(--text-md); color: var(--muted); }
.code-card code { display: inline-block; padding: var(--space-1) var(--space-2); background: var(--light); color: var(--deep); font-size: var(--text-xs); }

/* ---------- 11  Forms ---------- */
.form-panel { padding: var(--space-8) var(--space-6); background: var(--light); }
@media (min-width: 768px) { .form-panel { padding: var(--space-10) var(--space-12); } }
.form-panel__title { margin-bottom: var(--space-2); font-size: var(--text-4xl); font-weight: 500; }
.form-panel__intro { margin-bottom: var(--space-6); font-size: var(--text-md); color: var(--muted); }
.form-grid { display: grid; gap: var(--space-5) var(--space-4); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { display: block; margin-bottom: var(--space-2); font-size: var(--text-xs); font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 500; color: var(--muted); }
.req { color: var(--error); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  background: var(--white); border: 1px solid var(--field-border); border-radius: var(--radius-sm); font-size: var(--text-md);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.field input[type="file"] { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: var(--space-4); padding: var(--space-2) var(--space-4); border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase;
}
.field__hint { margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--muted); }
.field__error { margin: var(--space-2) 0 0; font-size: var(--text-xs); font-weight: 500; color: var(--error); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-6); }
.form-note { margin: 0; flex: 1 1 260px; font-size: var(--text-xs); color: var(--muted); }
.form-status { margin: var(--space-5) 0 0; padding: var(--space-4); font-size: var(--text-sm); border-left: 4px solid var(--error); background: var(--white); color: var(--ink); }
.form-success { padding: var(--space-7); background: var(--white); border-left: 4px solid var(--gold); }
.form-success h3 { margin-bottom: var(--space-2); font-size: var(--text-3xl); font-weight: 500; }
.form-success p { margin-bottom: 0; }
.quote-prefill { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-5); padding: var(--space-3) var(--space-4); background: var(--white); border-left: 3px solid var(--gold); font-size: var(--text-sm); }
.quote-prefill button { background: none; border: 0; padding: var(--space-1) 0; color: var(--navy); text-decoration: underline; font-size: var(--text-sm); }
.more-link { margin: var(--space-5) 0 0; font-size: var(--text-sm); }

/* ---------- 12  Inner pages ---------- */
/* About — local supply chain */
.chain { display: grid; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) { .chain { grid-template-columns: repeat(4, 1fr); gap: var(--space-7); } }
.chain__step { position: relative; padding: var(--space-7) var(--space-6); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); }
.chain__step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; z-index: 1; width: 12px; height: 12px;
  border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: translateX(-50%) rotate(45deg); background: transparent;
}
@media (min-width: 1024px) {
  .chain__step:not(:last-child)::after { left: auto; right: -22px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }
}
.chain__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-5); background: var(--deep); color: var(--gold); font-size: 26px; }
.chain__num { display: block; margin-bottom: var(--space-1); font-family: var(--font-head); font-size: var(--text-xs); letter-spacing: .12em; color: var(--gold-ink); }
.chain__step h3 { font-size: var(--text-2xl); font-weight: 500; margin-bottom: var(--space-2); }
.chain__step p { margin: 0; font-size: var(--text-md); color: var(--muted); }

.value-grid, .feature-grid, .team-grid { display: grid; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .value-grid, .feature-grid, .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .value-grid, .team-grid { grid-template-columns: repeat(4, 1fr); } .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { height: 100%; padding: var(--space-8) var(--space-7); background: var(--white); border-top: 4px solid var(--gold); box-shadow: var(--shadow-card); }
.value-card__icon, .feature-card__icon, .team-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-5); background: var(--light); color: var(--navy); font-size: 24px; }
.feature-card__icon { border-bottom: 3px solid var(--gold); }   /* value cards already carry a gold top rule */
.value-card h3, .feature-card h3 { font-size: var(--text-2xl); font-weight: 500; margin-bottom: var(--space-3); }
.value-card p, .feature-card p { margin: 0; font-size: var(--text-md); color: var(--muted); }
.feature-card { height: 100%; padding: var(--space-8) var(--space-7); background: var(--white); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
@media (hover: hover) { .feature-card:hover { border-color: var(--gold); box-shadow: var(--shadow-card); transform: translateY(-3px); } }
.mission { position: relative; padding: var(--space-10) var(--space-8); background: var(--deep); color: var(--text-on-dark); border-left: 6px solid var(--gold); }
.mission p { max-width: 26em; margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.35; color: var(--white); }
.team-card { padding: var(--space-7) var(--space-6); text-align: center; background: var(--white); border: 1px solid var(--line); }
.team-card__icon { margin-inline: auto; }
.team-card__photo { display: block; width: 112px; height: 112px; margin: 0 auto var(--space-5); object-fit: cover; }
.team-card h3 { font-size: var(--text-xl); font-weight: 500; margin-bottom: var(--space-1); }
.team-card p { margin: 0; font-size: var(--text-sm); color: var(--muted); }

/* Quality — timeline */
.timeline { position: relative; display: grid; gap: var(--space-8); list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
  /* line runs from the centre of the first marker to the centre of the last: 4 columns, 32px gaps, 56px markers */
  .timeline::before { content: ""; position: absolute; top: 28px; left: 28px; right: calc(25% - 52px); height: 2px; background: rgb(var(--gold-rgb) / .5); }
}
.timeline__step { position: relative; }
.timeline__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-5);
  background: var(--deep); border: 2px solid var(--gold); color: var(--gold); font-family: var(--font-head); font-weight: 600; font-size: var(--text-xl);
}
.timeline__step h3 { font-size: var(--text-2xl); font-weight: 500; margin-bottom: var(--space-2); }
.timeline__step p { margin: 0; font-size: var(--text-md); color: var(--text-on-dark-soft); }

/* Catalogue */
.cat-card { display: grid; gap: var(--space-10); padding: var(--space-6); background: var(--white); box-shadow: var(--shadow-card); }
@media (min-width: 900px) { .cat-card { grid-template-columns: minmax(260px, 400px) 1fr; gap: var(--space-14); padding: var(--space-12); align-items: center; } }
.cat-card__cover { position: relative; margin: 0 var(--space-4) var(--space-4) 0; }
.cat-card__cover::before { content: ""; position: absolute; right: -16px; bottom: -16px; width: 60%; height: 60%; background: var(--gold); }
.cat-card__cover img { position: relative; width: 100%; box-shadow: var(--shadow-lg); }
.file-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0 0 var(--space-7); padding: 0; list-style: none; font-size: var(--text-sm); color: var(--muted); }
.file-meta li { display: inline-flex; align-items: center; gap: var(--space-2); }
.file-meta .icon { color: var(--gold-ink); }
.toc { margin: 0 0 var(--space-7); padding: 0; list-style: none; border-top: 1px solid var(--line); }
.toc li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: var(--text-md); }
.toc span:last-child { font-family: var(--font-head); color: var(--gold-ink); letter-spacing: .06em; }
.page-thumbs { display: grid; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .page-thumbs { grid-template-columns: repeat(3, 1fr); } }
.page-thumbs figure { margin: 0; }
.page-thumbs img { width: 100%; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: var(--white); }
.page-thumbs figcaption { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--muted); }

/* Contact — map */
.map { position: relative; min-height: 340px; background: var(--deep); overflow: hidden; }
@media (min-width: 768px) { .map { min-height: 420px; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-8) var(--space-6); text-align: center; color: var(--text-on-dark);
  background-color: var(--deep);
  background-image: linear-gradient(var(--tint-on-dark) 1px, transparent 1px), linear-gradient(90deg, var(--tint-on-dark) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map__placeholder > div > .icon { margin: 0 auto var(--space-4); font-size: 40px; color: var(--gold); }   /* the pin only, not icons inside buttons */
.map__placeholder p { max-width: 460px; margin-inline: auto; }
.map__placeholder .btn-row { justify-content: center; }
.map :focus-visible { outline-color: var(--gold); }
.page-thumbs a { display: block; transition: transform .3s var(--ease); }
@media (hover: hover) { .page-thumbs a:hover { transform: translateY(-4px); } }

/* Privacy & long-form text */
.prose { max-width: 800px; }
.prose h2 { margin-top: var(--space-12); font-size: clamp(1.5rem, 1.25rem + .8vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-7); font-size: var(--text-xl); font-weight: 500; color: var(--deep); }
.prose ul { display: grid; gap: var(--space-2); }
.prose .data-table { margin: var(--space-2) 0 var(--space-6); }

/* 404 */
.error-page { padding-block: var(--space-24); text-align: center; }
.error-page__code { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 4rem + 8vw, 10rem); line-height: 1; color: var(--gold-ink); }
.error-page .btn-row { justify-content: center; margin-top: var(--space-8); }

/* ---------- 13  Footer ---------- */
.site-footer { padding-top: var(--space-18); background: var(--deep); color: var(--text-on-dark-soft); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--space-10); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr auto; gap: var(--space-14); }
  .footer-grid:has(> .footer-social[hidden]) { grid-template-columns: 2fr 1fr 1fr; }   /* while "Follow us" is hidden */
}
.footer-logo { display: inline-block; width: 220px; margin-bottom: var(--space-5); padding: var(--space-4) var(--space-5); background: var(--white); }
.footer-logo img { width: 100%; height: auto; }
.footer-about { max-width: 320px; margin: 0; }
.footer-title { margin: 0 0 var(--space-5); font-family: var(--font-head); font-weight: 500; font-size: var(--text-md); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.footer-links { display: grid; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links button { display: inline-block; padding: var(--space-1) 0; background: none; border: 0; color: var(--text-on-dark); text-decoration: none; font-size: var(--text-sm); text-align: left; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-top: var(--space-14); padding-block: var(--space-6); border-top: 1px solid var(--line-on-dark); font-size: var(--text-xs); }
.footer-bottom p { margin: 0; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; }
.footer-bottom__links a, .footer-bottom__links button { padding: 0; background: none; border: 0; color: var(--text-on-dark-soft); font-size: var(--text-xs); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom__links a:hover, .footer-bottom__links button:hover { color: var(--gold); }
.footer-badge { font-family: var(--font-head); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* ---------- 14  Floating WhatsApp, cookie banner, toast ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 1500;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:hover { background: var(--whatsapp-hover); color: var(--white); }
@media (hover: hover) { .wa-float:hover { transform: translateY(-3px); } }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float__label {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%) translateX(6px);
  padding: var(--space-2) var(--space-3); white-space: nowrap; background: var(--white); color: var(--ink); font-size: var(--text-xs); font-weight: 600;
  box-shadow: var(--shadow-card); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: translateY(-50%); }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; } }

.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1600;
  padding: var(--space-5); background: var(--deep); color: var(--text-on-dark);
  border-top: 3px solid var(--gold); box-shadow: var(--shadow-lg); font-size: var(--text-sm); line-height: 1.6;
}
@media (min-width: 768px) { .cookie-banner { left: 24px; right: auto; bottom: 24px; max-width: 440px; } }
.cookie-banner h2 { margin-bottom: var(--space-2); font-size: var(--text-xl); font-weight: 500; color: var(--white); }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--gold); }
.cookie-banner .btn-row { gap: var(--space-3); margin-top: var(--space-4); }
@media (max-width: 767px) { .cookie-open .wa-float { display: none; } }
.nav-open .wa-float { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 2000;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); max-width: calc(100% - 32px); padding: var(--space-4) var(--space-5);
  background: var(--deep); color: var(--white); border-left: 4px solid var(--gold); box-shadow: var(--shadow-lg); font-size: var(--text-sm);
  transform: translate(-50%, 160%); transition: transform .35s var(--ease); pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--gold); font-weight: 600; }

/* ---------- 15  Motion ---------- */
/* Scroll reveal: a short, subtle rise. Delays stagger items in a row. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--d1 { transition-delay: .06s; }
.js .reveal--d2 { transition-delay: .12s; }
.js .reveal--d3 { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__content > *, .page-hero__inner > * { animation: none; }
}

@media print {
  .topbar, .site-header, .wa-float, .cookie-banner, .toast, #sp-preloader, .subnav, .add-quote, .col-quote { display: none !important; }
  .hero, .page-hero, .section--deep, .site-footer { background: none !important; color: var(--ink) !important; }
  .table-wrap { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
