/* ==========================================================================
   Coastline Roofing & Building Ltd — newroofsbournemouth.co.uk

   Palette sampled directly from the client's own logo badge:
     #05092F  navy   — the disc itself
     #D6E8FD  ice    — the house / wave artwork
     #183CFC  blue   — the lower wave strokes, and the CTA colour
   Every pair used for text is asserted in build.py's check_contrast(), so a
   failing combination breaks the build rather than shipping.

   Mobile-first throughout: the base rules are the phone layout and every
   media query is min-width.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts -- */
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens -- */
:root {
  --paper: #fff;
  --tint: #f3f7fd;          /* cool section tint, pulled from the ice        */
  --navy: #05092f;          /* headings, dark bands, footer                  */
  --navy-2: #0b1450;        /* the second stop of the dark-band gradient     */
  --body: #2b3242;          /* body copy on paper — 12.5:1                   */
  --muted: #59627a;         /* secondary copy — 5.6:1 on paper               */
  --blue: #183cfc;          /* CTA fill. White on it = 6.8:1                 */
  --blue-dark: #1433d6;     /* link colour and CTA hover                     */
  --blue-bright: #7ba2ff;   /* accent ON navy — 7.5:1                        */
  --ice: #d6e8fd;           /* body copy on navy — 15.5:1                    */
  --ice-muted: #a9bfe4;     /* secondary copy on navy — 8.6:1                */
  --line: #e2e9f5;
  --line-soft: #eef3fb;
  --shadow: 0 1px 2px rgba(5, 9, 47, .05), 0 10px 30px -16px rgba(5, 9, 47, .28);
  --shadow-lg: 0 2px 4px rgba(5, 9, 47, .06), 0 24px 50px -24px rgba(5, 9, 47, .34);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --gutter: 18px;
  --head-h: 66px;
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
/* Ship this early: a component's own display rule otherwise beats [hidden]. */
[hidden] { display: none !important; }
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;
  background: var(--paper);
  color: var(--body);
  font: 400 17px/1.66 "Figtree", ui-sans-serif, system-ui, -apple-system,
        "Segoe UI", Roboto, Arial, sans-serif;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 {
  font-family: "Montserrat", "Figtree", ui-sans-serif, system-ui, Arial, sans-serif;
  color: var(--navy);
  line-height: 1.16;
  letter-spacing: -.017em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 6.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.25rem); }
h3 { font-size: clamp(1.14rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
blockquote { margin: 0; }           /* UA margin would break the quote cards */
figure { margin: 0; }               /* UA margin distorts every grid tile    */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding: 52px 0; }
.section--tint { background: var(--tint); }
.section--narrow-pad { padding: 40px 0 60px; }
@media (min-width: 720px) { .section { padding: 76px 0; } }
@media (min-width: 1000px) { :root { --gutter: 24px; } .section { padding: 92px 0; } }

.eyebrow {
  font: 700 .78rem/1.3 "Montserrat", system-ui, Arial, sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-dark); margin: 0 0 .7em;
}
.eyebrow--light { color: var(--blue-bright); }
.head-group { max-width: 62ch; margin-bottom: 28px; }
.head-group--centre { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 1.1rem; color: var(--muted); }
.note { color: var(--muted); font-size: .96rem; margin-top: 22px; }
.head-group--centre + .note, .note { text-align: inherit; }
.caption { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px; border-radius: 999px; border: 2px solid transparent;
  font: 700 .97rem/1 "Montserrat", system-ui, Arial, sans-serif;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s, transform .16s;
  min-height: 48px;                       /* comfortable phone tap target */
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: #c9d6ee; }
.btn--outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--ice); color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(214,232,253,.5); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.btn-row--centre { justify-content: center; }

/* ------------------------------------------------------------ the header -- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  /* Solid, not translucent. There is no backdrop-filter here (see the note
     below), so a 96% white would just let body copy bleed faintly through
     the bar as you scroll rather than reading as deliberate glass. */
  background: #fff;
  border-bottom: 1px solid var(--line);
}
/* No backdrop-filter here on purpose: a filtered header creates a containing
   block for fixed descendants, which traps the drawer's fixed overlay inside
   the header box. */
.site-head__inner {
  display: flex; align-items: center; gap: 14px; min-height: var(--head-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy);
  margin-right: auto; min-width: 0;
}
.brand__mark { width: 46px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name {
  font: 800 1.18rem/1 "Montserrat", system-ui, Arial, sans-serif;
  letter-spacing: -.02em;
}
.brand__sub {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; white-space: nowrap;
}
.nav, .site-head__cta { display: none; }
.head-tel {
  display: none; align-items: center; gap: 7px;
  font: 700 .95rem/1 "Montserrat", system-ui, Arial, sans-serif;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.head-tel svg { width: 17px; height: 17px; }
.head-tel:hover { color: var(--blue-dark); }
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  background: var(--navy); color: #fff;
  border: 0; border-radius: 11px; cursor: pointer;
}
/* Scope the size rule to the burger's OWN svg, and set it explicitly — an
   unsized inline svg renders at its intrinsic box and swamps the button. */
.burger svg { width: 22px; height: 22px; }

@media (min-width: 980px) {
  .burger { display: none; }
  .nav { display: flex; align-items: center; gap: 4px; }
  .nav a {
    padding: 9px 13px; border-radius: 9px; text-decoration: none;
    font: 600 .96rem/1 "Montserrat", system-ui, Arial, sans-serif;
    color: var(--body);
  }
  .nav a:hover { background: var(--tint); color: var(--navy); }
  .nav a[aria-current="page"] { color: var(--navy); background: var(--tint); }
  .site-head__cta { display: flex; align-items: center; gap: 14px; }
  .head-tel { display: inline-flex; }
  .site-head__cta .btn { padding: 11px 18px; min-height: 44px; }
}
@media (min-width: 1100px) { .brand__mark { width: 52px; } }

/* --------------------------------------------------------------- drawer -- */
/* The drawer lives at the end of .site-head but paints above it because it is
   position:fixed with a higher z-index than the header's own stacking context
   allows its siblings — the header must therefore NOT create a filter or
   transform context. See the note on .site-head above. */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(5, 9, 47, .55);
  animation: fade .18s ease-out;
}
.drawer__panel {
  position: absolute; inset: 0 0 0 auto; width: min(360px, 88vw);
  background: #fff; padding: 20px 20px 34px;
  display: flex; flex-direction: column; gap: 18px;
  overflow-y: auto; animation: slide .2s ease-out;
  box-shadow: var(--shadow-lg);
}
@keyframes fade { from { opacity: 0 } }
@keyframes slide { from { transform: translateX(100%) } }
.drawer__close {
  align-self: flex-end; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--navy);
  border: 0; border-radius: 11px; cursor: pointer;
}
.drawer__close svg { width: 22px; height: 22px; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  padding: 13px 4px; border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: var(--navy);
  font: 700 1.06rem/1.2 "Montserrat", system-ui, Arial, sans-serif;
}
.drawer__nav a[aria-current="page"] { color: var(--blue-dark); }
.drawer__cta { display: grid; gap: 10px; }
/* The drawer CTA must win on colour: .nav a / .drawer__nav a set a colour, and
   a bare .btn--primary loses to a later descendant selector. */
.drawer__cta .btn--primary,
.drawer__cta .btn--primary:hover { color: #fff; }
.drawer__cta .btn--outline { color: var(--navy); }
.drawer__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: .93rem; color: var(--muted); margin: 0; word-break: break-all;
}
.drawer__meta svg { width: 17px; height: 17px; flex: none; }
body.is-locked { overflow: hidden; }

/* ----------------------------------------------------------------- hero -- */
.hero { position: relative; isolation: isolate; background: var(--navy); }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
/* Two-stop scrim. The mobile crop sits higher in the frame than the desktop
   one, so the gradient is deliberately opaque well past the midpoint rather
   than tuned to a single viewport's framing. */
/* Mobile FIRST, because the phone crop is the hard case: the copy spans the
   full column width, so a left-weighted scrim protects nothing on the right.
   Both sets of stops were solved against the actual pixels of the actual crop
   (see _src/check_hero.py) for >=4.5:1 on white text at the worst pixel under
   the copy — not tuned by eye at one viewport, which is how a scrim ends up
   fine on desktop and illegible on a phone. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,9,47,.52) 0%, rgba(5,9,47,.70) 45%, rgba(5,9,47,.86) 100%),
    linear-gradient(90deg, rgba(5,9,47,.14) 0%, rgba(5,9,47,0) 100%);
}
@media (min-width: 720px) {
  /* Wider viewports put the copy in the left column only, so the scrim can be
     horizontal and the photograph survives on the right. */
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(5,9,47,.20) 0%, rgba(5,9,47,.32) 50%, rgba(5,9,47,.54) 100%),
      linear-gradient(90deg, rgba(5,9,47,.76) 0%, rgba(5,9,47,.42) 58%, rgba(5,9,47,.08) 100%);
  }
}
.hero__inner { position: relative; z-index: 1; padding-top: 54px; padding-bottom: 54px; }
.hero__copy { max-width: 40rem; }
.hero h1 { color: #fff; margin-bottom: .45em; text-wrap: balance; }
.hero__lede { color: var(--ice); font-size: 1.1rem; margin-bottom: 4px; }
@media (min-width: 720px) {
  .hero__inner { padding-top: 92px; padding-bottom: 92px; }
  .hero__lede { font-size: 1.18rem; }
}
@media (min-width: 1000px) { .hero__inner { padding-top: 124px; padding-bottom: 124px; } }

/* --------------------------------------------------------- rating badge -- */
.rating {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 16px 10px 13px; border-radius: 999px;
  background: #fff; color: var(--navy); text-decoration: none;
  box-shadow: var(--shadow); margin-top: 24px;
}
.rating:hover { color: var(--navy); box-shadow: var(--shadow-lg); }
.rating__stars { display: inline-flex; gap: 2px; color: #f5a623; flex: none; }
.rating__stars svg { width: 16px; height: 16px; }
.rating__text { display: flex; flex-direction: column; line-height: 1.22; }
.rating__text strong { font: 700 .95rem/1.2 "Montserrat", system-ui, Arial, sans-serif; }
.rating__text span { font-size: .82rem; color: var(--muted); }
.rating--foot { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; margin-top: 18px; }
.rating--foot:hover { background: rgba(255,255,255,.14); color: #fff; }
.rating--foot .rating__text span { color: var(--ice-muted); }
.rating--panel { margin-top: 18px; background: var(--tint); box-shadow: none; }
.rating-row { display: flex; justify-content: center; margin-bottom: 30px; }
.rating-row .rating { margin-top: 0; }

/* ---------------------------------------------------------------- trust -- */
.trust { background: var(--navy-2); color: var(--ice); }
.trust ul {
  list-style: none; margin: 0; padding: 20px 0;
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
.trust li { display: flex; align-items: center; gap: 11px; }
.trust svg { width: 24px; height: 24px; flex: none; color: var(--blue-bright); }
.trust span { display: flex; flex-direction: column; line-height: 1.25; font-size: .9rem;
  color: var(--ice-muted); }
.trust strong {
  font: 700 .97rem/1.2 "Montserrat", system-ui, Arial, sans-serif; color: #fff;
}
@media (min-width: 560px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust ul { grid-template-columns: repeat(4, 1fr); padding: 24px 0; } }

/* ---------------------------------------------------------------- intro -- */
.intro { display: grid; gap: 30px; align-items: start; }
.intro__media { min-width: 0; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
  .intro--flip .intro__copy { order: 2; }
  .intro--flip .intro__media { order: 1; }
}
.framed {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.framed-figure { display: grid; gap: 10px; }
.framed-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.framed-figure figcaption { font-size: .86rem; color: var(--muted); }

/* ---------------------------------------------------------------- cards -- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
/* min-width:0 on the column AND the item: a bare 1fr is minmax(auto,1fr), so a
   wide child would otherwise push the track past the container. */
@media (min-width: 620px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #cfdcf3; }
.card__media { display: block; }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--tint); color: var(--blue-dark); margin-bottom: 2px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; color: var(--navy); }
.card h3 a:hover { color: var(--blue-dark); }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ------------------------------------------------------------------ why -- */
.why, .signs, .quotes, .gallery, .ba, .areas, .steps, .toc {
  list-style: none; margin: 0; padding: 0;
}
.why { display: grid; gap: 22px; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; } }
.why li { min-width: 0; }
.why__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy); color: var(--blue-bright); margin-bottom: 12px;
}
.why__icon svg { width: 23px; height: 23px; }
.why h3 { margin-bottom: .3em; }
.why p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------------------------------------------------------------- signs -- */
.signs { display: grid; gap: 16px; }
@media (min-width: 640px) { .signs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .signs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.signs li {
  min-width: 0; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--blue); border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.section--tint .signs li { background: #fff; }
.signs__icon { display: inline-flex; color: var(--blue-dark); margin-bottom: 8px; }
.signs__icon svg { width: 21px; height: 21px; }
.signs h3, .signs h4 {
  font-size: 1.03rem; margin: 0 0 .35em;
  font-family: "Montserrat", system-ui, Arial, sans-serif; color: var(--navy);
}
.signs p { margin: 0; font-size: .94rem; color: var(--muted); }
.signs--compact { grid-template-columns: 1fr !important; gap: 12px; }
.signs--compact li { border-left-width: 3px; padding: 14px 16px; }

/* ------------------------------------------------------------ dark band -- */
.band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--ice); padding: 56px 0;
}
@media (min-width: 720px) { .band { padding: 80px 0; } }
/* A global heading colour would otherwise leave these invisible. Set every
   heading level, not just h2 — a component inside the band brings its own. */
.band h1, .band h2, .band h3, .band h4 { color: #fff; }
.band .eyebrow { color: var(--blue-bright); }
.band .lede, .band p { color: var(--ice-muted); }
.band strong { color: #fff; }

.steps { display: grid; gap: 22px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; } }
.steps li {
  min-width: 0; position: relative; padding-top: 6px;
  border-top: 2px solid rgba(214, 232, 253, .22);
}
.steps__n {
  display: block;
  font: 800 .8rem/1 "Montserrat", system-ui, Arial, sans-serif;
  letter-spacing: .12em; color: var(--blue-bright); margin: 12px 0 10px;
}
.steps__icon { display: inline-flex; color: #fff; margin-bottom: 10px; }
.steps__icon svg { width: 26px; height: 26px; }
.steps h3 { font-size: 1.1rem; margin-bottom: .35em; }
.steps p { font-size: .95rem; margin: 0; }

.cta-band__inner { display: grid; gap: 22px; }
@media (min-width: 880px) {
  .cta-band__inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; }
  .cta-band__inner .btn-row { justify-content: flex-end; margin-top: 0; }
}
.cta-band h2 { margin-bottom: .35em; }
.cta-band p { margin: 0; }

/* ------------------------------------------------- before/after + gallery -- */
.ba, .gallery { display: grid; gap: 22px; }
@media (min-width: 700px) { .ba, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ba, .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ba li, .gallery li { min-width: 0; }
.ba figure, .gallery figure {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
}
.ba img, .gallery img { width: 100%; }
/* Never height:100% on a grid-stretched figure's image — it swallows the
   caption under the figure's own overflow:hidden. */
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
.ba figcaption, .gallery figcaption {
  padding: 15px 17px; font-size: .92rem; color: var(--muted); flex: 1;
}
.ba figcaption strong, .gallery figcaption strong { color: var(--navy); }

/* ----------------------------------------------------------------- chips -- */
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--tint); border: 1px solid var(--line);
  color: var(--navy); border-radius: 999px; padding: 6px 13px; font-size: .88rem;
  font-weight: 600;
}
.section--tint .chips li { background: #fff; }

/* ----------------------------------------------------------------- map -- */
.map { position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--tint); }
.map iframe { position: relative; z-index: 1; width: 100%; height: 340px; border: 0; display: block; }
.map__fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 26px; color: var(--muted);
}
.map__name { font: 700 1.02rem/1.3 "Montserrat", system-ui, Arial, sans-serif; color: var(--navy); }
@media (min-width: 900px) { .map iframe { height: 420px; } .map { min-height: 400px; } }

/* --------------------------------------------------------------- quotes -- */
.quotes { display: grid; gap: 20px; }
@media (min-width: 700px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote {
  min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.quote blockquote p { margin: 0; font-size: 1rem; color: var(--body); }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote footer { margin-top: auto; display: flex; flex-direction: column; line-height: 1.3; }
.quote cite {
  font: 700 .95rem/1.2 "Montserrat", system-ui, Arial, sans-serif;
  color: var(--navy); font-style: normal;
}
.quote footer span { font-size: .82rem; color: var(--muted); }

/* ----------------------------------------------------------------- FAQs -- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.section--tint .faq details { background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font: 700 1.02rem/1.4 "Montserrat", system-ui, Arial, sans-serif; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__mark {
  position: absolute; right: 18px; top: 50%; width: 14px; height: 14px;
  margin-top: -7px; flex: none;
}
.faq__mark::before, .faq__mark::after {
  content: ""; position: absolute; background: var(--blue-dark);
  left: 50%; top: 50%; border-radius: 2px;
}
.faq__mark::before { width: 14px; height: 2px; margin: -1px 0 0 -7px; }
.faq__mark::after {
  width: 2px; height: 14px; margin: -7px 0 0 -1px;
  transition: transform .18s; transform-origin: center;
}
.faq details[open] .faq__mark::after { transform: scaleY(0); }
.faq summary:hover { color: var(--blue-dark); }
.faq__body { padding: 0 18px 17px; }
.faq__body p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ------------------------------------------------------------ page heads -- */
.page-head { padding: 34px 0 10px; }
.page-head--tight { padding-bottom: 0; }
.page-head .head-group { margin-bottom: 18px; }
@media (min-width: 720px) { .page-head { padding: 52px 0 16px; } }
.crumbs { border-bottom: 1px solid var(--line-soft); background: var(--tint); }
.crumbs ol {
  list-style: none; margin: 0; padding: 11px 0; display: flex; flex-wrap: wrap;
  gap: 6px; font-size: .86rem; color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b9c6df; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-dark); text-decoration: underline; }

/* -------------------------------------------------------- services page -- */
.toc { display: grid; gap: 8px; margin: 22px 0 0; }
@media (min-width: 620px) { .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .toc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.toc a {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--navy); background: #fff;
  font: 600 .95rem/1.25 "Montserrat", system-ui, Arial, sans-serif;
}
.toc a:hover { border-color: var(--blue); color: var(--blue-dark); }
.toc__icon { display: inline-flex; color: var(--blue-dark); flex: none; }
.toc__icon svg { width: 21px; height: 21px; }

.svc { padding: 46px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: calc(var(--head-h) + 12px); }
.svc--tint { background: var(--tint); }
@media (min-width: 720px) { .svc { padding: 72px 0; } }
.svc__top { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) {
  .svc__top { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
}
.svc__num {
  display: inline-block; color: var(--blue); margin-right: 6px;
}
.svc__media { min-width: 0; }
.svc__grid { display: grid; gap: 26px; margin-top: 38px; }
@media (min-width: 880px) { .svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.svc__panel { min-width: 0; }
.svc__panel h3, .svc__tech h3, .svc__faq h3 { margin-bottom: .7em; }
.svc__tech { margin-top: 38px; max-width: 74ch; }
.svc__tech p { color: var(--muted); }
.svc__faq { margin-top: 38px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.checks svg { width: 19px; height: 19px; flex: none; color: var(--blue); margin-top: 3px; }

/* -------------------------------------------------------- coverage page -- */
.area-group { margin-bottom: 42px; }
.area-group:last-child { margin-bottom: 0; }
.area-group h2 {
  font-size: 1.3rem; padding-bottom: 10px; margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
}
.areas { display: grid; gap: 18px; }
@media (min-width: 640px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.areas li { min-width: 0; }
.areas h3 { font-size: 1.05rem; margin-bottom: .3em; }
.area__pc {
  font: 600 .74rem/1 "Figtree", system-ui, Arial, sans-serif;
  color: var(--blue-dark); background: var(--tint);
  border-radius: 999px; padding: 4px 9px; margin-left: 5px;
  vertical-align: middle; white-space: nowrap;
}
.areas p { font-size: .93rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------- contact page -- */
.contact-grid { display: grid; gap: 30px; align-items: start; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1.25fr .85fr; gap: 42px; } }
.contact-form, .contact-aside { min-width: 0; }
.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--head-h) + 16px);
}
@media (min-width: 620px) { .form { padding: 30px; } }
.form h2 { margin-bottom: .3em; }
.form__lede { color: var(--muted); font-size: .96rem; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 15px; min-width: 0; }
.field-row { display: grid; gap: 15px; }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field label {
  font: 600 .9rem/1.3 "Montserrat", system-ui, Arial, sans-serif; color: var(--navy);
}
.req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;             /* both needed or a select overflows */
  font: 400 16px/1.5 "Figtree", system-ui, Arial, sans-serif;  /* 16px: no iOS zoom */
  color: var(--body); background: #fff;
  border: 1px solid #c8d4ea; border-radius: var(--radius-sm);
  padding: 12px 13px; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2359627a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  background-size: 18px; padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); outline: 3px solid rgba(24, 60, 252, .16); outline-offset: 0;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0261f; }
.err { margin: 0; font-size: .86rem; color: #c0261f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__alert {
  border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 18px;
  font-size: .95rem; border: 1px solid;
}
.form__alert[data-kind="error"] { background: #fdf2f1; border-color: #eec4c1; color: #8f1c17; }
.form__alert[data-kind="ok"] { background: #eefaf2; border-color: #bfe6cd; color: #175f33; }
.form__small { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.form .btn--block { margin-top: 4px; }

.panel {
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 18px;
}
.panel:last-child { margin-bottom: 0; }
.panel h2 { font-size: 1.22rem; display: flex; align-items: center; gap: 9px; }
.panel h2 svg { width: 21px; height: 21px; flex: none; color: var(--blue-dark); }
.panel--alt { background: var(--navy); border-color: var(--navy); color: var(--ice); }
.panel--alt h2 { color: #fff; }
.panel--alt h2 svg { color: var(--blue-bright); }
.panel--alt p { color: var(--ice-muted); font-size: .96rem; }
.panel--alt .btn { margin-top: 6px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 11px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--blue-dark); margin-top: 3px; }
.contact-list span { display: flex; flex-direction: column; min-width: 0; }
.contact-list a { color: var(--navy); text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--blue-dark); text-decoration: underline; }
.contact-list small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.panel--alt .contact-list a { color: #fff; }

/* --------------------------------------------------- thank-you and 404 -- */
.thanks { text-align: left; }
.thanks__tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--blue); color: #fff; margin-bottom: 20px;
}
.thanks__tick svg { width: 32px; height: 32px; }
.thanks h2 { font-size: 1.3rem; margin-top: 1.4em; }
.next { padding-left: 1.2em; display: grid; gap: 11px; margin-bottom: 30px; }
.next strong { color: var(--navy); }
.thanks .panel { margin: 26px 0; }
.notfound { display: grid; gap: 24px; margin: 26px 0; }
@media (min-width: 620px) { .notfound { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notfound h2 { font-size: 1.1rem; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.plain a { color: var(--navy); text-decoration: none; font-weight: 600; }
.plain a:hover { color: var(--blue-dark); text-decoration: underline; }

/* --------------------------------------------------------------- footer -- */
.site-foot {
  background: var(--navy); color: var(--ice-muted);
  padding: 46px 0 0; font-size: .95rem;
}
.foot-grid { display: grid; gap: 30px; padding-bottom: 36px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .foot-grid { grid-template-columns: 1.5fr .75fr 1.1fr .85fr 1.3fr; gap: 32px; }
}
.foot-grid > * { min-width: 0; }
.foot-logo {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
  color: #fff; margin-bottom: 14px;
}
.footer__mark { width: 58px; height: auto; flex: none; }
.foot-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.foot-logo strong { font: 800 1.16rem/1 "Montserrat", system-ui, Arial, sans-serif; }
.foot-logo span span {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ice-muted); font-weight: 600;
}
.foot-brand p { font-size: .93rem; }
.site-foot h2 {
  font-size: .82rem; letter-spacing: .13em; text-transform: uppercase;
  color: #fff; margin-bottom: 14px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: var(--ice-muted); text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-areas { font-size: .9rem; }
.foot-more { margin: 12px 0 0; }
.foot-more a { color: var(--blue-bright); font-weight: 600; }
.foot-contact ul { gap: 13px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; flex: none; color: var(--blue-bright); margin-top: 3px; }
.foot-contact a { word-break: break-word; }
.social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(214, 232, 253, .26); color: var(--ice);
  text-decoration: none; font-size: .86rem; font-weight: 600;
}
.social a:hover { background: #fff; color: var(--navy); border-color: #fff; }
.foot-bar {
  border-top: 1px solid rgba(214, 232, 253, .16); padding: 18px 0 26px;
  display: grid; gap: 6px; font-size: .84rem; color: var(--ice-muted);
}
.foot-bar p { margin: 0; }
@media (min-width: 840px) {
  .foot-bar { grid-template-columns: 1fr auto; align-items: center; }
  .foot-bar p:last-child { text-align: right; }
}

/* ------------------------------------------------------ scroll reveal -- */
/* Only the transform/opacity are transitioned, so a component's own hover
   transition on colour is not clobbered by this rule. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease-out, transform .5s ease-out; }
  .reveal.is-in { opacity: 1; transform: none; }
}
