/* Spectrum Distributors
   Tokens first: swap colours here once the final logo/brand colours are in. */
:root {
  --paper: #F6F7F5;
  --zinc: #E6E9E7;
  --ink: #15242A;
  --ink-2: #2B3C42;
  --steel: #56656B;
  --rule: #CAD1CE;

  /* Category spectrum (fan deck) */
  --c-build: #7B847F;
  --c-roof: #A8452F;
  --c-plumb: #246A91;
  --c-elec: #E0A000;
  --c-tool: #3B7348;
  --c-paint: #6B4D9E;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

*, *::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-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-plumb); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 {
  margin: 0 0 .45em;
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; font-stretch: 110%; line-height: 1.15; letter-spacing: -.005em; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3rem); color: var(--ink-2); line-height: 1.5; }
.muted { color: var(--steel); }

/* Placeholder content: dotted underline so it's easy to spot and replace */
.ph { text-decoration: underline dotted var(--c-elec) 2px; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--ink); border-radius: 4px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; font-stretch: 110%; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, translate .2s var(--ease);
}
.btn:hover { background: var(--ink-2); }
.btn:active { translate: 0 1px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--zinc); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(246, 247, 245, .9); backdrop-filter: blur(10px); }
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-stretch: 116%; font-size: 1.15rem; line-height: 1;
}
.brand-mark { display: flex; gap: 2px; height: 26px; }
.brand-mark i { width: 5px; border-radius: 1px; }
.brand-mark i:nth-child(1) { background: var(--c-build); }
.brand-mark i:nth-child(2) { background: var(--c-roof); }
.brand-mark i:nth-child(3) { background: var(--c-plumb); }
.brand-mark i:nth-child(4) { background: var(--c-elec); }
.brand-mark i:nth-child(5) { background: var(--c-tool); }
.brand-mark i:nth-child(6) { background: var(--c-paint); }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 4px;
  text-decoration: none; font-weight: 600;
}
.nav a:hover { background: var(--zinc); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; }

.quote-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--ink); border-radius: 4px;
  text-decoration: none; font-weight: 700; white-space: nowrap;
}
.quote-link:hover { background: var(--ink); color: var(--paper); }
.quote-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 12px; background: var(--c-elec); color: var(--ink); font-size: .85rem; font-weight: 800;
}
.quote-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.menu-toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; height: 2px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; right: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 879px) {
  .menu-toggle { display: block; order: 3; margin-left: 0; }
  .header-row .quote-link { order: 2; margin-left: auto; padding: 8px 10px; }
  .header-row .quote-link .ql-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s var(--ease), opacity .2s, visibility 0s .25s;
  }
  .nav[data-open] { transform: none; opacity: 1; visibility: visible; transition: transform .25s var(--ease), opacity .2s; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--ink); padding-left: 14px; }
}

/* ---------- B-BBEE badge ---------- */
.bee {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px;
  border: 2px solid var(--ink); border-radius: 6px;
  background: var(--paper); text-decoration: none;
}
.bee-level {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  font-weight: 800; font-stretch: 125%; font-size: 1.6rem; line-height: 1;
}
.bee-text { display: grid; line-height: 1.25; font-size: .95rem; }
.bee-text strong { font-stretch: 112%; font-size: 1.02rem; }
.bee--dark { border-color: rgba(246,247,245,.4); background: transparent; color: var(--paper); }
.bee--dark .bee-level { background: var(--c-elec); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 7vw, 88px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { max-width: 46ch; margin-bottom: 28px; }
.hero .bee { margin-top: 28px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
}

/* The fan deck */
.fan {
  --step: 9deg;
  position: relative;
  height: clamp(300px, 46vw, 470px);
  max-width: 520px; width: 100%; margin-inline: auto;
}
@media (min-width: 600px) { .fan { --step: 12deg; } }
.swatch {
  --r: calc((var(--i) - 2.5) * var(--step));
  position: absolute; left: 50%; bottom: 0;
  width: clamp(68px, 8.5vw, 92px); height: 92%;
  margin-left: calc(clamp(68px, 8.5vw, 92px) / -2);
  transform-origin: 50% calc(100% - 26px);
  transform: rotate(var(--r));
  border-radius: 8px;
  background: var(--c);
  color: #fff;
  text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 16px 0 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -14px rgba(21,36,42,.55);
  transition: translate .3s var(--ease);
  animation: fan-open 1.15s var(--ease) backwards;
  animation-delay: calc(250ms + var(--i) * 70ms);
}
.swatch:hover, .swatch:focus-visible { translate: 0 -16px; }
.swatch .sw-name {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-weight: 700; font-stretch: 122%; font-size: clamp(.95rem, 1.6vw, 1.15rem); letter-spacing: .01em; line-height: 1;
  white-space: nowrap;
}
.swatch .sw-code { font-size: .78rem; opacity: .85; font-variant-numeric: tabular-nums; writing-mode: vertical-rl; transform: rotate(180deg); }
.swatch .rivet {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.35);
}
.swatch--light { color: var(--ink); }
@keyframes fan-open {
  0% { transform: rotate(0deg) translateY(40px); opacity: 0; }
  35% { transform: rotate(0deg) translateY(0); opacity: 1; }
  100% { transform: rotate(var(--r)); opacity: 1; }
}
.fan-caption { text-align: center; color: var(--steel); font-size: .95rem; margin: 14px auto 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--zinc { background: var(--zinc); }
.section-head { display: grid; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin: 0; }

/* Category rows */
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cat-row {
  display: grid; grid-template-columns: 14px 1fr; gap: 0 18px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.cat-row::before { content: ""; grid-row: 1 / span 3; background: var(--c); border-radius: 2px; }
.cat-row h3 { margin: 0 0 4px; }
.cat-row p { margin: 0; color: var(--ink-2); }
.cat-row .cat-eg { color: var(--steel); font-size: .95rem; margin-top: 6px; }
.cat-row a.cat-link { justify-self: start; margin-top: 10px; font-weight: 700; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .cat-row { grid-template-columns: 14px 1.1fr 1.4fr auto; align-items: center; padding: 26px 0; }
  .cat-row::before { grid-row: auto; align-self: stretch; }
  .cat-row .cat-eg { margin: 0; }
  .cat-row a.cat-link { margin: 0; }
}

/* B-BBEE band */
.bbbee { background: var(--ink); color: var(--paper); }
.bbbee-grid { display: grid; gap: 32px; align-items: center; }
.bbbee-big { font-weight: 800; font-stretch: 125%; line-height: .85; letter-spacing: -.03em; font-size: clamp(5rem, 17vw, 12.5rem); margin: 0; }
.bbbee-big small { display: block; font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: 0; font-stretch: 112%; font-weight: 700; margin-top: 14px; color: #C9D3D0; line-height: 1.2; }
.bbbee p { color: #D5DDDA; }
.bbbee h2 { color: var(--paper); }
.spend { display: grid; gap: 10px; margin: 26px 0; max-width: 520px; }
.spend-row { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: 12px; font-size: .95rem; }
.spend-bar { height: 26px; border-radius: 3px; background: #4A5A60; width: 80%; transform-origin: left; }
.spend-row:last-child .spend-bar { background: var(--c-elec); width: 100%; }
.reveal .spend-bar { transform: scaleX(0); }
.reveal.in .spend-bar { transform: none; transition: transform 1s var(--ease); }
.reveal.in .spend-row:last-child .spend-bar { transition-delay: .25s; }
@media (min-width: 900px) { .bbbee-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }

/* Delivery map */
.delivery-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .delivery-grid { grid-template-columns: 1.5fr 1fr; align-items: start; gap: 56px; } }
.map-frame { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.map svg { width: 100%; height: auto; }
.map .land { fill: var(--zinc); }
.map .sea { fill: #DCE8EE; }
.map .coast { fill: none; stroke: #9DB4C0; stroke-width: 1.5; }
.map .ridge { fill: none; stroke: #A9B3AF; stroke-width: 2; stroke-linejoin: round; }
.map .ridge-label { fill: var(--steel); font-size: 13px; font-style: italic; }
.map .sea-label { fill: #6E8B99; font-size: 13px; font-style: italic; letter-spacing: .04em; }
.map .route { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linecap: round; }
.map .town circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.map .town text { fill: var(--ink); font-size: 19px; font-weight: 600; paint-order: stroke; stroke: var(--zinc); stroke-width: 4px; stroke-linejoin: round; }
.map .depot rect { stroke: var(--paper); stroke-width: 2; }
.map .depot text { font-weight: 800; font-size: 21px; }
.reveal .map .route { stroke-dashoffset: 1; }
.reveal.in .map .route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); transition-delay: calc(var(--n) * 120ms); }
.reveal .map .town:not(.depot) { opacity: 0; }
.reveal.in .map .town:not(.depot) { opacity: 1; transition: opacity .4s; transition-delay: calc(var(--n) * 120ms + .9s); }

.town-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.town-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 8px; }
.town-list li span:last-child { color: var(--steel); font-size: .92rem; text-align: right; }
.facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--c-elec); }

/* Customers */
.customers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.customers li { padding: 10px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font-weight: 600; }

/* CTA */
.cta { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; } }
.cta p { margin-bottom: 0; }

/* Page header (inner pages) */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lede { margin: 0; }
.page-head--stripe { position: relative; }
.page-head--stripe::after {
  content: ""; display: block; height: 8px; margin-top: clamp(28px, 4vw, 40px);
  background: linear-gradient(90deg,
    var(--c-build) 0 16.66%, var(--c-roof) 0 33.33%, var(--c-plumb) 0 50%,
    var(--c-elec) 0 66.66%, var(--c-tool) 0 83.33%, var(--c-paint) 0);
  border-radius: 2px;
}

/* ---------- Catalogue ---------- */
.toolbar { display: grid; gap: 14px; margin-bottom: 32px; }
.search { position: relative; max-width: 460px; }
.search input {
  width: 100%; min-height: 50px; padding: 12px 14px 12px 44px;
  border: 2px solid var(--ink); border-radius: 4px; background: #fff;
}
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--steel); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); cursor: pointer; font-weight: 600;
}
.chip::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c, var(--ink)); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.cat-group { margin-bottom: 40px; }
.cat-group-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding: 14px 16px; border-radius: 6px 6px 0 0; background: var(--c); color: #fff;
}
.cat-group-head.light { color: var(--ink); }
.cat-group-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0; }
.cat-group-head p { margin: 0; font-size: .95rem; opacity: .9; }
.product-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 6px 6px; background: #fff; }
.product {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 16px; border-top: 1px solid var(--rule);
}
.product:first-child { border-top: 0; }
.product h3 { font-size: 1.08rem; font-stretch: 105%; margin: 0; letter-spacing: 0; }
.product .p-meta { grid-column: 1; margin: 0; color: var(--steel); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.product .p-code { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.product h3 { overflow-wrap: anywhere; }
.chip-n { font-weight: 400; opacity: .75; font-size: .9em; }
.sub-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sub-filter label { font-weight: 700; }
.sub-filter select { min-height: 46px; padding: 8px 12px; border: 1px solid var(--steel); border-radius: 4px; background: #fff; max-width: 100%; }
.show-more { margin-top: 14px; }
.product .add {
  grid-column: 2; grid-row: 1 / span 2;
  min-height: 44px; padding: 8px 14px; border-radius: 4px;
  border: 2px solid var(--ink); background: transparent; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.product .add:hover { background: var(--zinc); }
.product .add[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) {
  .product { grid-template-columns: 1fr; }
  .product .add { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}
.empty-note { padding: 24px; border: 1px dashed var(--rule); border-radius: 6px; color: var(--steel); }

.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brands li { display: grid; place-items: center; min-height: 64px; padding: 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); font-weight: 700; font-stretch: 112%; text-align: center; }

/* Sticky quote bar (catalogue, mobile-friendly) */
.quote-bar {
  position: sticky; bottom: 12px; z-index: 20; margin-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 12px 12px 18px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 30px -16px rgba(21,36,42,.7);
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .25s;
}
.quote-bar.show { transform: none; opacity: 1; pointer-events: auto; }

/* ---------- About ---------- */
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-weight: 800; font-stretch: 125%; font-size: 2.2rem; line-height: 1; color: var(--steel); }
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 0; } .steps li { grid-template-columns: 1fr; border-top: 2px solid var(--ink); border-bottom: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; } }
.quote-items { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid var(--ink); }
.quote-item { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.quote-item::before { content: ""; align-self: stretch; border-radius: 2px; background: var(--c); }
.quote-item .qi-name { font-weight: 600; line-height: 1.3; }
.quote-item .qi-name small { display: block; font-weight: 400; color: var(--steel); }
.quote-item input { width: 72px; min-height: 44px; padding: 8px; border: 1px solid var(--steel); border-radius: 4px; background: #fff; text-align: center; }
.quote-item .remove { min-height: 44px; padding: 8px 10px; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--steel); }
.quote-item .remove:hover { color: var(--c-roof); }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; }
.field .hint { color: var(--steel); font-size: .9rem; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--steel); border-radius: 4px; background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--c-plumb); outline-offset: 0; border-color: var(--c-plumb); }
.field [aria-invalid="true"] { border-color: var(--c-roof); border-width: 2px; }
.field .error { color: var(--c-roof); font-size: .92rem; font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--steel); border-radius: 4px; background: #fff; font-weight: 600; cursor: pointer; }
.radios input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-status { margin: 0; font-weight: 600; }

.contact-card { padding: clamp(20px, 3vw, 32px); border-radius: 10px; background: var(--zinc); }
.contact-card h2 { font-size: 1.5rem; }
.contact-lines { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.contact-lines li { display: grid; gap: 2px; }
.contact-lines .k { color: var(--steel); font-size: .92rem; }
.contact-lines a { font-weight: 700; font-size: 1.1rem; text-underline-offset: 4px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.hours th, .hours td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Sales reps ---------- */
.reps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .reps { grid-template-columns: 1fr 1fr; gap: 28px; } }
.rep {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start;
  padding: 24px; background: var(--paper);
  border: 2px solid var(--ink); border-left: 10px solid var(--c); border-radius: 6px;
}
.rep-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.rep-initials {
  display: grid; place-items: center; background: var(--c); color: #fff;
  font-weight: 800; font-stretch: 120%; font-size: 1.9rem;
}
.rep-name { margin: 0 0 4px; font-size: 1.4rem; }
.rep-role { margin: 0 0 16px; color: var(--steel); line-height: 1.45; }
.rep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rep-actions .btn { min-height: 44px; padding: 8px 16px; }
.rep-email { flex-basis: 100%; font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rep-line { color: var(--steel); }
@media (max-width: 420px) { .rep { grid-template-columns: 1fr; } }
/* Compact version inside the contact sidebar */
.contact-card .reps { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
.contact-card .rep { grid-template-columns: 56px 1fr; gap: 14px; padding: 16px; border-width: 1px 1px 1px 8px; }
.contact-card .rep-photo { width: 56px; height: 56px; font-size: 1.25rem; }
.contact-card .rep-name { font-size: 1.15rem; }

/* ---------- Long-form text (privacy policy) ---------- */
.prose .wrap { max-width: 820px; margin-inline: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 1.8em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 1.3em 0 .35em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; max-width: 62ch; }
.prose li { margin-bottom: .4em; }

.form-note { margin: 4px 0 0; color: var(--steel); font-size: .95rem; max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D5DDDA; padding-block: 56px 28px; }
.site-footer a { color: var(--paper); text-underline-offset: 3px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr .8fr; } }
.footer-brand { color: var(--paper); text-decoration: none; margin-bottom: 18px; font-size: 1.3rem; }
.footer-logo { width: 220px; max-width: 100%; height: auto; margin-bottom: 18px; background: var(--paper); border-radius: 6px; padding: 10px; }
.site-footer h2 { font-size: 1.05rem; font-stretch: 112%; color: var(--paper); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .bee { margin-top: 6px; }
.site-footer p { max-width: 40ch; }
.site-footer .hours th, .site-footer .hours td { border-color: #33464C; padding: 7px 0; }
.site-footer .hours td { padding-left: 12px; }

/* Rating + proof row (hero) */
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.proof .bee { margin-top: 0; }
.rating { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.25; }
.rating-num { font-weight: 800; font-stretch: 120%; font-size: 2rem; line-height: 1; }
.stars { color: var(--c-elec); letter-spacing: 1px; font-size: 1rem; }
.rating:hover .rating-txt { text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid #33464C; font-size: .9rem; color: #9FB0AC;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal .spend-bar { transform: none; }
  .reveal .map .route { stroke-dashoffset: 0; }
  .reveal .map .town:not(.depot) { opacity: 1; }
}
