/* ==========================================================================
   Yash Enterprise — Design System
   Source of truth: docs/BUILD-GUIDE.md (§03) + Yash brand kit (navy/gold/paper)
   ========================================================================== */

/* ---- Fonts: bundled woff2 files, no external font-loading tax ---- */
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/eb-garamond-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/eb-garamond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/assets/fonts/eb-garamond-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* ---- Type scale, 1.25 ratio ---- */
  --t-xs: 13px;  --t-sm: 16px;  --t-base: 18px;
  --t-lg: 22px;  --t-xl: 28px;  --t-2xl: 35px;  --t-3xl: 44px; --t-4xl: 55px;

  /* ---- Spacing, 8px base ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px;  --s-8: 64px; --s-9: 96px;

  /* ---- Yash Enterprise brand colour ---- */
  --paper:     #F3F1EB;  /* primary background, ~60% */
  --white:     #FFFFFF;
  --navy:      #1B2A42;  /* primary — wordmark, structure, body on light, ~30% */
  --navy-ink:  #FFFFFF;  /* text on navy */
  --gold:      #B58A3A;  /* accent only, capped ~10%, never a fill. Passes AA on navy (4.57:1); FAILS AA on paper/white (2.79:1) — never use for text on light backgrounds, per brand kit's own rule. */
  --gold-on-light: #A37C34;  /* darker brass for the rare gold-on-paper/white case the brand kit explicitly allows (large type, rules) — 3.39:1, clears the large-text/non-text 3:1 minimum. Do NOT use for normal-size body text even with this token — brand kit restricts gold-on-light to large type and rules only. Do not use on navy (drops to 3.77:1, under the 4.5:1 normal-text minimum) — use --gold there instead. */
  --charcoal:  #2B2B28;  /* body text ink */
  --grey:      #8C8A82;  /* non-text only: hairlines, borders, decorative dividers (3:1 UI-component threshold). Fails 4.5:1 text contrast on paper (3.06:1) and white (3.46:1) — do not use for readable text. */
  --grey-text: #68665F;  /* AA-safe darker grey for actual readable text (captions, secondary copy) — 5.09:1 on paper, 5.75:1 on white. Use this, not --grey, for anything a person reads. */
  --rule:      #DEDAD0;  /* light hairline on paper */
  --rule-navy: rgba(255,255,255,0.18);

  --ok: #1F7A4C; --warn: #8A6111; --error: #A32B2B;

  --f-head: "EB Garamond", Garamond, "Times New Roman", serif;
  --f-body: "Archivo", Arial, Helvetica, sans-serif;

  --measure: 68ch;
  --radius: 3px;
  --shadow: 0 1px 2px rgb(27 42 66 / .06), 0 8px 22px -14px rgb(27 42 66 / .30);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font: var(--t-sm)/1.6 var(--f-body);
}
@media (min-width: 768px) { body { font-size: var(--t-base); } }

h1, h2, h3, h4 { font-family: var(--f-head); color: var(--navy); font-weight: 400; margin: 0 0 var(--s-4); line-height: 1.15; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); font-family: var(--f-body); font-weight: 700; }
@media (min-width: 768px) { h1 { font-size: var(--t-4xl); } }

/* Visual size, decoupled from semantic heading level — use these when a
   card/list-item title needs to LOOK like an h3/h4 but its correct heading
   LEVEL (given what precedes it on the page) is actually higher, e.g. h2.
   Never pick a heading tag for its size; pick the tag for its place in the
   document outline, then size it with one of these if needed. */
.heading-md { font-size: var(--t-xl); font-family: var(--f-head); font-weight: 400; }
.heading-sm { font-size: var(--t-lg); font-family: var(--f-body); font-weight: 700; }

em, .accent-italic { font-style: italic; }
p { margin: 0 0 var(--s-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
a { color: var(--navy); }
a:not([class]) { text-decoration-color: var(--grey); }
img { display: block; max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }

/* ---- Layout ---- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
@media (min-width: 768px) { .container { padding-inline: var(--s-7); } }
.band { padding-block: var(--s-8); }
.band-tight { padding-block: var(--s-6); }
.hairline { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.hairline-gold { border: 0; border-top: 1px solid var(--gold); margin: 0; }

/* ---- Eyebrow / label pattern ----
   Gold fails AA contrast on paper/white at this text size (2.79:1 — see the
   --gold token note), so the TEXT is navy. The soft gold background tint is
   decoration, not text, so it isn't subject to the 4.5:1 rule — this is how
   gold's visual presence comes back without reintroducing the failure. */
.eyebrow {
  display: inline-block;
  font: 700 var(--t-xs)/1 var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  background: rgba(181, 138, 58, 0.14);
  padding: 4px 10px;
  border-radius: 2px;
}
.eyebrow-on-dark { color: var(--gold); background: none; padding: 0; }
.eyebrow-grey { color: var(--grey-text); background: none; padding: 0; }
.eyebrow-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-4); flex-wrap: wrap;
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--gold-on-light);
  margin-bottom: var(--s-6);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--radius);
  font: 700 var(--t-sm)/1 var(--f-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #142136; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp { background: #1F7A4C; color: var(--white); }
.btn-whatsapp:hover { background: #185f3b; }
/* For use on a navy/dark section — btn-primary (navy bg) and btn-secondary
   (navy text/border on transparent) both go invisible on a navy
   background, the same bug fixed earlier in the mobile nav. */
.btn-on-dark { background: var(--white); color: var(--navy); }
.btn-on-dark:hover { background: var(--paper); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-3); }
.brand-lockup { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand-lockup img { height: 40px; width: auto; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: var(--s-6); list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  font: 600 var(--t-xs)/1 var(--f-body);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--navy); text-decoration: none;
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--gold-on-light); }
.header-actions { display: flex; align-items: center; gap: var(--s-4); }
/* Below 1240px the mobile drawer and the fixed call/WhatsApp bar already carry
   the primary CTA, so the header's own button just fights the hamburger for
   space (and wraps to two lines) — hide it until there's room. */
.header-actions > .btn-primary { display: none; }
@media (min-width: 1240px) {
  .main-nav { display: block; }
  .header-actions > .btn-primary { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---- Mega menu (Products) ---- */
/* Positioned relative to the whole header bar (not the trigger link) so the
   menu centers on the page rather than on wherever "Products" happens to sit
   — centering on the link itself overflowed past the viewport edge and
   clipped the brand logos on wide screens. */
.site-header .container { position: relative; }
.mega-menu {
  display: none;
  position: absolute; left: 50%; transform: translateX(-50%); top: 100%;
  background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow);
  padding: var(--s-6); width: min(880px, 90vw);
  grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
  z-index: 50;
}
/* Opening/closing is JS-driven (main.js) with a short close-delay, not raw
   :hover — the trigger link and the menu are two separate boxes with a real
   gap between them (menu is centred on the header, not on the link, to avoid
   clipping past the viewport edge — see comment above). Pure CSS :hover snaps
   shut the instant the pointer leaves either box, so a mouse path that drifts
   through that gap for even a moment during the diagonal move down into the
   menu closes it — the intermittent "sometimes works" bug. :focus-within
   stays as the no-JS/keyboard fallback. */
.has-mega.is-open .mega-menu, .has-mega:focus-within .mega-menu { display: grid; }
.mega-item { display: flex; flex-direction: column; gap: var(--s-2); text-decoration: none; padding: var(--s-3); border: 1px solid transparent; }
.mega-item:hover { border-color: var(--rule); background: var(--paper); }
.mega-item img { height: 28px; width: auto; object-fit: contain; align-self: flex-start; }
.mega-item .mega-name { font: 700 var(--t-xs)/1 var(--f-body); color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.mega-item .mega-desc { font-size: var(--t-xs); color: var(--grey-text); }
.mega-view-all { grid-column: 1 / -1; text-align: right; font: 700 var(--t-xs)/1 var(--f-body); color: var(--navy); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }

/* ---- Mobile nav ---- */
.nav-toggle {
  background: none; border: 1px solid var(--navy); border-radius: var(--radius);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  padding: var(--s-5);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-6); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--rule); }
.mobile-nav a { display: block; padding: var(--s-4) 0; font: 700 var(--t-lg)/1 var(--f-head); color: var(--navy); text-decoration: none; }
/* .mobile-nav a (0,1,1) otherwise beats .btn-primary's color:white (0,1,0),
   painting this button's text navy-on-navy — invisible. .mobile-nav .btn-primary
   (0,2,0) wins on specificity regardless of source order. */
.mobile-nav .btn { margin-top: var(--s-6); padding-block: var(--s-3); font-family: var(--f-body); font-size: var(--t-sm); }
.mobile-nav .btn-primary { color: var(--white); }

/* ---- Sticky mobile call/whatsapp bar ---- */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--navy);
}
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-4); color: var(--white); text-decoration: none;
  font: 700 var(--t-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em;
}
.mobile-cta-bar a:first-child { border-right: 1px solid var(--rule-navy); }
@media (min-width: 1240px) { .mobile-cta-bar { display: none; } }
body { padding-bottom: 64px; }
@media (min-width: 1240px) { body { padding-bottom: 0; } }

/* ---- Hero ---- */
.hero { padding-block: var(--s-7) var(--s-8); }
.hero-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--s-8); } }
.hero h1 { margin-bottom: var(--s-2); }
.hero .lede { font-size: var(--t-lg); max-width: 46ch; margin-bottom: var(--s-6); color: var(--charcoal); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-6); }
.hero-figure { border: 1px solid var(--rule); background: var(--white); padding: var(--s-3); }
.hero-figure img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--white); display: block; } /* site-wide rule: show the whole photo, never crop it */
.hero-figure.product-figure img { aspect-ratio: 1/1; object-fit: contain; background: var(--white); max-width: 450px; margin: 0 auto; } /* product photos: show the whole part, never crop; 450px is the native size, so don't upscale */
.hero-figure.product-figure img + img { margin-top: var(--s-3); }
.hero-figure .card-figure { aspect-ratio: 4/3; margin-bottom: 0; } /* placeholder box before a real photo exists */
/* A logo is not a photo — the rule above crops it to a 4:3 box via
   object-fit:cover, which zooms into and clips a wide wordmark logo (this
   is exactly what happened to the Mennekes logo on brand pages). Any brand
   logo shown in a hero-figure needs this instead: fit inside, never crop. */
.hero-figure.logo-figure { display: flex; align-items: center; justify-content: center; padding: var(--s-8) var(--s-6); }
.hero-figure.logo-figure img { width: auto; height: auto; max-width: 70%; max-height: 140px; aspect-ratio: auto; object-fit: contain; background: none; }
.hero-figure figcaption { font: 400 var(--t-xs)/1.4 var(--f-body); color: var(--grey-text); padding-top: var(--s-2); }
.meta-strip { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font: 700 var(--t-xs)/1 var(--f-body); letter-spacing: .04em; color: var(--grey-text); text-transform: uppercase; }
.meta-strip span b { color: var(--navy); }

/* ---- Trust / stats strip ---- */
.stats-strip { background: var(--navy); color: var(--white); }
/* Single column below 700px: with 5 stats, any 2/3/4-column grid leaves an
   orphaned last item with a dangling gap. Jumping straight from 1 column to
   the full 5-column row avoids that at every width in between. */
/* 6 real KEY_NUMBERS tiles now (was 5) — 3 columns x 2 rows reads better
   at this count than 6 skinny columns crammed into one row. */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 560px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: var(--s-6); } }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(3,1fr); gap: var(--s-6); } }
.stat b { display: block; font: 400 var(--t-3xl)/1 var(--f-head); }
.stat span { display: block; font: 700 var(--t-xs)/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin-top: var(--s-2); }
.stat small { display: block; color: rgba(255,255,255,.65); font-size: var(--t-xs); margin-top: var(--s-1); }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } }

[hidden] { display: none !important; }
.card { background: var(--white); border: 1px solid var(--rule); padding: var(--s-5); }
.card-figure { aspect-ratio: 4/3; background: var(--paper); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; color: var(--grey-text); font-size: var(--t-xs); text-align: center; margin-bottom: var(--s-4); }
/* Once a real photo file exists, image_or_placeholder() swaps the box above
   for a plain <img> — size it to fill the same slot so nothing reflows. */
.card > img:first-child, .card-link > img:first-child { aspect-ratio: 4/3; object-fit: contain; background: var(--white); width: 100%; margin-bottom: var(--s-4); border: 1px solid var(--rule); }
.card-dense > img:first-child { aspect-ratio: 1/1; margin-bottom: var(--s-2); }
.card h3, .card h4 { margin-bottom: var(--s-2); }
.card p { font-size: var(--t-sm); color: var(--charcoal); }
.card .eyebrow { display: block; margin-bottom: var(--s-2); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--navy); }

/* Dense variant for multi-product/catalog listings — see brand kit exception */
.grid-dense { gap: var(--s-3); }
.card-dense { padding: var(--s-3); }
.card-dense .card-figure { aspect-ratio: 1/1; margin-bottom: var(--s-2); }

.badge {
  display: inline-block; font: 700 var(--t-xs)/1 var(--f-body); letter-spacing: .04em;
  padding: var(--s-1) var(--s-2); border-radius: var(--radius); text-transform: uppercase;
}
.badge-instock { background: #EAF4EE; color: var(--ok); }
.badge-leadtime { background: #FBF3E3; color: var(--warn); }
/* --gold-on-light (3.39:1) isn't dark enough for small bold badge text
   (needs 4.5:1) — this darker value clears it: 5.76:1 on white, 5.10:1 on paper. */
.badge-new { background: rgba(181, 138, 58, 0.16); color: #80611F; }

/* ---- Differentiators / numbered process ---- */
.process-steps { display: grid; gap: var(--s-6); counter-reset: step; }
@media (min-width: 800px) { .process-steps { grid-template-columns: repeat(3, 1fr); } }
.process-step .step-num { width: 52px; height: 52px; font: 400 26px/1 var(--f-head); letter-spacing: 0; color: var(--gold); margin-bottom: var(--s-3); padding-top: 3px; }

/* ---- Split feature (Distribute / Supply / Manufacture) — 2 or 3 panels ---- */
.split-feature { display: grid; gap: var(--s-6); }
@media (min-width: 800px) { .split-feature { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split-feature.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.split-panel { background: var(--white); border: 1px solid var(--rule); padding: var(--s-6); }
.split-panel .eyebrow { display: block; margin-bottom: var(--s-3); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; padding: var(--s-4) 0; font: 700 var(--t-base)/1.4 var(--f-body); color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--f-head); font-size: var(--t-xl); color: var(--navy); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: var(--s-4); color: var(--charcoal); }

/* ---- Spec table ---- */
.spec-table th, .spec-table td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule); font-size: var(--t-sm); }
.spec-table th { font: 700 var(--t-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--grey-text); background: var(--white); }
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--white); }

/* ---- Forms ---- */
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field.full { grid-column: 1 / -1; }
.field label { font: 700 var(--t-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.field .hint { font-size: var(--t-xs); color: var(--grey-text); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  font: 400 var(--t-sm)/1.4 var(--f-body); color: var(--charcoal);
  background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius);
  padding: var(--s-3); min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.form-note { font-size: var(--t-xs); color: var(--grey-text); }
.honeypot-field { position: absolute; left: -9999px; }

/* ---- Filter sidebar (Products) ---- */
.catalog-layout { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .catalog-layout { grid-template-columns: 240px 1fr; } }
.filter-group { border-bottom: 1px solid var(--rule); padding-block: var(--s-4); }
/* Not a real heading — a form/filter group label, so it's a <p> not an
   <h4>: these sit in the sidebar with no relation to the page's actual
   content outline, and using a heading tag here caused a level-skip
   (h1 straight to h4, since the page has no h2/h3 before this point). */
.filter-group-label { font: 700 var(--t-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 var(--s-3); color: var(--navy); }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: var(--t-sm); padding-block: var(--s-1); }
.filter-row label { display: flex; align-items: center; gap: var(--s-2); cursor: pointer; }
.filter-row .count { color: var(--grey-text); font-size: var(--t-xs); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.catalog-empty { padding: var(--s-8); text-align: center; color: var(--grey-text); border: 1px dashed var(--rule); }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); }
/* Partner/principal brand logos are third-party trademarks — brand kit rule:
   reproduce full-colour exactly as supplied, never recolour. So this strip
   sits on a light panel INSIDE the navy footer rather than recolouring the
   logos to survive a dark background. */
.footer-brands { background: var(--paper); border-bottom: 1px solid var(--rule-navy); padding-block: var(--s-6); }
.footer-brands .eyebrow-grey { display: block; text-align: center; margin-bottom: var(--s-5); } /* colour inherited from the (now AA-safe) base .eyebrow-grey rule */
.brand-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-7); }
.brand-strip img { height: 32px; width: auto; object-fit: contain; }
.footer-main { padding-block: var(--s-7); display: grid; gap: var(--s-6); }
@media (min-width: 800px) { .footer-main { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-main h2, .footer-main h3 { font: 700 var(--t-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin-bottom: var(--s-4); }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin-bottom: var(--s-2); }
.footer-main a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: var(--t-sm); }
.footer-main a:hover { color: var(--white); text-decoration: underline; }
.footer-main .brand-lockup img { filter: none; }
.footer-address { font-size: var(--t-sm); font-style: normal; line-height: 1.7; color: rgba(255,255,255,0.85); }
.footer-bottom { border-top: 1px solid var(--rule-navy); padding-block: var(--s-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); font-size: var(--t-xs); color: rgba(255,255,255,0.6); }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---- Placeholder marker (visible in draft, easy to grep before launch) ---- */
.ph {
  background: #FBF3E3; color: var(--warn); border: 1px dashed var(--warn);
  padding: 0 4px; font-size: 0.9em; font-family: var(--f-body);
}
/* The light warm-cream box above is legible on paper/white sections but reads
   as a jarring bright rectangle dropped onto a navy section — this variant
   keeps the same "draft marker" meaning without fighting the dark background. */
.stats-strip .ph {
  background: transparent; color: var(--gold); border-color: var(--gold);
}

/* ---- Utility ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white); padding: var(--s-3) var(--s-5);
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
/* A <p> has a max-width for readable line length but no auto margins, so
   inside a centered section its TEXT centers while the box itself stays
   flush-left — the classic "off-center paragraph under a centered heading"
   bug. Anything with .center needs its measure-limited children centered too. */
.center { text-align: center; }
.center p, .center .lede, .center .section-intro { margin-inline: auto; }
.text-grey { color: var(--grey-text); }
.mt-0 { margin-top: 0; }
.section-intro { max-width: 62ch; margin-bottom: var(--s-6); }

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

/* ==========================================================================
   Interactive additions — scroll reveal, tabs, hover-reveal, icon cards
   ========================================================================== */

/* Scroll reveal — content is ALWAYS fully visible by default (this rule
   only activates once main.js adds .js-ready to <html>, confirming JS
   actually ran). This matters: crawlers, no-JS visitors, and a slow
   connection all see complete content immediately either way — the build
   guide explicitly warns against parking content at opacity:0 waiting on
   an observer that might never fire. Never apply .reveal to the hero —
   the LCP element must never be delayed. */
.reveal { transition: opacity 500ms ease, transform 500ms ease; }
.js-ready .reveal { opacity: 0; transform: translateY(20px); }
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Icon-benefit cards (Why Us) — a warm paper fill (not white, so the cards
   read as distinct objects sitting on the section's white background,
   not just hairlines on more white), a gold top edge for identity, and a
   hover lift for the "alive, interactive" feel — all still within the
   brand kit's own tokens/radius, nothing invented. */
.icon-card {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: var(--s-7) var(--s-6) var(--s-6);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.icon-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(11,26,51,.10); border-color: var(--navy); }
.icon-card-index {
  position: absolute; top: var(--s-3); right: var(--s-4); z-index: 0;
  font: 400 42px/1 var(--f-head); color: var(--navy); opacity: .06;
}
.icon-badge {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--rule); margin-bottom: var(--s-4);
}
.icon-card svg { width: 26px; height: 26px; color: var(--gold-on-light); }
.icon-card h3 { position: relative; z-index: 1; font-size: var(--t-lg); margin-bottom: var(--s-2); }
.icon-card p { position: relative; z-index: 1; }

/* Recognition badges — small pills, not full cards */
.badge-strip { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }
.badge-pill { display: flex; align-items: center; gap: var(--s-2); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: var(--s-2) var(--s-5); font-size: var(--t-xs); }
.badge-pill strong { color: var(--navy); }

/* Closing CTA banner — deliberately the one full-navy band on the page
   (Von Restorff: the one moment that looks different is the one that
   should get the click) */
.cta-banner { background: var(--navy); color: var(--white); }
.cta-banner h2 { color: var(--white); }
.cta-banner h3 { color: var(--gold); font-size: var(--t-lg); margin-bottom: var(--s-2); }
.cta-banner p { color: rgba(255,255,255,0.85); }

/* Philosophy band: statement on the left, numbered pillars on the right,
   Values & ethics as its own panel. (Paragraphs elsewhere are capped at
   --measure for readability; here each column is narrow enough already,
   so the cap is lifted rather than leaving ragged half-empty lines.) */
.philosophy { display: grid; gap: var(--s-7); margin-block: var(--s-6) var(--s-7); }
@media (min-width: 900px) { .philosophy { grid-template-columns: 1fr 1.25fr; gap: var(--s-8); align-items: start; } }
.philosophy h2 { font-size: var(--t-3xl); line-height: 1.1; }
.philosophy-vision { font: 400 var(--t-xl)/1.4 var(--f-head); color: var(--white) !important; max-width: none; border-left: 3px solid var(--gold); padding-left: var(--s-5); margin-top: var(--s-6); }
.pillar-list .pillar { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid rgba(255,255,255,.15); }
.pillar-list .pillar:first-child { padding-top: 0; }
.pillar-list .pillar:last-child { border-bottom: 0; }
.pillar-num { font: 400 var(--t-2xl)/1 var(--f-head); color: var(--gold); }
.pillar-list h3 { margin-bottom: var(--s-1); }
.pillar-list p { max-width: none; margin: 0; }
.values-panel { background: rgba(255,255,255,.06); border-left: 3px solid var(--gold); padding: var(--s-5) var(--s-6); }
.values-panel p { max-width: none; margin: 0; }
.cta-banner .philosophy p, .cta-banner .values-panel p { color: rgba(255,255,255,.9); }

/* About: hero fact card + History split (narrative | vertical timeline) */
.glance { margin: 0; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: var(--s-2) var(--s-5); }
.glance > div { padding-block: var(--s-3); border-bottom: 1px solid var(--rule); }
.glance > div:last-child { border-bottom: 0; }
.glance dt { font: 700 var(--t-xs)/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--grey-text); margin-bottom: var(--s-1); }
.glance dd { margin: 0; font: 400 var(--t-lg)/1.3 var(--f-head); color: var(--navy); }
.split-narrative { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .split-narrative { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); align-items: start; } }
.timeline-v { list-style: none; margin: 0; padding: 0 0 0 var(--s-5); border-left: 2px solid var(--gold-on-light); }
.timeline-v li { position: relative; padding-bottom: var(--s-5); }
.timeline-v li:last-child { padding-bottom: 0; }
.timeline-v li::before { content: ""; position: absolute; left: calc(-1 * var(--s-5) - 6px); top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-on-light); }
.tl-year { display: block; font: 400 var(--t-xl)/1.1 var(--f-head); color: var(--gold-on-light); }
.tl-event { display: block; color: var(--charcoal); font-size: var(--t-sm); }

/* Tab group — "Three ways to buy". Progressive enhancement: ALL panels
   render and stay visible by default (plain HTML/CSS below), so a no-JS
   visitor or crawler sees every word of all three. JS (main.js) only
   adds the tab buttons and toggles panels for real browsers — it never
   removes content from the DOM. */
.tab-buttons { display: none; gap: var(--s-3); margin-bottom: var(--s-6); flex-wrap: wrap; }
.js-ready .tab-buttons { display: flex; }
.tab-btn { display: inline-flex; align-items: center; gap: var(--s-2); font: 700 var(--t-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .05em; padding: var(--s-3) var(--s-5); border: 1px solid var(--rule); background: var(--white); color: var(--navy); border-radius: var(--radius); cursor: pointer; }
.tab-btn svg { flex-shrink: 0; } /* currentColor — follows the button's own text colour in both states, including the navy-background selected state */
.tab-btn[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.js-ready .split-feature.cols-3 .split-panel { display: none; }
.js-ready .split-feature.cols-3 .split-panel.is-active { display: block; }
.js-ready .split-feature.cols-3 { grid-template-columns: 1fr; }

/* Hover-reveal detail on "What we stock" cards — the spec/standard line
   stays in the HTML (and hence to crawlers/no-JS) always; it only
   visually collapses on hover-capable pointers via max-height, which
   degrades to "always shown" on touch devices with no :hover support. */
@media (hover: hover) {
  .stock-detail { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 300ms ease, opacity 300ms ease; }
  .card-link:hover .stock-detail, .card-link:focus-within .stock-detail { max-height: 60px; opacity: 1; }
}

/* Hero logo carousel — one brand logo at a time, large, on white, with
   prev/next chevrons. No product photos/cards/captions. Default (no JS):
   first logo is the real, visible content (position:relative, establishes
   the box's height); the rest sit invisibly absolute-positioned
   underneath — safe for crawlers/no-JS since the first is genuinely
   rendered, not faked. Once JS confirms it's running (.js-ready), it
   takes over cycling which one is .is-active. */
.logo-carousel { position: relative; display: flex; align-items: center; justify-content: center; padding: var(--s-6) var(--s-7); min-height: 300px; }
.logo-carousel-stack { position: relative; width: 100%; height: 100%; }
.logo-slide { opacity: 0; position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--s-3); align-items: center; justify-content: center; transition: opacity 350ms ease; }
.logo-slide:first-child { position: relative; opacity: 1; }
.js-ready .logo-slide { position: absolute; opacity: 0; }
.js-ready .logo-slide.is-active { position: relative; opacity: 1; z-index: 1; }
/* A fixed WIDTH+HEIGHT box (not max-width/max-height) is what actually
   makes every logo occupy the same footprint: the six logo files have
   real, different aspect ratios (Mennekes ~3.5:1 wide, Dixon ~1.7:1
   squarer), so capping only one dimension let whichever logo was closer
   to square (Dixon) claim a visibly bigger box than the wide wordmarks.
   object-fit:contain then scales each logo DOWN to fit that identical
   box, so the box is consistent and only the logo inside it varies. */
.logo-slide img { width: 300px; height: 150px; object-fit: contain; aspect-ratio: auto; background: none; }
@media (max-width: 560px) { .logo-slide img { width: 220px; height: 110px; } }
.logo-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--rule); color: var(--navy);
  box-shadow: 0 2px 8px rgba(11,26,51,.12); cursor: pointer;
}
.logo-carousel-arrow:hover { background: var(--paper); }
.logo-carousel-arrow.prev { left: var(--s-3); }
.logo-carousel-arrow.next { right: var(--s-3); }


/* ---- Product families (catalogue cards, family pages, variant table) ---- */
.family-media { aspect-ratio: 1/1; background: var(--white); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; margin-bottom: var(--s-3); overflow: hidden; }
.family-media img { width: 100%; height: 100%; object-fit: contain; }
.family-nophoto { padding: var(--s-4); text-align: center; color: var(--grey-text); font-size: 14px; line-height: 1.4; }
.family-card h2 { margin-bottom: var(--s-1); }
.variant-table { font-size: var(--t-sm); }
.variant-table th, .variant-table td { padding: var(--s-2) var(--s-3); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.variant-table thead th { font: 700 var(--t-xs)/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-text); position: sticky; top: 0; background: var(--paper); }
.variant-table tbody th { font-weight: 700; color: var(--navy); }
.variant-table img { width: 48px; height: 48px; object-fit: contain; background: var(--white); border: 1px solid var(--rule); }
.variant-table .btn { min-height: 36px; padding: var(--s-1) var(--s-3); font-size: var(--t-xs); }
.variant-table tr:target { background: rgba(181,138,58,.14); }
img.drawing { width: 100%; max-width: 900px; height: auto; background: var(--white); border: 1px solid var(--rule); }

/* range-page part list */
.range-layout { align-items: start; }
.range-layout aside { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
@media (max-width: 899px) { .range-layout aside { position: static; max-height: none; } }
.range-filters > summary { font: 700 var(--t-sm)/1 var(--f-body); cursor: pointer; padding: var(--s-3) 0; color: var(--navy); }
@media (min-width: 900px) { .range-filters > summary { display: none; } }
.range-search { width: 100%; min-height: 44px; border: 1px solid var(--grey); border-radius: 3px; padding: 6px 10px; font: 400 var(--t-sm)/1.3 var(--f-body); }
.variant-table { min-width: 0; }
.variant-table .thumb { width: 64px; padding-right: 0; }
.variant-table th[scope="row"] a { font-weight: 700; }
.variant-table small.avail { display: block; font-weight: 400; font-size: 12px; color: var(--grey-text); margin-top: 2px; }
.variant-table td.act { text-align: right; width: 1%; white-space: nowrap; }
.variant-table td.act .btn { padding: 6px 14px; min-height: 0; }
.variant-table tr.group-row th { background: var(--paper); font: 700 var(--t-sm)/1.3 var(--f-body); color: var(--navy); text-align: left; padding: var(--s-4) var(--s-3) var(--s-3); border-bottom: 2px solid var(--navy); position: static; }
.variant-table tr.group-row .gcount { font-weight: 400; color: var(--grey-text); font-size: var(--t-xs); margin-left: var(--s-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.range-layout > div { min-width: 0; }
.variant-table tr.group-row th { white-space: normal; }
@media (max-width: 640px) {
  .variant-table { font-size: 14px; }
  .variant-table th, .variant-table td { padding: 8px 4px; }
  .variant-table .thumb, .variant-table thead th:first-child:empty { display: none; }
  .variant-table td.act, .variant-table thead th:last-child { display: none; } /* on phones the part-number link opens a page with the Quote and WhatsApp buttons */
  .variant-table thead th { letter-spacing: 0; font-size: 11px; }
  .variant-table tbody td, .variant-table tbody th { font-size: 13px; }
}

.variant-table tr.group-row th { text-transform: none; letter-spacing: 0; }
.variant-table tr.group-row .gdiff { display: block; font: 400 var(--t-sm)/1.4 var(--f-body); color: var(--grey-text); margin-top: var(--s-1); }
.versions-box { background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--gold-on-light); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-6); }
.versions-box h3 { font: 700 var(--t-base)/1.3 var(--f-body); margin: 0 0 var(--s-3); }
.versions-box ul { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-3); }
.versions-box li { font-size: var(--t-sm); line-height: 1.45; }
.versions-box .gcount { color: var(--grey-text); font-size: var(--t-xs); margin-left: var(--s-2); }
.versions-box li span:not(.gcount) { color: var(--charcoal); }

.versions-table { font-size: 14px; min-width: 0; }
.versions-table thead th { vertical-align: bottom; white-space: normal; min-width: 130px; text-transform: none; letter-spacing: 0; font: 700 var(--t-sm)/1.3 var(--f-body); color: var(--navy); position: static; }
.versions-table thead th:first-child { min-width: 180px; color: var(--grey-text); font: 700 var(--t-xs)/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .05em; }
.versions-table thead .gcount { display: block; font-weight: 400; margin-left: 0; }
.versions-table tbody th { font-weight: 400; color: var(--charcoal); white-space: normal; text-transform: none; letter-spacing: 0; }
.versions-table td { text-align: center; white-space: normal; }
.versions-table td.yes { color: var(--ok); font-size: 18px; }
.versions-table td.dim { font-size: 13px; color: var(--grey-text); text-align: left; }

/* team portraits: portrait frame so faces stay large; the whole photo is always shown */
.team-card > img:first-child, .team-card > .card-figure { aspect-ratio: 3/4; }
.team-card > .card-figure { background: linear-gradient(180deg, #E2E7EE, #BEC7D3); border: 0; color: #4A5568; } /* same studio backdrop as the portraits until a photo is added */
@media (max-width: 640px) { .hide-sm { display: none; } } /* secondary columns (size, weight) drop out on phones; the part page has them */
.range-compact { max-width: 900px; }

/* ====================================================================
   Own-range menu item, header search, enquiry list, selector, contact
   ==================================================================== */
.mega-own { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--s-4); border: 1px solid var(--rule); background: var(--paper); margin-top: var(--s-2); }
.mega-own img { height: 30px; }
.mega-own .mega-desc { margin-left: auto; }
.mega-tag { display: inline-block; margin-left: var(--s-2); padding: 3px 7px; background: var(--navy); color: var(--white); font-size: 10px; letter-spacing: .08em; vertical-align: middle; }

.icon-btn { background: none; border: 1px solid transparent; border-radius: var(--radius); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }
.icon-btn:hover { border-color: var(--rule); background: var(--white); }
.header-actions { gap: var(--s-2); }
.enquiry-pill { display: inline-flex; align-items: center; gap: var(--s-2); padding: 8px 12px; border: 1px solid var(--gold-on-light); background: var(--white); color: var(--navy); font: 700 var(--t-xs)/1 var(--f-body); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.enquiry-pill[hidden] { display: none !important; }
.pill-count { background: var(--navy); color: var(--white); min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; padding-inline: 5px; }
.enquiry-pill .pill-label { display: none; }   /* icon + count only: the full label doesn't fit the header; the name stays in aria-label / tooltip */
.enquiry-pill { padding: 8px 10px; }

.search-overlay { position: fixed; inset: 0; z-index: 70; background: rgb(27 42 66 / .55); display: flex; align-items: flex-start; justify-content: center; padding: 9vh var(--s-4) var(--s-4); }
.search-overlay[hidden] { display: none; }
.search-panel { background: var(--white); width: min(760px, 100%); max-height: 82vh; overflow: auto; padding: var(--s-5); box-shadow: var(--shadow); }
.search-form { display: flex; gap: var(--s-2); align-items: center; }
.search-form input[type=search] { flex: 1; min-height: 48px; border: 1px solid var(--grey); border-radius: var(--radius); padding: 8px 12px; font: 400 var(--t-base)/1.3 var(--f-body); min-width: 0; }
.search-form input[type=search]:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.search-results { margin-top: var(--s-4); }
.search-group h3 { font: 700 var(--t-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--grey-text); margin: var(--s-4) 0 var(--s-2); }
.search-item { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-3); text-decoration: none; color: var(--charcoal); border: 1px solid transparent; }
.search-item:hover, .search-item[aria-selected="true"] { background: var(--paper); border-color: var(--rule); }
.search-item .si-code { font: 700 var(--t-sm)/1.2 var(--f-body); color: var(--navy); min-width: 110px; }
.search-item .si-main { flex: 1; min-width: 0; }
.search-item .si-title { display: block; font-size: var(--t-sm); line-height: 1.3; }
.search-item .si-sub { display: block; font-size: var(--t-xs); color: var(--grey-text); }
.search-item .si-meta { font-size: var(--t-xs); color: var(--grey-text); white-space: nowrap; }
.search-empty { padding: var(--s-4) 0; color: var(--grey-text); }
.search-hint { font-size: var(--t-xs); color: var(--grey-text); margin: var(--s-4) 0 0; }
.search-hint kbd { border: 1px solid var(--grey); border-bottom-width: 2px; padding: 0 5px; border-radius: 3px; font-size: 11px; }
body.search-open { overflow: hidden; }

/* add-to-enquiry buttons + toast */
.btn-add { min-height: 36px; padding: var(--s-1) var(--s-3); font-size: var(--t-xs); white-space: nowrap; cursor: pointer; }
.btn-add[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.variant-table td.act .btn-add { padding: 6px 12px; }
.enquiry-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 80; background: var(--navy); color: var(--white); padding: 12px 16px; display: flex; gap: var(--s-4); align-items: center; box-shadow: var(--shadow); font-size: var(--t-sm); max-width: calc(100vw - 24px); }
.enquiry-toast a { color: var(--white); font-weight: 700; text-decoration: underline; white-space: nowrap; }
@media (max-width: 1239px) { .enquiry-toast { bottom: 72px; } }

/* enquiry list on the quote page */
.enquiry-card { border: 1px solid var(--gold-on-light); background: var(--paper); padding: var(--s-5); margin-bottom: var(--s-6); }
.enquiry-card h2 { margin-top: 0; }
.enquiry-card[hidden] { display: none; }
.enquiry-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); background: var(--white); }
.enquiry-table th, .enquiry-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.enquiry-table thead th { font: 700 var(--t-xs)/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--grey-text); }
.enquiry-table input[type=number] { width: 76px; min-height: 40px; border: 1px solid var(--grey); border-radius: var(--radius); padding: 4px 8px; font: inherit; }
.enquiry-table .eq-name { color: var(--grey-text); font-size: var(--t-xs); display: block; }
.enquiry-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); align-items: center; }
.link-btn { background: none; border: none; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; }
@media (max-width: 640px) { .enquiry-table .eq-name { display: none; } }

/* selector note */
.sel-note { font-size: var(--t-sm); color: var(--grey-text); max-width: 70ch; }

/* selector */
.selector-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .selector-grid { grid-template-columns: 340px 1fr; align-items: start; } }
.selector-form { background: var(--white); border: 1px solid var(--rule); padding: var(--s-5); }
.selector-form fieldset { border: 0; margin: 0 0 var(--s-5); padding: 0; }
.selector-form legend { font: 700 var(--t-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin-bottom: var(--s-3); padding: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--grey); background: var(--white); font-size: var(--t-sm); border-radius: 3px; }
.chip input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-on-light); outline-offset: 2px; }
.selector-help { font-size: var(--t-xs); color: var(--grey-text); margin: var(--s-2) 0 0; }
.selector-results h2 { margin-top: 0; }
.sel-summary { background: var(--paper); border-left: 3px solid var(--gold-on-light); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); }
.sel-summary p { margin: 0 0 var(--s-2); }
.sel-ranges { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.sel-range { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--rule); background: var(--white); text-decoration: none; color: var(--charcoal); }
.sel-range:hover { border-color: var(--navy); }
.sel-range strong { color: var(--navy); }

/* contact page */
.contact-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }

/* downloads */
.download-card { display: flex; flex-direction: column; gap: var(--s-3); }
.download-card .badge-pdf { align-self: flex-start; background: var(--navy); color: var(--white); font: 700 11px/1 var(--f-body); letter-spacing: .08em; padding: 5px 8px; }
/* range-table add buttons: separate column on desktop, tucked under the part number on phones */
.add-inline { display: none; }
@media (max-width: 640px) {
  .variant-table td.act { display: none; }
  .add-inline { display: block; margin-top: 4px; }
  .add-inline .btn-add { min-height: 30px; padding: 3px 10px; }
}
/* header: keep the call-to-action on one line on wide screens */
@media (min-width: 1240px) { .header-actions .btn-primary { white-space: nowrap; } .main-nav ul { gap: var(--s-5); } }
@media (min-width: 1240px) { .header-actions .nav-toggle { display: none; } } /* a later .nav-toggle rule was overriding the earlier "hide on desktop" one */
.brand-lockup { flex-shrink: 0; }            /* the logo must never be squeezed by the nav */
.brand-lockup img { flex-shrink: 0; max-width: none; }
@media (min-width: 1240px) and (max-width: 1439px) { .main-nav ul { gap: var(--s-4); } .site-header .container { gap: var(--s-4); } }
.download-card .btn { margin-top: auto; }
@media (max-width: 560px) {
  .search-overlay { padding-top: 12px; }
  .search-panel { padding: var(--s-4); }
  .search-item { flex-wrap: wrap; row-gap: 2px; }
  .search-item .si-code { flex: 0 0 100%; min-width: 0; }
  .search-item .si-meta { display: none; }
}
.good-to-know { border-left: 3px solid var(--gold-on-light); background: var(--paper); padding: var(--s-3) var(--s-5); margin-bottom: var(--s-5); font-size: var(--t-sm); }
.good-to-know ul { margin: var(--s-2) 0 0; padding-left: var(--s-5); }
@media (max-width: 640px) { .variant-table th[scope="row"] { white-space: normal; } .variant-table small.avail { white-space: normal; max-width: 96px; } }  /* long "available from …" notes wrap instead of widening the table */
@media (max-width: 640px) { .variant-table td, .variant-table th { white-space: normal; } }  /* wide-range voltages ("50–500 V · 100–300 Hz") wrap on phones instead of widening the table */

/* ---- Careers ---- */
.role-card { display: block; text-decoration: none; color: inherit; }
.role-card .heading-md { margin: var(--s-2) 0 var(--s-3); }
.role-card-cta { display: inline-block; margin-top: var(--s-3); font-weight: 700; color: var(--navy); }
.role-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-5); padding: 0; }
.role-chips li { border: 1px solid var(--rule); background: var(--paper); padding: 4px var(--s-3); font: 700 var(--t-xs)/1.4 var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.role-grid { margin-block: var(--s-6); }
.role-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-3); }
.role-list li { position: relative; padding-left: 28px; }
.role-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-on-light); }
.ladder { list-style: none; margin: 0; padding: 0 0 0 var(--s-5); border-left: 2px solid var(--gold-on-light); }
.ladder li { position: relative; padding-bottom: var(--s-5); }
.ladder li:last-child { padding-bottom: 0; }
.ladder li::before { content: ""; position: absolute; left: calc(-1 * var(--s-5) - 7px); top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--gold-on-light); }
.ladder-when { display: block; font: 700 var(--t-xs)/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--grey-text); }
.ladder-what strong { display: block; font-size: var(--t-base); color: var(--navy); }
.hire-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 900px) { .hire-steps { grid-template-columns: repeat(4, 1fr); } }
.hire-steps li { display: flex; gap: var(--s-4); }
.hire-steps p { margin: var(--s-1) 0 0; }
.step-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font: 700 var(--t-sm)/1 var(--f-body); }


/* ---- Mennekes categories ---- */
.cat-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.cat-chip { display: inline-block; border: 1px solid var(--rule); background: var(--white); padding: 6px var(--s-4); border-radius: 999px; font: 700 var(--t-xs)/1.4 var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--navy); text-decoration: none; }
.cat-chip:hover { border-color: var(--navy); }
.cat-block { margin-bottom: var(--s-8); scroll-margin-top: 90px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.cat-head h3 { margin: 0; }
.cat-head h3 a { text-decoration: none; }

/* a part row reached from search or the enquiry list (range pages with no page per part) */
.range-layout tr:target > * { background: #fff6d6; }
.range-layout tr { scroll-margin-top: 90px; }

/* ---- Products landing and group pages ---- */
.group-tile { display: flex; flex-direction: column; }
.group-tile .family-media { margin-bottom: var(--s-3); }
.group-tile .badge { align-self: flex-start; margin-top: auto; }
.products-search { margin-top: var(--s-6); max-width: 720px; }
.products-search-row { display: flex; gap: var(--s-2); }
.products-search-row input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--grey); border-radius: 3px; padding: 6px 12px; font: 400 var(--t-base)/1.3 var(--f-body); }
.filter-subhead { font: 700 var(--t-xs)/1.3 var(--f-body); color: var(--grey-text); margin: var(--s-3) 0 var(--s-1); text-transform: uppercase; letter-spacing: .04em; }
.filter-subhead:first-child { margin-top: 0; }
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.filter-chips:empty { display: none; }
.filter-chips button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 999px; padding: 4px 12px; font: 600 var(--t-xs)/1.4 var(--f-body); cursor: pointer; }
.filter-chips button::after { content: "×"; font-size: 14px; line-height: 1; }
.filter-chips button:hover { background: var(--navy); color: var(--white); }
.catalog-layout > aside .range-filters > summary { font: 700 var(--t-sm)/1 var(--f-body); }
@media (min-width: 900px) {
  .catalog-layout > aside { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
}
/* catalogue cards: two per row on phones so a long list is quick to scan */
@media (max-width: 599px) {
  .grid-dense[data-catalog] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
  .grid-dense[data-catalog] .card-dense { padding: var(--s-2); }
  .grid-dense[data-catalog] .heading-sm { font-size: 15px; }
  .grid-dense[data-catalog] .eyebrow { font-size: 10px; letter-spacing: .03em; }
  .grid-dense[data-catalog] p { font-size: 12.5px !important; }
}

/* hover/tap preview of a part-list thumbnail */
.variant-table td.thumb img { cursor: zoom-in; }
.thumb-pop { position: fixed; z-index: 60; width: 300px; height: 300px; padding: 8px; background: var(--white); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 12px 36px rgba(13, 27, 62, .22);
  pointer-events: none; opacity: 0; transform: scale(.92); transform-origin: left center; transition: opacity .16s ease, transform .16s ease; }
.thumb-pop.on { opacity: 1; transform: scale(1); }
.thumb-pop img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 599px) { .thumb-pop { width: 240px; height: 240px; } }
@media (prefers-reduced-motion: reduce) { .thumb-pop { transition: none; } }

/* the thumbnail column must never be squeezed by long descriptions (it had collapsed to ~12px) */
.variant-table td.thumb { width: 72px; min-width: 72px; padding-left: var(--s-3); padding-right: var(--s-2); }
.variant-table td.thumb img { display: block; width: 56px; height: 56px; max-width: none; object-fit: contain; background: var(--white); border: 1px solid var(--rule); border-radius: 3px; }

/* ---- Home hero: product mosaic, search, trust strip ---- */
.hero-search { display: flex; gap: var(--s-2); margin-top: var(--s-5); max-width: 640px; }
.hero-search input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--grey); border-radius: 3px; padding: 6px 12px; font: 400 var(--t-base)/1.3 var(--f-body); background: var(--white); }
.hero-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.hero-tile { display: flex; flex-direction: column; gap: 2px; padding: var(--s-3); background: var(--white); border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--navy); }
.hero-tile:hover { border-color: var(--navy); }
.hero-tile-media { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: var(--s-2); }
.hero-tile-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-tile-name { font: 700 var(--t-sm)/1.25 var(--f-body); }
.hero-tile-n { font: 400 var(--t-xs)/1.3 var(--f-body); color: var(--grey-text); }
.trust-strip { background: var(--white); border-block: 1px solid var(--rule); }
.trust-title { font: 700 var(--t-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--grey-text); margin: 0 0 var(--s-3); text-align: center; }
.trust-brands { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-3) var(--s-6); }
.trust-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--grey-text); }
.trust-brand img { height: 28px; width: auto; max-width: 120px; object-fit: contain; }
.trust-brand small { font: 400 11px/1.2 var(--f-body); }
.trust-line { text-align: center; font: 400 var(--t-sm)/1.4 var(--f-body); color: var(--grey-text); margin: var(--s-4) 0 0; }
@media (max-width: 599px) { .hero-search { flex-direction: column; } }
/* thank-you page */
.next-steps { text-align: left; max-width: 480px; margin: var(--s-5) auto; padding-left: var(--s-5); display: grid; gap: var(--s-3); }
/* quote form: optional details folded away */
.form-more { border: 1px solid var(--rule); border-radius: 3px; padding: var(--s-3) var(--s-4); background: var(--paper); }
.form-more > summary { cursor: pointer; font: 700 var(--t-sm)/1.4 var(--f-body); color: var(--navy); }
.form-more[open] > summary { margin-bottom: var(--s-3); }
.range-help { font-size: var(--t-sm); color: var(--grey-text); margin: var(--s-3) 0 0; }

/* stock status in part lists */
.stock { display: inline-block; font: 700 12px/1.3 var(--f-body); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.stock-in { background: #e3f3e6; color: #1d6b2f; }
.stock-lead { background: #fff1d6; color: #8a5a00; }
.stock-req { background: var(--paper); color: var(--grey-text); font-weight: 400; }

.quote-card { margin: 0; padding: var(--s-5); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; }
.quote-card blockquote { margin: 0 0 var(--s-3); font: 400 var(--t-base)/1.55 var(--f-body); }
.quote-card figcaption { font: 400 var(--t-sm)/1.4 var(--f-body); color: var(--grey-text); }

.logo-cap { font: 400 var(--t-sm)/1.3 var(--f-body); color: var(--grey-text); text-align: center; }
.hero-trust { margin: var(--s-4) 0 0; font: 400 var(--t-sm)/1.45 var(--f-body); color: var(--grey-text); }
.hero-mosaic-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .hero-mosaic-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hero-mosaic-row .hero-tile-media { aspect-ratio: 4/3; }

/* home hero: search row, then the two buttons with a clear gap, all the same height */
.hero-search .btn, .hero-search + .hero-ctas .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.hero-search + .hero-ctas { margin-top: var(--s-4); margin-bottom: 0; gap: var(--s-3); }
.hero-search + .hero-ctas + .hero-trust { margin-top: var(--s-5); }
