/* ==========================================================================
   Care2You Support Services
   Design system + site styles
   --------------------------------------------------------------------------
   Colour values are derived from the Care2You logo, then adjusted so every
   text/background pair meets WCAG 2.2 AA. Measured ratios are noted inline.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted — no third-party requests, no tracking)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/source-sans-3-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand — derived from the logo.
     The logo's raw colours are fully saturated and fail contrast on white
     (cyan #00C8FF = 1.96:1, orange #FD7100 = 2.79:1, magenta #FC02AD = 3.65:1).
     These deepened versions keep the brand recognisable and pass AA. */
  --ink:          #152A4E;  /* headings          14.26:1 on white */
  --body:         #2E3D57;  /* body text         10.93:1 on white */
  --muted:        #55637A;  /* secondary text     6.08:1 on white */

  --primary:      #0F5FA8;  /* links, buttons     6.52:1 on white */
  --primary-dark: #0B4A87;  /* hover              8.96:1 on white */
  --primary-xdark:#0A3866;

  --accent:       #B84A00;  /* orange, for text   5.23:1 on white */
  --accent-bright:#FD7100;  /* logo orange — decorative only, never text */
  --magenta:      #B0007A;  /* logo pink, deepened — used very sparingly */

  --surface:      #FFFFFF;
  --tint:         #F1F6FB;  /* cool light section background */
  --warm:         #FDF6EF;  /* warm light section background */
  --deep:         #102A4C;  /* footer + CTA band  14.41:1 with white text */
  --deep-soft:    #1B3E68;

  --line:         #D7E1EC;
  --line-strong:  #A9BDD3;

  --focus-inner:  #FFC845;  /* 9.33:1 against --deep */
  --focus-outer:  #102A4C;  /* 14.41:1 against white */

  /* Typography */
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Spacing scale */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 5rem;    --s-10: 7rem;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16, 42, 76, .06), 0 2px 8px rgba(16, 42, 76, .05);
  --shadow-md: 0 2px 4px rgba(16, 42, 76, .07), 0 8px 24px rgba(16, 42, 76, .08);

  --wrap: 1140px;
  --prose: 68ch;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem; /* keeps anchor targets clear of the sticky header */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px — deliberately not smaller */
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  overflow-x: hidden;           /* belt and braces against horizontal scroll */
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 60em) {
  body { font-size: 1.1875rem; } /* 19px on larger screens */
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 var(--s-4);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 1.28rem + 1.35vw, 2.3rem); }
h3 { font-family: var(--font-body); font-weight: 700;
     font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem); line-height: 1.35; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; }

p  { margin: 0 0 var(--s-4); max-width: var(--prose); }

a { color: var(--primary); text-underline-offset: 0.18em; text-decoration-thickness: 0.09em; }
a:hover { color: var(--primary-dark); text-decoration-thickness: 0.16em; }

strong { font-weight: 700; color: var(--ink); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.35em; max-width: var(--prose); }
li { margin-bottom: var(--s-2); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

address { font-style: normal; }

/* Focus: a two-tone ring so it stays visible on light AND dark backgrounds. */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-outer);
  border-radius: 4px;
}
.on-deep :focus-visible { box-shadow: 0 0 0 6px #FFFFFF; }

::selection { background: #CFE3F7; color: var(--ink); }

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 48em) { .wrap { width: min(100% - 4rem, var(--wrap)); } }

.section       { padding-block: clamp(3rem, 1.6rem + 5.5vw, 5.5rem); }
.section--tight{ padding-block: clamp(2.25rem, 1.4rem + 3.5vw, 3.75rem); }
.section--tint { background: var(--tint); }
.section--warm { background: var(--warm); }
.section--deep { background: var(--deep); color: #E6EEF8; }
.section--deep h2, .section--deep h3 { color: #FFFFFF; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--deep); color: #fff; padding: .85rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; }

.lead {
  font-size: clamp(1.15rem, 1.06rem + 0.42vw, 1.35rem);
  line-height: 1.62; color: var(--body); max-width: 60ch;
}

.section-head { max-width: 46rem; margin-bottom: var(--s-6); }
.section-head p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.center-prose { margin-inline: auto; }
.center-prose p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem;                     /* 52px — comfortable tap target */
  padding: .75rem 1.6rem;
  font: 600 1.0625rem/1.3 var(--font-body);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { flex: none; }

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

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

.btn--onDeep { background: #fff; color: var(--primary-xdark); border-color: #fff; }
.btn--onDeep:hover { background: #E6EEF8; color: var(--primary-xdark); }

.btn--ghostDeep { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghostDeep:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn--lg { min-height: 3.6rem; font-size: 1.125rem; padding: .9rem 1.9rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); align-items: center; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); min-height: 4.5rem; padding-block: .6rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 48px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-body); font-weight: 700;
  font-size: 1.3rem; color: var(--ink); letter-spacing: -0.015em;
}
.brand-sub {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 3rem; padding: .55rem .9rem;
  background: #fff; border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: 600 1rem/1 var(--font-body); color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--primary); color: var(--primary); }

.header-call {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 3rem; padding: .55rem 1rem;
  background: var(--primary); color: #fff; border-radius: var(--radius-sm);
  font: 700 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
}
.header-call:hover { background: var(--primary-dark); color: #fff; }
.header-call .header-call__num { display: none; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: flex; gap: .35rem; align-items: center;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: .6rem .8rem; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--primary); background: var(--tint); }
.site-nav a[aria-current="page"] {
  color: var(--primary-dark); border-bottom-color: var(--accent-bright);
}

/* Mobile navigation */
@media (max-width: 63.99em) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--s-3) 0 var(--s-5);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column; align-items: stretch; gap: 0;
    width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  }
  .site-nav a {
    padding: 1rem .75rem; font-size: 1.125rem;
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--line);
    background: var(--tint); color: var(--primary-dark);
    box-shadow: inset 4px 0 0 var(--accent-bright);
  }
}

@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .header-call .header-call__num { display: inline; }
  .brand img { width: 56px; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero { background: var(--tint); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; gap: var(--s-6);
  padding-block: clamp(2.25rem, 1.4rem + 3.5vw, 4.25rem);
  align-items: center;
}
@media (min-width: 56em) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--s-8); }
}
.hero h1 { margin-bottom: var(--s-4); }
.hero .lead { margin-bottom: var(--s-5); }
.hero-media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: #dfe8f2;
}
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 56em) {
  .hero-media img { aspect-ratio: 5 / 6; }
}

/* --------------------------------------------------------------------------
   8. Two paths
   -------------------------------------------------------------------------- */

.paths { display: grid; gap: var(--s-4); }
@media (min-width: 46em) { .paths { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }

.path {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: var(--s-5); background: #fff;
  border: 1px solid var(--line); border-top: 5px solid var(--primary);
  border-radius: var(--radius);
}
.path--referrer { border-top-color: var(--accent-bright); }
.path h3 { margin-bottom: var(--s-2); font-size: 1.3rem; }
.path p { margin-bottom: var(--s-4); }
.path .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   10. Steps
   -------------------------------------------------------------------------- */

.steps {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: grid; gap: var(--s-6) var(--s-7); counter-reset: step;
}
@media (min-width: 40em) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66em) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps > li {
  margin: 0; padding-top: var(--s-3);
  border-top: 2px solid var(--line-strong);
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  display: block; margin-bottom: var(--s-2);
  font: 700 2.4rem/1 var(--font-head);
  color: var(--accent); opacity: .5;
}
.section--deep .steps > li::before { color: #FFC845; opacity: .8; }
.steps h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.steps p { margin: 0; font-size: 1.0625rem; }
.section--deep .steps h3 { color: #fff; }


/* --------------------------------------------------------------------------
   12. Split feature (image + text)
   -------------------------------------------------------------------------- */

.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .split--reverse .split__media { order: 2; }
}
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 56em) { .split__media img { aspect-ratio: 4 / 5; } }
.split__body > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Home page components
   -------------------------------------------------------------------------- */

/* Hero */
.hero-note { color: var(--muted); font-size: 1.0625rem; margin: var(--s-5) 0 0; }

/* Service list: a plain ruled list, not a grid of boxes. */
.svc-links {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: grid; column-gap: var(--s-7);
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 44em) { .svc-links { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72em) { .svc-links { grid-template-columns: repeat(3, 1fr); } }

.svc-links > li { margin: 0; border-bottom: 1px solid var(--line); }
.svc-links a {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: var(--s-3); padding: 1.05rem .25rem;
  color: var(--ink); text-decoration: none; font-weight: 600;
  min-height: 3.5rem;
}
.svc-links a svg { color: var(--primary); opacity: .8; }
.svc-links a:hover { color: var(--primary-dark); }
.svc-links a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.svc-links a:hover svg { opacity: 1; }

/* Where we work */
.split--text { align-items: start; }
@media (min-width: 56em) { .split--text { grid-template-columns: 1.15fr .85fr; } }

.office-card {
  border-left: 3px solid var(--accent-bright);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
}
.office-card h3 { margin-bottom: var(--s-3); }
.office-card address { margin-bottom: var(--s-2); font-size: 1.0625rem; }
.office-card__hours { color: var(--muted); font-size: 1.0625rem; margin-bottom: var(--s-4); }

/* Prose block + two-column list */
.prose { max-width: 40rem; }
.prose > :last-child { margin-bottom: 0; }

@media (min-width: 46em) {
  .two-col ul { columns: 2; column-gap: var(--s-7); max-width: none; }
  .two-col li { break-inside: avoid; }
}

/* Text link with a small arrow, used instead of a button where a button would
   be too loud. */
.link-more {
  font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 1px;
}
.link-more::after { content: " \2192"; }
.link-more:hover { border-bottom-width: 3px; }

/* --------------------------------------------------------------------------
   14. FAQ (native details/summary — accessible without JavaScript)
   -------------------------------------------------------------------------- */

.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: 1.15rem .25rem; cursor: pointer; list-style: none;
  font: 700 1.125rem/1.45 var(--font-body); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; flex: none; width: 1.4rem; height: 1.4rem; margin-top: .18rem;
  background: var(--primary);
  -webkit-mask: var(--chev) center / contain no-repeat;
          mask: var(--chev) center / contain no-repeat;
  transition: transform .18s ease;
}
.faq { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E"); }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq summary:hover { color: var(--primary-dark); }
.faq .faq__answer { padding: 0 .25rem 1.35rem 2.25rem; }
.faq .faq__answer > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15. Service detail blocks (Services page)
   -------------------------------------------------------------------------- */

.svc-detail { padding-block: var(--s-7); border-top: 1px solid var(--line); }
.svc-detail:first-of-type { border-top: 0; padding-top: var(--s-5); }
.svc-detail__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.svc-detail__head svg { color: var(--primary); flex: none; }
.svc-detail h2 { margin: 0; }
.svc-detail__grid { display: grid; gap: var(--s-5); }
@media (min-width: 52em) {
  .svc-detail__grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-7); }
  /* alternate which side the examples panel sits on, so nine services in a
     row do not read as nine identical blocks */
  .svc-detail:nth-of-type(even) .svc-detail__grid { grid-template-columns: .9fr 1.1fr; }
  .svc-detail:nth-of-type(even) .svc-detail__examples { order: -1; }
}
.svc-detail:nth-of-type(even) { background: var(--tint); border-radius: var(--radius-lg);
  padding-inline: var(--s-5); border-top: 0; margin-block: var(--s-2); }

.svc-detail__body > :last-child { margin-bottom: 0; }
.svc-detail__examples {
  border-left: 3px solid var(--accent-bright);
  padding: .25rem 0 .25rem var(--s-5);
}
.svc-detail__lead { font-weight: 700; color: var(--ink); margin-bottom: var(--s-3); }
.svc-detail__examples ul { margin-bottom: 0; }
.reg-note { font-size: .95rem; color: var(--muted); margin-top: var(--s-4); }

.jump-links { list-style: none; margin: 0 0 var(--s-6); padding: 0; max-width: none;
  display: flex; flex-wrap: wrap; gap: .6rem; }
.jump-links li { margin: 0; }
.jump-links a {
  display: inline-block; padding: .55rem 1rem; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 1rem; font-weight: 600; text-decoration: none; color: var(--primary-dark);
}
.jump-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.jump-note { margin-bottom: 0; max-width: none; }

/* --------------------------------------------------------------------------
   16. Page header (inner pages)
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--tint); border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 1.3rem + 3vw, 3.5rem);
}
.page-head h1 { margin-bottom: var(--s-3); }
.page-head p:last-child { margin-bottom: 0; }

.breadcrumb { font-size: 1rem; margin-bottom: var(--s-4); color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; max-width: none; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "›"; color: var(--line-strong); }

/* --------------------------------------------------------------------------
   17. Contact blocks
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; gap: var(--s-6); }
@media (min-width: 56em) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); align-items: start; } }
@media (min-width: 64em) { .contact-grid--wide { grid-template-columns: .72fr 1.28fr; } }

.contact-card {
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-5);
}
.contact-card + .contact-card { margin-top: var(--s-4); }
.contact-card h2, .contact-card h3 { margin-bottom: var(--s-3); }

.contact-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.contact-list > li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3);
  align-items: start; margin-bottom: var(--s-4); }
.contact-list > li:last-child { margin-bottom: 0; }
.contact-list > li > div { min-width: 0; }   /* let long email addresses wrap */
.contact-list svg { color: var(--primary-dark); margin-top: .25rem; flex: none; }
.contact-list .label { display: block; font-weight: 700; color: var(--ink); }
.contact-list a { font-size: 1.1875rem; font-weight: 600; overflow-wrap: anywhere; }
.footer-contact a, .footer-contact address { overflow-wrap: anywhere; }
.contact-list address { font-style: normal; }

.map-link { display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); text-decoration: none; }
.map-link img { width: 100%; }
.map-link__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); background: #fff; font-weight: 600; color: var(--primary);
}

/* --------------------------------------------------------------------------
   18. Forms
   -------------------------------------------------------------------------- */

.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 40em) { .form-card { padding: var(--s-6); } }

.form-intro { margin-bottom: var(--s-5); }
.form-intro > :last-child { margin-bottom: 0; }

fieldset { border: 0; padding: 0; margin: 0 0 var(--s-6); }
fieldset:last-of-type { margin-bottom: var(--s-5); }
legend {
  font-family: var(--font-body); font-weight: 700; font-size: 1.2rem;
  color: var(--ink); padding: 0; margin-bottom: var(--s-2);
  display: block; width: 100%;
}
.legend-help { color: var(--muted); font-size: 1rem; margin: 0 0 var(--s-4); }

.field { margin-bottom: var(--s-5); }
.field:last-child { margin-bottom: 0; }

.field > label,
.field-group > .group-label {
  display: block; font-weight: 700; color: var(--ink);
  margin-bottom: .35rem; font-size: 1.0625rem;
}
.field .hint { display: block; color: var(--muted); font-size: 1rem; margin-bottom: .5rem; }

.req { color: var(--accent); font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; min-height: 3.25rem;
  padding: .7rem .85rem;
  font: 400 1.0625rem/1.5 var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
textarea { min-height: 9rem; resize: vertical; }
select { appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23152A4E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.15rem; }

input:hover, select:hover, textarea:hover { border-color: var(--primary); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: #B3261E; background: #FEF6F5;
}

.checks { display: grid; gap: .35rem; }
.check {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem;
  align-items: start; padding: .6rem .5rem; border-radius: var(--radius-sm);
  cursor: pointer;
}
.check:hover { background: var(--tint); }
.check input { width: 1.5rem; height: 1.5rem; margin: .15rem 0 0; accent-color: var(--primary); flex: none; }
.check span { font-size: 1.0625rem; }

.field-error {
  display: none; align-items: flex-start; gap: .45rem;
  margin-top: .45rem; color: #A31910; font-weight: 600; font-size: 1rem;
}
.field-error.is-visible { display: flex; }
.field-error::before { content: "!"; flex: none;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: #A31910; color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: .9rem; line-height: 1; }

.error-summary {
  display: none; margin-bottom: var(--s-5); padding: var(--s-4) var(--s-5);
  border: 3px solid #A31910; border-radius: var(--radius); background: #FEF6F5;
}
.error-summary.is-visible { display: block; }
.error-summary h2 { font-size: 1.25rem; color: #A31910; margin-bottom: var(--s-2); }
.error-summary ul { margin: 0; }
.error-summary a { color: #A31910; font-weight: 700; }

.form-success {
  display: none; padding: var(--s-5);
  border: 3px solid #1B6B3A; border-radius: var(--radius); background: #F1F9F3;
}
.form-success.is-visible { display: block; }
.form-success h2 { color: #14562E; margin-bottom: var(--s-3); }
.form-success > :last-child { margin-bottom: 0; }

/* honeypot — hidden from people, visible to bots */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.privacy-note { font-size: 1rem; color: var(--muted); margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   19. Callout / notes
   -------------------------------------------------------------------------- */

.callout {
  background: var(--warm); border-left: 5px solid var(--accent-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s-5); margin-bottom: var(--s-5);
}
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-bottom: var(--s-2); }

/* Placeholder marker — every one of these must be removed before launch.
   Listed in the handover document. */
.todo {
  display: inline-block; padding: .1rem .5rem; border-radius: 4px;
  background: #FFF3CD; border: 1px dashed #A57200; color: #6B4A00;
  font-size: .9rem; font-weight: 700; font-family: var(--font-body);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   20. Final CTA band
   -------------------------------------------------------------------------- */

.cta-band { background: var(--deep); color: #E6EEF8; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D5E2F1; }
.cta-inner { padding-block: clamp(2.75rem, 1.8rem + 4vw, 4.5rem); }
.cta-inner .lead { color: #D5E2F1; }
.cta-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-4) var(--s-7); margin-top: var(--s-5);
}
.cta-phone {
  font: 700 clamp(1.7rem, 1.25rem + 2vw, 2.4rem)/1.1 var(--font-body);
  color: #fff; text-decoration: none; white-space: nowrap;
}
.cta-phone:hover { color: #FFC845; }

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */

.site-footer { background: #0B2140; color: #C9D8EA; padding-block: var(--s-7) var(--s-5); }
.site-footer a { color: #E6EEF8; }
.site-footer a:hover { color: #FFC845; }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 46em) { .footer-grid { grid-template-columns: 1.25fr 1fr 1fr; gap: var(--s-7); } }

.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: var(--s-4); }
.footer-brand img { width: 46px; }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-brand .brand-sub { color: #9DB3CC; }

.site-footer h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: .07em; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.site-footer li { margin-bottom: .7rem; }
.site-footer .footer-contact li { display: flex; align-items: flex-start; gap: .65rem; }
.site-footer .footer-contact svg { flex: none; margin-top: .35rem; color: #9DB3CC; }
.site-footer p { font-size: 1.0625rem; }
.site-footer address { font-style: normal; }

.footer-bottom {
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  justify-content: space-between; align-items: center;
  font-size: 1rem;
}
.acknowledgement {
  margin-top: var(--s-5); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: 1rem; max-width: 60ch;
}

/* --------------------------------------------------------------------------
   22. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --------------------------------------------------------------------------
   23. Windows High Contrast / forced colours
   -------------------------------------------------------------------------- */

@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .svc-icon, .steps > li::before { border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
}

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .nav-toggle, .cta-band, .skip-link, .map-link { display: none; }
  body { font-size: 11pt; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
