/* ==========================================================================
   Core Coatings — site.css
   Rules: white page. One accent (--blue). Dark only in photo bands + footer.
   No hard-coded colours outside :root. Bump ?v= on every change.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, latin subset, OFL — see assets/fonts/OFL.txt) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2?v=20261111") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2?v=20261111") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2?v=20261111") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2?v=20261111") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2?v=20261111") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2?v=20261111") format("woff2"); }

/* ---------- 2. Tokens */
:root {
  /* Colour — exactly the spec table */
  --paper: #FFFFFF;
  --paper-2: #F5F7F9;
  --line: #E3E7EB;
  --ink: #0B0E12;
  --muted: #5B6570;
  --navy: #073763;
  --blue: #0B5394;
  --blue-3: #6FA8DC;
  --blue-4: #9FC5E8;
  --blue-5: #CFE2F3;
  --night: #0A0C0F;

  /* Derived (dark surfaces only) */
  --on-dark: #FFFFFF;
  --on-dark-muted: #B4BDC7;
  --on-dark-line: rgba(255, 255, 255, 0.16);
  --wordmark-ghost: #1A2028;
  --blue-hover: #094679;
  --error: #A4161A;

  /* Type */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Space scale: 4, 8, 12, 16, 24, 32, 48, 72, 128 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 128px;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: var(--s-9);
  --header-h: 64px;
  --callbar-h: 56px;
  --radius: 4px;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --lift: 0 14px 30px -12px rgba(11, 14, 18, 0.22);
}

/* ---------- 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
h1, h2, h3, h4 { margin: 0; color: inherit; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue-5); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .band :focus-visible { outline-color: var(--blue-4); }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--blue); color: var(--paper); padding: var(--s-3) var(--s-4);
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: var(--paper); }
.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;
}

/* Icons (Lucide inline SVG) */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* ---------- 4. Layout */
.container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); }
.section__head > div { max-width: 640px; }
.section__intro { color: var(--muted); margin-top: var(--s-4); max-width: 560px; }

/* ---------- 5. Type */
.h-hero { font-size: clamp(40px, 4.4vw + 8px, 64px); line-height: 0.98; letter-spacing: -0.035em; }
/* :where() keeps this at the old ".section h2" weight (0,1,1), so page CSS like ".tool-card h2" still wins, while .group-label keeps its own size */
.h-section, .section h2:where(:not(.group-label)) { font-size: 44px; line-height: 1.05; letter-spacing: -0.025em; }
.h-title { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--muted); }
.small, small { font-size: 14px; }
.muted { color: var(--muted); }
.label {
  font: 500 13px/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted);
}
.tnum, .tel-link, .data-table td, .data-table th { font-variant-numeric: tabular-nums; }

.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: 16px; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- 6. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 48px; padding: 0 var(--s-5);
  font: 600 16px/1 var(--sans); white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: var(--paper); }
.btn--primary:hover { background: var(--blue-hover); color: var(--paper); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--on-dark { background: var(--paper); color: var(--ink); }
.btn--on-dark:hover { background: var(--paper-2); color: var(--ink); }
.btn--outline-dark { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.5); }
.btn--outline-dark:hover { border-color: var(--on-dark); color: var(--on-dark); background: rgba(255,255,255,.06); }
.btn--lg { min-height: 56px; padding: 0 var(--s-6); font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 7. Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 1px 12px rgba(11, 14, 18, 0.06); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }
.site-header__brand { display: flex; align-items: center; flex: none; }
.site-header__logo { height: 28px; width: auto; }
.site-nav { display: flex; gap: var(--s-6); }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding: var(--s-2) 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.site-header__tel {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; padding: var(--s-2);
  font-variant-numeric: tabular-nums;
}
.site-header__tel:hover { color: var(--blue); }
/* Trade line: small label above the number (desktop and tablet); hours ride in the title + aria-label */
.site-header__tel-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-header__tel-label { font: 500 13px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-header__tel-num { font-size: 15px; font-weight: 600; }
.site-header__cta { min-height: 40px; padding: 0 var(--s-4); font-size: 15px; }
.icon-btn {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink);
  border-radius: var(--radius); cursor: pointer; text-decoration: none;
}
.icon-btn .icon { width: 24px; height: 24px; }
.icon-btn:hover { color: var(--blue); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49;
  background: var(--paper); border-top: 1px solid var(--line);
  padding: var(--s-5) var(--gutter) calc(var(--s-7) + var(--callbar-h));
  overflow-y: auto;
}
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 20px; font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-menu__actions { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
body.menu-open { overflow: hidden; }

/* ---------- 8. Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; flex-direction: column;
  background: var(--navy); color: var(--on-dark);
}
.hero__media, .band__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .band__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { object-position: 60% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,55,99,.62) 0%, rgba(7,55,99,.66) 55%, rgba(7,55,99,.9) 100%);
}
.hero__body { margin: auto; padding: var(--s-8) var(--gutter) var(--s-7); max-width: 940px; text-align: center; }
.hero__body h1 { font-size: clamp(40px, 4.4vw + 8px, 64px); line-height: 0.98; letter-spacing: -0.035em; }
.hero__sub { font-size: 20px; color: rgba(255,255,255,.88); max-width: 600px; margin: var(--s-5) auto 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }

/* Fact strip — sits on the photo's bottom edge */
.facts { border-top: 1px solid var(--on-dark-line); background: rgba(10, 12, 15, 0.22); }
.facts ul {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5);
  padding-block: var(--s-5);
}
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-weight: 600; font-size: 16px; }
.facts span { font-size: 14px; color: var(--on-dark-muted); }

/* One motion moment: hero text rises in */
@media (prefers-reduced-motion: no-preference) {
  .hero__body > * { animation: rise .9s var(--ease) both; }
  .hero__body > :nth-child(2) { animation-delay: .08s; }
  .hero__body > :nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- 9. Product tiles */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.tile {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--paper-2); color: var(--ink); text-decoration: none;
  padding: var(--s-5) var(--s-5) var(--s-5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
a.tile:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--lift); }
.tile__media { aspect-ratio: 4 / 3; display: grid; place-items: center; margin: var(--s-4) 0 var(--s-5); }
.tile__media img { width: 86%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s var(--ease); } /* kit renders have a white ground: multiply drops it onto --paper-2 */
a.tile:hover .tile__media img { transform: scale(1.03); }
.tile__media--empty svg { width: 52px; height: auto; opacity: .12; } /* neutral placeholder until a real kit image exists */
.tile__coat { font: 500 13px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }
.tile__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-top: 2px; }
.tile .label { margin-top: 4px; font: 400 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.tile__plus {
  position: absolute; top: var(--s-3); right: var(--s-3);
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tile__plus .icon { width: 14px; height: 14px; }
a.tile:hover .tile__plus { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.tiles__more { margin-top: var(--s-6); }

/* Group label (Range page: a coat group above a .tiles grid) */
.group-label { display: flex; align-items: baseline; gap: var(--s-3); padding-bottom: var(--s-3); margin: var(--s-7) 0 var(--s-4); border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; flex-wrap: wrap; }
.group-label:first-child { margin-top: 0; }

/* ---------- 10. Promise list */
.promises { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--s-7); }
.promises li { border-top: 1px solid var(--line); padding: var(--s-5) 0 var(--s-6); }
.promises strong { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: var(--s-2); }
.promises p { color: var(--muted); max-width: 34ch; }

/* ---------- 11. Photo band */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(72vh, 640px); display: flex; align-items: flex-end;
  background: var(--navy); color: var(--on-dark);
}
.band__media img { object-position: 50% 45%; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,55,99,.92) 0%, rgba(7,55,99,.74) 45%, rgba(7,55,99,.12) 100%);
}
.band__body { padding-block: var(--s-8); }
.band__statement { max-width: 640px; font-size: 40px; font-weight: 600; line-height: 1.14; letter-spacing: -0.025em; text-wrap: balance; }
.band .link-arrow { color: var(--on-dark); margin-top: var(--s-5); }
.band .link-arrow:hover { color: var(--blue-4); }

/* ---------- 12. Call band (final CTA, on white) */
.callband { text-align: center; }
.callband h2 { font-size: 64px; letter-spacing: -0.035em; line-height: 1.02; }
.callband p { color: var(--muted); max-width: 520px; margin: var(--s-4) auto var(--s-6); }
.callband .btn-row { justify-content: center; }

/* ---------- 13. Forms */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); align-content: start; }
.field__label { font-size: 15px; font-weight: 600; }
.field__label .opt { font-weight: 400; color: var(--muted); }
.field__hint { font-size: 14px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 var(--s-4);
  background: var(--paper); border: 1px solid #C9D0D7; border-radius: var(--radius);
  font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; padding: var(--s-3) var(--s-4); resize: vertical; line-height: 1.5; }
/* Focus and error jumps land with the label clear of the pinned header, and the field clear of the phone call bar */
.input, .select, .textarea { scroll-margin: calc(var(--header-h) + 44px) 0 calc(var(--callbar-h) + 32px); }
/* The send button sits at its own width on wider screens; a full-width bar across a wide form reads as a banner */
@media (min-width: 640px) {
  .form > .btn[type="submit"]:not(.btn--block) { justify-self: start; min-width: 220px; }
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6570' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.input::placeholder, .textarea::placeholder { color: #6B7580; } /* 4.8:1 on white; was #8A939D at 3.1:1 */
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-5); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field__error { font-size: 14px; color: var(--error); font-weight: 500; }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Chips (single or multi choice; real radios/checkboxes underneath) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); border: 0; padding: 0; margin: 0; }
.chips legend { padding: 0; margin-bottom: var(--s-2); font-size: 15px; font-weight: 600; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4);
  border: 1px solid #C9D0D7; border-radius: 999px; font-size: 15px; background: var(--paper);
  transition: background-color .15s, border-color .15s;
}
.chip input:hover + span { border-color: var(--muted); }
.chip input:checked + span { background: var(--blue-5); border-color: var(--blue); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Form states — set by site.js on <form data-state="..."> */
.form__status { font-size: 15px; }
.form[data-state="failed"] .form__status {
  padding: var(--s-4); border: 1px solid var(--error); border-radius: var(--radius); color: var(--error); font-weight: 500;
}
.form__status a { color: inherit; font-weight: 600; }
.form-sent {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-5); border: 1px solid var(--blue-4); border-radius: var(--radius); background: var(--paper-2);
}
.form-sent .icon { color: var(--blue); width: 24px; height: 24px; margin-top: 2px; flex: none; }
.form-sent p { font-size: 17px; font-weight: 500; }
.form-sent:focus { outline: none; }
.form-sent:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.form-panel:has(> .form-sent) { padding: 0; border-color: transparent; }
.form-panel { border: 1px solid var(--line); padding: var(--s-6); background: var(--paper); }
/* Success box parts (site.js): what happens next, the trade number, one next step */
.form-sent__body { display: grid; gap: var(--s-2); min-width: 0; }
.form-sent .form-sent__more { font-size: 15px; font-weight: 400; color: var(--muted); }
.form-sent__more a { font-weight: 700; color: var(--ink); white-space: nowrap; }
.form-sent__next { justify-self: start; margin-top: var(--s-2); min-height: 44px; }

/* ---------- 14. Data tables, tabs, chips-as-filters */
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { text-align: left; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font: 500 13px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); width: 40%; }
.data-table thead th { border-bottom-color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin-bottom: var(--s-6); overflow-x: auto; }
.tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: var(--s-3) var(--s-4); font-size: 15px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }

/* ---------- 15. Hours & delivery block */
.hours { display: grid; gap: var(--s-3); }
.hours p { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 15px; }
.hours .icon { margin-top: 2px; }

/* ---------- 16. Case study block — HIDDEN until a real one exists */
.case-study { display: none; }
.case-study[data-live="true"] { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.case-study__facts { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0; }
.case-study__facts dt { font: 500 13px/1.6 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.case-study__facts dd { margin: 0; }
.case-study img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- 17. Article (Spec Library) */
.article { max-width: 70ch; margin: 0 auto; }
.article h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: var(--s-7) 0 var(--s-4); }
.article h3 { font-size: 20px; font-weight: 600; margin: var(--s-6) 0 var(--s-3); }
.article p, .article ul, .article ol { margin-bottom: var(--s-4); }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: var(--s-2); }
.article .data-table { margin: var(--s-5) 0; }
.talk-box { margin-top: var(--s-7); padding: var(--s-6); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.talk-box h2 { margin-top: 0; font-size: 24px; }

/* ---------- 18. Footer */
.site-footer {
  background: var(--night); color: var(--on-dark-muted);
  padding-top: var(--s-8); overflow: hidden; font-size: 15px;
}
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
.site-footer__logo { height: 32px; width: auto; margin-bottom: var(--s-5); }
.site-footer h2 { font-size: 14px; font-weight: 600; color: var(--on-dark); margin-bottom: var(--s-4); letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: var(--s-3); }
.site-footer address { display: grid; gap: var(--s-2); }
.site-footer__tel { color: var(--on-dark) !important; font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.site-footer .hours { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--on-dark-line); grid-template-columns: 1fr 1fr; color: var(--on-dark); }
.site-footer .hours .icon { color: var(--blue-4); }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--on-dark-line); font-size: 13px;
}
/* Footer wordmark removed 16 Nov 2026: the contact details carry the footer */
.site-footer__wordmark { display: none; }

/* ---------- 19. Tap-to-call bar, phones only */
.callbar { display: none; }

/* ---------- 20. Responsive */
@media (max-width: 1100px) {
  .site-nav { gap: var(--s-5); }
}
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .icon-btn { display: inline-flex; }
  .h-hero, .hero__body h1 { font-size: 52px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  :root { --section-y: var(--s-8); }
  body { font-size: 16px; }
  .h-hero, .hero__body h1 { font-size: 40px; }
  .h-section, .section h2:where(:not(.group-label)) { font-size: 30px; }
  .group-label { font-size: 18px; }
  .callband h2 { font-size: 40px; }
  .h-title, .tile__name { font-size: 16px; }
  .hero { min-height: auto; }
  .hero__body { padding: var(--s-8) var(--gutter) var(--s-7); }
  .hero__sub { font-size: 17px; }
  .facts ul { grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { padding: var(--s-4); }
  .tile__media { margin: var(--s-5) 0 var(--s-3); }
  .promises { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: var(--s-6); }
  .band { min-height: 480px; }
  .band::after { background: linear-gradient(90deg, rgba(7,55,99,.92) 0%, rgba(7,55,99,.8) 70%, rgba(7,55,99,.55) 100%); }
  .band__statement { font-size: 28px; }
  .form__row { grid-template-columns: 1fr; }
  .form-panel { padding: var(--s-5); }
  .case-study[data-live="true"] { grid-template-columns: 1fr; }
  .site-footer .hours { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .site-header__logo { height: 24px; }
  .site-header__tel-text, .site-header__cta { display: none; }
  .site-header__actions { gap: 0; }
  .site-header__tel { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .site-header__tel .icon { width: 22px; height: 22px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }

  body { padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--navy);
    box-shadow: 0 -1px 0 rgba(0,0,0,.08);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: var(--s-2);
    height: var(--callbar-h); color: var(--paper); font-weight: 600; font-size: 16px; text-decoration: none;
    font-variant-numeric: tabular-nums;
  }
  .callbar a:hover { color: var(--paper); }
  .callbar__call { background: var(--navy); }
  .callbar__price { background: var(--blue); }
  .callbar :focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }
  /* While someone is typing, the keyboard is up: the call bar would sit on top of the field, so it steps aside */
  body:has(:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea):focus) .callbar { display: none; }
  body:has(:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea):focus) { padding-bottom: 0; }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* ---------- 21. Print (A4) */
/* ---------- Page title (every inner page's h1; Home's hero is the exception) */
.page-title { font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin: var(--s-3) 0 var(--s-5); }
.page-title:first-child { margin-top: 0; }
.page-head .page-title { max-width: 22ch; }
@media (max-width: 767px) {
  .page-title { font-size: 32px; }
}

@media print {
  @page { size: A4; margin: 18mm 16mm; }
  .site-header, .mobile-menu, .callbar, .site-footer, .skip-link, .no-print, .hero__actions, .btn { display: none !important; }
  body { padding: 0 !important; background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 12pt 0; }
  .hero, .band { min-height: 0; background: none; color: #000; }
  .hero::after, .band::after, .hero__media, .band__media { display: none; }
  .container { max-width: none; padding: 0; }
  .label, .data-table th { color: #000; }
  .data-table th, .data-table td { border-color: #999; }
  h1, h2, h3 { break-after: avoid; color: #000; }
  tr, .tile, .promises li { break-inside: avoid; }
  .article { max-width: none; }
  .page-title { font-size: 26pt; margin: 4pt 0 8pt; }
}

/* ---------- Buttons that look like buttons and light up green
   Every button and every "See all ..." arrow link has a visible fill or border, and turns
   green on hover or keyboard focus. Same green family as the live site's hover (#16a34a),
   one step darker so white text on it passes contrast at 16px. */
:root { --go: #15803d; --go-shadow: 0 10px 22px -10px rgba(21, 128, 61, .55); }

.btn { transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s; }
.btn--secondary { border: 1.5px solid var(--blue); color: var(--blue); background: var(--paper); }
.btn--outline-dark { border-width: 1.5px; border-color: rgba(255,255,255,.75); }

.btn:not([disabled]):not([aria-disabled="true"]):focus-visible {
  background: var(--go); border-color: var(--go); color: #fff;
  transform: translateY(-2px); box-shadow: var(--go-shadow);
}
/* Hover only where a real pointer can hover; on phones a tap would leave it stuck green */
@media (hover: hover) {
  .btn:not([disabled]):not([aria-disabled="true"]):hover {
    background: var(--go); border-color: var(--go); color: #fff;
    transform: translateY(-2px); box-shadow: var(--go-shadow);
  }
}
.btn:not([disabled]):active { transform: none; box-shadow: none; }

/* The arrow links ("See all products", "See every colour we match", "About us") are now real buttons */
.link-arrow {
  min-height: 48px; padding: 0 var(--s-5); gap: var(--s-3);
  border: 1.5px solid var(--blue); border-radius: var(--radius);
  background: var(--paper); color: var(--blue); line-height: 1.25; text-align: left;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.link-arrow:focus-visible, a.tool-card:focus-visible .link-arrow {
  background: var(--go); border-color: var(--go); color: #fff;
  transform: translateY(-2px); box-shadow: var(--go-shadow);
}
@media (hover: hover) {
  .link-arrow:hover, a.tool-card:hover .link-arrow {
    background: var(--go); border-color: var(--go); color: #fff;
    transform: translateY(-2px); box-shadow: var(--go-shadow);
  }
}
.band .link-arrow { background: transparent; border-color: rgba(255,255,255,.75); color: var(--on-dark); }
.band .link-arrow:focus-visible { background: var(--go); border-color: var(--go); color: #fff; }
@media (hover: hover) { .band .link-arrow:hover { background: var(--go); border-color: var(--go); color: #fff; } }
.tool-card .link-arrow { margin-top: auto; align-self: flex-start; }
.range__more .link-arrow { white-space: normal; padding-block: var(--s-3); }

@media (prefers-reduced-motion: reduce) {
  .btn, .link-arrow, a.tile, a.tile:hover, a.tile:hover .tile__media img { transform: none !important; }
}

/* ---------- Dropdowns in the site's own style
   Browsers that support styleable selects (Chrome and Edge 135+) draw the open list in our design;
   others keep their own list but the closed box still matches the inputs. */
@supports (appearance: base-select) {
  .select, .select::picker(select) { appearance: base-select; }
  .select { display: flex; align-items: center; }
  .select::picker-icon { display: none; } /* our chevron is the background image */
  .select::picker(select) {
    margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); box-shadow: 0 18px 36px -18px rgba(11, 14, 18, .35);
  }
  .select option {
    display: flex; align-items: center; gap: var(--s-2); padding: 10px var(--s-3); border-radius: 3px;
    font-size: 15px; line-height: 1.35; color: var(--ink); cursor: pointer;
  }
  .select option::checkmark { order: 2; margin-left: auto; color: var(--go, #15803d); }
  .select option:hover, .select option:focus-visible { background: var(--paper-2); outline: none; }
  .select option:checked { font-weight: 600; color: var(--navy); background: var(--blue-5); }
}

/* ---------- Photo field + "text a photo" link (24 Nov 2026) */
.photo-field__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-field__btn {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); justify-self: start;
  border: 1.5px dashed var(--blue); border-radius: var(--radius); background: var(--paper); color: var(--blue);
  font-weight: 600; font-size: 15.5px; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s;
}
.photo-field__btn .icon { width: 20px; height: 20px; }
.photo-field__btn:hover, .photo-field__input:focus-visible + .photo-field__btn { background: var(--go, #15803d); border-color: var(--go, #15803d); border-style: solid; color: #fff; }
.photo-field__input:focus-visible + .photo-field__btn { outline: 2px solid var(--blue); outline-offset: 2px; }
.photo-field__preview { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); padding: var(--s-2); border: 1px solid var(--line); border-radius: var(--radius); }
.photo-field__preview[hidden] { display: none; }
.photo-field__preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; background: var(--paper-2); flex: none; }
.photo-field__name { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.photo-field__remove { flex: none; border: 0; background: none; padding: var(--s-2); color: var(--blue); font: 600 14px var(--sans); cursor: pointer; }
.photo-field__remove:hover { color: var(--go, #15803d); }
.photo-field.has-error .field__hint { color: var(--error); }

.text-photo {
  display: flex; align-items: flex-start; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-4);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
  color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.45;
  transition: border-color .18s, background-color .18s;
}
.text-photo__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; }
.text-photo__icon .icon { width: 18px; height: 18px; }
.text-photo__num { font-weight: 600; color: var(--blue); white-space: nowrap; }
.text-photo:hover { border-color: var(--go, #15803d); background: #F0F7F2; }
.text-photo:hover .text-photo__num { color: var(--go, #15803d); }
.text-photo__copy b { display: block; margin-bottom: 2px; font-size: 16px; color: var(--navy); }

/* ---------- Phone polish (25 Nov 2026)
   Product tiles become compact rows (image left, text right) so eight products take about half the scroll,
   and footer links get thumb-sized tap areas. */
@media (max-width: 639px) {
  .tiles { grid-template-columns: 1fr; gap: var(--s-2); }
  .tile {
    justify-content: center; min-height: 112px;
    padding: var(--s-3) var(--s-4) var(--s-3) calc(96px + var(--s-3) * 2);
  }
  .tile__media {
    position: absolute; left: var(--s-3); top: 0; bottom: 0; margin: auto 0; /* no transform: it would isolate the image and stop the white ground blending away */
    width: 96px; height: 80px; aspect-ratio: auto;
  }
  .tile__media img { width: 100%; }
  .tile__plus { display: none; }
  a.tile:hover { transform: none; }
  .site-footer ul { gap: 0; }
  .site-footer ul a, .site-footer address a { display: inline-block; padding: 9px 0; }
  .site-footer address { gap: 0; }
  .site-footer__grid > div:nth-child(2) ul { grid-template-columns: 1fr 1fr; column-gap: var(--s-4); } /* the eight products in two columns on phones */
}
