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

/* ============================================================
   ACC - ADAS Calibration & Coding  ·  styles.css
   Shared component system (Motorway Windscreens family)
   Mobile-first · breakpoints ~700px and ~900px
   ============================================================ */

:root {
  --brand-dark:    #24344d;
  --brand-primary: #435f82;
  --brand-accent:  #ffe500;
  --brand-accent-ink: #14202e;
  --brand-soft:    #eef2f8;
  --brand-muted:   #889cc1;
  --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 { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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: friendlier line wrapping where supported */
h1, h2, h3 { text-wrap: balance; }
.lede, .hero p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

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

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

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

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

.on-dark :focus-visible,
.topbar :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--brand-accent);
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
  font-weight: 600;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: var(--brand-accent);
  color: var(--brand-accent-ink);
}
.btn--accent:hover {
  box-shadow: 0 8px 22px rgb(255 229 0 / .35);
  color: var(--brand-accent-ink);
}

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

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

.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }

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

.topbar {
  background: var(--brand-dark);
  color: #cdd8e8;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: .45rem;
}
.topbar a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
}
.topbar a:hover { color: var(--brand-accent); }
.topbar svg { flex: none; opacity: .8; }
.topbar-hours { display: none; align-items: center; gap: .4rem; }
.topbar-contact { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.topbar-contact .topbar-email { display: none; }
.topbar-brands { display: none; }

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

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

@media (min-width: 900px) {
  .topbar-brands {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding-right: var(--space-2);
    border-right: 1px solid rgb(255 255 255 / .18);
  }
  .topbar-brands a { color: #cdd8e8; font-weight: 500; }
  .topbar-brands a:hover { color: var(--brand-accent); }
  .topbar-brands a + a::before {
    content: "·";
    margin-right: var(--space-1);
    color: rgb(255 255 255 / .35);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  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(16 30 50 / .12); }

.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: .65rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.logo-link img { height: 40px; width: auto; }

@media (min-width: 1200px) {
  /* wide horizontal lockup - keep modest height so the nav fits */
  .logo-link img { height: clamp(42px, 3.6vw, 52px); }
}

.nav-toggle {
  margin-left: auto;
  appearance: none;
  background: none;
  border: 0;
  padding: .6rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand-dark);
  transition: transform .25s ease, opacity .25s 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(16 30 50 / .14);
  padding: var(--space-2) 0 var(--space-3);
}
.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}
.site-nav a:not(.btn) {
  display: block;
  padding: .7rem .25rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--brand-dark);
  text-decoration: none;
  border-bottom: 1px solid rgb(0 0 0 / .05);
  transition: color .15s ease;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) { color: var(--brand-primary); }
.site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-color: var(--brand-accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-nav li.nav-cta { margin-top: var(--space-2); }
.site-nav li.nav-cta .btn { width: 100%; justify-content: center; }

@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;
    margin-left: auto;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: .25rem;
    width: auto;
    margin: 0;
  }
  .site-nav a:not(.btn) {
    padding: .5rem .65rem;
    font-size: .95rem;
    border-bottom: 0;
    white-space: nowrap;
  }
  .site-nav li.nav-cta { margin: 0 0 0 .6rem; }
  .site-nav li.nav-cta .btn { width: auto; white-space: nowrap; }
}

/* Nav label that shortens on the desktop nav only (space is tight) */
.site-nav .nav-short { display: none; }
@media (min-width: 1200px) {
  .site-nav .nav-full { display: none; }
  .site-nav .nav-short { display: inline; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(160deg, #2b3e5c 0%, var(--brand-dark) 55%, #1a2739 100%);
  background-size: 44px 44px, 44px 44px, cover;
  color: #e6ecf5;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset-block: -20%;
  width: 34%;
  transform: skewX(-16deg);
  pointer-events: none;
  z-index: 1;
}

/* Faded photo art on the hero's right side (home page) */
.hero-art {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 55%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, black 55%, transparent 95%);
  mask-image: linear-gradient(to left, black 55%, transparent 95%);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
  filter: brightness(.8);
  -webkit-mask-image: linear-gradient(to top, transparent 0, black 28%);
  mask-image: linear-gradient(to top, transparent 0, black 28%);
}
@media (max-width: 700px) {
  .hero-art { display: none; }
}
.hero::before {
  left: 52%;
  background: linear-gradient(105deg,
    rgb(255 255 255 / 0) 0%,
    rgb(136 156 193 / .16) 45%,
    rgb(255 255 255 / .05) 60%,
    rgb(255 255 255 / 0) 100%);
}
.hero::after {
  left: 78%;
  width: 22%;
  background: linear-gradient(105deg,
    rgb(255 229 0 / 0) 0%,
    rgb(255 229 0 / .07) 50%,
    rgb(255 229 0 / 0) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-block: var(--space-5) var(--space-6);
}
.hero h1 { color: #fff; max-width: 34ch; margin-bottom: var(--space-2); }
/* Home hero only: let "dealer software, and expertise brought to you" sit on
   one line where the viewport allows (the .nowrap span keeps "brought to you"
   together when it can't) */
.hero:not(.hero--sub) h1 {
  max-width: none;
  font-size: clamp(2rem, 3.9vw + .25rem, 3.1rem);
}
.hero .lede { font-size: 1.12rem; color: #c6d2e3; max-width: 56ch; }

.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);
}
.hero .eyebrow,
.cta-band .eyebrow,
.section--dark .eyebrow { color: var(--brand-muted); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  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;
}
.hero-ticks li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 500;
  color: #dbe4f0;
  white-space: nowrap;
}
.hero-ticks svg { flex: none; color: var(--brand-accent); }

/* Slim interior hero */
.hero--sub .container { padding-block: var(--space-4) var(--space-5); }
.hero--sub h1 { max-width: 26ch; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 var(--space-2);
  padding: 0;
  font-size: .85rem;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand-muted); }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: #c6d2e3; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

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

.trustbar { position: relative; z-index: 2; margin-top: calc(-1 * var(--space-4)); }
.trustbar .container {
  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;
  gap: 1px;
  overflow: hidden;
}
.trustbar-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: var(--space-2) var(--space-3);
  outline: 1px solid rgb(0 0 0 / .05);
}
.trustbar-item svg { flex: none; color: var(--brand-primary); }
.trustbar-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--brand-dark);
  line-height: 1.25;
}
.trustbar-item span { font-size: .82rem; color: var(--ink-soft); }

@media (max-width: 479.98px) {
  .trustbar .container { grid-template-columns: 1fr; }
  .trustbar-item { padding: var(--space-2); }
}

@media (min-width: 900px) {
  .trustbar .container { grid-template-columns: repeat(4, 1fr); }
}

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

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

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

.section-head { max-width: 720px; margin-bottom: var(--space-4); }
.section-head .lede { font-size: 1.08rem; color: var(--ink-soft); }
.section--dark .section-head .lede { color: #b9c6d9; }
.section-head--center { margin-inline: auto; text-align: center; }

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 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);
  padding: var(--space-3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-2);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--brand-primary);
  text-decoration: none;
}
.card-link svg { transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

/* ---------- Audience split panel ---------- */

.split {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.split-panel {
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  border: 1px solid rgb(0 0 0 / .06);
}
.split-panel--trade { background: var(--brand-dark); color: #dbe4f0; border-color: transparent; }
.split-panel--trade h3, .split-panel--trade h2 { color: #fff; }
.split-panel--retail { background: var(--paper); }
.split-panel .eyebrow { color: var(--brand-primary); }
.split-panel--trade .eyebrow { color: var(--brand-muted); }
.split-panel ul { list-style: none; padding: 0; margin: var(--space-2) 0 var(--space-3); }
.split-panel li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding-block: .35rem;
  font-size: .96rem;
}
.split-panel li svg { flex: none; margin-top: .3rem; color: var(--brand-primary); }
.split-panel--trade li svg { color: var(--brand-accent); }

/* ---------- Feature (media + text) ---------- */

.feature {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .feature--flip .feature-media { order: 2; }
}
.feature-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-body h2 { max-width: 22ch; }
.feature-body ul { list-style: none; padding: 0; margin: var(--space-3) 0; }
.feature-body ul li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding-block: .4rem;
}
.feature-body ul li svg { flex: none; margin-top: .3rem; color: var(--brand-primary); }

/* IMI accreditation badge (home + about) */
.accreditation {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: #fff;
  border: 1px solid rgb(0 0 0 / .1);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  margin: 0 0 var(--space-3);
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.accreditation img { height: 36px; width: auto; flex: none; }
.accreditation strong { color: var(--ink); }

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

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-primary);
  margin-bottom: var(--space-2);
}
.section--dark .steps li { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1); }
.section--dark .steps li::before { -webkit-text-stroke-color: var(--brand-accent); }
.steps h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.steps p { font-size: .92rem; color: var(--ink-soft); }
.section--dark .steps p { color: #b9c6d9; }

/* ---------- Review card (family component) ---------- */

.review-card {
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.review-card .stars { display: flex; gap: .2rem; color: #f5b400; margin-bottom: var(--space-2); }
.review-card blockquote { margin: 0 0 var(--space-2); font-size: .98rem; color: var(--ink-soft); }
.review-card cite { font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--brand-dark); }

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--paper);
  border: 1px solid rgb(36 52 77 / .15);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--brand-dark);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
a.chip:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.chip--tech {
  background: rgb(255 255 255 / .06);
  border-color: rgb(255 255 255 / .18);
  color: #e6ecf5;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500;
  letter-spacing: .02em;
}
.chip--tech strong { color: var(--brand-accent); font-weight: 600; }
a.chip--tech:hover { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .5); color: #fff; }

/* ---------- Jump nav (module programming) ---------- */

.jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: var(--space-3);
}
.jumpnav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgb(255 255 255 / .08);
  border: 1px solid rgb(255 255 255 / .2);
  color: #fff;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.jumpnav a:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-accent-ink); }

.module-block { scroll-margin-top: 120px; }
.module-block + .module-block {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgb(36 52 77 / .12);
}
.module-block h2 {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.45rem;
}
.module-block h2 svg { flex: none; color: var(--brand-primary); }
.module-block p { max-width: 68ch; color: var(--ink-soft); }
.module-tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-primary);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  margin-top: var(--space-2);
}

/* Two-column card layout for the module list on desktop */
@media (min-width: 900px) {
  .module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  .module-grid .module-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid rgb(0 0 0 / .06);
    border-radius: var(--radius);
    padding: var(--space-3);
  }
  .module-grid .module-block + .module-block {
    margin-top: 0;
    padding-top: var(--space-3);
    border-top: 1px solid rgb(0 0 0 / .06);
  }
  .module-grid .module-tag { margin-top: auto; }
  .module-grid .module-block p { margin-bottom: var(--space-2); }
  /* odd item count: let the last block fill the row instead of leaving a hole */
  .module-grid .module-block:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- 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: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  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.02rem;
  color: var(--brand-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--brand-primary);
  border-bottom: 2.5px solid var(--brand-primary);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-right: .25rem;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details > div { padding: 0 var(--space-3) var(--space-3); color: var(--ink-soft); }
.faq details > div p { max-width: 62ch; }

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

.cta-band {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-dark) 70%);
  color: #dbe4f0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset-block: -30%;
  left: 62%;
  width: 26%;
  transform: skewX(-16deg);
  background: linear-gradient(105deg, rgb(255 255 255 / 0), rgb(255 255 255 / .07), rgb(255 255 255 / 0));
  pointer-events: none;
}
.cta-band .container {
  position: relative;
  padding-block: var(--space-5);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 26ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--space-3); }

.btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.btn--whatsapp:hover { box-shadow: 0 8px 22px rgb(37 211 102 / .4); 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-3);
}
@media (min-width: 700px) { .form-card { padding: var(--space-4); } }

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

.form-field label,
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--brand-dark);
  margin-bottom: .35rem;
}
.form-field .req,
.field .req { color: #b42318; }
.form-field input,
.form-field select,
.form-field textarea,
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgb(36 52 77 / .25);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgb(67 95 130 / .18);
}
.form-field textarea,
.field textarea { resize: vertical; min-height: 120px; }

fieldset.form-field {
  border: 1.5px solid rgb(36 52 77 / .18);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem 1rem;
  margin: 0;
}
fieldset.form-field legend {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--brand-dark);
  padding-inline: .35rem;
}
.radio-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  font-size: .98rem;
  margin: 0;
  cursor: pointer;
}
.radio-row input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--brand-primary);
}

.form-note { font-size: .9rem; color: var(--ink-soft); }
.form-card .btn { justify-content: center; }
@media (max-width: 699px) { .form-card .btn[type="submit"] { width: 100%; } }

/* QuickQuote plugin forms (WordPress). The plugin form is itself a .form-card: inside the
   contact page's card it must not draw a second one, and its honeypot field stays off screen. */
.form-card .qq-form.form-card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Location / contact cards ---------- */

.location-card {
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.location-card h3 { display: flex; align-items: center; gap: .6rem; }
.location-card h3 svg { flex: none; color: var(--brand-primary); }
.location-card address { font-style: normal; color: var(--ink-soft); margin-bottom: var(--space-2); }
.location-card .hours { font-size: .92rem; color: var(--ink-soft); }
.location-card .hours strong { color: var(--brand-dark); }

/* "View on Google Maps" link on location cards */
.maps-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .6rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}
.maps-link:hover { text-decoration: underline; }
.maps-link svg { flex: none; }

/* Responsive regional map embed (areas hub) */
.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgb(0 0 0 / .06);
  box-shadow: var(--shadow);
  background: var(--brand-soft);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-rows { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.contact-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--paper);
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.contact-row svg { flex: none; color: var(--brand-primary); }
.contact-row.contact-row--wa svg { color: #25D366; }
.contact-row strong { display: block; font-family: var(--font-head); color: var(--brand-dark); }
.contact-row span { font-size: .88rem; color: var(--ink-soft); }

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

.referral {
  display: grid;
  gap: var(--space-3);
  background: var(--brand-dark);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  color: #dbe4f0;
  position: relative;
  overflow: hidden;
}
.referral::before {
  content: "";
  position: absolute;
  inset-block: -30%;
  left: 70%;
  width: 20%;
  transform: skewX(-16deg);
  background: linear-gradient(105deg, rgb(255 255 255 / 0), rgb(136 156 193 / .18), rgb(255 255 255 / 0));
  pointer-events: none;
}
.referral h2, .referral h3 { color: #fff; }
.referral > * { position: relative; }
@media (min-width: 900px) {
  .referral { grid-template-columns: 1.4fr 1fr; align-items: center; padding: var(--space-4); }
  .referral .btn-row { justify-content: flex-end; margin-top: 0; }
}

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

.site-footer {
  background: var(--brand-dark);
  color: #b9c6d9;
  font-size: .95rem;
}
.site-footer .container { padding-block: var(--space-5) var(--space-3); }
.footer-grid { display: grid; gap: 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 1fr 1.2fr 1.3fr; } }

.footer-grid h3 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--space-2);
}
.site-footer a { color: #dbe4f0; text-decoration: none; }
.site-footer a:hover { color: var(--brand-accent); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding-block: .28rem; }
.footer-logo img { height: 99px; width: auto; margin-bottom: var(--space-2); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: var(--space-2);
  font-weight: 600;
}
.footer-nap { font-style: normal; }
.footer-nap p { margin-bottom: var(--space-2); }
.footer-nap strong { color: #fff; }
.footer-family p { font-size: .9rem; margin-bottom: var(--space-2); }
.footer-family strong { display: block; color: #fff; }
.footer-family .family-logo { display: block; height: 40px; width: auto; margin-bottom: .55rem; }
.footer-family .family-logo--tall { height: 88px; }
.footer-logo-link,
.family-logo-link { display: inline-block; text-decoration: none; }
.footer-logo-link img { display: block; }

.footer-legal {
  border-top: 1px solid rgb(255 255 255 / .12);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  font-size: .84rem;
  color: #8fa1ba;
}
.footer-legal a { color: #b9c6d9; text-decoration: underline; }

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

.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + 64px);
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgb(0 0 0 / .25);
  animation: fab-in .45s ease backwards;
  transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-fab:hover { transform: scale(1.07); box-shadow: 0 14px 30px rgb(0 0 0 / .3); color: #fff; }
@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 sticky call bar ---------- */

.callbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgb(0 0 0 / .15);
  box-shadow: 0 -6px 20px rgb(16 30 50 / .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: .98rem;
  text-decoration: none;
}
.callbar a svg { flex: none; }
.callbar-call { background: var(--brand-accent); color: var(--brand-accent-ink); }
.callbar-quote { background: var(--brand-dark); color: #fff; }

@media (max-width: 699.98px) {
  main { padding-bottom: 4.5rem; }
  /* Clear the fixed call bar below the footer too, and keep the
     legal line clear of the floating WhatsApp button */
  .site-footer .container { padding-bottom: calc(var(--space-3) + 4.5rem); }
  .footer-legal { padding-right: 5rem; }
}
@media (min-width: 700px) {
  .callbar { display: none; }
}

/* ---------- Utility ---------- */

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

.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

.grid-2 { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.contact-grid { display: grid; gap: var(--space-4); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}

.county-group + .county-group { margin-top: var(--space-4); }

/* Area detail pages (areas/*.html) */
.area-copy { max-width: 68ch; }
.area-copy p { color: var(--ink-soft); }
.area-copy p + p { margin-top: var(--space-2); }

/* Two-column area intro: copy left, scenic photo or map right at >=900px */
.area-split { display: grid; gap: var(--space-4); }
@media (min-width: 900px) {
  .area-split { grid-template-columns: 1.15fr .85fr; align-items: start; }
}
.area-figure { margin: 0; min-width: 0; }
.area-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .area-split .map-embed { aspect-ratio: auto; height: 100%; min-height: 380px; }
}
.photo-credit {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-top: .6rem;
}
.photo-credit a { color: inherit; }

.county-group h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: var(--space-2);
}
.county-group h3 svg { color: var(--brand-primary); }

.img-pair { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .img-pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .img-pair--3 { grid-template-columns: repeat(3, 1fr); } }
.img-pair figure { margin: 0; }
.img-pair img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.img-pair figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }
.img-pair--3 img { aspect-ratio: 3 / 4; object-fit: cover; }
.img-pair--square img { aspect-ratio: 1 / 1; object-fit: cover; }
.img-pair--43 img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; }

/* ---------- 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 110s 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;
}
@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-list[aria-hidden="true"] { display: none; }
}
.marquee-list li a { color: inherit; text-decoration: none; }
/* hover darkens the make (li carries the .55 opacity) instead of underlining */
.marquee-list li:hover { opacity: 1; }
.marquee-note { font-size: .9rem; color: var(--ink-soft); margin-top: var(--space-3); }

/* ---------- Split-panel figure (fleet photo) ---------- */

.split-panel figure { margin: var(--space-3) 0 0; }
.split-panel figure img { width: 100%; border-radius: var(--radius-sm); }
.split-panel figcaption { font-size: .82rem; color: #b9c6d9; margin-top: .6rem; }

/* ---------- Form extras ---------- */

.is-hidden { display: none !important; }
.input-reg { text-transform: uppercase; }

/* ---------- 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;
  }
  .card:hover, .btn:hover, .contact-row:hover, .whatsapp-fab:hover, a.chip:hover { transform: none; }
}

/* ---------- Wide centred figure (areas page) ---------- */
.figure-wide { margin: var(--space-4) auto 0; max-width: 520px; }
.figure-wide img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.figure-wide figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; text-align: center; }

/* ---------- Horizontal scroll row (home "What we do") ---------- */

.scroll-row { position: relative; }
.scroll-btn { display: none; }

@media (min-width: 900px) {
  .scroll-row .cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-2);
    scrollbar-width: thin; /* visible-but-slim: users can see there's more */
    scrollbar-color: var(--brand-muted) rgb(36 52 77 / .1);
  }
  .scroll-row .cards::-webkit-scrollbar { height: 8px; }
  .scroll-row .cards::-webkit-scrollbar-track { background: rgb(36 52 77 / .1); border-radius: 999px; }
  .scroll-row .cards::-webkit-scrollbar-thumb { background: var(--brand-muted); border-radius: 999px; }
  .scroll-row .cards::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }
  .scroll-row .card { flex: 0 0 310px; scroll-snap-align: start; }
  /* right-edge fade hinting there's more to scroll */
  .scroll-row::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: calc(var(--space-2) + 8px);
    width: 90px;
    background: linear-gradient(90deg, rgb(238 242 248 / 0), var(--brand-soft));
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .scroll-row.is-end::after { opacity: 0; }
  .scroll-btn {
    display: grid;
    place-items: center;
    position: absolute;
    top: calc(50% - var(--space-2));
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgb(0 0 0 / .1);
    background: var(--paper);
    color: var(--brand-dark);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
  }
  .scroll-btn:hover { background: var(--brand-dark); color: #fff; }
  .scroll-btn--prev { left: -18px; }
  .scroll-btn--next { right: -18px; }
  .scroll-btn[hidden] { display: none; }
}

/* Fixed card grids (avoid orphan rows / dead space at mid widths) */
@media (min-width: 900px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Equal-height image pairs (4:5 portrait crop) ---------- */

.img-pair--45 img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Aside photo (contact page) ---------- */

.aside-photo { margin: var(--space-3) 0 0; }
.aside-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Areas page: stacked location cards + photo ---------- */

.locations-split { display: grid; gap: var(--space-3); }
.locations-cards { display: grid; gap: var(--space-3); }
.locations-photo { margin: 0; }
.locations-photo img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .locations-split { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .locations-cards { grid-template-rows: 1fr 1fr; }
  /* photo fills the column height set by the stacked cards */
  .locations-photo { position: relative; }
  .locations-photo img { position: absolute; inset: 0; height: 100%; }
}
@media (max-width: 899.98px) {
  .locations-photo img { aspect-ratio: 4 / 3; }
}

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

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