/* 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'); }

/* =========================================================
   Motorway Windscreens - styles.css
   Shared component system (see ../DESIGN-SPEC.md)
   Mobile-first. Breakpoints: 700px, 900px.
   ========================================================= */

:root {
  --brand-dark: #23205c;
  --brand-primary: #332f83;
  --brand-accent: #be1e2d;
  --brand-accent-ink: #ffffff;
  --brand-soft: #f2f4fa;
  --brand-muted: #889cc1;
  --ink: #1b2430;
  --ink-soft: #4a5568;
  --paper: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgb(0 0 0 / .10);
  --shadow-soft: 0 4px 14px rgb(0 0 0 / .06);
  --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 { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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 var(--space-2);
}

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 lengths, avoid orphans in ledes */
h1, h2, h3 { text-wrap: balance; }
.lede, .hero p { text-wrap: pretty; }

p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--space-2); padding-left: 1.25rem; }

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

strong { font-weight: 700; }

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

.topbar :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffffff;
}

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

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

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

.section { padding-block: var(--space-5); }
.section--soft { background: var(--brand-soft); }
.section--tight { padding-block: var(--space-4); }

.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;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand-primary);
  margin-bottom: var(--space-1);
}

.on-dark .eyebrow, .eyebrow--light { color: var(--brand-muted); }

.lede { font-size: 1.1rem; color: var(--ink-soft); }

.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;
  color: #fff;
}

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- 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: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(0 0 0 / .18); }
.btn:active { transform: translateY(0); }

.btn--accent { background: var(--brand-accent); color: var(--brand-accent-ink); }
.btn--accent:hover { background: #a5141f; color: var(--brand-accent-ink); }

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

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

.btn--ghost-dark { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn--ghost-dark:hover { background: var(--brand-primary); color: #fff; }

.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

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

.topbar {
  background: var(--brand-dark);
  color: #fff;
  font-size: .85rem;
  position: relative;
  z-index: 60;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 40px;
  padding-block: .35rem;
}

.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--brand-muted); }

.topbar-hours { display: none; align-items: center; gap: .4rem; color: rgb(255 255 255 / .85); }
.topbar-links { display: flex; align-items: center; gap: var(--space-3); }
.topbar-links .topbar-email { display: none; }
.topbar-links strong { font-weight: 700; letter-spacing: .02em; }

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

/* cross-brand links to the sister sites (desktop only) */
.topbar-brands { display: none; align-items: center; gap: .6rem; }
.topbar-brands .dot { color: rgb(255 255 255 / .35); }
.topbar-brands a { color: rgb(255 255 255 / .8); }
.topbar-brands a:hover { color: var(--brand-muted); }

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

@media (min-width: 900px) {
  .topbar-brands { display: inline-flex; }
}

/* ---------- Header ---------- */

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

.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(0 0 0 / .10); }

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

.logo-lozenge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex: none;
}

.logo-lozenge img { height: 52px; width: auto; }

@media (min-width: 900px) {
  .logo-lozenge img { height: 68px; }
}

.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 0 0 / .12);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar: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 0 0 / .12);
  padding: var(--space-2) var(--space-3) var(--space-3);
}

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

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.site-nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-dark);
  text-decoration: none;
  padding: .65rem .75rem;
  border-radius: var(--radius-sm);
  transition: background-color .15s ease, color .15s ease;
}

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

.site-nav .nav-cta { margin-top: var(--space-1); }
.site-nav .nav-cta a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
  border-radius: 999px;
  padding: .7rem 1.3rem;
}

.site-nav .nav-cta a:hover { background: #a5141f; color: var(--brand-accent-ink); }

@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: .1rem; }
  .site-nav a { font-size: .95rem; padding: .55rem .7rem; white-space: nowrap; }
  .site-nav .nav-cta { margin: 0 0 0 .5rem; }
}

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

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

/* subtle grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  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;
}

/* skewed translucent glass-streak bands */
.hero .streak {
  position: absolute;
  z-index: -1;
  top: -20%;
  height: 140%;
  transform: skewX(-18deg);
  pointer-events: none;
}

.hero .streak--one {
  right: -8%;
  width: 42%;
  background: linear-gradient(105deg, rgb(51 47 131 / 0) 0%, rgb(51 47 131 / .55) 45%, rgb(136 156 193 / .18) 100%);
}

.hero .streak--two {
  right: 30%;
  width: 9%;
  background: linear-gradient(105deg, rgb(190 30 45 / .0) 0%, rgb(190 30 45 / .28) 60%, rgb(190 30 45 / .05) 100%);
}

.hero-inner {
  position: relative;
  padding-block: var(--space-5) var(--space-6);
}

.hero h1 { color: #fff; margin-bottom: var(--space-2); max-width: 780px; }

.hero .lede { color: rgb(255 255 255 / .85); max-width: 620px; }

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

.hero-ticks {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.1rem;
  font-size: .9rem;
  font-weight: 500;
}

.hero-ticks li { display: inline-flex; align-items: center; gap: .5rem; color: rgb(255 255 255 / .92); white-space: nowrap; }
.hero-ticks .icon { color: var(--brand-muted); width: 1.25em; height: 1.25em; }

/* faded photo art in the hero background (home). Sits above the base grid
   (z-index -2, painted after .hero::before) but below the streak bands (-1)
   and all content. */
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: -2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%);
  mask-image: linear-gradient(to top, transparent 0%, #000 22%);
}

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

/* On phones the faded hero photo fights the grid/streak patterns - hide it. */
@media (max-width: 699.98px) {
  .hero-art { display: none; }
}

/* interior page hero */
.hero--sub .hero-inner { padding-block: var(--space-4) var(--space-5); }
.hero--sub h1 { font-size: clamp(1.8rem, 3.5vw + .5rem, 2.7rem); }

.breadcrumb {
  font-size: .85rem;
  margin-bottom: var(--space-2);
  color: rgb(255 255 255 / .75);
}

.breadcrumb a { color: rgb(255 255 255 / .75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { margin-inline: .45rem; opacity: .6; }

/* home hero gets extra bottom room for the overlapping trustbar */
.hero--home .hero-inner { padding-bottom: calc(var(--space-6) + var(--space-4)); }

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

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

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

.trust-tile {
  padding: var(--space-3) var(--space-2);
  text-align: center;
  border-top: 1px solid rgb(0 0 0 / .06);
}

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

.trust-tile .trust-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-accent);
  line-height: 1.2;
}

.trust-tile .trust-label { font-size: .9rem; color: var(--ink-soft); font-weight: 500; }

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

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

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

/* Cap wide-screen card grids at 3 columns so 5- and 6-card sets balance
   (3+2 / 3+3) instead of leaving orphans on a 4-up row. Grids that hold
   exactly 4 cards can opt back in to 4-up with .cards--four. */
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards--four { grid-template-columns: repeat(4, 1fr); }
}

/* two-up grid for pull-quote pairs */
.cards--two { max-width: 900px; margin-inline: auto; }
@media (min-width: 700px) {
  .cards--two { grid-template-columns: repeat(2, 1fr); }
}

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

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-1);
}

.card-icon .icon { width: 28px; height: 28px; }

.card-icon--whatsapp { background: #e7f8ee; color: #1eb85a; }

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

.card-link .icon { transition: transform .18s ease; }
.card:hover .card-link .icon { transform: translateX(4px); }

/* stretched link: whole card clickable */
.card-link--stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

.card img { border-radius: var(--radius-sm); width: 100%; height: auto; object-fit: cover; }

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

.steps {
  display: grid;
  grid-template-columns: 1fr;
  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);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
  padding-top: var(--space-4);
}

.step-num {
  position: absolute;
  top: -1.1rem;
  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: .35rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }

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

/* ---------- Price panel ---------- */

.price-panel {
  display: grid;
  gap: var(--space-3);
  background: var(--paper);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4) var(--space-3);
  align-items: center;
}

.price-panel .price-tag {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--brand-accent);
  line-height: 1;
  white-space: nowrap;
}

.price-panel .price-tag small {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: .35rem;
  letter-spacing: .02em;
}

.price-panel h3 { font-size: 1.4rem; }
.price-panel ul { list-style: none; padding: 0; margin: var(--space-1) 0 0; }
.price-panel li { display: flex; align-items: flex-start; gap: .5rem; padding-block: .2rem; color: var(--ink-soft); }
.price-panel li .icon { color: var(--brand-primary); margin-top: .25rem; }

@media (min-width: 700px) {
  .price-panel { grid-template-columns: auto 1fr auto; padding: var(--space-4); }
}

/* ---------- Promo strip (commercial) ---------- */

.promo-strip {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}

.promo-strip::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -4%;
  width: 34%;
  height: 160%;
  transform: skewX(-18deg);
  background: linear-gradient(105deg, rgb(255 255 255 / 0), rgb(255 255 255 / .08));
  pointer-events: none;
}

.promo-strip h2 { color: #fff; margin-bottom: .35rem; }
.promo-strip p { color: rgb(255 255 255 / .85); max-width: 60ch; }

@media (min-width: 900px) {
  .promo-strip { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); }
  .promo-strip .btn { flex: none; }
}

/* ---------- Reviews ---------- */

.review-card {
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.review-stars { display: inline-flex; gap: .2rem; color: var(--brand-accent); }
.review-stars .icon { width: 18px; height: 18px; }

.review-card blockquote { margin: 0; font-size: .98rem; color: var(--ink); }
.review-card blockquote p::before { content: "\201C"; }
.review-card blockquote p::after { content: "\201D"; }

.review-name {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--brand-primary);
}

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

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

.chips li a, .chips li span {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--brand-muted);
  color: var(--brand-primary);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

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

/* county-grouped chips 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 .icon { color: var(--brand-accent); width: 20px; height: 20px; }

/* ---------- Checklist ---------- */

.ticklist { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.ticklist li { display: flex; align-items: flex-start; gap: .6rem; padding-block: .35rem; }
.ticklist .icon { color: var(--brand-accent); margin-top: .3rem; }

/* ---------- Split layout & gallery ---------- */

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

@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr .85fr; }
  .split--flip > :first-child { order: 2; }
  .split--flip > :last-child { order: 1; }
}

.thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

.thumb-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgb(0 0 0 / .06);
}

.thumb-grid figure { margin: 0; }
.thumb-grid figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .4rem; }

/* Equal-height image rows: every image in the grid renders at the same aspect,
   whatever the file dimensions. */
.thumb-grid--even img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.thumb-grid--tall img { aspect-ratio: 3 / 4; height: auto; object-fit: cover; }

/* ---------- Feature pair (large two-up photos) ---------- */

.feature-pair {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.feature-pair img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgb(0 0 0 / .06);
}

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

/* landscape variant for wide source photos */
.feature-pair--43 img { aspect-ratio: 4 / 3; }

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

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

.faq details {
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

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

.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform .2s ease;
}

.faq details[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq details[open] summary { color: var(--brand-primary); }

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

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

.cta-band {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-dark));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 55%;
  width: 20%;
  height: 160%;
  transform: skewX(-18deg);
  background: linear-gradient(105deg, rgb(255 255 255 / 0), rgb(255 255 255 / .07));
  pointer-events: none;
}

.cta-band .container {
  padding-block: var(--space-5);
  text-align: center;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / .85); max-width: 60ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--space-3); }

.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1eb457; color: #fff; }

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

.form-card {
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4) var(--space-3);
}

@media (min-width: 700px) { .form-card { padding: var(--space-4); } }

.form-grid { display: grid; gap: var(--space-3); }

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

.field label,
.field-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  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);
  background: var(--paper);
  border: 1.5px solid rgb(0 0 0 / .18);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  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-primary);
  box-shadow: 0 0 0 3px rgb(51 47 131 / .18);
}

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

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
  border: 1.5px solid rgb(0 0 0 / .18);
  border-radius: 999px;
  padding: .5rem 1.1rem;
}

.radio-row input { width: auto; accent-color: var(--brand-primary); }
.radio-row label:has(input:checked) { border-color: var(--brand-primary); background: var(--brand-soft); }

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

/* honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact blocks ---------- */

.contact-tiles { display: grid; gap: var(--space-3); }

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

.contact-tile {
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .07);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
  text-align: center;
}

.contact-tile .card-icon { margin-inline: auto; }
.contact-tile a { font-weight: 600; word-break: break-word; }

address { font-style: normal; }

.tel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.tel-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .07);
  border-radius: var(--radius-sm);
  padding: .75rem var(--space-2);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.tel-grid a:hover { border-color: var(--brand-primary); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.tel-grid .tel-town { font-family: var(--font-head); font-weight: 700; color: var(--brand-dark); }
.tel-grid .tel-num { color: var(--brand-primary); font-weight: 600; font-variant-numeric: tabular-nums; }

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

.site-footer { background: var(--brand-dark); color: rgb(255 255 255 / .85); font-size: .95rem; }

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

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

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

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding-block: .25rem; }

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

.footer-logo img { height: 48px; width: auto; margin-bottom: var(--space-2); }
.footer-logo a { display: inline-block; }
.footer-logo a:hover { text-decoration: none; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: var(--space-2);
  color: #fff;
  font-weight: 600;
}

.footer-social .icon { width: 22px; height: 22px; }

.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact .icon { color: var(--brand-muted); margin-top: .3rem; }

.footer-family p { margin-bottom: var(--space-3); }
.footer-family a { font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); }
.footer-family .family-desc { display: block; font-weight: 400; color: rgb(255 255 255 / .7); font-size: .88rem; }
.footer-family .family-logo { display: block; height: 40px; width: auto; margin-bottom: .5rem; }
.footer-family .family-logo[src$="family-pgs.svg"] { height: 100px; }
.footer-family .family-logo-link { display: inline-block; width: 100%; }
.footer-family .family-logo-link:hover { text-decoration: none; }

/* ---------- Google Maps helpers ---------- */

.map-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--ink-soft); text-decoration: underline; text-decoration-color: rgb(0 0 0 / .25); text-underline-offset: 3px; }
.map-link:hover { color: var(--brand-primary); text-decoration-color: currentColor; }
.map-link .icon { width: 1em; height: 1em; }

.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; display: block; }

/* interactive 3D glass guide (windscreen-replacement page). The heights are a
   no-JS fallback - an inline script on the page sizes the iframe to its content. */
.glass-guide-embed { display: block; width: 100%; height: 820px; border: 0; border-radius: var(--radius); }
@media (max-width: 900px) { .glass-guide-embed { height: 1100px; } }

.area-figure { margin: 0; }
.area-figure img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.photo-credit { font-size: .8rem; color: var(--ink-soft); margin: .5rem 0 0; }
.photo-credit a { color: inherit; }

.footer-legal {
  border-top: 1px solid rgb(255 255 255 / .14);
  padding-block: var(--space-3);
  font-size: .85rem;
  color: rgb(255 255 255 / .65);
  text-align: center;
  display: grid;
  gap: .35rem var(--space-4);
  align-items: center;
}

.footer-legal p { margin: 0; }
.footer-legal a { color: rgb(255 255 255 / .8); }

/* Allscreens Nationwide membership badge - bottom right of every page, links to their site */
.footer-member { justify-self: center; margin-top: var(--space-2) !important; }

.footer-member a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.footer-member a:hover { text-decoration: none; }
.footer-member a:hover span { text-decoration: underline; }
.footer-member img { height: 64px; width: auto; display: block; background: #fff; padding: .45rem .7rem; border-radius: var(--radius-sm); }
.footer-member span { max-width: 26ch; }

@media (min-width: 800px) {
  .footer-legal { grid-template-columns: 1fr auto; text-align: left; }
  .footer-member { grid-column: 2; grid-row: 1 / span 2; justify-self: end; margin-top: 0 !important; }
  .footer-member a { flex-direction: row; gap: 1rem; text-align: left; }
  .footer-member span { max-width: 17ch; }
}

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

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

.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgb(0 0 0 / .32); color: #fff; }
.whatsapp-fab svg { width: 30px; height: 30px; fill: currentColor; }

@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 { right: 1.25rem; bottom: 1.25rem; } }

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

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  box-shadow: 0 -6px 20px rgb(0 0 0 / .18);
}

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

.callbar .callbar-call { background: var(--brand-accent); color: var(--brand-accent-ink); }
.callbar .callbar-quote { background: var(--brand-dark); color: #fff; }

main { display: block; }

@media (max-width: 699.98px) {
  /* Clearance for the fixed call bar goes below the footer (navy), not on main
     (which showed as a white strip between the CTA band and the footer and let
     the call bar cover the footer's last legal line). */
  .site-footer { padding-bottom: 64px; }
}

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

/* ---------- Section rhythm on larger screens ---------- */

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

/* ---------- 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, .tel-grid a:hover, .whatsapp-fab:hover { transform: none; }
}

/* ---------- 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 118s linear infinite; /* 41 makes vs ~19 on sister sites - longer duration = same px speed */
}

.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; }

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

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

/* ---------- Photo strip (3-4 across gallery) ---------- */

.thumb-grid--one { grid-template-columns: 1fr; }

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

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

/* ---------- Form enhancements ---------- */

.field.is-hidden { display: none; }

.input-upper { text-transform: uppercase; }

/* 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);
}

/* ---------- 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); } }

.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; }
@media (min-width: 800px) { .footer-legal > p:not(.footer-member) { grid-column: 1; } }

/* ---------- 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; }
}
