/* ==========================================================================
   GlassStones — site stylesheet
   One file, no framework, no build step. Design tokens first, then layout,
   then components. Mirrors the palette and typography of the previous site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — self-hosted
   --------------------------------------------------------------------------
   One variable woff2 per family, latin subset, both preloaded in layout.php.
   OFL-1.1: see assets/fonts/OFL-*.txt. Until this the fonts came from Google
   behind a media="print" + onload swap that the CSP blocked, so they had never
   actually rendered; see git history.
   The *-fallback faces are Arial resized to each web font's metrics (computed
   from the files with fonttools) so the swap does not move the layout. */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jost-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/roboto-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost Fallback';
  src: local('Arial');
  size-adjust: 95.69%;
  ascent-override: 111.82%;
  descent-override: 39.19%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Roboto Fallback';
  src: local('Arial');
  size-adjust: 100.53%;
  ascent-override: 92.28%;
  descent-override: 24.28%;
  line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (carried over from the previous site) */
  --c-primary:        #294DB6;
  --c-primary-dark:   #1E3B8F;
  --c-secondary:      #486BD2;
  --c-accent:         #2BB74D;
  --c-accent-dark:    #22993F;
  --c-accent-bright:  #30CB56;

  --c-heading:        #0C1225;
  --c-text:           #3E4055;
  --c-muted:          #666E83;
  --c-light:          #8E9CD2;

  --c-bg:             #FFFFFF;
  --c-bg-soft:        #F6F7FD;
  --c-bg-green:       #EEFFF2;
  --c-border:         #E6EAF8;
  --c-border-strong:  #E1E4EF;

  --c-star:           #FFB400;
  --c-error:          #CF2E2E;

  /* Type */
  --f-heading: 'Jost', 'Jost Fallback', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Roboto', 'Roboto Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.45vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;

  --section-y: clamp(2.5rem, 1.5rem + 4vw, 5rem);

  /* Shape */
  --radius:    4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(12, 18, 37, .06), 0 1px 3px rgba(12, 18, 37, .05);
  --shadow:    0 4px 12px rgba(12, 18, 37, .07);
  --shadow-lg: 0 12px 32px rgba(12, 18, 37, .12);

  --container: 1200px;
  --container-narrow: 780px;

  --header-h: 84px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-family: var(--f-heading);
  color: var(--c-heading);
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p  { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

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

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li + li { margin-top: var(--sp-2); }

hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--sp-6) 0; }

blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--c-accent);
  background: var(--c-bg-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--c-bg-soft);
  padding: .15em .4em;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

.section        { padding-block: var(--section-y); }
.section--soft  { background: var(--c-bg-soft); }
.section--green { background: var(--c-bg-green); }
.section--dark  { background: var(--c-heading); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section-title {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.section-title + .section-lead {
  text-align: center;
  max-width: 60ch;
  margin: calc(var(--sp-6) * -1) auto var(--sp-6);
  color: var(--c-muted);
  font-size: var(--fs-lead);
}

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.lead { font-size: var(--fs-lead); color: var(--c-muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--f-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--f-heading);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; box-shadow: var(--shadow); }

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

.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }

.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--c-heading); }

.btn--lg { padding: 18px 36px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.site-header.is-stuck { box-shadow: var(--shadow); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.site-logo { flex: 0 0 auto; display: block; }
/* Sized by height with auto width: the artwork is 5:3, and the old square
   72x72 box letterboxed it to about 43px of actual logo. */
.site-logo img { width: auto; height: 56px; }

.primary-nav { margin-left: auto; }
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav__list li + li { margin-top: 0; }
.primary-nav__item { position: relative; }
.primary-nav__item > a {
  font-family: var(--f-heading);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--c-heading);
  text-decoration: none;
  padding: var(--sp-3) 0;
  display: inline-block;
}
.primary-nav__item > a:hover,
.primary-nav__item > a[aria-current="page"] { color: var(--c-primary); }
.primary-nav__item > a[aria-current="page"] { font-weight: 600; }

.has-children > a::after {
  content: '';
  display: inline-block;
  width: .4em; height: .4em;
  margin-left: .45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.submenu-toggle { display: none; }

.submenu {
  position: absolute;
  top: 100%;
  left: -var(--sp-4);
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-children:hover > .submenu,
.has-children:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu li + li { margin-top: 0; }
.submenu a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: .9375rem;
  color: var(--c-text);
  text-decoration: none;
  border-radius: var(--radius);
}
.submenu a:hover { background: var(--c-bg-soft); color: var(--c-primary); }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-5); }

.header-phone {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--c-heading);
}
.header-phone .icon { color: var(--c-primary); flex: 0 0 auto; }
.header-phone__text { display: flex; flex-direction: column; line-height: 1.2; }
.header-phone__label { font-size: .75rem; color: var(--c-muted); }
.header-phone__number { font-family: var(--f-heading); font-weight: 700; font-size: 1rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block; height: 2px; background: var(--c-heading); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-header__inner { flex-wrap: wrap; }
  .primary-nav {
    order: 10;
    flex-basis: 100%;
    margin-left: 0;
    display: none;
    border-top: 1px solid var(--c-border);
    padding-block: var(--sp-3);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__item { border-bottom: 1px solid var(--c-border); }
  .primary-nav__item:last-child { border-bottom: 0; }
  .primary-nav__item > a { padding: var(--sp-4) 0; width: 100%; }
  .has-children > a::after { display: none; }
  .submenu-toggle {
    display: block;
    position: absolute; top: 4px; right: 0;
    width: 44px; height: 44px;
    background: transparent; border: 0; cursor: pointer;
  }
  .submenu-toggle::after {
    content: ''; display: block; width: .5em; height: .5em; margin: 0 auto;
    border-right: 2px solid var(--c-heading); border-bottom: 2px solid var(--c-heading);
    transform: rotate(45deg); transition: transform .2s ease;
  }
  .submenu-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 var(--sp-3) var(--sp-4);
    display: none; min-width: 0;
  }
  .submenu.is-open { display: block; }
  .site-header__actions { margin-left: auto; }
}

@media (max-width: 640px) {
  .header-phone__text { display: none; }
  .header-phone { padding: 10px; border: 1px solid var(--c-border); border-radius: var(--radius); }
  .header-cta { padding: 12px 16px; font-size: .8125rem; }
  .site-logo img { width: auto; height: 40px; }
  :root { --header-h: 68px; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--c-heading);
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(12,18,37,.88) 0%, rgba(12,18,37,.72) 45%, rgba(12,18,37,.35) 100%);
}
.hero__inner {
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
  max-width: 680px;
}
.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero .eyebrow { color: var(--c-accent-bright); }
.hero__text { font-size: var(--fs-lead); color: rgba(255,255,255,.88); margin-bottom: var(--sp-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.hero__points {
  list-style: none; padding: 0; margin: var(--sp-6) 0 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
}
.hero__points li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); color: rgba(255,255,255,.9); }
.hero__points li::before {
  content: '';
  width: 18px; height: 18px; flex: 0 0 auto;
  background: var(--c-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* Simple page banner for interior pages */
.page-hero {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
  padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem);
}
.page-hero__inner { max-width: 760px; }
.page-hero h1 { margin-bottom: var(--sp-3); }
.page-hero .lead { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--c-primary);
  color: #fff;
  font-size: var(--fs-small);
}
.trust-strip__inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-3) var(--sp-6);
  padding-block: var(--sp-3);
}
.trust-strip__item { display: inline-flex; align-items: center; gap: var(--sp-2); }
.stars { color: var(--c-star); letter-spacing: 1px; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-border-strong); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--c-bg-green);
  color: var(--c-accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
}
.card__title { margin-bottom: var(--sp-2); }
.card__text { color: var(--c-muted); flex: 1; }
.card__link {
  margin-top: var(--sp-4);
  font-family: var(--f-heading); font-weight: 600; font-size: .9375rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4em;
}
.card__link::after { content: '→'; transition: transform .18s ease; }
.card:hover .card__link::after { transform: translateX(3px); }

.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card--media .card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }

/* Numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4.25rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  background: var(--c-primary); color: #fff;
  font-family: var(--f-heading); font-weight: 700; font-size: 1.25rem;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   9. Price cards
   -------------------------------------------------------------------------- */
.price-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px)  { .price-grid { grid-template-columns: 1fr; } }
/* A three-option grid (gutter scopes, front-only) should not inherit the 4-across rule */
.price-grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 900px) { .price-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.price-grid--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 900px) { .price-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.price-card {
  position: relative;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.price-card:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.price-card.is-selected { border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(43,183,77,.15); }
/* Block-level so the label, amount and note always stack, whatever the card width */
.price-card__label,
.price-card__amount,
.price-card__was,
.price-card__note { display: block; }

.price-card__label { font-family: var(--f-heading); font-weight: 600; color: var(--c-muted); font-size: .9375rem; }
.price-card__amount {
  font-family: var(--f-heading); font-weight: 700;
  font-size: 2.5rem; color: var(--c-heading); line-height: 1.1;
  margin: var(--sp-2) 0;
}
.price-card__was { color: var(--c-muted); text-decoration: line-through; font-size: .9375rem; }
.price-card__note { font-size: .8125rem; color: var(--c-muted); }
.price-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--c-accent); color: #fff;
  font-family: var(--f-heading); font-size: .6875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Forms / quote wizard
   -------------------------------------------------------------------------- */
.quote {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quote__head { padding: var(--sp-5); border-bottom: 1px solid var(--c-border); text-align: center; }
.quote__head h2 { margin-bottom: var(--sp-2); }
.quote__body { padding: var(--sp-5); }

.progress { display: flex; gap: 4px; padding: 0 var(--sp-5); }
.progress__seg { flex: 1; height: 4px; background: var(--c-border); border-radius: 2px; }
.progress__seg.is-done { background: var(--c-accent); }

.step-panel { display: none; }
.step-panel.is-active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: var(--sp-5); }
.field__label {
  display: block;
  font-family: var(--f-heading); font-weight: 600; font-size: 1.0625rem;
  color: var(--c-heading); margin-bottom: var(--sp-3);
}
.field__hint { display: block; font-weight: 400; font-size: .875rem; color: var(--c-muted); margin-top: 2px; }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--f-body); font-size: 1rem;
  padding: 14px 16px;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(41,77,182,.14);
}
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--c-error); }
.textarea { min-height: 120px; resize: vertical; }

/* Choice tiles (radio / checkbox styled as buttons) */
.choices { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choices--tight { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
.choices--stack { grid-template-columns: 1fr; }

.choice { position: relative; margin: 0; }
.choice input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.choice__box {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 56px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-md);
  font-family: var(--f-heading); font-weight: 500;
  color: var(--c-heading);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  pointer-events: none;
  height: 100%;
}
.choice__box small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .8125rem; color: var(--c-muted); }
.choice input:hover + .choice__box { border-color: var(--c-light); }
.choice input:checked + .choice__box {
  border-color: var(--c-accent);
  background: var(--c-bg-green);
  box-shadow: 0 0 0 3px rgba(43,183,77,.14);
}
.choice input:focus-visible + .choice__box { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.quote-choice-centre { justify-content: center; }

.field__error { display: none; color: var(--c-error); font-size: .875rem; margin-top: var(--sp-2); }
.field.has-error .field__error { display: block; }

.form-actions { display: flex; gap: var(--sp-3); justify-content: space-between; margin-top: var(--sp-6); }
.form-actions .btn--back { background: transparent; color: var(--c-muted); border-color: var(--c-border-strong); }
.form-actions .btn--back:hover { color: var(--c-heading); border-color: var(--c-muted); }

.form-note { font-size: .8125rem; color: var(--c-muted); text-align: center; margin-top: var(--sp-4); }

.form-status { padding: var(--sp-4); border-radius: var(--radius-md); margin-bottom: var(--sp-4); }
.form-status--error   { background: #FEECEC; color: #8A1F1F; border: 1px solid #F5C2C2; }
.form-status--success { background: var(--c-bg-green); color: #14622C; border: 1px solid #B6E7C4; }

/* Honeypot — never visible, never focusable */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   10a. Internal gutter pricing lab
   -------------------------------------------------------------------------- */
.lab-hero {
  display: grid;
  gap: var(--sp-5);
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: var(--sp-6);
}
@media (min-width: 820px) {
  .lab-hero { grid-template-columns: minmax(0, 1fr) auto; }
}
.lab-panel,
.lab-box {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.lab-panel { padding: var(--sp-5); }
.lab-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
  .lab-grid { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }
}
.lab-box { padding: var(--sp-5); }
.lab-box h2 { font-size: 1.35rem; margin-bottom: var(--sp-4); }
.lab-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.lab-box__head h2 { margin-bottom: 0; }
.lab-control-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.lab-control-grid .field { margin-bottom: 0; }
.lab-choice-centre { justify-content: center; }
.lab-check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-md);
  color: var(--c-heading);
  font-family: var(--f-heading);
  font-weight: 600;
}
.lab-check + .lab-check { margin-top: var(--sp-3); }
.lab-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--c-accent); }
.lab-money {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-2);
}
.lab-money > span {
  color: var(--c-muted);
  font-family: var(--f-heading);
  font-weight: 700;
}
.btn--sm { padding: 10px 16px; font-size: .75rem; }
.lab-results { margin-top: var(--sp-5); }
.lab-results .price-card { cursor: default; }
.lab-results .price-card:hover { transform: none; }
.lab-breakdown {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: var(--sp-5) 0 0;
}
.lab-breakdown div {
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-bg-soft);
}
.lab-breakdown dt {
  color: var(--c-muted);
  font-size: .8125rem;
  line-height: 1.3;
}
.lab-breakdown dd {
  margin: var(--sp-1) 0 0;
  color: var(--c-heading);
  font-family: var(--f-heading);
  font-size: 1.25rem;
  font-weight: 700;
}
.lab-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.lab-toolbar .form-note { margin-top: 0; text-align: left; }
.lab-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.lab-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: .9375rem;
}
.lab-table th,
.lab-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  white-space: nowrap;
}
.lab-table thead th {
  position: sticky;
  top: 0;
  background: var(--c-bg-soft);
  color: var(--c-heading);
  font-family: var(--f-heading);
}
.lab-table tbody tr:nth-child(even) { background: #FBFCFF; }
.lab-table tbody tr:hover { background: var(--c-bg-green); }
.lab-table-input {
  display: grid;
  grid-template-columns: auto 4.5rem;
  align-items: center;
  gap: 4px;
}
.lab-table-input span {
  color: var(--c-muted);
  font-family: var(--f-heading);
  font-weight: 700;
}
.lab-table-input input {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  color: var(--c-heading);
  font: 600 .9375rem var(--f-heading);
}
.lab-table-input input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(41,77,182,.14);
}

/* --------------------------------------------------------------------------
   10b. Condensed quote form for small screens
   --------------------------------------------------------------------------
   On a 375px phone the first step measured 1,884px tall — over two full
   screens of scrolling before reaching a button. This tightens the vertical
   rhythm of the wizard only; the desktop layout is untouched.

   Two floors are deliberately respected and must not be lowered:
     - tap targets stay at 44px minimum (WCAG 2.5.5 / Apple HIG)
     - input font-size stays at 16px, below which iOS Safari zooms on focus
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Card chrome */
  .quote__head          { padding: var(--sp-4) var(--sp-4) var(--sp-3); }
  .quote__head h2       { margin-bottom: var(--sp-1); font-size: 1.375rem; }
  .quote__head .lead    { font-size: 1rem; }
  .quote__body          { padding: var(--sp-4); }
  .progress             { padding: 0 var(--sp-4); }

  /* Field rhythm — the single biggest win, repeated ~8 times per panel */
  .field                { margin-bottom: var(--sp-4); }
  .field__label         { font-size: .9375rem; margin-bottom: var(--sp-2); }
  .field__hint          { font-size: .8125rem; }

  /* Inputs: tighter box, but 16px text so iOS does not zoom */
  .input, .select, .textarea { padding: 12px 13px; font-size: 1rem; }  /* 12px keeps the box at 45px — above the 44px floor */
  .textarea             { min-height: 76px; }

  /* Choice tiles — step 1 is almost entirely these */
  .choices              { gap: 6px; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
  .choices--tight       { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
  .choice__box          { min-height: 44px; padding: 8px 11px; gap: var(--sp-2); font-size: .9375rem; }
  .choice__box small    { font-size: .75rem; line-height: 1.3; }

  /* Buttons — still a comfortable 44px+ target */
  .btn                  { padding: 13px 20px; }
  .btn--lg              { padding: 14px 22px; font-size: .875rem; }
  .form-actions         { margin-top: var(--sp-4); gap: var(--sp-2); }
  .form-note            { margin-top: var(--sp-3); }
  .form-status          { padding: var(--sp-3); margin-bottom: var(--sp-3); }

  /* Price cards on the results step */
  .price-card           { padding: var(--sp-4) var(--sp-3); }
  .price-card__amount   { font-size: 1.75rem; }
  .price-grid           { gap: var(--sp-2); }

  /* The reassurance list under the booking step */
  .checklist            { margin-block: var(--sp-3); }
  .checklist li         { margin-bottom: var(--sp-1); }
}

/* --------------------------------------------------------------------------
   11. Content (blog + legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.prose h3 { margin-top: var(--sp-6); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose img { border-radius: var(--radius-md); margin-block: var(--sp-5); }
.prose a { text-decoration: underline; }

.table-scroll { overflow-x: auto; margin-block: var(--sp-5); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border); text-align: left; }
th { font-family: var(--f-heading); font-weight: 600; color: var(--c-heading); background: var(--c-bg-soft); }

.post-meta { color: var(--c-muted); font-size: var(--fs-small); margin-bottom: var(--sp-5); }
.post-meta span + span::before { content: '·'; margin: 0 .5em; }

.toc {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
}
.toc__title { font-family: var(--f-heading); font-weight: 600; margin-bottom: var(--sp-2); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-top: var(--sp-2); }
.toc li[data-level="3"] { padding-left: var(--sp-4); }

.post-layout { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0,1fr); }
@media (min-width: 1000px) { .post-layout { grid-template-columns: minmax(0,1fr) 300px; } }
.post-sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-4)); align-self: start; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq-section { padding-block: var(--section-y); background: var(--c-bg-soft); }
.faq-list { display: grid; gap: var(--sp-3); }
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item__q {
  font-family: var(--f-heading); font-weight: 600; font-size: 1.0625rem;
  color: var(--c-heading);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: ''; flex: 0 0 auto;
  width: .55em; height: .55em;
  border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.faq-item[open] .faq-item__q::after { transform: rotate(-135deg) translateY(-2px); }
.faq-item__a { padding: 0 var(--sp-5) var(--sp-5); color: var(--c-muted); }

/* --------------------------------------------------------------------------
   13. Reviews
   -------------------------------------------------------------------------- */
.reviews { padding-block: var(--section-y); }
.reviews__grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.review-card blockquote { margin: var(--sp-3) 0; padding: 0; border: 0; background: none; }
.review-card figcaption { color: var(--c-muted); font-size: var(--fs-small); }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--c-primary); color: #fff; padding-block: var(--section-y); }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
}
.cta-band__title { color: #fff; margin-bottom: var(--sp-2); }
.cta-band__text { color: rgba(255,255,255,.85); margin: 0; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   15. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); font-size: var(--fs-small); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  list-style: none; margin: 0; padding: var(--sp-3) 0;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); color: var(--c-muted); }
.breadcrumbs li + li::before { content: '/'; color: var(--c-light); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary); text-decoration: underline; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--c-heading); color: rgba(255,255,255,.72); margin-top: var(--sp-8); }

.footer-cta { background: var(--c-accent); padding-block: var(--sp-6); }
.footer-cta__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5);
}
.footer-cta__title { color: #fff; margin-bottom: var(--sp-1); font-size: var(--fs-h3); }
.footer-cta__text { color: rgba(255,255,255,.9); margin: 0; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.footer-cta .btn--primary { background: #fff; color: var(--c-accent-dark); }
.footer-cta .btn--primary:hover { background: var(--c-heading); color: #fff; }
.footer-cta .btn--outline { color: #fff; border-color: rgba(255,255,255,.7); }
.footer-cta .btn--outline:hover { background: #fff; color: var(--c-accent-dark); }

.footer-main {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-block: var(--sp-7);
}
.footer-brand { grid-column: span 2; max-width: 380px; }
@media (max-width: 700px) { .footer-brand { grid-column: span 1; } }
/* No white box behind the logo. It is transparent now, and the artwork was
   drawn for dark backgrounds: on the footer navy the light half of the
   wordmark measures 15.9:1, against 1.2:1 on white where only its thin dark
   outline rescued it. The box existed to hide the old logo's baked-in grey
   background, which no longer exists. */
.footer-brand img { display: block; width: 132px; height: auto; }
.footer-brand__text { margin: var(--sp-4) 0; font-size: .9375rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: .9375rem; }
.footer-contact li { margin-top: var(--sp-2); }
.footer-contact address { font-style: normal; }
.footer-col__title {
  color: #fff; font-size: 1rem; font-weight: 600;
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; font-size: .9375rem; }
.footer-col li { margin-top: var(--sp-2); }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-small); }
.footer-bottom__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
  padding-block: var(--sp-4);
}
.footer-bottom p { margin: 0; }
.footer-bottom__links { display: flex; gap: var(--sp-4); }
/* Statutory trading disclosure. Required on the website, not required to shout. */
.footer-bottom__legal { margin: 0; padding-bottom: var(--sp-4); opacity: .6; }

/* Sticky call bar on small screens */
.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 14px;
  background: var(--c-accent); color: #fff;
  font-family: var(--f-heading); font-weight: 600; letter-spacing: .3px;
  text-decoration: none;
  box-shadow: 0 -2px 12px rgba(12,18,37,.18);
}
@media (max-width: 640px) {
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 56px; }
}

/* --------------------------------------------------------------------------
   17. Utilities
   -------------------------------------------------------------------------- */
.split { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .split--reverse > :first-child { order: 2; }
}
.split img { border-radius: var(--radius-lg); width: 100%; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .35em;
  width: 20px; height: 20px;
  background: var(--c-bg-green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BB74D' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}

.area-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; }
.area-list li { margin: 0; }
.area-list a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: .875rem;
  text-decoration: none;
  color: var(--c-text);
}
.area-list a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* --------------------------------------------------------------------------
   18. Cookie consent
   Accept and Reject share one class on purpose. The ICO expects rejecting to
   be as easy as accepting, so they must stay identical in size and weight —
   please do not promote Accept to .btn--primary.
   -------------------------------------------------------------------------- */
.gs-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  background: var(--c-bg);
  border-top: 1px solid var(--c-border-strong);
  box-shadow: var(--shadow-lg);
}
.gs-consent[hidden] { display: none; }

.gs-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-4);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4) var(--sp-6);
  align-items: center;
}

.gs-consent__title { font-size: 1rem; margin: 0 0 4px; color: var(--c-heading); }
.gs-consent__desc  { font-size: .875rem; margin: 0; color: var(--c-text); line-height: 1.5; }

.gs-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.gs-consent__btn {
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 1px solid var(--c-primary);
  border-radius: var(--radius);
  background: var(--c-primary);
  color: #fff;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.gs-consent__btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.gs-consent__btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.gs-consent__btn--quiet {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border-strong);
}
.gs-consent__btn--quiet:hover { background: var(--c-bg-soft); color: var(--c-primary-dark); }

.gs-consent__prefs {
  grid-column: 1 / -1;
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-4);
  display: grid;
  gap: 10px;
  justify-items: start;
}
.gs-consent__prefs[hidden] { display: none; }

.gs-consent__row { width: 100%; }
.gs-consent__label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--c-text);
  cursor: pointer;
}
.gs-consent__label input { margin-top: 3px; flex: 0 0 auto; }
.gs-consent__label input:disabled { cursor: default; }

@media (max-width: 720px) {
  .gs-consent__inner { grid-template-columns: 1fr; }
  .gs-consent__btn   { flex: 1 1 auto; text-align: center; }
  .gs-consent        { max-height: 85vh; overflow-y: auto; }
}

@media print {
  .site-header, .site-footer, .mobile-call-bar, .cta-band, .breadcrumbs, .gs-consent { display: none !important; }
  body { color: #000; }
}
