/* =================================================================
   BES ELECTRIC - Consumer Unit
   Design language anchored in the modular consumer unit / DIN-rail
   board: breaker modules, toggle switches, busbar rails, circuit
   schedules, test-and-certify sequence.
   Light "enclosure" theme, dark "energised" base (CTA + footer).
   Single accent: live amber. Green used only for genuine live status.
   ================================================================= */

/* ---------- Fonts (self-hosted, same files Google Fonts serves) ---------- */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/archivo-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/archivo-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/archivo-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/archivo-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Enclosure neutrals */
  --bg:        #f1f4f8;
  --surface:   #ffffff;
  --surface-2: #e8edf3;   /* recessed rail / panel */
  --surface-3: #dae2ec;

  /* Ink (navy-tinted) */
  --ink:   #0f1c2b;
  --ink-2: #4c5a6b;
  --ink-3: #5d6979;

  /* Steel lines / busbar */
  --line:   #d4dde7;
  --line-2: #bfcbd9;

  /* Brand navy (dark base, primary buttons) - the logo ground */
  --brand:    #091625;
  --brand-2:  #11233a;
  --brand-3:  #1d3552;
  --on-brand: #eaf2fb;
  --on-brand-2: #9fb4ca;

  /* Primary accent: brand amber - the BES letters + bulb glass */
  --live:        #fdaf1a;
  --live-strong: #e89a06;
  --live-soft:   #fdedc4;
  --live-ink:    #8a5a07;   /* amber-family text that passes AA on light */

  /* Secondary accent: electric blue - the bulb ring + energy arcs */
  --blue:      #31adf8;
  --blue-ink:  #071525;   /* blue text/links that pass AA on light */
  --blue-soft: #dcefff;

  /* Genuine semantic live status only */
  --ok: #2ea96a;

  /* Trustpilot brand (third-party review provenance) */
  --trustpilot: #00b67a;
  --trustpilot-ink: #00875a;

  /* Google brand (third-party review provenance) */
  --google:      #4285f4;   /* Google blue */
  --google-ink:  #1a73e8;   /* link/value blue that passes AA on light */
  --google-star: #fbbc04;   /* Google review gold */

  /* On-dark surfaces (footer, CTA band, powered-down breaker cards) */
  --brand-0: #050f1c;
  --on-dark-line: #294364;
  --on-dark-line-strong: #395775;
  --on-brand-3: #8499b1;
  --danger: #a5281b;

  /* Radii (soft system, locked) */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px;

  /* Shadows (tinted to slate, never pure black) */
  --sh-1: 0 1px 2px rgba(9,22,37,.06), 0 1px 1px rgba(9,22,37,.04);
  --sh-2: 0 6px 18px rgba(9,22,37,.07), 0 2px 6px rgba(9,22,37,.05);
  --sh-3: 0 20px 50px rgba(9,22,37,.12), 0 6px 16px rgba(9,22,37,.07);

  --ease: cubic-bezier(.16,1,.3,1);
  --container: 1200px;

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
/* Safety net: any inline icon without an explicit width attribute or size rule
   stays small instead of expanding to fill its container. Context rules (defined
   later, e.g. .icon-wrap .icon) override this on equal/higher specificity. */
.icon:not([width]) { width: 18px; height: 18px; flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--live); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em; text-wrap: balance;
  color: var(--ink);
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.visually-hidden {
  position: absolute; 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: 16px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Reusable type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--live); border-radius: 2px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }

.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head p { margin-top: var(--sp-4); font-size: 1.06rem; color: var(--ink-2); }
.section-head--center { margin-inline: auto; text-align: center; }

.amber { color: var(--live); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 15px 24px; border-radius: var(--r-pill);
  white-space: nowrap; border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.btn .icon { flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--accent { background: var(--live); color: #2a1c05; box-shadow: var(--sh-1); }
.btn--accent:hover { background: var(--live-strong); transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn--solid { background: var(--brand); color: var(--on-brand); }
.btn--solid:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); background: var(--surface); transform: translateY(-2px); }

.btn--onbrand { background: var(--live); color: #2a1c05; }
.btn--onbrand:hover { background: var(--live-strong); transform: translateY(-2px); }
.btn--onbrand-ghost { background: transparent; color: var(--on-brand); border-color: rgba(255,255,255,.28); }
.btn--onbrand-ghost:hover { border-color: var(--live); background: rgba(255,255,255,.06); }

.btn--compact { padding: 11px 17px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Loading state (form submit spinner) ---------- */
.btn:disabled { cursor: default; }
.btn.is-loading { pointer-events: none; opacity: .95; }
.btn.is-loading:hover { transform: none; box-shadow: var(--sh-1); }
.btn__spinner {
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn__spinner { animation: none; border-top-color: currentColor; opacity: .45; }
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--brand); color: var(--on-brand-2);
  font-size: .85rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; padding-block: 6px; }
.topbar__live { display: inline-flex; align-items: center; gap: 9px; color: var(--on-brand); font-weight: 500; }
.topbar__links { display: inline-flex; align-items: center; gap: 22px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s var(--ease); }
.topbar__links a:hover { color: var(--live); }
.topbar__links .icon { color: var(--live); }
.dot-live {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(46,169,106,.55); position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .dot-live { animation: pulse 2.4s var(--ease) infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,169,106,.5); }
  70% { box-shadow: 0 0 0 8px rgba(46,169,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,169,106,0); }
}
@media (max-width: 600px) {
  .topbar__inner { flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
  .topbar__live span.hide-sm { display: none; }
  .topbar__links { gap: 16px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }

/* Brand / logo */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; color: var(--live); line-height: 1; }
.brand__name em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.brand__name .tld { color: var(--live); }

.header__nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-block; padding: 11px 14px; border-radius: var(--r-sm);
  font-weight: 500; font-size: .96rem; color: var(--ink-2);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header__actions { display: flex; align-items: center; gap: 12px; }

.hamburger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); flex-direction: column; align-items: center; justify-content: center; }
.hamburger__bar { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.hamburger__bar + .hamburger__bar { margin-top: 5px; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(9,22,37,.5); z-index: 110; opacity: 0; transition: opacity .25s var(--ease); }
.drawer-backdrop.is-open { opacity: 1; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; z-index: 120; height: 100dvh; width: min(86vw, 360px);
  background: var(--surface); box-shadow: var(--sh-3);
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; padding: 20px;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-close { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--ink-2); }
.drawer-close:hover { background: var(--surface-2); color: var(--ink); }
.mobile-drawer__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.mobile-drawer__link { padding: 13px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--surface-2); }
.mobile-drawer__link:hover { background: var(--surface-2); }
.mobile-drawer__cta { margin-top: 20px; }
.mobile-drawer__meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.mobile-drawer__meta a { color: var(--ink); font-weight: 500; }

@media (max-width: 940px) {
  .header__nav, .header__actions .header__cta { display: none; }
  .hamburger { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__content { max-width: 36rem; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-top: 20px; }
.hero h1 .accent { color: var(--live); }
.hero__lead { margin-top: 22px; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__media { position: relative; }

/* Panel frame: the photo presented like a board behind a steel frame */
.panel {
  position: relative; border-radius: var(--r-lg);
  background: var(--surface); padding: 12px;
  border: 1px solid var(--line); box-shadow: var(--sh-3);
}
.panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(9,22,37,.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.panel__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); aspect-ratio: 4 / 5; }
.panel--logo { background: var(--brand); border-color: var(--brand-3); }
.panel--logo::before { background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,0)); }
.panel--logo .panel__img { aspect-ratio: 1; object-fit: contain; background: var(--brand); }
.panel__rail {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 0 0 var(--r-md) var(--r-md);
  background: linear-gradient(to top, rgba(9,22,37,.86), rgba(9,22,37,0));
  color: #fff;
}
.panel__tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.panel__rating { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-weight: 600; font-size: .9rem; }
.panel__rating .stars { color: var(--live); letter-spacing: 1px; }

/* Floating spec chip beside the hero panel */
.spec-chip {
  position: absolute; top: 26px; left: -18px; z-index: 2;
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 11px 15px; box-shadow: var(--sh-2);
}
.spec-chip__n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.spec-chip__t { font-size: .8rem; color: var(--ink-2); line-height: 1.2; }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .spec-chip { left: auto; right: 12px; }
}

/* ---------- Accreditation strip (under hero) ---------- */
.creds {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.creds__inner { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); flex-wrap: wrap; justify-content: center; padding-block: 22px; }
.creds__label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.seal { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: .96rem; }
.seal svg { width: 30px; height: 30px; flex: none; color: var(--ink-2); }

/* ---------- Stats / proof row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--surface); padding: clamp(20px, 3vw, 30px); }
.stat__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--ink); line-height: 1; }
.stat__n span { color: var(--live); }
.stat__t { margin-top: 9px; color: var(--ink-2); font-size: .96rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Services: consumer-unit rail of breaker modules ---------- */
.rail { position: relative; }
.rail__bar { /* the DIN rail line behind the modules */
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(9,22,37,.04) 38px 39px);
  pointer-events: none; border-radius: var(--r-md);
}
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.module::before { /* top busbar notch */
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 4px;
  background: var(--surface-3); border-radius: 0 0 4px 4px;
}
.module:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.module__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.module__ref { display: block; margin-bottom: 5px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* Toggle switch motif (rocker in ON position = service engaged) */
.toggle {
  width: 30px; height: 46px; border-radius: 7px; flex: none; padding: 0;
  background: var(--surface-2); border: 1px solid var(--line-2);
  position: relative; box-shadow: inset 0 1px 2px rgba(9,22,37,.08);
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background .3s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.toggle:hover { border-color: var(--ink-3); }
.toggle:active { transform: scale(.95); }

/* Breaker switched off: the whole module "powers down" to dark */
.module.is-off { background: var(--brand); border-color: var(--brand-3); }
.module.is-off::before { background: rgba(255,255,255,.07); }
.module.is-off h3 { color: #fff; }
.module.is-off p { color: var(--on-brand-2); }
.module.is-off .module__ref { color: var(--on-brand-3); }
.module.is-off .icon-wrap { background: rgba(255,255,255,.07); color: var(--on-brand); }
.module.is-off .module__link { color: var(--live); }
.module.is-off .toggle { background: var(--brand-0); border-color: var(--on-dark-line); }
.module.is-off .toggle:hover { border-color: var(--on-dark-line-strong); }
.module.is-off .toggle__io { color: var(--on-brand-3); }
.module.is-off .toggle__rocker { transform: translateY(20px); background: var(--surface-3); }
.toggle__rocker {
  position: absolute; left: 4px; right: 4px; height: 18px; border-radius: 4px;
  background: var(--live); top: 4px; box-shadow: 0 2px 3px rgba(9,22,37,.18);
  transition: transform .4s var(--ease), background .3s var(--ease);
}
.toggle__io { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-family: var(--font-mono); font-size: .6rem; color: var(--ink-3); }
.module .icon-wrap { width: 46px; height: 46px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink); }
.module .icon-wrap .icon { width: 24px; height: 24px; }
.module h3 { font-size: 1.22rem; }
.module p { margin-top: 10px; color: var(--ink-2); font-size: .98rem; flex: 1; }
.module__link { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .93rem; color: var(--live); }
.module__link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.module:hover .module__link .icon { transform: translateX(4px); }

@media (max-width: 900px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } .rail__bar { display: none; } }

/* ---------- Split section (about / feature) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--media-right .split__media { order: 2; }
.split__media .panel__img { aspect-ratio: 5 / 4; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--media-right .split__media { order: -1; } }

/* ---------- Why choose: inspection schedule checklist ---------- */
.schedule { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.schedule__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.schedule__head span:first-child { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.schedule__head .pass { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; color: var(--ok); font-weight: 600; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; }
.check {
  display: flex; align-items: flex-start; gap: 13px; padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.check:nth-child(odd) { border-right: 1px solid var(--line); }
.check__tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(46,169,106,.12); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }
.check__tick .icon { width: 15px; height: 15px; }
.check h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.check p { font-size: .9rem; color: var(--ink-2); margin-top: 3px; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } .check:nth-child(odd) { border-right: none; } }

/* ---------- Process: test & certify sequence ---------- */
.sequence { --seq-gap: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--seq-gap); }
.step { position: relative; padding-top: 60px; }
.step::before { /* electric current running node-to-node */
  content: ""; position: absolute; top: 21px; left: 22px;
  width: calc(100% + var(--seq-gap)); height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 7px, transparent 7px 13px);
  opacity: .6;
}
.step:last-child::before { display: none; }
.step__node {
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--blue); color: var(--blue-ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px var(--blue-soft); z-index: 1;
}
.step__node .icon, .step__node svg { width: 20px; height: 20px; }
.step h3 { font-size: 1.16rem; margin-top: 6px; }
.step p { margin-top: 9px; color: var(--ink-2); font-size: .96rem; }
/* Tablet & down: put the node beside the text instead of stacked above it */
@media (max-width: 860px) {
  .sequence { grid-template-columns: 1fr 1fr; column-gap: 34px; row-gap: 30px; }
  .step { padding-top: 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 15px; align-items: start; }
  .step__node { position: static; }
  .step h3 { grid-column: 2; margin-top: 8px; }
  .step p { grid-column: 2; margin-top: 7px; }
  .step::before { display: none; }
}
/* Phone: single-column vertical timeline, current flows downward node-to-node */
@media (max-width: 560px) {
  .sequence { grid-template-columns: 1fr; gap: 0; }
  .step { padding-bottom: 32px; }
  .step:last-child { padding-bottom: 0; }
  .step::before {
    content: ""; display: block; position: absolute;
    top: 50px; left: 21px; width: 2px; height: calc(100% - 50px);
    background: repeating-linear-gradient(180deg, var(--blue) 0 7px, transparent 7px 13px);
    opacity: .55;
  }
  .step:last-child::before { display: none; }
}

/* ---------- Areas covered ---------- */
.areas { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
.areas__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.area-tag { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-weight: 500; font-size: .95rem; }
.area-tag .icon { width: 16px; height: 16px; color: var(--live); }
.areas__towns { font-size: .95rem; color: var(--ink-3); margin-top: 18px; }
@media (max-width: 820px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.review__stars { color: var(--trustpilot); letter-spacing: 2px; font-size: 1rem; }
.review blockquote { font-size: 1.03rem; color: var(--ink); line-height: 1.55; }
.review cite { font-style: normal; font-weight: 600; font-size: .95rem; color: var(--ink); }
.review cite span { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 880px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Google reviews (its own house style) ---------- */
/* Gold star row, rendered as crisp SVGs like Google's own widget */
.g-stars, .g-review__stars { display: inline-flex; gap: 2px; color: var(--google-star); }
.g-stars svg, .g-review__stars svg { width: 18px; height: 18px; flex: none; }
.g-stars .is-empty, .g-review__stars .is-empty { color: var(--line-2); }

/* Google summary bar */
.g-summary {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 18px; margin-bottom: clamp(28px, 4vw, 44px);
}
.g-summary .g-mark { width: 34px; height: 34px; flex: none; }
.g-summary__body { display: flex; flex-direction: column; gap: 2px; }
.g-summary__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); line-height: 1; }
.g-summary__line { display: inline-flex; align-items: center; gap: 8px; }
.g-summary__line strong { font-size: 1.15rem; color: var(--google-ink); }
.g-summary__count { color: var(--ink-2); font-size: .95rem; }
.g-summary__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--google-ink); }
.g-summary__link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.g-summary__link:hover .icon { transform: translateX(3px); }

/* Google review card: coloured initial avatar + author meta + G watermark */
.g-review {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.g-review__g { position: absolute; top: 20px; right: 20px; line-height: 0; }
.g-review__g .g-mark { width: 20px; height: 20px; opacity: .9; }
.g-review__head { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.g-review__avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1;
}
.g-review__who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.g-review__name { font-style: normal; font-weight: 600; font-size: .98rem; color: var(--ink); }
.g-review__meta { font-size: .82rem; color: var(--ink-3); }
.g-review blockquote { font-size: 1.03rem; color: var(--ink); line-height: 1.55; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid--home { grid-template-columns: repeat(6, 1fr); }
.gal {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  aspect-ratio: 1; cursor: zoom-in;
}
.gal picture { position: absolute; inset: 0; display: block; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gal:hover img { transform: scale(1.06); }
.gal--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gal--tall { grid-row: span 2; aspect-ratio: 1 / 2; }
@media (max-width: 900px) { .gallery-grid, .gallery-grid--home { grid-template-columns: repeat(3, 1fr); } .gal--tall { grid-row: span 1; aspect-ratio: 1; } }
@media (max-width: 560px) { .gallery-grid, .gallery-grid--home { grid-template-columns: repeat(2, 1fr); } .gal--wide { grid-column: span 2; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(9,22,37,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 88vh; border-radius: var(--r-sm); box-shadow: var(--sh-3); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background .2s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }
@media (max-width: 600px) { .lightbox__nav { width: 42px; height: 42px; } .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--ink-3); font-family: var(--font-mono); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-current] { color: var(--live); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 18ch; }
.page-hero p { margin-top: 18px; font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- Prose (about / service / legal body) ---------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 42px; }
.prose h3 { font-size: 1.25rem; margin-top: 30px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.04rem; }
.ticks { display: grid; gap: 12px; margin-top: 8px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.ticks .icon { flex: none; width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.prose a.inline { color: var(--live); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Service feature list */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.feature-list li { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 500; }
.feature-list .icon { flex: none; width: 20px; height: 20px; color: var(--live); }
@media (max-width: 620px) { .feature-list { grid-template-columns: 1fr; } }

/* Related services chips */
.related { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.related a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-weight: 500; font-size: .94rem; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.related a:hover { border-color: var(--brand); transform: translateY(-2px); }
.related .icon { width: 16px; height: 16px; flex: none; color: var(--live); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 52px); align-items: stretch; }
/* Left column is a flex stack; the map grows to fill the remaining space so both columns are the same height with no empty gap. */
.contact-grid > div { display: flex; flex-direction: column; }
.contact-grid > div .map { flex: 1 1 auto; }
.contact-list { display: grid; gap: 6px; }
.contact-list li { display: flex; align-items: flex-start; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list__chip { flex: none; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.contact-list__chip .icon { width: 21px; height: 21px; }
.contact-list__label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contact-list__value { font-weight: 600; font-size: 1.05rem; }
.contact-list a.contact-list__value:hover { color: var(--live); }
.contact-list__wa { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; color: var(--ok); font-weight: 600; font-size: .92rem; }

.hours { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.hours__head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.hours__head h3 { font-size: 1rem; font-family: var(--font-body); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(46,169,106,.12); color: #197a4b; }
.status-pill .dot-live { width: 8px; height: 8px; }
.status-pill.is-closed { background: var(--surface-3); color: var(--ink-2); }
.status-pill.is-closed .dot-live { background: var(--ink-3); animation: none; box-shadow: none; }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 13px 18px; font-size: .96rem; }
.hours th { font-weight: 500; color: var(--ink-2); }
.hours td { text-align: right; font-weight: 600; font-family: var(--font-mono); font-size: .9rem; }
.hours tr + tr { border-top: 1px solid var(--line); }
.hours .closed { color: var(--ink-3); }
.hours__note { padding: 12px 18px; background: var(--brand); color: var(--on-brand); font-size: .9rem; display: flex; align-items: center; gap: 9px; }
.hours__note .icon { width: 18px; height: 18px; flex: none; color: var(--live); }

/* Form */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--sh-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.field:first-child { margin-top: 0; }
.form__row .field { margin-top: 0; }
.field label { font-weight: 600; font-size: .9rem; }
.field label .req { color: var(--live); }
.field input, .field textarea {
  padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--live); box-shadow: 0 0 0 4px var(--live-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.field--error input, .field--error textarea { border-color: #c0392b; }
.field__err { color: #c0392b; font-size: .84rem; min-height: 1em; }
.form__consent { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; font-size: .9rem; color: var(--ink-2); }
.form__consent input { width: 19px; height: 19px; margin-top: 3px; flex: none; accent-color: var(--live-strong); }
.form__submit { margin-top: 20px; }
.form__success { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(46,169,106,.1); color: #197a4b; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.form__success[hidden] { display: none; }
.form__error { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(165,40,27,.08); color: var(--danger); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.form__error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Trustpilot rating summary above the review cards */
.tp-summary { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: clamp(28px, 4vw, 44px); }
.tp-summary__brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.tp-summary__brand .tp-star { width: 22px; height: 22px; color: var(--trustpilot); }
.tp-summary__rating { font-weight: 600; color: var(--ink); }
.tp-summary__rating strong { color: var(--trustpilot-ink); }
.tp-summary__count { color: var(--ink-2); }
.tp-summary__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--live); }
.tp-summary__link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.tp-summary__link:hover .icon { transform: translateX(3px); }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }

/* Map */
.map { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; min-height: 240px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.02); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Dark CTA band (energised base) ---------- */
.cta-band { position: relative; background: var(--brand); color: var(--on-brand); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 120% at 85% 10%, rgba(253,175,26,.16), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.025) 46px 47px);
  pointer-events: none;
}
.cta-band__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta-band p { color: var(--on-brand-2); margin-top: 16px; font-size: 1.08rem; max-width: 44ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 13px; }
.cta-band__call { text-align: center; }
.cta-band__call .num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: #fff; }
.cta-band__call .lbl { font-size: .85rem; color: var(--on-brand-2); }
@media (max-width: 820px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-2); color: var(--on-brand-2); padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer__brand .brand__name { color: var(--live); }
.footer__brand .brand__name em { color: var(--on-brand-2); }
.footer__tagline { margin-top: 16px; font-size: .96rem; line-height: 1.6; max-width: 34ch; }
.footer__social { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--on-brand); font-weight: 500; }
.footer__social .icon { color: var(--live); }
.footer__social:hover { color: var(--live); }
.footer__heading { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer__list { display: grid; gap: 11px; font-size: .96rem; }
.footer__list a:hover, .footer__list .lnk:hover { color: var(--live); }
.footer__areas { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 26px; }
.footer__areas .footer__heading { margin-bottom: 14px; }
.footer__areas-list { display: flex; flex-wrap: wrap; gap: 11px 22px; font-size: .94rem; }
.footer__areas-list a { color: rgba(255,255,255,.72); }
.footer__areas-list a:hover { color: var(--live); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__seo { font-size: .82rem; color: rgba(255,255,255,.55); max-width: 70ch; line-height: 1.5; }
.footer__legal { display: flex; align-items: center; gap: 18px; font-size: .88rem; }
.footer__copy { font-size: .85rem; color: rgba(255,255,255,.5); }
.footer__copy a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer__copy a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- Service cards (services index) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.svc__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.svc__media picture { position: absolute; inset: 0; display: block; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.05); }
.svc__icon { position: absolute; left: 16px; bottom: -22px; z-index: 2; width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.svc__icon .icon { width: 26px; height: 26px; }
.svc__body { padding: 34px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { font-size: 1.35rem; }
.svc__body > p { margin-top: 10px; color: var(--ink-2); }
.svc__ticks { display: grid; gap: 9px; margin-top: 16px; margin-bottom: 20px; }
.svc__ticks li { display: flex; align-items: center; gap: 10px; font-size: .94rem; color: var(--ink); }
.svc__ticks .icon { flex: none; width: 17px; height: 17px; color: var(--live); }
.svc__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .96rem; color: var(--live); }
.svc__link .icon { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.svc:hover .svc__link .icon { transform: translateX(4px); }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
  /* Only hide when JS is present and ready; no-JS / failed-observer keeps content visible */
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); }
  [data-reveal].is-in { opacity: 1; transform: none; }
  [data-reveal][data-delay="1"] { transition-delay: .08s; }
  [data-reveal][data-delay="2"] { transition-delay: .16s; }
  [data-reveal][data-delay="3"] { transition-delay: .24s; }
  /* breaker toggles flick to ON when the rail reveals */
  .module:not(.is-off) .toggle__rocker { transform: translateY(20px); background: var(--surface-3); }
  .modules.is-in .module:not(.is-off) .toggle__rocker { transform: none; background: var(--live); }
  .modules.is-in .module:nth-child(2) .toggle__rocker { transition-delay: .1s; }
  .modules.is-in .module:nth-child(3) .toggle__rocker { transition-delay: .2s; }
  .modules.is-in .module:nth-child(4) .toggle__rocker { transition-delay: .3s; }
  .modules.is-in .module:nth-child(5) .toggle__rocker { transition-delay: .4s; }
  .modules.is-in .module:nth-child(6) .toggle__rocker { transition-delay: .5s; }
}

/* Hardening: honor reduced-motion globally as a safety net */
@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;
  }
}

/* ---------- Mobile floating call button (FAB) ---------- */
/* Hidden on desktop — the topbar already carries the number there. */
.fab-call { display: none; }

@media (max-width: 760px) {
  .fab-call {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 95;                 /* above content, below drawer (110+) & lightbox (150) */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 18px 0 16px;
    border-radius: var(--r-pill);
    background: var(--live);
    color: var(--brand);
    box-shadow: 0 8px 22px rgba(9,22,37,.28), 0 2px 6px rgba(9,22,37,.18);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  }
  .fab-call:active { transform: scale(.95); background: var(--live-strong); }
  .fab-call__icon { flex: none; }
  .fab-call__label { white-space: nowrap; }

  /* Pulsing ring to draw the eye, anchored to the round icon side. */
  .fab-call__ring {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(253,175,26,.55);
    pointer-events: none;
  }
}

/* On very small screens drop the label to a compact round icon button. */
@media (max-width: 380px) {
  .fab-call { width: 56px; padding: 0; justify-content: center; }
  .fab-call__label { display: none; }
  .fab-call__ring { left: 50%; transform: translate(-50%, -50%); }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .fab-call__ring { animation: fab-pulse 2.4s var(--ease) infinite; }
  @keyframes fab-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(253,175,26,.55); }
    70%  { box-shadow: 0 0 0 16px rgba(253,175,26,0); }
    100% { box-shadow: 0 0 0 0 rgba(253,175,26,0); }
  }
}

/* ============================================================
   Loxone partner  (smart-home page + service cards)
   Stays in the site palette (light surface + amber accent);
   Loxone green appears only inside the brand mark image.
   ============================================================ */
.partner__card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 52px);
  box-shadow: var(--sh-2);
}
.partner__lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 20px;
}
.partner__mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: var(--sh-1);
  flex: none;
}
.partner__word {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.partner__word strong { color: var(--ink); font-weight: 800; }
.partner__feats {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}
.partner__feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}
.partner__feats .icon { width: 20px; height: 20px; color: var(--live); flex: none; }

.partner__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: radial-gradient(120% 100% at 50% 30%, var(--surface) 0%, var(--surface-2) 72%);
  overflow: hidden;
}
/* faint "networked / intelligent" node grid */
.partner__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 28%, transparent 76%);
  mask-image: radial-gradient(70% 70% at 50% 45%, #000 28%, transparent 76%);
}
/* soft amber halo behind the product */
.partner__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--live-soft) 0%, transparent 68%);
  opacity: 0.7;
}
.partner__stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(21, 32, 44, 0.18));
}

/* Small "Loxone Partner" chip used on service cards */
.loxone-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  gap: 7px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 11px 5px 6px;
  margin-bottom: 12px;
}
.loxone-chip img { width: 18px; height: 18px; border-radius: 5px; flex: none; }

@media (max-width: 820px) {
  .partner__card { grid-template-columns: 1fr; }
  .partner__media { order: -1; }
  .partner__feats { grid-template-columns: 1fr; }
}
