/* ==========================================================================
   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 1000px 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: 1000px) {
  .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: 1000px) { .mobile-cta-bar { display: none; } }
body { padding-bottom: 64px; }
@media (min-width: 1000px) { 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: cover; background: var(--rule); display: block; }
.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. */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 700px) { .stats-grid { grid-template-columns: repeat(5,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); } }

.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: cover; 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 { font: 400 var(--t-2xl)/1 var(--f-head); color: var(--gold-on-light); display: block; margin-bottom: var(--s-2); }

/* ---- 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 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 p { color: rgba(255,255,255,0.85); }

/* 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; 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); }
