/* Self-hosted variable fonts (Google Fonts, OFL licence) - latin subset */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/archivo.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter.woff2') format('woff2'); }

/* ==========================================================================
   Plant Glazing Services - styles.css
   Shared component system (see ../DESIGN-SPEC.md), Plant Glazing palette.
   Mobile-first. Breakpoints: 700px, 900px (desktop nav at 1200px).
   ========================================================================== */

:root {
  --brand-dark: #00365c;
  --brand-primary: #004c82;
  --brand-accent: #008fd4;
  --brand-accent-ink: #ffffff; /* large/bold text only on accent */
  --brand-soft: #eef6fb;
  --brand-muted: #6fb6dd;
  --ink: #1b2430;
  --ink-soft: #4a5568;
  --paper: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgb(0 0 0 / .10);
  --container: 1160px;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--brand-dark);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.5vw + .5rem, 2.2rem); }
h3 { font-size: 1.2rem; }

/* Progressive enhancement: balance heading line breaks where supported */
h1, h2, h3 { text-wrap: balance; }
.lede, .hero p { text-wrap: pretty; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-accent); }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-dark);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: .8rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { flex: none; }

/* Accent buttons carry large/bold text only (contrast rule) */
.btn--accent {
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
  font-size: 1.17rem;
  padding: .85rem 1.6rem;
}

.btn--accent:hover {
  background: #007ab5;
  color: var(--brand-accent-ink);
  box-shadow: 0 8px 20px rgb(0 143 212 / .35);
}

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

.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgb(0 76 130 / .3);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / .55);
}

.btn--ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgb(255 255 255 / .08);
}

.btn--lg { font-size: 1.17rem; padding: .95rem 1.8rem; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--brand-dark);
  color: #cfe4f3;
  font-size: .85rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.4rem;
  padding-block: .3rem;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 500;
}

.topbar a:hover { color: var(--brand-muted); }

.topbar a svg, .topbar-hours svg { flex: none; opacity: .85; }

.topbar a.topbar-email { display: none; }

.topbar-phone strong { font-family: var(--font-head); font-weight: 700; letter-spacing: .01em; }

/* Hours + open/closed indicator (left slot, desktop only) */
.topbar-hours {
  display: none;
  align-items: center;
  gap: .45rem;
  color: rgb(255 255 255 / .85);
  white-space: nowrap;
}

.topbar-links { display: flex; align-items: center; gap: 1rem; }

/* open/closed dot before the topbar hours - amber until site.js confirms we're open */
.open-dot {
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: #f59e0b;
  flex: none;
}

.open-dot.is-open { background: #22c55e; }

@media (min-width: 700px) {
  .topbar a.topbar-email { display: inline-flex; }
  .topbar-hours { display: inline-flex; }
}

/* Cross-brand links (wide desktop only - with the hours + open indicator on
   the left there is no room for them below 1200px without wrapping) */
.topbar-family { display: none; }

@media (min-width: 1200px) {
  .topbar-family {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border-left: 1px solid rgb(255 255 255 / .22);
    padding-left: 1rem;
  }

  .topbar-family a + a {
    border-left: 1px solid rgb(255 255 255 / .22);
    padding-left: 1rem;
  }
}

/* ---------- Header & nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgb(0 0 0 / .06);
  transition: box-shadow .2s ease;
}

.site-header.is-scrolled { box-shadow: 0 4px 18px rgb(0 20 40 / .12); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding-block: .6rem;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }

@media (min-width: 900px) {
  .brand img { height: 56px; }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: none;
  border: 1px solid rgb(0 54 92 / .2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--brand-dark);
  transition: transform .22s ease, opacity .22s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid rgb(0 0 0 / .08);
  box-shadow: 0 18px 30px rgb(0 20 40 / .14);
  padding: .5rem 0 1rem;
}

.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
}

.site-nav li + li { border-top: 1px solid rgb(0 0 0 / .06); }

.site-nav a {
  display: block;
  padding: .8rem .25rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--brand-dark);
  text-decoration: none;
}

.site-nav a:hover { color: var(--brand-accent); }

.site-nav a[aria-current="page"] { color: var(--brand-accent); }

.site-nav .nav-cta { margin-top: .75rem; border-top: 0; }
.site-nav .nav-cta .btn { width: 100%; }

/* Keep button CTAs white - beats the .site-nav a colour rules above */
.site-nav a.btn,
.site-nav a.btn:hover { color: #fff; }
/* Restore the .btn layout that the higher-specificity .site-nav a rule overrides */
.site-nav a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .nav-toggle { display: none; }

  .site-nav ul li:first-child { display: none; } /* logo links home on desktop */

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: clamp(.4rem, 1.4vw, 1.3rem);
    padding: 0;
  }

  .site-nav li + li { border-top: 0; }

  .site-nav a {
    padding: .4rem .15rem;
    font-size: .98rem;
    position: relative;
    white-space: nowrap;
  }

  .site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
  }

  .site-nav a:not(.btn):hover::after,
  .site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

  .site-nav .nav-cta { margin-top: 0; margin-left: .4rem; }
  .site-nav .nav-cta .btn { width: auto; padding: .65rem 1.1rem; font-size: .95rem; }

  .brand img { height: 56px; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-dark);
  color: #fff;
  isolation: isolate;
}

.hero::before {
  /* subtle engineering grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Faded background photo on the hero's empty right side (home page) */
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  z-index: -2; /* above the grid (-3), below the streak bands (-1) */
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 32%);
  mask-image: linear-gradient(to top, transparent 2%, #000 32%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .35;
  filter: brightness(.75);
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 95%);
  mask-image: linear-gradient(to left, #000 55%, transparent 95%);
}

@media (max-width: 699.98px) {
  /* Hidden on phones - the faded photo fights the streak/grid patterns at small sizes */
  .hero-art { display: none; }
}

.hero-band {
  position: absolute;
  z-index: -1;
  top: -20%;
  height: 140%;
  width: clamp(140px, 22vw, 320px);
  transform: skewX(-18deg);
  pointer-events: none;
}

.hero-band--one {
  right: 8%;
  background: linear-gradient(180deg, rgb(0 143 212 / .28), rgb(0 143 212 / .04));
}

.hero-band--two {
  right: -6%;
  width: clamp(90px, 14vw, 200px);
  background: linear-gradient(180deg, rgb(0 76 130 / .55), rgb(111 182 221 / .12));
}

.hero-inner {
  /* No max-width: the tick row spans the full hero content width; the h1 and
     sub each carry their own max-width instead. */
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(4.5rem, 10vw, 8rem);
}

.hero h1 { color: #fff; max-width: 20ch; }

.hero .eyebrow { color: var(--brand-muted); }

.hero-sub {
  font-size: 1.1rem;
  color: rgb(255 255 255 / .85);
  max-width: 56ch;
  margin-bottom: var(--space-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.hero-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .95rem;
  font-weight: 500;
  color: rgb(255 255 255 / .92);
}

.hero-ticks li { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.hero-ticks svg { flex: none; color: var(--brand-accent); }

@media (min-width: 1024px) {
  /* All four ticks on one line */
  .hero-ticks { flex-wrap: nowrap; gap: 1.1rem; font-size: .9rem; }
}

/* Beside the quote form the ticks only have the left column, so let them wrap */
.hero-quote-grid > .hero-ticks { flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Interior page hero */
.hero--sub .hero-inner { padding-block: clamp(2.5rem, 6vw, 4rem); }
.hero--sub h1 { max-width: none; font-size: clamp(1.7rem, 3.5vw + .5rem, 2.7rem); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
  font-size: .85rem;
  color: rgb(255 255 255 / .7);
}

.crumbs a { color: rgb(255 255 255 / .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: rgb(255 255 255 / .45); }

/* ---------- Trust bar ---------- */

.trustbar { position: relative; z-index: 5; margin-top: calc(-1 * var(--space-4)); }

.trustbar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgb(0 0 0 / .06);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.1rem 1.2rem;
  border-top: 1px solid rgb(0 0 0 / .06);
}

.trust-item:nth-child(-n+2) { border-top: 0; }
.trust-item:nth-child(odd) { border-right: 1px solid rgb(0 0 0 / .06); }

.trust-item svg { flex: none; color: var(--brand-accent); }

.trust-item strong {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand-dark);
  display: block;
  line-height: 1.3;
}

.trust-item small { color: var(--ink-soft); font-size: .85rem; line-height: 1.4; display: block; }

@media (min-width: 900px) {
  .trustbar-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-top: 0 !important; border-right: 1px solid rgb(0 0 0 / .06); padding: 1.4rem 1.5rem; }
  .trust-item:last-child { border-right: 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space-5); }
.section--soft { background: var(--brand-soft); }
.section--dark { background: var(--brand-dark); color: #fff; }

/* ---------- Site safety credentials (SPA / CCNSG) ---------- */
.credentials {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  background: #fff;
  border: 1px solid rgb(0 0 0 / .08);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
}
.credentials--inset { margin-top: var(--space-4); }
.credentials-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3); }
.credentials-logos img { height: 64px; width: auto; }
.credentials-logos img[src$="ccnsg-logo.jpg"] { height: 76px; }
.credentials-body h2 { font-size: 1.5rem; }
.credentials-body p:last-child { margin-bottom: 0; }
@media (min-width: 800px) {
  .credentials { grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-4); }
  .credentials-logos { flex-direction: column; min-width: 200px; }
}
.section--dark h2, .section--dark h3 { color: #fff; }

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

/* Denser variant for short sections (e.g. a lone checklist) - must follow the
   media query above so it wins the cascade at desktop widths too. */
.section--tight { padding-block: var(--space-5); }

.section-head { max-width: 720px; margin-bottom: var(--space-4); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: .6rem;
}

.section--dark .eyebrow { color: var(--brand-muted); }

.lede { font-size: 1.1rem; color: var(--ink-soft); }
.section--dark .lede { color: rgb(255 255 255 / .82); }

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgb(0 143 212 / .35);
}

.card-body { padding: var(--space-3); display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }

.card h3 { margin-bottom: .4em; }

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  margin-bottom: var(--space-2);
}

.card--photo img {
  width: 100%;
  aspect-ratio: 345 / 214;
  object-fit: cover;
}

/* Taller crop for portrait job photos in gallery strips */
.card--photo-tall img { aspect-ratio: 3 / 4; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--brand-primary);
  text-decoration: none;
  margin-top: var(--space-2);
}

.card-link svg { transition: transform .2s ease; }
.card:hover .card-link { color: var(--brand-accent); }
.card:hover .card-link svg { transform: translateX(4px); }

/* stretched-link: whole card clickable */
.card-link--stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

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

.steps {
  display: grid;
  gap: var(--space-3);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: var(--radius);
  padding: var(--space-3);
  padding-top: var(--space-4);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.6rem;
  left: var(--space-3);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand-accent);
}

.step h3 { margin-bottom: .35em; }
.step p { color: var(--ink-soft); font-size: .95rem; }

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Feature split (USP / downtime) ---------- */

.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 345px;
}

.split-media { display: flex; flex-direction: column; gap: var(--space-3); }

@media (max-width: 899.98px) {
  .split-media img { max-width: 100%; }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr .85fr; gap: var(--space-5); }
  .split--flip { grid-template-columns: .85fr 1.15fr; }
  .split--flip .split-media { order: -1; }
}

.checklist {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}

.checklist svg { flex: none; margin-top: .2rem; color: var(--brand-accent); }
.section--dark .checklist { color: rgb(255 255 255 / .9); }

.checklist--cols { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .9rem 2rem; }

/* ---------- Brand strip ---------- */

.brandstrip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.brandstrip li { list-style: none; }

.brandstrip {
  padding: 0;
  margin: 0;
}

.brand-slab {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .02em;
  color: var(--brand-dark);
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .08);
  border-bottom: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: .8rem 1.5rem;
}

.brand-slab--note {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  border-bottom-color: var(--brand-muted);
}

/* ---------- Brand marquee ---------- */

.marquee {
  overflow: hidden;
  -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-list {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  list-style: none;
  margin: 0;
  padding: 0 1.375rem;
}

.marquee-list li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .01em;
  color: var(--brand-dark);
  opacity: .55;
  white-space: nowrap;
}

.marquee-list li a {
  color: inherit;
  text-decoration: none;
}

/* hover darkens the make (li carries the .55 opacity) instead of underlining */
.marquee-list li:has(a:hover),
.marquee-list li:has(a:focus-visible) {
  opacity: 1;
}

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

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

.marquee-note {
  font-size: .9rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: var(--space-3);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
}

/* ---------- Referral panel ---------- */

.referral {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  background: var(--brand-soft);
  border: 1px solid rgb(0 76 130 / .12);
  border-left: 6px solid var(--brand-accent);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.referral h2, .referral h3 { margin-bottom: .3em; }
.referral p { color: var(--ink-soft); }

@media (min-width: 700px) {
  .referral { grid-template-columns: 1fr auto; }
}

/* Inline referral note on service pages */
.note-panel {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: .95rem;
  color: var(--ink-soft);
  margin-top: var(--space-3);
}

/* ---------- Chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips a,
.chips span {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgb(0 76 130 / .18);
  color: var(--brand-primary);
  font-weight: 500;
  font-size: .9rem;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.chips a:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.chips--center { justify-content: center; }

.chips .chip-more {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  font-weight: 600;
}

.chips .chip-more:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Region-grouped chip lists on the areas page */
.county-group { margin-top: var(--space-4); }

.county-group h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: var(--space-2);
}

.county-group h3 svg { color: var(--brand-accent); flex: none; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: var(--space-2); max-width: 820px; }

.faq details {
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}

.faq details[open] { border-color: rgb(0 143 212 / .4); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--space-3);
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-dark);
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--brand-accent);
  border-bottom: 2.5px solid var(--brand-accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}

.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }

.faq summary:hover { color: var(--brand-accent); }

.faq .faq-body { padding: 0 var(--space-3) var(--space-3); color: var(--ink-soft); }

/* Equal-height photo pair inside an FAQ answer: flex values match each
   image's aspect ratio (3:4 portrait = 9, 4:3 landscape = 16) so both
   render at the same height without cropping. */
.faq .faq-photos { display: flex; gap: .75rem; margin-top: var(--space-2); }
.faq .faq-photos img { min-width: 0; height: auto; border-radius: var(--radius-sm); display: block; }
.faq .faq-photos .faq-photo--portrait { flex: 9; }
.faq .faq-photos .faq-photo--landscape { flex: 16; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--brand-primary), var(--brand-dark) 70%);
  color: #fff;
  padding-block: var(--space-5);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -4%;
  height: 160%;
  width: clamp(120px, 18vw, 260px);
  transform: skewX(-18deg);
  background: linear-gradient(180deg, rgb(0 143 212 / .3), rgb(0 143 212 / .05));
  pointer-events: none;
}

.cta-band .container { position: relative; }

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw + .5rem, 2.4rem);
  max-width: 22ch;
}

.cta-band p { color: rgb(255 255 255 / .85); max-width: 58ch; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
  font-size: 1.17rem;
}

.btn--whatsapp:hover {
  background: #1eb457;
  color: #fff;
  box-shadow: 0 8px 20px rgb(37 211 102 / .35);
}

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

.form-grid {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}

@media (min-width: 900px) {
  .form-grid { grid-template-columns: 1.2fr .8fr; gap: var(--space-5); }
}

.quote-form {
  scroll-margin-top: 96px; /* clear the sticky header when jumping to #quote */
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .07);
  border-top: 5px solid var(--brand-accent);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}

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

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--brand-dark);
  margin-bottom: .4rem;
}

.field .req { color: var(--brand-accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: .75rem .9rem;
  border: 1.5px solid rgb(0 54 92 / .25);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgb(0 143 212 / .2);
}

.field input[name="registration"] { text-transform: uppercase; }
.field input[name="registration"]::placeholder { text-transform: none; }

/* JS-only hide (e.g. the "Other" brand input until "Other" is selected) */
.field.js-hidden { display: none; }

.field-row { display: grid; gap: 0 var(--space-2); }

@media (min-width: 700px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.form-note { font-size: .9rem; color: var(--ink-soft); margin-bottom: var(--space-3); }

.quote-form .btn { width: 100%; }

@media (min-width: 700px) {
  .quote-form .btn { width: auto; }
}

/* QuickQuote plugin forms (WordPress): the contact form is a .form-card holding its own
   .form-grid of fields, so it gets the quote-form card and a two-column field grid of its own
   (the page-level .form-grid above lays out the form beside the contact cards). */
.qq-form.form-card {
  scroll-margin-top: 96px;
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .07);
  border-top: 5px solid var(--brand-accent);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
}
.qq-form .form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.qq-form .field { margin-bottom: 0; }
.qq-form .btn[type="submit"] { width: 100%; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 700px) {
  .qq-form.form-card { padding: var(--space-4); }
  .qq-form .form-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-2); }
  .qq-form .form-grid .field--full { grid-column: 1 / -1; }
  .qq-form .btn[type="submit"] { width: auto; }
}

/* Contact info side */

.contact-card {
  background: var(--brand-soft);
  border: 1px solid rgb(0 76 130 / .12);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.contact-card + .contact-card { margin-top: var(--space-3); }

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

.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }

.contact-lines li { display: flex; align-items: flex-start; gap: .7rem; }

.contact-lines svg { flex: none; margin-top: .2rem; color: var(--brand-primary); }

.contact-lines a { font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

.contact-lines address { font-style: normal; }

/* "View on Google Maps" link + regional map embed */
a.map-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a.map-link:hover { color: var(--brand-primary); }

a.map-link svg { flex: none; color: var(--brand-primary); margin-top: 0; }

.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-soft);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Area pages: scenic town photo + Wikimedia Commons credit */
.area-photo { margin: 0; }
.area-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-media .area-photo img { max-width: 100%; }
.photo-credit {
  display: block;
  margin-top: .55rem;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.photo-credit a { color: inherit; }
.split-media .map-embed { width: 100%; }
.map-embed--area { max-width: 820px; }

.contact-photo { margin: var(--space-3) 0 0; }

.contact-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-photo figcaption {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-top: .6rem;
}

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

.site-footer {
  background: var(--brand-dark);
  color: rgb(255 255 255 / .8);
  padding-top: var(--space-5);
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}

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

@media (min-width: 900px) {
  /* Quick-links column wide enough for one-line links; family column reserves
     enough width for "ACC ADAS Calibration & Coding" on a single line */
  .footer-grid { grid-template-columns: 1fr .9fr .9fr minmax(250px, 1.2fr); }
}

.footer-brand img { height: 120px; width: auto; margin-bottom: var(--space-2); }

/* Clickable footer logos - anchors add no visual change */
.footer-logo-link { display: inline-block; text-decoration: none; }

.footer-brand p { color: rgb(255 255 255 / .7); font-size: .9rem; max-width: 34ch; }

.site-footer h3 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: var(--space-2);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

.site-footer a { color: rgb(255 255 255 / .85); text-decoration: none; }
.site-footer a:hover { color: var(--brand-muted); text-decoration: underline; }

.site-footer address { font-style: normal; }

@media (min-width: 900px) {
  /* Balance the tall quick-links column against its neighbours: two tidy
     columns, reading down then across, every link on a single line. */
  .site-footer nav ul {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: repeat(6, auto); /* 11 links -> 6+5 across two columns */
    column-gap: 1.5rem;
    align-items: start;
    align-content: start;
  }
  .site-footer nav ul a { white-space: nowrap; }
}

.footer-family li { margin-bottom: .6rem; }
.footer-family a { font-weight: 600; color: #fff; }
/* keep the sister-site names on one line ("Motorway Windscreens", "ACC ADAS
   Calibration & Coding") - the grid reserves enough width for them below */
.footer-family li > a { white-space: nowrap; }
.footer-family .family-logo { display: block; height: 38px; width: auto; margin-bottom: .45rem; }
.footer-family small { display: block; color: rgb(255 255 255 / .6); font-size: .82rem; line-height: 1.45; }

.footer-legal {
  border-top: 1px solid rgb(255 255 255 / .14);
  padding-block: var(--space-3);
  font-size: .82rem;
  color: rgb(255 255 255 / .6);
}

.footer-legal p { margin-bottom: .4em; }
.footer-legal a { color: rgb(255 255 255 / .75); }

/* ---------- Floating WhatsApp ---------- */

.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + 64px);
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 22px rgb(0 0 0 / .25);
  animation: fab-in .5s ease .8s backwards;
  transition: transform .18s ease, box-shadow .18s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 12px 28px rgb(0 0 0 / .3);
}

@keyframes fab-in {
  from { opacity: 0; transform: translateY(16px) scale(.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 700px) {
  .whatsapp-fab { bottom: 1.25rem; right: 1.25rem; }
}

/* ---------- Mobile call bar ---------- */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgb(0 0 0 / .15);
  box-shadow: 0 -6px 18px rgb(0 20 40 / .18);
}

.callbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.17rem;
  text-decoration: none;
  color: #fff;
}

.callbar a svg { flex: none; }
.callbar-call { background: var(--brand-accent); }
.callbar-quote { background: var(--brand-dark); }

main { scroll-margin-top: 90px; }

@media (max-width: 699.98px) {
  body { padding-bottom: 64px; } /* clear the call bar */
}

@media (min-width: 700px) {
  .callbar { display: none; }
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

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

/* 404 */
.error-hero { text-align: center; padding-block: var(--space-6); }
.error-hero .big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--brand-muted);
  margin-bottom: var(--space-2);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .btn:hover,
  .card:hover,
  .whatsapp-fab:hover { transform: none; }
}

/* Leaflet coverage maps (areas overview + town pages) */
.map-embed--coverage, .map-embed--county { min-height: 380px; isolation: isolate; }

/* Leaflet makes the map and each county focusable for keyboard users; hide the
   browser's focus ring on mouse clicks but keep it for keyboard navigation */
.map-embed .leaflet-container:focus:not(:focus-visible),
.map-embed path.leaflet-interactive:focus:not(:focus-visible) { outline: none; }

/* Photo licence credits - moved to the very bottom of town pages */
.page-credits { padding: .65rem 0 1.1rem; }
.page-credits p { margin: 0; font-size: .75rem; color: var(--ink-soft); opacity: .85; }
.page-credits a { color: inherit; }

/* ---------- History timeline (about page) ---------- */

.timeline {
  --tl-line: 3px;
  --tl-dot: 1.1rem;
  --tl-bg: var(--paper);
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: .25rem 0 0;
  max-width: 960px;
}
.section--soft .timeline { --tl-bg: var(--brand-soft); }
.timeline::before {
  content: "";
  position: absolute;
  top: .6rem;
  bottom: .6rem;
  left: calc(.25rem + var(--tl-dot) / 2 - var(--tl-line) / 2);
  width: var(--tl-line);
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--brand-primary), var(--brand-muted));
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: .45rem;
  padding: 0 0 var(--space-4) calc(var(--tl-dot) + 1.35rem);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: .25rem;
  top: .5rem;
  width: var(--tl-dot);
  height: var(--tl-dot);
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 4px var(--tl-bg), 0 0 0 6px var(--brand-primary);
}
.timeline-year {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--brand-primary);
}
.timeline-card {
  display: grid;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(0 0 0 / .06);
}
.timeline-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.timeline-body { padding: var(--space-3); }
.timeline-body h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.timeline-body p { color: var(--ink-soft); }
.timeline-body p:last-child { margin-bottom: 0; }

@media (min-width: 700px) {
  .timeline-card--img { grid-template-columns: 260px 1fr; }
  .timeline-card--img img { aspect-ratio: auto; min-height: 210px; max-height: 340px; }
}
@media (min-width: 900px) {
  .timeline { --tl-year: 7.5rem; --tl-gutter: 3.25rem; }
  .timeline::before { left: calc(var(--tl-year) + var(--tl-gutter) / 2 - var(--tl-line) / 2); }
  .timeline-item {
    grid-template-columns: var(--tl-year) 1fr;
    column-gap: var(--tl-gutter);
    padding-left: 0;
  }
  .timeline-dot { left: calc(var(--tl-year) + var(--tl-gutter) / 2 - var(--tl-dot) / 2); top: .45rem; }
  .timeline-year {
    font-size: 1.75rem;
    text-align: right;
    align-self: start;
    position: sticky;
    top: 6.5rem;
  }
}

/* ---------- Blog ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-3);
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card:focus-within { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: var(--space-3);
}
.post-card h2 { font-size: 1.2rem; margin: 0; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--brand-primary); }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--ink-soft); margin: 0; }
.post-card .post-more {
  margin-top: auto;
  padding-top: .35rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--brand-primary);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .75rem;
  font-size: .85rem;
  color: var(--ink-soft);
}
.post-meta .post-tag {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero .post-meta { color: rgb(255 255 255 / .8); }
.hero .post-meta .post-tag { background: rgb(255 255 255 / .12); color: #fff; }
@media (prefers-reduced-motion: reduce) { .post-card { transition: none; } }

.post { max-width: 780px; margin-inline: auto; }
.post-hero { margin: 0 0 var(--space-4); }
.post-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.post-hero figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
.post-body { font-size: 1.05rem; }
.post-body > p:first-of-type { font-size: 1.15rem; color: var(--ink-soft); }
.post-body h2 { font-size: 1.5rem; margin: var(--space-4) 0 var(--space-2); }
.post-body h3 { margin: var(--space-3) 0 var(--space-1); }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li { margin-bottom: .4rem; }
.post-body figure { margin: var(--space-3) 0; }
.post-body figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.post-body figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft); }
.post-body blockquote {
  margin: var(--space-3) 0;
  padding: .3rem 0 .3rem var(--space-3);
  border-left: 4px solid var(--brand-accent);
  color: var(--ink-soft);
  font-style: italic;
}
.post-body blockquote p { margin: 0; }
.post-callout {
  margin: var(--space-4) 0;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--brand-soft);
  border-left: 4px solid var(--brand-accent);
}
.post-callout p:last-child { margin-bottom: 0; }
.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgb(0 0 0 / .08);
}

/* ---------- Previous work gallery ---------- */

.gallery-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery-nav a {
  display: inline-block;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.gallery-nav a:hover { background: var(--brand-primary); color: #fff; }
.section--tight .lede { margin-bottom: .75rem; }

.gallery { columns: 1; column-gap: var(--space-3); }
@media (min-width: 600px) { .gallery { columns: 2; } }
@media (min-width: 960px) { .gallery { columns: 3; } }
.gallery figure {
  break-inside: avoid;
  margin: 0 0 var(--space-3);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgb(0 0 0 / .05);
}
.gallery a { display: block; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: .8rem var(--space-2) 1rem; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.gallery figcaption strong { display: block; margin-bottom: .15rem; font-family: var(--font-head); font-size: .95rem; color: var(--brand-dark); }

/* ---------- Brand strip: drag / swipe (JS adds .marquee--js) ---------- */

.marquee--js {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.marquee--js::-webkit-scrollbar { display: none; }
.marquee--js .marquee-track { animation: none; }
.marquee--js.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.marquee--js.is-dragging a { pointer-events: none; }
.marquee--js .marquee-list li a { -webkit-user-drag: none; }

.hero-quote-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-quote-grid > .qq-slot:empty, .hero-quote-grid > p:empty { display: none; }
.hero-quote-grid > .qqf { order: 1; margin: 1.5rem 0 .5rem; }
.hero-quote-grid > .btn-row, .hero-quote-grid > .hero-actions, .hero-quote-grid > .hero-ticks { order: 2; }
@media (min-width: 1000px) {
  .hero-quote-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 3rem; align-items: start; }
  .hero-quote-grid > * { grid-column: 1; }
  .hero-quote-grid > .qqf { grid-column: 2; grid-row: 1 / span 8; margin: 0; order: 0; }
  .hero-quote-grid > .btn-row, .hero-quote-grid > .hero-actions, .hero-quote-grid > .hero-ticks { order: 0; }
}
.quote-page { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.quote-page > p:empty { display: none; }
.quote-page .qqf { max-width: 680px; }
.quote-aside { background: var(--brand-soft); border-radius: var(--radius); padding: 1.6rem; }
.quote-aside h2 { font-size: 1.3rem; }
.quote-steps { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.quote-steps li { margin-bottom: .5rem; }
.quote-aside p { margin: .4rem 0 0; }
.quote-aside-call { font-weight: 600; }
@media (min-width: 900px) { .quote-page { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
:root { --qqf-radius-btn: var(--radius-sm); }

.legal { max-width: 760px; }
.legal-updated { color: var(--ink-soft); font-size: .92rem; margin: 0 0 1.6rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .55rem; }

/* ---------- Hero photo and top bar on desktop (8 Nov 2026) ---------- */

/* Once the header shows its phone button the top bar's number is a duplicate; the top bar keeps it
   on phones and tablets, where the header nav is folded away. */
@media (min-width: 1200px) {
  .topbar a[href^="tel:"] { display: none; }
}

/* ---------- Quote card: see-through until used; WhatsApp button steps aside (8 Nov 2026) ---------- */
/* On desktop the card sits over the hero photo, so until the customer clicks, taps or types in it the card
   is 90% see-through with light text. The quote form marks the card is-active at that point and it turns
   white (quick-quote.js). */
@media (min-width: 1000px) {
  .hero-quote-grid > .qqf { transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease, color .4s ease; }
  .hero-quote-grid > .qqf .qqf__title, .hero-quote-grid > .qqf .qqf__sub, .hero-quote-grid > .qqf legend,
  .hero-quote-grid > .qqf .qqf__label, .hero-quote-grid > .qqf .qqf__field > label,
  .hero-quote-grid > .qqf .qqf__progress-label, .hero-quote-grid > .qqf .qqf-link { transition: color .4s ease; }
  .hero-quote-grid > .qqf:not(.is-active) {
    --qqf-dark: #fff;
    --qqf-ink-soft: rgb(255 255 255 / .82);
    --qqf-primary: #e3eaf6;
    color: #fff;
    background: rgb(255 255 255 / .1);
    border-color: rgb(255 255 255 / .3);
    box-shadow: 0 18px 50px rgb(10 16 40 / .28);
  }
  .hero-quote-grid > .qqf:not(.is-active) .qqf__progress span:not(.is-done) { background: rgb(255 255 255 / .28); }
}
/* On a phone the floating WhatsApp button sits where the card's Next button lands, so while the customer is
   working through the card and it is on screen (html.qqf-busy, set by quick-quote.js) the button slides off
   the right edge, and returns when the card scrolls away or the request has been sent. */
@media (max-width: 699.98px) {
  .whatsapp-fab { transition: translate .3s ease, transform .18s ease, box-shadow .18s ease; }
  .qqf-busy .whatsapp-fab { translate: calc(100% + 2rem) 0; pointer-events: none; }
}
