/* ==========================================================================
   Allpoint Supply Group — stylesheet
   ==========================================================================
   1. Design tokens        edit colours / type / spacing here
   2. Base
   3. Layout primitives    container, section, icon-card grid pattern
   4. Components           buttons, cards, forms, header, footer
   5. Sections             hero, facts, estimator, contact
   6. Responsive

   Design notes (see docs/SPEC.md — "bold marketing" pass):
   - One accent (blue). Green appears only on compliance signals.
   - Bigger type and icon-card grids (`.card-grid`/`.icon-card`) are the
     primary structural pattern for services, add-ons, industries and Why
     Allpoint. Radius (`--radius-panel`) is used on cards as well as on
     buttons (pill) and panels (estimator, quote) — not reserved to just
     those two.
   - Motion: the hero card steps (CSS), the sites marquee (CSS), and a scroll
     reveal + hover lift on every icon-card (main.js). All respect
     prefers-reduced-motion.
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. Tokens
   ----------------------------------------------------------------------- */
:root {
  /* Colour — brand palette drawn from the logo's grey/blue/green bars */
  --color-bg: #ffffff;
  --color-bg-alt: #f2f7fb;
  --color-surface: #ffffff;
  --color-text: #0c1a24;
  --color-text-secondary: #5a6b78;
  --color-border: #e3eaf0;

  --color-accent: #1c6fa6;
  --color-accent-hover: #155683;
  --color-accent-tint: #eaf4fb;
  --color-success: #2f9e52;
  --color-success-tint: #eaf7ee;

  --color-dark-surface: #0c1a24;
  --color-dark-text: #f5f5f7;
  --color-dark-text-secondary: #a1a1a6;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.6rem, 1.2rem + 5.4vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  --fs-h3: 1.3rem;
  --fs-lead: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;

  /* Space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;

  --radius-panel: 20px;
  --container: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------------------------------------
   2. Base
   ----------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  /* Keeps the fallback font at the web font's x-height so the page doesn't
     jump when Plus Jakarta Sans finishes loading. Inherited by everything. */
  font-size-adjust: from-font;
}

/* Programmatic focus target for the skip link; not a keyboard stop. */
main:focus {
  outline: none;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* Even line lengths on headings; no orphaned last word in body copy.
   Progressive enhancement: ignored where unsupported. Applied to specific
   elements only (balance is costly if used globally). */
h1,
h2,
h3,
.statement {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--color-text);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 200;
}

.skip-link:focus {
  left: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* -----------------------------------------------------------------------
   3. Layout primitives
   ----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-6);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--flush-top {
  padding-top: 0;
}

@media (max-width: 900px) {
  .section {
    padding-block: var(--space-5);
  }
}

/* -----------------------------------------------------------------------
   4. Components
   ----------------------------------------------------------------------- */

/* Kicker: small uppercase label above a section heading. Used plainly and
   consistently — not a decorative trend, just a section-header pattern. */
.kicker {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

/* Section header: a plain, non-sticky heading block used at the top of
   every section. */
.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: var(--fs-h2);
}

.section-head p {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
  max-width: 46ch;
}

/* Buttons — pills, the only fully rounded thing on the page */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-text);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.ticks {
  margin-top: var(--space-2);
}

.ticks li {
  display: flex;
  gap: 0.65rem;
  padding: 0.2rem 0;
  max-width: 60ch;
}

.ticks svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.3rem;
  color: var(--color-success);
}

.subhead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

/* Pull statement — one sentence set large */
.statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 24ch;
}

/* Documents-on-request list: the paperwork is the product, so it's shown
   as a document, not described in a paragraph. */
.pack {
  border: 1px solid var(--color-text);
  border-radius: var(--radius-panel);
  padding: var(--space-4);
}

.pack h3 {
  margin-bottom: var(--space-2);
}

.pack li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.pack li span:last-child {
  color: var(--color-text-secondary);
  text-align: right;
}

.pack li:first-of-type {
  border-top: none;
}

/* Icon card grid: services / add-ons / industries / why-allpoint. 3 or 5
   even cards depending on content count; stacks responsively. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.card-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.icon-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  padding: var(--space-3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease),
    border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

/* Scroll reveal (initScrollReveal() in main.js): cards fade/rise into place
   once, the first time they enter view. A short stagger by grid position
   reads as a cascade rather than everything popping at once. */
.icon-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger only the reveal (opacity/transform), not the hover response —
   redeclaring the full list keeps border-color/box-shadow at 0 delay so
   hover never feels sluggish on later cards. */
.icon-card:nth-child(2) {
  transition: opacity 500ms var(--ease) 60ms, transform 500ms var(--ease) 60ms,
    border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.icon-card:nth-child(3) {
  transition: opacity 500ms var(--ease) 120ms, transform 500ms var(--ease) 120ms,
    border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.icon-card:nth-child(4) {
  transition: opacity 500ms var(--ease) 180ms, transform 500ms var(--ease) 180ms,
    border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.icon-card:nth-child(5) {
  transition: opacity 500ms var(--ease) 240ms, transform 500ms var(--ease) 240ms,
    border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.icon-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 24px rgba(29, 29, 31, 0.08);
}

.icon-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.icon-card .icon svg {
  width: 20px;
  height: 20px;
}

.icon-card:nth-child(3n+2) .icon {
  background: var(--color-success-tint);
  color: var(--color-success);
}

.icon-card:nth-child(3n+3) .icon {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.icon-card h3 {
  margin-bottom: var(--space-1);
}

.icon-card p {
  color: var(--color-text-secondary);
  font-size: var(--fs-small);
}

@media (max-width: 1100px) {
  .card-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .card-grid,
  .card-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .card-grid,
  .card-grid--5,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--color-accent);
  margin-left: 0.3em;
}

.logo-icon {
  height: 26px;
  width: auto;
  margin-right: 0.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav-links a {
  white-space: nowrap;
}

.nav-links a:not(.btn) {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 200ms var(--ease);
}

.nav-links a:not(.btn):hover,
.nav-links a.is-active {
  color: var(--color-text);
}

.nav-links .btn {
  padding: 0.7rem 1.3rem;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 62px 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    /* visibility (not just opacity) so the closed menu's links can't be
       reached with Tab; delayed so the fade-out still plays. */
    visibility: hidden;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease),
      visibility 0s linear 200ms;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 1.1rem;
  }

  .nav-links .btn {
    margin-top: var(--space-3);
  }
}

/* Section-progress dots (wide screens only) */
.section-dots {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 90;
}

.section-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}

.section-dots .dot:hover {
  background: var(--color-text-secondary);
}

.section-dots .dot.is-active {
  background: var(--color-accent);
  transform: scale(1.5);
}

@media (max-width: 1240px) {
  .section-dots {
    display: none;
  }
}

/* Footer */
.site-footer {
  background: var(--color-dark-surface);
  color: var(--color-dark-text-secondary);
  padding-block: var(--space-5) var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.footer-brand {
  display: flex;
  align-items: center;
  color: var(--color-dark-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.footer-tagline {
  max-width: 30ch;
  font-size: var(--fs-small);
}

.footer-col h4 {
  margin: 0 0 var(--space-2);
  color: var(--color-dark-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.footer-col li {
  margin-bottom: 0.55rem;
  font-size: var(--fs-small);
}

.footer-col a:hover {
  color: var(--color-dark-text);
}

.footer-compliance {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-block: var(--space-3);
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-small);
}

.badge-success {
  background: var(--color-success-tint);
  color: #1f7a3d;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.footer-bottom {
  padding-top: var(--space-3);
  font-size: 0.82rem;
}

.footer-division {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: var(--space-3);
  font-size: var(--fs-small);
}
.pg-logo {
  display: inline-flex;
  color: #fff;
  line-height: 0;
  position: relative;
  top: -9px; /* the logo file has its arrows above the wordmark; lift it so the wordmark sits on the text line */
}
.pg-logo svg {
  display: block;
  height: 30px;
  width: 150px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------------------
   5. Sections
   ----------------------------------------------------------------------- */

/* Hero */
.hero {
  padding-block: var(--space-5) var(--space-4);
}

.hero .container {
  position: relative;
}

.hero h1 {
  font-size: var(--fs-hero);
  max-width: 16ch;
}

.hero .lead {
  margin-top: var(--space-3);
  font-size: var(--fs-lead);
  color: var(--color-text-secondary);
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Facts strip under the hero */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-text);
}

.facts > div {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
}

.facts > div + div {
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-border);
}

.facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.facts span {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}

@media (max-width: 900px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .facts > div:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 480px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .facts > div,
  .facts > div + div {
    padding-left: 0;
    border-left: none;
  }
  .facts > div + div {
    border-top: 1px solid var(--color-border);
  }
}

/* Mid-page call to action: flat, in the flow */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-block: 1px solid var(--color-text);
}

.cta-band h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
}

.cta-band p {
  margin-top: 0.8rem;
  color: var(--color-text-secondary);
  max-width: 46ch;
}

/* Scope estimator — interactive; responds to every change */
.estimator {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-panel);
}

.section--alt .estimator {
  background: var(--color-surface);
}

.control-group + .control-group {
  margin-top: var(--space-3);
}

.control-group > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.pill-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-toggle {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.pill-toggle:hover {
  border-color: var(--color-accent);
}

.pill-toggle.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.glass-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  outline-offset: 6px;
}

.glass-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.glass-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.glass-toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: var(--color-border);
  transition: background 200ms var(--ease);
}

.glass-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 200ms var(--ease);
}

.glass-toggle[aria-checked="true"] {
  background: var(--color-accent);
}

.glass-toggle[aria-checked="true"]::before {
  transform: translateX(18px);
}

.estimator-summary {
  align-self: start;
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  border-radius: 12px;
}

.section--alt .estimator-summary {
  background: var(--color-bg);
}

.estimator-summary h3 {
  margin-bottom: var(--space-2);
}

#estimator-output {
  font-size: 1.15rem;
  line-height: 1.5;
}

.note {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}

.estimator-summary .btn {
  margin-top: var(--space-3);
}

@media (max-width: 860px) {
  .estimator {
    grid-template-columns: 1fr;
    padding: var(--space-3);
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.details > div {
  padding-block: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.details > div:last-child {
  border-bottom: 1px solid var(--color-border);
}

.details dt {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}

.details dd {
  font-size: 1.15rem;
  font-weight: 600;
}

.details dd a:hover {
  color: var(--color-accent);
}

.details .plain {
  font-size: 1rem;
  font-weight: 500;
}

.quote-panel {
  padding: var(--space-4);
  background: var(--color-accent-tint);
  border-radius: var(--radius-panel);
}

.quote-panel h3 {
  font-size: 1.6rem;
  letter-spacing: -0.025em;
}

.quote-panel p {
  margin-block: var(--space-2) var(--space-3);
  color: var(--color-text-secondary);
}

.steps {
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: var(--space-2);
  padding: 0.6rem 0;
  counter-increment: step;
  max-width: 56ch;
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* -----------------------------------------------------------------------
   7. Product-style pass (modelled on landearly.com)
   Plus Jakarta Sans at heavy weights with tight tracking, cool-tinted
   bands, an eyebrow label with a leading rule, glowing pill buttons,
   soft-shadowed cards and one dark panel. Same blue accent as before.
   ----------------------------------------------------------------------- */
h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
}

.btn {
  font-weight: 700;
  font-size: 0.97rem;
  transition: background 200ms var(--ease), border-color 200ms var(--ease),
    box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.btn-primary {
  box-shadow: 0 10px 24px -10px rgba(28, 111, 166, 0.65);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px -10px rgba(28, 111, 166, 0.75);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-color: var(--color-border);
}

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}

/* Hero: a soft blue glow in the top corner */
.hero {
  position: relative;
  overflow: clip;
  padding-block: var(--space-5) var(--space-5);
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(28, 111, 166, 0.14), rgba(28, 111, 166, 0));
  pointer-events: none;
}

.hero h1 {
  max-width: 17ch;
}

.hero .lead {
  margin-top: var(--space-3);
}

/* Facts: a full-width tinted band with bold figures */
.facts-band {
  background: var(--color-bg-alt);
  border-block: 1px solid var(--color-border);
}

.facts {
  border-top: 0;
}

.facts > div {
  padding-block: 1.75rem;
}

.facts strong {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Cards: soft border, soft shadow, bigger radius */
.icon-card {
  border-color: var(--color-border);
  border-radius: var(--radius-panel);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(12, 26, 36, 0.04), 0 12px 32px -18px rgba(12, 26, 36, 0.18);
}

.icon-card:hover {
  box-shadow: 0 2px 4px rgba(12, 26, 36, 0.05), 0 22px 40px -20px rgba(28, 111, 166, 0.35);
}

.icon-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.pack,
.estimator-summary {
  border-color: var(--color-border);
  box-shadow: 0 12px 32px -18px rgba(12, 26, 36, 0.2);
}

.estimator {
  border: 1px solid var(--color-border);
}

.quote-panel {
  border: 1px solid #d3e6f3;
}

/* The one dark panel: the mid-page call to action */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--space-5) var(--space-4);
  border: 0;
  border-radius: 28px;
  background: var(--color-dark-surface);
  color: var(--color-dark-text);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 156, 214, 0.45), rgba(61, 156, 214, 0));
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band p {
  color: var(--color-dark-text-secondary);
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-text);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--color-bg-alt);
}

.section-head h2,
.cta-band h2 {
  font-weight: 800;
}

.footer-brand,
.nav-logo {
  font-weight: 800;
}

@media (max-width: 700px) {
  .cta-band {
    padding: var(--space-4) var(--space-3);
    border-radius: 22px;
  }
}

/* Sites strip: a slow, seamless marquee of site types and suburbs */
.marquee {
  padding-block: 3rem 0.5rem;
  text-align: center;
}

.marquee-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding-inline: var(--space-3);
}

.marquee-viewport {
  overflow: hidden;
  margin-top: 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
}

.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  flex-shrink: 0;
  gap: 3.5rem;
  padding-right: 3.5rem;
}

.marquee-set span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #8b99a4;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .marquee-set[aria-hidden="true"] {
    display: none;
  }
  .marquee-set {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }
}

/* -----------------------------------------------------------------------
   8. Hero card (replaces the old particle animation)
   Two columns on wide screens: copy left, an illustrative "contract in
   progress" card right whose steps tick off in turn on a loop.
   ----------------------------------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: var(--space-5);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.1rem + 4.2vw, 4.6rem);
  max-width: 13ch;
}

.hero-visual {
  position: relative;
  padding-bottom: 2.9rem;
}

.hero-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: 0 2px 4px rgba(12, 26, 36, 0.04), 0 30px 60px -28px rgba(12, 26, 36, 0.28);
}

.hc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.hc-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--color-success-tint);
  color: #1f7a3d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hc-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  animation: hc-pulse 1.8s ease-in-out infinite;
}

.hc-site {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg-alt);
  font-size: 0.9rem;
  line-height: 1.3;
}

.hc-site > div {
  flex: 1;
  min-width: 0;
}

.hc-site b,
.hc-site span:not(.hc-site-icon) {
  display: block;
}

.hc-site div span {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
}

.hc-site em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  white-space: nowrap;
}

.hc-site-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--color-dark-surface);
  color: #fff;
}

.hc-site-icon svg {
  width: 19px;
  height: 19px;
}

.hc-steps {
  position: relative;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

/* the line that joins the step dots */
.hc-steps::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: 22px;
  width: 2px;
  background: var(--color-border);
}

.hc-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-bottom: 1.1rem;
}

.hc-step:last-child {
  padding-bottom: 0;
}

.hc-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: transparent;
  animation: hc-dot 14s ease-in-out infinite;
}

.hc-dot svg {
  width: 14px;
  height: 14px;
}

.hc-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.hc-text b {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.hc-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.hc-step time {
  font-size: 0.74rem;
  color: var(--color-text-secondary);
  padding-top: 0.15rem;
  white-space: nowrap;
}

.hc-step-2 .hc-dot { animation-delay: 1.4s; }
.hc-step-3 .hc-dot { animation-delay: 2.8s; }
.hc-step-4 .hc-dot { animation-delay: 4.2s; }

.hc-step-last .hc-dot {
  border-color: var(--color-accent);
}

@keyframes hc-dot {
  0%, 4% {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: transparent;
    transform: scale(1);
  }
  8% {
    transform: scale(1.18);
  }
  12%, 88% {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
    transform: scale(1);
  }
  96%, 100% {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: transparent;
    transform: scale(1);
  }
}

@keyframes hc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes hc-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* The floating chip that overlaps the card's bottom-left corner */
.hc-float {
  position: absolute;
  left: -1.6rem;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 20px 40px -20px rgba(12, 26, 36, 0.35);
  font-size: 0.85rem;
  line-height: 1.3;
  animation: hc-bob 5s ease-in-out infinite;
}

.hc-float b,
.hc-float span:not(.hc-float-icon) {
  display: block;
}

.hc-float div span {
  font-size: 0.74rem;
  color: var(--color-text-secondary);
}

.hc-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-accent-tint);
  color: var(--color-accent);
}

.hc-float-icon svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .hero h1 {
    max-width: 16ch;
  }
  .hero-visual {
    max-width: 470px;
  }
  .hc-float {
    left: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-dot {
    animation: none;
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
  }
  .hc-float,
  .hc-live i {
    animation: none;
  }
}

/* -----------------------------------------------------------------------
   9. Service and suburb pages (generated by scripts/build-pages.cjs)
   ----------------------------------------------------------------------- */
.breadcrumbs {
  padding-block: 1.1rem 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs span {
  margin-inline: 0.35rem;
}

.page-hero {
  position: relative;
  overflow: clip;
  padding-block: var(--space-4) var(--space-5);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(28, 111, 166, 0.14), rgba(28, 111, 166, 0));
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 1rem + 3.6vw, 4rem);
  max-width: 22ch;
}

.page-hero .lead {
  margin-top: var(--space-3);
  font-size: var(--fs-lead);
  color: var(--color-text-secondary);
  max-width: 60ch;
}

.page-hero .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

main h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.two-col h2 {
  margin-bottom: var(--space-2);
}

.narrow {
  max-width: 820px;
}

.narrow h2 {
  margin-bottom: var(--space-3);
}

.prose {
  margin-top: var(--space-2);
  color: var(--color-text-secondary);
  max-width: 62ch;
}

.prose a {
  color: var(--color-accent);
  font-weight: 600;
}

.faq-item {
  border-top: 1px solid var(--color-border);
  padding-block: 1.1rem;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin-top: 0.7rem;
  color: var(--color-text-secondary);
  max-width: 64ch;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-2);
}

.chip-list a {
  display: inline-block;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.chip-list a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.link-card {
  display: block;
}

.link-card .more,
.card-link {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
}

.card-link:hover,
.link-card:hover .more {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}
