/* ==========================================================================
   Loyal Care LLC design system. Every page uses these styles unchanged.
   Brand: deep green #016E2D (main), navy #00173D (dark bands, headings),
   gold #FBAE39 (accent, never text on white), font Montserrat.
   ========================================================================== */

:root {
  /* Colour */
  --navy: #00173D;          /* dark band, headings on light backgrounds */
  --navy-2: #0B2550;        /* card on the dark band */
  --green: #016E2D;         /* main button fill, brand band, links */
  --green-dark: #01561F;    /* main button hover */
  --green-logo: #22A34A;    /* icon accents on dark bands only, never text on white */
  --gold: #FBAE39;          /* stars, call button on dark bands (navy text), small rules */
  --gold-dark: #E89A1F;     /* gold button hover */
  --ink: #14223D;           /* body text on white */
  --muted: #4A5670;         /* secondary text on white and tint */
  --tint: #EFF6F0;          /* tinted band */
  --tint-2: #E2EFE5;        /* card border on tint, hover fill */
  --line: #D9E3DC;          /* borders */
  --white: #FFFFFF;

  /* Type */
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --h1: 60px;  --h1-lh: 1.06;
  --h2: 42px;  --h2-lh: 1.14;
  --h3: 22px;  --h3-lh: 1.3;
  --lead: 20px; --lead-lh: 1.6;
  --body: 18px; --body-lh: 1.65;
  --small: 14px; --small-lh: 1.5;
  --eyebrow: 13px;
  --btn: 16px;

  /* Space */
  --content: 1200px;
  --gutter: 32px;
  --section-y: 112px;
  --gap: 24px;
  --col-gap: 64px;
  --card-pad: 32px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 23, 61, .06), 0 14px 34px -14px rgba(0, 23, 61, .22);
  --shadow-hover: 0 2px 4px rgba(0, 23, 61, .08), 0 22px 44px -16px rgba(0, 23, 61, .3);
  --border: 1px solid var(--line);

  /* Header and mobile buttons */
  --header-h: 84px;
  --dock-size: 58px;        /* the chat widget button is 58px, 20px from the bottom and right edges (measured) */
  --dock-bottom: 20px;
  --dock-side: 20px;

  /* Movement */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 750ms;
}

@media (max-width: 900px) {
  :root {
    --h1: 38px;  --h1-lh: 1.1;
    --h2: 30px;  --h2-lh: 1.18;
    --h3: 20px;
    --lead: 18px;
    --body: 17px; --body-lh: 1.62;
    --gutter: 20px;
    --section-y: 72px;
    --gap: 16px;
    --col-gap: 40px;
    --card-pad: 24px;
    --header-h: 68px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: var(--body);
  line-height: var(--body-lh);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--navy); margin: 0; font-weight: 700; text-wrap: pretty; }
h1 { font-size: var(--h1); line-height: var(--h1-lh); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--h2); line-height: var(--h2-lh); letter-spacing: -0.018em; }
h3 { font-size: var(--h3); line-height: var(--h3-lh); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .86); }
.section--green { background: var(--green); color: rgba(255, 255, 255, .9); }
.section--navy h2, .section--navy h3, .section--green h2, .section--green h3 { color: #fff; }

/* Section header: eyebrow, heading, one line under it. Full width of the content area. */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--eyebrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); flex: none; }
.section--navy .eyebrow, .section--green .eyebrow { color: #fff; }
.section-head { margin-bottom: 48px; }
.section-head h2 + p { font-size: var(--lead); line-height: var(--lead-lh); color: var(--muted); margin-top: 18px; }
.section--navy .section-head h2 + p, .section--green .section-head h2 + p { color: rgba(255, 255, 255, .86); }
.lead { font-size: var(--lead); line-height: var(--lead-lh); }
.muted { color: var(--muted); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--col-gap); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split--media-left { grid-template-columns: 6fr 6fr; align-items: center; }
@media (max-width: 900px) {
  .split, .split--even, .split--media-left { grid-template-columns: 1fr; }
}
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .sticky-col { position: static; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: var(--radius);
  font: 700 var(--btn)/1 var(--font); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .ic { width: 20px; height: 20px; flex: none; }
/* On a phone a long label wraps inside the button instead of pushing the page wider than the screen. */
@media (max-width: 700px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 12px 20px; max-width: 100%; } }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -10px rgba(1, 110, 45, .7); }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 23, 61, .6); }
.btn--navy:hover { background: #062B63; color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 22px -10px rgba(251, 174, 57, .8); }
.btn--gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--tint); color: var(--navy); }
.btn--white-green { background: #fff; color: var(--green); }
.btn--white-green:hover { background: var(--tint); color: var(--green-dark); }
/* Secondary button: outline, only for "read more" moves, never for call or contact */
.btn--outline { background: transparent; color: var(--green); border-color: currentColor; }
.btn--outline:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* Call and contact pair: same height, same width, stack full width on a phone */
.btn-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: max-content; max-width: 100%; }
.btn-pair .btn { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 600px) {
  .btn-pair { grid-template-columns: 1fr; width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

.text-link { font-weight: 700; color: var(--green); text-decoration: underline; text-decoration-thickness: 1.5px; }
.text-link .ic { display: inline-block; width: 18px; height: 18px; margin-left: 6px; vertical-align: -3px; transition: transform .2s var(--ease); }
.text-link:hover .ic { transform: translateX(3px); }
.section--navy .text-link, .section--green .text-link { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0, 23, 61, .35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; }
.main-nav { flex: 1; }
.nav-list { list-style: none; display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px;
  font: 600 15px/1 var(--font); color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .has-sub.is-open > .nav-link { background: var(--tint); color: var(--green); }
.nav-link .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.has-sub.is-open > .nav-link .ic { transform: rotate(180deg); }
.sub {
  list-style: none; position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px; padding: 10px;
  background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
@media (min-width: 1241px) { .sub--end { left: auto; right: -8px; } }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
@media (hover: hover) and (min-width: 1241px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
}
.sub a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--navy); font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; }
.sub a:hover { background: var(--tint); color: var(--green); }
.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--navy); text-decoration: none; padding: 0 6px; min-height: 48px; }
.header-phone .ic { width: 18px; height: 18px; color: var(--green); }
.header-phone:hover { color: var(--green); }
.header-cta .btn { min-height: 48px; padding: 0 20px; }
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 0;
  background: var(--tint); color: var(--navy); align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .ic { width: 26px; height: 26px; }
.menu-toggle .ic-close { display: none; }
.menu-extra { display: none; }

/* Medium desktops: tighter header so the full menu, the phone number and Contact us fit on one line */
@media (min-width: 1241px) and (max-width: 1440px) {
  .header-inner { gap: 16px; }
  .brand img { height: 46px; }
  .nav-link { padding: 10px 8px; font-size: 14.5px; }
  .header-phone { padding: 0 2px; font-size: 15px; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 0 16px; }
}
@media (max-width: 1240px) {
  /* solid header here: a backdrop filter would trap the fixed menu panel inside the header */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand img { height: 46px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--gutter) 0; display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
  }
  body.menu-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-toggle .ic-open { display: none; }
  body.menu-open .menu-toggle .ic-close { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 18px; border-radius: 0; }
  .nav-link:hover, .has-sub.is-open > .nav-link { background: none; }
  .sub { position: static; min-width: 0; padding: 0 0 12px 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub.is-open > .sub { display: block; }
  .sub a { font-size: 16px; padding: 12px 8px; }
  /* Phone number and Contact us at the bottom of the menu, kept clear of the chat button and its message bubble */
  .menu-extra { display: grid; gap: 12px; margin-top: auto; padding: 28px 0 calc(var(--dock-size) + var(--dock-bottom) + 150px); }
  .menu-extra .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: rgba(255, 255, 255, .86); position: relative; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: var(--col-gap); align-items: center; padding-top: 104px; padding-bottom: 112px; }
.hero .eyebrow { color: #fff; }
/* Hero with a background photograph: navy wash from the left keeps the text readable */
.hero--photo { min-height: min(760px, 88vh); display: flex; align-items: center; }
.hero--photo .hero-inner { grid-template-columns: minmax(0, 640px); width: 100%; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 70% 40%; }
.hero--photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 23, 61, .94) 0%, rgba(0, 23, 61, .86) 36%, rgba(0, 23, 61, .35) 64%, rgba(0, 23, 61, .05) 100%); }
.hero--photo .hero-inner { z-index: 1; }
.hero--photo h1, .hero--photo .hero-answer { text-shadow: 0 1px 16px rgba(0, 23, 61, .45); }
@media (max-width: 900px) {
  .hero--photo { min-height: 0; }
  .hero-bg img { object-position: 80% 50%; }
  .hero--photo::after { background: linear-gradient(180deg, rgba(0, 23, 61, .55) 0%, rgba(0, 23, 61, .72) 40%, rgba(0, 23, 61, .9) 100%); }
}
.hero h1 { color: #fff; }
.hero-answer { font-size: var(--lead); line-height: var(--lead-lh); margin: 24px 0 36px; }
.hero-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; font-size: 15px; color: rgba(255, 255, 255, .86); }
.hero-proof a { color: #fff; font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .ic { width: 18px; height: 18px; }
.quote-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 36px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  position: relative;
}
.quote-card .stars { margin-bottom: 18px; }
.quote-card blockquote { margin: 0; font-size: 19px; line-height: 1.6; color: var(--navy); font-weight: 500; }
.quote-card figcaption { margin-top: 22px; padding-top: 20px; border-top: var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.quote-card figcaption strong { color: var(--navy); }
.quote-card .source { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.quote-card .source .ic { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero-answer { margin: 18px 0 28px; }
  .quote-card { padding: 28px 24px; }
  .quote-card blockquote { font-size: 17px; }
}

/* ---------- Proof strip ---------- */
.proof { border-bottom: var(--border); }
.proof-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-list li { padding: 34px 28px; display: flex; gap: 14px; align-items: flex-start; border-left: var(--border); }
.proof-list li:first-child { border-left: 0; padding-left: 0; }
.proof-list .ic { width: 28px; height: 28px; color: var(--green); margin-top: 2px; }
.proof-list strong { display: block; color: var(--navy); font-size: 17px; line-height: 1.3; }
.proof-list span { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 4px; }
@media (max-width: 900px) {
  .proof-list { grid-template-columns: 1fr 1fr; }
  .proof-list li { padding: 22px 0; border-left: 0; border-top: var(--border); }
  .proof-list li:nth-child(-n+2) { border-top: 0; }
  .proof-list li:nth-child(even) { padding-left: 16px; }
}
@media (max-width: 480px) {
  .proof-list { grid-template-columns: 1fr; }
  .proof-list li:nth-child(2) { border-top: var(--border); }
  .proof-list li:nth-child(even) { padding-left: 0; }
}

/* ---------- Problem list (rows, not cards) ---------- */
.problem-list { list-style: none; border-top: 1px solid var(--tint-2); }
.problem-list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid #D3E4D7; }
.problem-icon { width: 56px; height: 56px; border-radius: var(--radius); background: #fff; display: grid; place-items: center; color: var(--green); box-shadow: var(--shadow); }
.problem-icon .ic { width: 26px; height: 26px; }
.problem-list h3 { font-size: 19px; margin-bottom: 6px; }
.problem-list p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.problem-list a { font-weight: 700; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--tint); border: 1px solid var(--tint-2); border-radius: var(--radius); padding: var(--card-pad);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.section--tint .card { background: #fff; border-color: #fff; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.card .card-foot { margin-top: auto; padding-top: 22px; }
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: #fff; color: var(--green); display: grid; place-items: center; margin-bottom: 22px; box-shadow: var(--shadow); }
.section--tint .card-icon { background: var(--tint); box-shadow: none; }
.card-icon .ic { width: 26px; height: 26px; }
a.card { text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--line); }
.checks { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink); }
.checks .ic { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }

/* Card that sends people to the phone (navy, on a white band) */
.card--navy { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .86); }
.card--navy h3 { color: #fff; }
.card--navy p { color: rgba(255, 255, 255, .86); }
.card--navy .checks li { color: #fff; }
.card--navy .checks .ic { color: var(--gold); }

/* ---------- Why us: numbered points on the green band ---------- */
.points { counter-reset: point; }
.point { background: #fff; border-radius: var(--radius); padding: var(--card-pad); height: 100%; display: flex; flex-direction: column; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .45); }
.point::before {
  counter-increment: point; content: counter(point, decimal-leading-zero);
  font-size: 15px; font-weight: 800; letter-spacing: .08em; color: var(--green);
  display: inline-block; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 3px solid var(--gold); width: 40px;
}
.section .point h3 { font-size: 20px; margin-bottom: 10px; color: var(--navy); }
.point p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- Owner ---------- */
.portrait { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--tint); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.owner-quote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); font-size: var(--lead); line-height: var(--lead-lh); color: var(--navy); font-weight: 500; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.signature strong { display: block; color: var(--navy); }
.signature span { color: var(--muted); font-size: 15px; }

/* Placeholder for a photo the client still has to send. Labelled with the exact shot. */
.placeholder {
  position: relative; display: grid; place-items: center; text-align: center; padding: 28px;
  background:
    repeating-linear-gradient(135deg, rgba(1, 110, 45, .05) 0 12px, rgba(1, 110, 45, 0) 12px 24px),
    var(--tint);
  border: 2px dashed #A9C9B1; border-radius: var(--radius); color: var(--muted);
}
.placeholder .ic { width: 40px; height: 40px; color: var(--green); margin: 0 auto 12px; }
.placeholder strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.placeholder span { font-size: 14px; line-height: 1.5; }

/* ---------- Reviews ---------- */
.review { background: #fff; border-radius: var(--radius); padding: var(--card-pad); height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.review .stars { margin-bottom: 16px; }
.review blockquote { margin: 0 0 24px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.review figcaption { margin-top: auto; padding-top: 18px; border-top: var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.review figcaption strong { color: var(--navy); }
.review figcaption span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.review figcaption .ic { width: 16px; height: 16px; }
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }

/* ---------- Price cards ---------- */
.price { background: var(--tint); border: 1px solid var(--tint-2); border-radius: var(--radius); padding: var(--card-pad); height: 100%; display: flex; flex-direction: column; }
.price .price-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.price .price-value { font-size: 34px; line-height: 1.1; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 12px; }
.price p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.price--feature { background: var(--navy); border-color: var(--navy); }
.price.price--feature .price-label { color: var(--gold); }
.price.price--feature .price-value { color: #fff; }
.price--feature p { color: rgba(255, 255, 255, .86); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: var(--card-pad); box-shadow: var(--shadow); height: 100%; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; margin-bottom: 22px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Areas ---------- */
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.photo figcaption { font-size: 14px; color: var(--muted); padding: 12px 4px 0; }
figure { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--tint); border: 1px solid var(--tint-2); font-weight: 600; font-size: 15px; color: var(--navy); }
.chips .ic { width: 16px; height: 16px; color: var(--green); }
.chips--links li { padding: 0; }
.chips--links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; color: inherit; text-decoration: none; border-radius: inherit; }
.chips--links a:hover { color: var(--green); }
.chips--plain li { background: #fff; border-color: var(--line); font-weight: 500; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid #CFE0D3; }
.faq details { border-bottom: 1px solid #CFE0D3; }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; cursor: pointer;
  padding: 24px 0; font-weight: 700; font-size: 19px; line-height: 1.4; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-icon { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease), background .25s; }
.faq summary .faq-icon .ic { width: 18px; height: 18px; }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq summary:hover { color: var(--green); }
.faq .answer { padding: 0 56px 26px 0; color: var(--muted); }
@media (max-width: 640px) { .faq summary { font-size: 17px; } .faq .answer { padding-right: 0; } }

/* ---------- Contact and form ---------- */
.contact-list { list-style: none; display: grid; gap: 4px; margin: 28px 0; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 14px 0; border-bottom: var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .c-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--green); display: grid; place-items: center; }
.contact-list .c-icon .ic { width: 22px; height: 22px; }
.contact-list .label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a, .contact-list .value { font-weight: 700; color: var(--navy); text-decoration: none; font-size: 17px; }
.contact-list a:hover { color: var(--green); text-decoration: underline; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; font-size: 16px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; color: var(--navy); font-weight: 600; }
.form-wrap {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover); border: var(--border);
  padding: 12px; scroll-margin-top: calc(var(--header-h) + 12px);
}
.form-wrap iframe { display: block; width: 100%; min-height: 921px; }
.form-note { font-size: 14px; color: var(--muted); margin: 14px 4px 0; }

/* ---------- Closing call to action band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: none; }
.cta-band p { font-size: var(--lead); line-height: var(--lead-lh); margin: 18px 0 36px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #F5F8F5; border-top: var(--border); color: var(--ink); font-size: 15px; line-height: 1.6; }
.footer-top { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.15fr; gap: 48px; padding-top: 80px; padding-bottom: 56px; }
.site-footer h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 18px; }
.footer-logo img { height: 58px; width: auto; margin-bottom: 20px; }
.site-footer address { font-style: normal; margin-bottom: 14px; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-contact { display: grid; gap: 6px; margin-bottom: 18px; }
.footer-contact a { font-weight: 700; }
.footer-areas { color: var(--muted); }
.footer-hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 22px; }
.footer-hours dt { color: var(--muted); }
.footer-hours dd { margin: 0; font-weight: 600; color: var(--navy); }
.footer-col .btn { width: 100%; margin-bottom: 14px; }
.site-footer .btn--primary, .site-footer .btn--primary:hover { color: #fff; text-decoration: none; }
.review-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green) !important; text-decoration: underline !important; }
.review-link .ic { width: 18px; height: 18px; color: var(--gold); }
.footer-bottom { border-top: var(--border); padding: 28px 0 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; color: var(--muted); font-size: 14px; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: var(--border); display: grid; place-items: center; color: var(--navy); }
.footer-social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.footer-social .ic { width: 20px; height: 20px; }
.footer-disclaimer { width: 100%; font-size: 13px; color: var(--muted); }
@media (max-width: 1020px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; } }

/* ---------- Mobile buttons: call, contact, and the chat widget in one even row ---------- */
.dock, .dock-blur { display: none; }
@media (max-width: 1240px) {
  .dock-blur {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    height: calc(var(--dock-size) + var(--dock-bottom) + 44px); pointer-events: none;
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 45%, rgba(0, 0, 0, .6) 70%, transparent 100%);
    mask-image: linear-gradient(to top, #000 0%, #000 45%, rgba(0, 0, 0, .6) 70%, transparent 100%);
  }
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: var(--dock-bottom); height: var(--dock-size); z-index: 2147483001; pointer-events: none; }
  .dock a {
    position: absolute; bottom: 0; width: var(--dock-size); height: var(--dock-size); border-radius: 50%;
    display: grid; place-items: center; pointer-events: auto; border: 0; text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(0, 23, 61, .55); transition: transform .2s var(--ease);
  }
  .dock a:active { transform: scale(.94); }
  .dock .ic { width: 26px; height: 26px; }
  .dock-call { left: var(--dock-side); background: var(--green); color: #fff; }
  .dock-contact { left: 50%; margin-left: calc(var(--dock-size) / -2); background: var(--navy); color: #fff; }
  body { padding-bottom: calc(var(--dock-size) + var(--dock-bottom) + 28px); }
  body.menu-open .dock, body.menu-open .dock-blur { display: none; }
}

/* ---------- Inner page hero (every page but the home page) ---------- */
.page-hero { background: var(--navy); color: rgba(255, 255, 255, .86); }
.page-hero-inner { display: grid; grid-template-columns: 7fr 5fr; gap: var(--col-gap); align-items: center; padding-top: 88px; padding-bottom: 96px; }
.page-hero--solo .page-hero-inner { grid-template-columns: 1fr; }
.page-hero .eyebrow { color: #fff; }
.page-hero h1 { color: #fff; font-size: calc(var(--h1) * .86); }
.page-hero .hero-answer { margin: 22px 0 34px; }
.side-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.side-card h2 { font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
.side-card > p { color: var(--muted); font-size: 15px; }
.side-card .checks { margin-top: 18px; }
.side-card .checks li { font-size: 16px; }
.side-card .stars { margin-bottom: 16px; }
.side-card blockquote { margin: 0; font-size: 18px; line-height: 1.6; color: var(--navy); font-weight: 500; }
.side-card figcaption { margin-top: 18px; padding-top: 16px; border-top: var(--border); font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.side-card figcaption strong { color: var(--navy); }
.side-card figcaption span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 60px; gap: 36px; }
  .page-hero h1 { font-size: var(--h1); }
  .side-card { padding: 26px 22px; }
}

/* ---------- Text blocks ---------- */
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 56px; }
.prose h3 { margin-top: 36px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose p, .prose li { color: var(--ink); }
.text-block h2 + p, .text-block h3 + p { margin-top: 16px; }
.text-block p { color: var(--muted); }
.text-block p.lead { color: var(--ink); }
.section--navy .text-block p, .section--green .text-block p { color: rgba(255, 255, 255, .86); }
.section--navy .text-block p.lead, .section--green .text-block p.lead { color: #fff; }
.stack > * + * { margin-top: 64px; }
.checks--lg li { font-size: 17px; line-height: 1.55; }
.checks--lg .ic { width: 20px; height: 20px; margin-top: 3px; }
.checks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 12px; }
@media (max-width: 640px) { .checks--cols { grid-template-columns: 1fr; } }

/* ---------- Fact cards: one standalone statement each, inside the section they belong to ---------- */
.fact { background: var(--tint); border: 1px solid var(--tint-2); border-radius: var(--radius); padding: var(--card-pad); height: 100%; display: flex; flex-direction: column; }
.section--tint .fact { background: #fff; border-color: #fff; box-shadow: var(--shadow); }
.fact .fact-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.fact .fact-value { font-size: 28px; line-height: 1.15; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 10px; }
.fact p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.fact .ic { width: 28px; height: 28px; color: var(--green); margin-bottom: 14px; }

/* ---------- Label and value pairs (plain facts page) ---------- */
.pairs { margin: 0; border-top: var(--border); }
.pairs > div { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 18px 0; border-bottom: var(--border); }
.pairs dt { font-weight: 700; color: var(--navy); }
.pairs dd { margin: 0; color: var(--ink); }
@media (max-width: 640px) { .pairs > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Page notes: general information line, review line, last updated ---------- */
.page-note { border-left: 3px solid var(--gold); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.page-note p + p { margin-top: 8px; }
.page-note strong { color: var(--navy); }

/* ---------- Link list cards (towns, services) ---------- */
a.card { color: inherit; }
a.card h3 { color: var(--navy); }
a.card--navy h3 { color: #fff; }
a.card .text-link { margin-top: auto; padding-top: 18px; }

/* Review grid on the reviews page: a static grid, never a carousel */
.reviews-grid { columns: 3 320px; column-gap: var(--gap); }
.reviews-grid .review { break-inside: avoid; margin-bottom: var(--gap); height: auto; }

/* Google's colour "G" on reviews from Google (the words "Google review" stay for screen readers) */
.g-logo { display: block; width: 24px; height: 24px; flex: none; stroke: none; }
.btn .g-logo { width: 20px; height: 20px; }
.review-source { display: inline-flex; align-items: center; flex: none; }

/* Round founder portrait (the photo was supplied as a circle) */
.portrait--round { aspect-ratio: 1 / 1; border-radius: 50%; background: var(--tint); box-shadow: var(--shadow-hover); max-width: 520px; width: 100%; justify-self: center; }
.portrait--round img { width: 100%; height: 100%; object-fit: cover; }
.footer-franchise { margin: 0 0 16px; padding-top: 14px; border-top: var(--border); }
.footer-franchise a { font-weight: 700; }

/* ---------- Movement: sections settle into place as they scroll in ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.97); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Holding page (404) */
.holding { padding: 120px 0; }
.holding h1 { margin-bottom: 18px; }

/* ---------- Review carousel: scrolls sideways on its own, slow enough to read ---------- */
.review-marquee { position: relative; padding: 8px 0 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.review-marquee::-webkit-scrollbar { display: none; }
.review-track { display: flex; gap: var(--gap); width: max-content; padding: 0 max(16px, calc(50vw - 600px)); }
.review-track .review { width: min(360px, 82vw); flex: none; scroll-snap-align: center; margin: 0; height: auto; }
/* Every card in the carousel is the same height: long reviews stop at 8 lines (all of them are in full on /reviews/). */
.review-track .review blockquote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.review-marquee.is-running { overflow: hidden; scroll-snap-type: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.review-marquee.is-running .review-track { padding: 0; animation: review-scroll var(--marquee-dur, 120s) linear infinite; }
.review-marquee.is-running .review-track > .review { scroll-snap-align: none; }
.review-marquee.is-running:hover .review-track,
.review-marquee.is-running:focus-within .review-track,
.review-marquee.is-paused .review-track { animation-play-state: paused; }
@keyframes review-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.marquee-controls { display: flex; justify-content: center; margin-top: 18px; }
.marquee-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: var(--border); border-radius: 999px; background: #fff; color: var(--navy); font: 600 14px/1 var(--font); cursor: pointer; }
.review-marquee.is-running ~ .marquee-controls .marquee-toggle { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .review-marquee.is-running .review-track { animation: none; } }

/* A third hero button (book a free assessment) takes the full row under the pair. */
.btn-pair .btn--span { grid-column: 1 / -1; }
