/* UK Commutators — site stylesheet
   Brand: Union blue #012169 · Union red #C8102E · Copper #B87333 · Ink #121826 · Cloud #F3F4F6
   Type: Barlow Condensed (headings) · Barlow (body)
---------------------------------------------------------------------------- */

:root {
  --blue: #012169;
  --blue-dark: #0A1230;
  --blue-hover: #021a52;
  --red: #C8102E;
  --red-hover: #A80D26;
  --copper: #B87333;
  --copper-light: #D9A066;
  --copper-pale: #F0C9A0;
  --ink: #121826;
  --muted: #4B5368;
  --muted-light: #9AA6C4;
  --on-blue-muted: #C9D1E6;
  --cloud: #F3F4F6;
  --line: #E3E6EE;
  --field: #C9CED9;
  --white: #ffffff;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1; margin: 0; color: var(--blue); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -48px; background: var(--white); color: var(--blue);
  padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; z-index: 100;
}
.skip-link:focus { top: 8px; }

/* Layout -------------------------------------------------------------------- */

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--cloud { background: var(--cloud); }
.section--navy { background: var(--blue-dark); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--line { border-bottom: 1px solid var(--line); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split--center { align-items: center; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: repeat(1, minmax(0, 1fr)); } }

/* Type ---------------------------------------------------------------------- */

.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper);
}
.section--navy .eyebrow, .band .eyebrow { color: var(--copper-pale); }
.h1 { font-size: 64px; font-weight: 700; letter-spacing: -0.005em; }
.h2 { font-size: 48px; font-weight: 700; }
.h3 { font-size: 26px; font-weight: 600; line-height: 1.05; }
.lede { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 680px; }
.section--navy .lede, .band .lede { color: var(--on-blue-muted); }
.small { font-size: 14px; color: var(--muted); }
.num { color: var(--copper); }
.tabular { font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .h1 { font-size: 48px; } .h2 { font-size: 40px; } }
@media (max-width: 520px) { .h1 { font-size: 40px; } .h2 { font-size: 34px; } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head .stack { gap: 8px; max-width: 680px; }
.link-more { font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 2px solid var(--copper); padding-bottom: 2px; transition: color 0.15s ease, border-color 0.15s ease; }
.link-more:hover { color: var(--red); border-bottom-color: var(--red); }

/* Buttons ------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); transition-duration: 0.05s; }
.btn:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hover); color: var(--white); box-shadow: 0 8px 20px rgba(200, 16, 46, 0.28); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-hover); color: var(--white); box-shadow: 0 8px 20px rgba(1, 33, 105, 0.28); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn[disabled], .btn.is-busy { opacity: 0.85; cursor: progress; transform: none; box-shadow: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: var(--white); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form.is-sending .field input, .form.is-sending .field select, .form.is-sending .field textarea { opacity: 0.7; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

/* Header -------------------------------------------------------------------- */

.site-header { background: var(--blue); color: var(--white); position: relative; z-index: 20; }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); padding: 12px 0; }
.brand:hover { color: var(--white); }
.brand__flag { width: 44px; height: 22px; border-radius: 3px; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 28px; letter-spacing: 0.03em; line-height: 1; white-space: nowrap; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1 1 420px; font-weight: 500; }
@media (max-width: 1200px) and (min-width: 981px) { .nav { gap: 4px 14px; font-size: 15px; } .brand__name { font-size: 24px; } .brand__flag { width: 38px; height: 19px; } }
.nav a { color: var(--white); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.nav a:hover { color: var(--copper-light); border-bottom-color: rgba(217, 160, 102, 0.6); }
.nav a:focus-visible, .link-more:focus-visible, .tile:focus-visible, .card--link:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.nav a[aria-current="page"] { border-bottom-color: var(--copper); }
.nav .nav__quote { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 600; padding: 10px 0; white-space: nowrap; }
.header-phone:hover { color: var(--copper-light); }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.6); border-radius: var(--radius-sm); color: var(--white); cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,0.12); }
.nav-toggle.is-open { background: rgba(255,255,255,0.16); transform: rotate(90deg); }

.stripe { height: 6px; background: linear-gradient(90deg, var(--red) 0 33.34%, var(--white) 33.34% 66.67%, var(--blue) 66.67% 100%); }
.site-header .stripe { border-bottom: 1px solid rgba(255,255,255,0.35); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .header-actions { margin-left: auto; order: 2; }
  .header-actions .btn { display: none; }
  .nav { display: flex; flex-basis: 100%; flex-direction: column; gap: 0; padding: 0; order: 4; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease; }
  .nav.is-open { max-height: 640px; opacity: 1; padding: 8px 0 16px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 18px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--copper); }
  .nav .nav__quote { display: block; color: var(--copper-light); font-weight: 600; }
}
@media (max-width: 600px) {
  .header-inner { gap: 8px 12px; min-height: 64px; }
  .header-phone span { display: none; }
  .brand { gap: 8px; padding: 8px 0; }
  .brand__name { font-size: 21px; }
  .brand__flag { width: 36px; height: 18px; }
  .header-actions { gap: 4px; }
}

/* Hero ---------------------------------------------------------------------- */

.hero { background: var(--blue-dark); color: var(--white); position: relative; overflow: hidden; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.hero__text { flex: 1 1 480px; min-width: 0; padding: 72px 0 64px; display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-size: 72px; font-weight: 700; color: var(--white); line-height: 0.98; letter-spacing: -0.005em; }
.hero__sub { font-size: 20px; line-height: 1.45; color: var(--on-blue-muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__note { font-size: 15px; color: var(--muted-light); }
.hero__media { flex: 1 1 460px; min-width: 0; position: relative; min-height: 420px; align-self: stretch; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; }
.hero__fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue-dark) 0%, rgba(10,18,48,0) 35%); }
@media (max-width: 980px) { .hero__title { font-size: 56px; } .hero__media { min-height: 320px; } }
@media (max-width: 520px) { .hero__title { font-size: 42px; } .hero__text { padding: 48px 0 40px; } }

/* Page hero (inner pages) */
.page-hero { background: var(--blue); color: var(--white); padding: 56px 0; }
.page-hero .eyebrow { color: var(--copper-pale); }
.page-hero h1 { color: var(--white); font-size: 56px; font-weight: 700; }
.page-hero .lede { color: var(--on-blue-muted); }
@media (max-width: 600px) { .page-hero h1 { font-size: 40px; } }

/* Trust strip --------------------------------------------------------------- */

.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.trust__item { display: flex; align-items: center; gap: 12px; flex: 1 1 200px; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.trust__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--cloud); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.trust__flag { width: 36px; height: 18px; border-radius: 2px; flex: none; }

/* Product tiles ------------------------------------------------------------- */

.tile {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18, 24, 38, 0.1); }
.tile__media { position: relative; aspect-ratio: 4 / 3; background: var(--blue-dark); overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__badge {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--blue); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 4px;
}
.tile__badge img { width: 18px; height: 9px; border-radius: 1px; }
.tile__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.tile__title { font-size: 26px; font-weight: 600; line-height: 1.05; color: var(--ink); }
.tile__meta { font-size: 14px; color: var(--muted); }
.tile__price { margin-top: 6px; font-size: 18px; font-weight: 600; }
.tile__price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.tile__price--quote { color: var(--blue); font-size: 16px; }
.tile--cta { background: var(--blue); border-color: var(--blue); color: var(--white); padding: 24px; justify-content: space-between; min-height: 300px; }
.tile--cta:hover { color: var(--white); }
.tile--cta h3 { color: var(--white); font-size: 34px; font-weight: 700; }
.tile--cta p { color: var(--on-blue-muted); }
.tile--cta .tile__flag { width: 44px; height: 22px; border-radius: 3px; }
.tile--cta .link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 16px; }

/* Forms --------------------------------------------------------------------- */

.form { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .form__grid, .form__grid--2 { grid-template-columns: repeat(1, minmax(0, 1fr)); } .form__grid--dims { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form, .form--wide { padding: 20px; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1px solid var(--field); border-radius: var(--radius-sm);
  min-height: 44px; width: 100%; background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input, .field select, .field textarea { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted-light); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 33, 105, 0.18); }
.upload {
  display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; border: 1.5px dashed var(--field);
  border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; cursor: pointer; color: var(--muted); position: relative;
}
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload { transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease; }
.upload:hover, .upload:focus-within { border-color: var(--blue); color: var(--blue); background: rgba(1, 33, 105, 0.03); }
.upload--done { border-style: solid; border-color: var(--blue); color: var(--ink); background: var(--cloud); }
.upload--done svg { color: var(--blue); }
.upload--pulse { animation: pulse-border 0.6s ease; }
@keyframes pulse-border { 0% { box-shadow: 0 0 0 0 rgba(1, 33, 105, 0.35); } 100% { box-shadow: 0 0 0 10px rgba(1, 33, 105, 0); } }
.help { font-size: 12px; color: var(--muted); line-height: 1.4; }
.form .legend { font-size: 13px; color: var(--muted); line-height: 1.4; }
.form .legend strong { color: var(--ink); }

/* Industrial data sheet form */
.form--wide { padding: 32px; }
.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fieldset + .fieldset, .fieldset + .form__grid, .fieldset + .field { border-top: 1px solid var(--line); padding-top: 18px; }
.fieldset legend { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--blue); padding: 0; margin-bottom: 10px; }
.field .num { color: var(--copper); font-weight: 700; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { flex: 1 1 240px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--field); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.4; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.radio:hover { border-color: var(--blue); }
.radio:has(input:checked) { border-color: var(--blue); background: var(--cloud); }
.radio input { margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.radio strong { color: var(--ink); }
.diagram--industrial { max-width: 560px; margin: 0 auto; }

/* Folded-away data sheet on the compact form */
.disclose { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cloud); }
.disclose summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--blue); }
.disclose summary::-webkit-details-marker { display: none; }
.disclose summary small { font-weight: 400; color: var(--muted); }
.disclose summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform 0.15s ease; flex: none; }
.disclose[open] summary::after { transform: rotate(-135deg); }
.disclose summary:hover { color: var(--red); }
.disclose__body { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 14px; background: var(--white); border-top: 1px solid var(--line); overflow: hidden; }
.disclose { transition: border-color 0.2s ease, box-shadow 0.2s ease; scroll-margin-top: 24px; }
.disclose[open] { border-color: var(--blue); }
.disclose.is-flash { animation: flash-ring 1.2s ease; }
@keyframes flash-ring { 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.45); } 40% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0.18); } 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); } }
.disclose__body .fieldset:first-child { border-top: 0; padding-top: 12px; }
.form--compact .radio-row .radio { padding: 10px 12px; }

/* Diagram ------------------------------------------------------------------- */

.diagram { width: 100%; height: auto; display: block; }

/* Applications -------------------------------------------------------------- */

.apps { display: flex; flex-wrap: wrap; gap: 16px; }
.app {
  flex: 1 1 130px; min-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); padding: 20px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; font-size: 15px; text-align: center;
}
.app { transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.app:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(18, 24, 38, 0.08); }
.app svg { color: var(--blue); }

/* Bands --------------------------------------------------------------------- */

.band { position: relative; color: var(--white); background-size: cover; background-position: center; }
.band--flag { background-image: url('/img/flag-full.jpg'); background-position: center 40%; }
.band--copper { background-image: url('/img/macro-copper.jpg'); }
.band--pole { background-image: url('/img/flag-pole.jpg'); background-position: center; }
.band__overlay { position: absolute; inset: 0; background: rgba(1, 33, 105, 0.78); }
.band--copper .band__overlay { background: rgba(10, 18, 48, 0.82); }
.band .container { position: relative; padding-top: 88px; padding-bottom: 88px; }
.band h2, .band h1 { color: var(--white); }

.compare { display: flex; flex-wrap: wrap; gap: 24px; }
.compare__card { flex: 1 1 360px; min-width: 0; border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.35); }
.compare__card h3 { color: var(--white); font-size: 28px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.compare__card--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.compare__card--light h3 { color: var(--blue); }
.compare__card h3 img { width: 32px; height: 16px; border-radius: 2px; }
.list-x, .list-check { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; }
.list-x li, .list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-x svg, .list-check svg { flex: none; margin-top: 2px; }

/* Steps --------------------------------------------------------------------- */

.steps { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--copper); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.step h3 { color: var(--ink); font-size: 26px; font-weight: 600; line-height: 1.05; margin-bottom: 4px; }
.step p { color: var(--muted); }

.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.media-grid img { width: 100%; border-radius: 12px; object-fit: cover; }
.media-grid .wide { grid-column: 1 / 3; aspect-ratio: 16 / 9; }
.media-grid .square { aspect-ratio: 1 / 1; object-position: left center; }
.stat { background: var(--cloud); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.section--cloud .stat { background: var(--white); border: 1px solid var(--line); }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1; color: var(--blue); }
.stat p { font-size: 15px; color: var(--muted); }

/* Contact ------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-grid .span-2 { grid-column: 1 / 3; }
.contact-grid .btn { justify-content: flex-start; padding: 16px 18px; min-height: 56px; font-size: 16px; }
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid .span-2 { grid-column: auto; } }

.contact-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-card h3 { color: var(--blue); font-size: 24px; font-weight: 600; }
.contact-card a { font-weight: 600; text-decoration: none; font-size: 18px; overflow-wrap: anywhere; }

/* Cards --------------------------------------------------------------------- */

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; background: var(--white); }
.card h3 { color: var(--blue); font-size: 24px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card--link { text-decoration: none; color: var(--ink); transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.card--link:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18, 24, 38, 0.1); }
.card--link .more { font-weight: 600; color: var(--blue); margin-top: auto; display: inline-flex; align-items: center; gap: 6px; }
.card--link .more svg { transition: transform 0.2s ease; }
.card--link:hover .more svg { transform: translateX(4px); }
.offer__icon { transition: background-color 0.2s ease, color 0.2s ease; }

/* Diagram strip under the home quote form */
.diagram-band { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 28px 32px; }
.diagram-band__pic { flex: 1 1 440px; min-width: 0; }
.diagram-band__pic .diagram { max-width: 560px; margin: 0 auto; }
.diagram-band > .stack { flex: 1 1 320px; min-width: 0; }
.diagram-band h3 { font-size: 26px; }
.diagram-band p { font-size: 16px; color: var(--muted); line-height: 1.55; }
.diagram-band .legend { font-size: 13px; color: var(--muted); line-height: 1.5; }
.diagram-band .legend strong { color: var(--ink); }
@media (max-width: 520px) { .diagram-band { padding: 20px; } }
.card .list-check { font-size: 15px; }

/* "What we make" offers */
.offer { gap: 12px; padding: 28px; }
.offer h3 { font-size: 28px; }
.offer p { font-size: 16px; color: var(--muted); }
.offer__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: var(--cloud); color: var(--blue); flex: none; }
.offer__icon svg { width: 30px; height: 30px; }
.offer:hover .offer__icon { background: var(--blue); color: var(--white); }
.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats .stat { background: var(--cloud); min-height: 120px; padding: 18px 16px; }
.stats .stat__num { font-size: clamp(22px, 2.4vw, 30px); white-space: nowrap; letter-spacing: -0.01em; }
@media (max-width: 820px) { .offer h3 { font-size: 24px; } }

/* Breadcrumb & product page -------------------------------------------------- */

.breadcrumb { background: var(--cloud); border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 14px; padding-bottom: 14px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.product { padding: 40px 0 64px; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery__main { position: relative; border-radius: 12px; overflow: hidden; background: var(--cloud); aspect-ratio: 4 / 3; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease; }
.gallery__main img.is-swapping { opacity: 0; }
.gallery__badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--blue); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 4px; }
.gallery__badge img { width: 22px; height: 11px; border-radius: 1px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery__thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--cloud); aspect-ratio: 4 / 3; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery__thumbs button { transition: border-color 0.15s ease, transform 0.15s ease; }
.gallery__thumbs button:hover { border-color: var(--blue); transform: translateY(-2px); }
.gallery__thumbs button[aria-pressed="true"] { border: 2px solid var(--blue); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs svg { width: 88%; height: auto; }

.product__info { display: flex; flex-direction: column; gap: 20px; }
.product__info h1 { font-size: 52px; font-weight: 700; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--ink); }
.price-row .small { font-size: 16px; }
.price--quote { font-size: 34px; color: var(--blue); }
.info-box { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--cloud); border-radius: var(--radius); font-size: 15px; }
.info-box p { display: flex; align-items: flex-start; gap: 10px; }
.info-box svg, .info-box .pound { flex: none; color: var(--blue); margin-top: 2px; }
.info-box .pound { width: 18px; text-align: center; font-weight: 700; }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product__actions .btn { flex: 1 1 220px; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--white); }
.spec-table th, .spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; }
.spec-table th { font-weight: 600; color: var(--muted); width: 46%; }
.spec-table td { font-variant-numeric: tabular-nums; font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }

/* Prose (guides, legal, about) ---------------------------------------------- */

.prose { max-width: 760px; font-size: 17px; line-height: 1.6; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 36px; font-weight: 700; margin-top: 16px; }
.prose h3 { font-size: 26px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--copper); font-weight: 700; }
.prose figure { margin: 8px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose .callout { background: var(--cloud); border-left: 4px solid var(--copper); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }

/* Footer -------------------------------------------------------------------- */

.site-footer { background: var(--blue); color: var(--white); }
.site-footer .stripe { border-top: 1px solid rgba(255,255,255,0.35); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 56px; padding-bottom: 32px; }
.footer-col { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col--wide { flex: 2 1 300px; }
.footer-col h3 { color: var(--white); font-size: 20px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 4px; }
.footer-col a { color: var(--on-blue-muted); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-col a.strong { color: var(--white); font-weight: 600; }
.footer-col p { color: var(--on-blue-muted); line-height: 1.55; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: var(--on-blue-muted); }
.footer-bottom p { line-height: 1.6; }
.footer-bottom p:first-child { flex: 1 1 600px; max-width: 920px; }
.footer-bottom img { display: inline-block; vertical-align: -1px; width: 24px; height: 12px; border-radius: 1px; margin-right: 8px; }

/* WhatsApp floating button -------------------------------------------------- */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 16px 12px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(1, 33, 105, 0.35); min-height: 48px;
}
.wa-float:hover { background: var(--blue-hover); color: var(--white); }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 12px; } }

/* Placeholder highlighting (dev only; see site.json showPlaceholders) -------- */

mark.todo { background: #FFF3B0; color: #5C4A00; padding: 0 3px; border-radius: 3px; border: 1px dashed #D9B300; font-weight: 600; }
.dev-banner { background: #FFF3B0; color: #5C4A00; font-size: 13px; text-align: center; padding: 8px 16px; border-bottom: 1px solid #D9B300; }

/* Scroll reveal (only when JS runs; see main.js) ------------------------------- */

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* Thank-you tick */
.tick-circle { width: 72px; height: 72px; }
.tick-circle circle { stroke: var(--blue); stroke-width: 2.5; fill: none; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 0.7s ease forwards; }
.tick-circle path { stroke: var(--red); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.45s ease 0.55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

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

/* Print ---------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .wa-float, .dev-banner { display: none; }
  body { color: #000; }
}

/* FAQ (details/summary) */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq .h2 { margin-bottom: 8px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); transition: border-color 0.15s ease; }
.faq__item[open] { border-color: var(--blue); }
.faq__item summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; color: var(--ink); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s ease; }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item summary:hover { color: var(--blue); }
.faq__a { padding: 0 16px 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card .faq__item summary { padding: 12px 40px 12px 14px; font-size: 15px; }

/* Side view + end view of a commutator, side by side */
.diagram-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: center; }
.diagram-pair .diagram--slots { max-width: 200px; justify-self: center; }
@media (max-width: 520px) { .diagram-pair { grid-template-columns: 1fr; } }
