/* ==========================================================================
   Olukazzy Enterprise: site styles
   One stylesheet, no build step. Mobile first.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --blue: #0447ab;
  --blue-700: #033a8c;
  --blue-50: #eaf1fb;
  --navy: #012971;
  --navy-900: #011d52;
  --gold: #f5c518;
  --gold-300: #f9dc6e;
  --gold-50: #fdf6dc;
  --cream: #fbf8f1;
  --cream-2: #f4eee1;
  --white: #ffffff;
  --ink: #0f1f3d;
  --muted: #45526e;
  --line: #e2dac8;
  --line-strong: #b9b09b;
  --field-border: #857c64;
  --error: #b3261e;
  --error-50: #fcecea;
  --success: #17663a;
  --success-50: #e8f4ec;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.15rem);
  --fs-small: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
  --fs-lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
  --fs-h2: clamp(1.95rem, 1.45rem + 2.2vw, 3.1rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --fs-quote: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(1, 29, 82, 0.06), 0 2px 8px rgba(1, 29, 82, 0.05);
  --shadow: 0 2px 6px rgba(1, 29, 82, 0.06), 0 12px 32px rgba(1, 29, 82, 0.08);
  --shadow-lg: 0 18px 50px rgba(1, 29, 82, 0.16);
  --header-h: 72px;
  --focus: var(--blue);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-700); text-decoration-thickness: 2px; }
strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
/* <main> only takes programmatic focus (skip link); a ring round the whole page is noise. */
main:focus, main:focus-visible { outline: none; }
.on-dark { --focus: var(--gold); }

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.8rem 1.2rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0.75rem; color: var(--white); --focus: var(--gold); }

/* Honeypot: fully out of layout, inert for people, and the field itself cannot extend the page */
.hp { left: -9999px !important; top: auto !important; }
.hp input, .hp label { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; max-width: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; overflow: hidden !important; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); }
.section { padding-block: var(--section-y); position: relative; }
.section--white { background: var(--white); }
.section--sand { background: var(--cream-2); }
.section--navy { background: var(--navy); color: #e8eefa; }
.section--blue { background: var(--blue); color: var(--white); }
.section--navy h2, .section--navy h3,
.section--blue h2, .section--blue h3 { color: var(--white); }
.section--navy a:not(.btn), .section--blue a:not(.btn) { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lead); }
.section--navy .section-head p:not(.eyebrow), .section--blue .section-head p:not(.eyebrow) { color: #d7e1f4; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
/* Centred headers only where there is room for them to read as deliberate. */
@media (max-width: 1023px) {
  .section-head--center { margin-inline: 0; text-align: left; }
  .section-head--center .eyebrow::after { display: none; }
}
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.on-dark .eyebrow, .section--navy .eyebrow, .section--blue .eyebrow { color: var(--gold); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--reverse > :first-child { order: 2; }
  .split--top { align-items: start; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(4, 71, 171, 0.25); }
.btn--primary:hover { background: var(--blue-700); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.btn--gold:hover { background: var(--gold-300); color: var(--navy); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue-50); color: var(--blue-700); }
.btn--light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.75); }
.btn--light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: var(--white); }
.btn--sm { min-height: 44px; padding: 0.5rem 1.05rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.spinner {
  width: 1.1em;
  height: 1.1em;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(251, 248, 241, 0.86); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(1, 29, 82, 0.06); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  min-height: 48px;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover { color: var(--navy); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-top: 0.15rem; }

.header-cta { display: none; }
@media (min-width: 400px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 1.25rem var(--gutter) 2.5rem;
}
.site-nav.is-open { display: block; animation: navIn 0.22s var(--ease); }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.nav-list a:focus-visible { color: var(--blue); }
@media (hover: hover) { .nav-list a:hover { color: var(--blue); } }
.nav-extra { margin-top: 1.75rem; display: grid; gap: 0.75rem; }
@media (max-width: 1099px) {
  .site-nav.is-open { display: flex; flex-direction: column; }
  .nav-extra { margin-top: auto; padding-top: 1.75rem; }
}
.nav-contact { margin-top: 1.5rem; color: var(--muted); font-size: var(--fs-small); }
.nav-contact a { color: var(--blue); font-weight: 600; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    margin-right: 0.5rem;
  }
  .site-nav.is-open { animation: none; }
  .nav-list { display: flex; gap: 0.15rem; }
  .nav-list a {
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    border: 0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 600;
    position: relative;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 6px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav-list a:hover, .nav-list a.is-active { color: var(--blue); }
  .nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); }
  .nav-extra, .nav-contact { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 3rem + 8vw, 8.5rem);
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-media img { object-fit: cover; object-position: center 40%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(1, 29, 82, 0.96) 0%, rgba(1, 29, 82, 0.88) 45%, rgba(1, 41, 113, 0.55) 75%, rgba(1, 41, 113, 0.4) 100%),
    linear-gradient(0deg, rgba(1, 29, 82, 0.6) 0%, rgba(1, 29, 82, 0) 40%);
}
@media (min-width: 700px) and (max-width: 1023px) {
  .hero { min-height: min(72vh, 700px); }
}
@media (min-width: 1024px) {
  .hero { min-height: min(80vh, 760px); }
}
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(1, 29, 82, 0.82) 0%, rgba(1, 41, 113, 0.88) 50%, rgba(1, 29, 82, 0.96) 100%); }
}
.hero-content { max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: 0.35em; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 600; }
.hero .eyebrow { color: var(--gold); }
.hero-sub { font-size: var(--fs-lead); line-height: 1.6; color: #e6edf9; max-width: 640px; margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 2.25rem; }
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  max-width: 720px;
}
.trust-line li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-line .icon { color: var(--gold); }

/* ---------- 7. Media frames ---------- */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-2), #e8dfca);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.media-frame picture { width: 100%; height: 100%; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 16 / 10; }
.media-accent { position: relative; }
.media-accent::before {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 55%;
  height: 55%;
  border-radius: var(--radius-lg);
  background: var(--gold);
  z-index: 0;
}
.media-accent .media-frame { z-index: 1; }
@media (max-width: 599px) { .media-accent::before { inset: auto -8px -8px auto; } }

/* ---------- 8. About ---------- */
.about-body h2 { max-width: 18ch; }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.55rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
.chip .icon { color: var(--blue); width: 1em; height: 1em; }

/* ---------- 9. Mission & vision ---------- */
.mv-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card {
  position: relative;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mv-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--blue);
}
.mv-card h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 0.5em; }
.mv-card p:not(.mv-label) { font-size: var(--fs-lead); line-height: 1.55; margin: 0; color: var(--ink); }
.mv-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.4rem; }

/* ---------- 10. Director's note ---------- */
.director { overflow: hidden; }
.director-quote { margin: 0; position: relative; }
.director-quote .quote-mark {
  font-family: var(--font-head);
  font-size: clamp(5rem, 3rem + 8vw, 8rem);
  line-height: 0.6;
  color: var(--gold);
  display: block;
  height: 0.5em;
  margin-bottom: 0.25rem;
}
.director-quote blockquote { margin: 0; }
.director-quote blockquote p {
  font-family: var(--font-head);
  font-size: var(--fs-quote);
  line-height: 1.4;
  color: var(--white);
  font-weight: 400;
}
.director-quote blockquote p + p { font-style: italic; color: #f3e7b4; }
.director-quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
  color: #d7e1f4;
  font-size: var(--fs-small);
}
.director-quote figcaption strong { display: block; color: var(--white); font-size: 1.05rem; }
.director-quote figcaption img { width: 52px; height: 52px; }
.director .media-frame { box-shadow: var(--shadow-lg); }

/* ---------- 11. Values ---------- */
.values-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: value;
}
@media (min-width: 600px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid .value-card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid .value-card:last-child { grid-column: auto; }
}
.value-card {
  counter-increment: value;
  position: relative;
  padding: 1.6rem 1.5rem 1.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.value-card::before {
  content: counter(value, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--gold);
  width: 2.25rem;
}
.value-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.value-card p { text-wrap: wrap; margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.6; }

/* ---------- 12. Services ---------- */
.services-intro { display: grid; gap: 1.5rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 900px) { .services-intro { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.services-intro .section-head { margin-bottom: 0; }
.services-intro .lead { margin: 0; }
.service-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.25s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--white); }
.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
}
.service-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; text-wrap: balance; }
@media (min-width: 1180px) { .service-card h3 { min-height: 2.6em; } }
.service-card p { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.6; text-wrap: pretty; }

/* ---------- 13. How we do it ---------- */
.how-block + .how-block { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.tick-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: 0.7rem; }
.tick-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.tick-list .icon {
  width: 26px;
  height: 26px;
  padding: 4px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  stroke-width: 2.5;
}
.callout {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold);
  background: var(--gold-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  color: var(--navy);
}
.bridge {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
@media (min-width: 600px) { .bridge { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.bridge-side {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.bridge-side h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.bridge-side ul { margin: 0; padding-left: 1.1em; }
.bridge-from { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.bridge-from h4 { color: var(--muted); }
.bridge-to { background: var(--navy); color: #e8eefa; }
.bridge-to h4 { color: var(--gold); }
.bridge-arrow { display: grid; place-items: center; color: var(--blue); }
.bridge-arrow .icon { width: 34px; height: 34px; stroke-width: 2; }
@media (max-width: 599px) { .bridge-arrow .icon { transform: rotate(90deg); } }
.anchor-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0.75rem 0 0; }
.anchor-list li {
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--white);
}

/* ---------- 14. Partnership ---------- */
.partner-wrap { display: grid; gap: 2rem; }
@media (min-width: 960px) { .partner-wrap { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.partner-wrap h2 { margin-bottom: 0.4em; }
.partner-wrap p:not(.eyebrow) { color: #e5ecfa; font-size: var(--fs-lead); margin: 0; }
.partner-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.partner-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-weight: 600;
  font-size: 0.97rem;
}
.partner-list .icon { color: var(--gold); width: 1em; height: 1em; }

/* ---------- 15. Pathway timeline ---------- */
.pathway {
  --dot: 54px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: stage;
}
.stage {
  counter-increment: stage;
  position: relative;
  display: grid;
  grid-template-columns: var(--dot) 1fr;
  column-gap: 1.1rem;
  padding-bottom: 1.9rem;
}
.stage:last-child { padding-bottom: 0; }
.stage::before {
  content: counter(stage);
  display: grid;
  place-items: center;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  position: relative;
  z-index: 1;
  grid-row: 1 / span 2;
  transition: background-color 0.3s, color 0.3s;
}
.stage:hover::before { background: var(--blue); color: var(--white); }
.stage:first-child::before, .stage:last-child::before { background: var(--navy); border-color: var(--navy); color: var(--gold); }
/* vertical connector (mobile) */
.stage::after {
  content: "";
  position: absolute;
  left: calc(var(--dot) / 2 - 1px);
  top: var(--dot);
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(var(--blue) 0 6px, transparent 6px 11px);
}
.stage:last-child::after { display: none; }
.stage-body { padding-top: 0.55rem; }
.stage-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.2rem; }
.stage h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.stage p { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.6; text-wrap: pretty; }

@media (min-width: 720px) {
  .pathway { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; row-gap: 2.5rem; }
  .stage { display: block; padding: 0 0.25rem 0 0; }
  .stage::before { margin-bottom: 1rem; }
  .stage::after {
    left: var(--dot);
    right: -2rem;
    top: calc(var(--dot) / 2 - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 11px);
  }
  .stage:nth-child(2n)::after { display: none; }
  .stage-body { padding-top: 0; }
}
@media (min-width: 1100px) {
  .pathway { grid-template-columns: repeat(4, 1fr); column-gap: 1.75rem; row-gap: 3rem; }
  .stage:nth-child(2n)::after { display: block; }
  .stage:nth-child(4n)::after, .stage:last-child::after { display: none; }
  .stage::after { right: -1.75rem; }
}

/* ---------- 16. Team ---------- */
.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card {
  text-align: center;
  padding: 2.25rem 1.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.monogram {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #0a63d1, var(--blue) 45%, var(--navy));
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 5px var(--white), 0 0 0 7px var(--gold);
}
.team-card h3 { margin-bottom: 0.2rem; }
.team-role { color: var(--muted); margin: 0; font-size: var(--fs-small); }

/* ---------- 17. Stories & quotes ---------- */
.stories-lead {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.quote-rotator {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.quote-rotator h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.quote-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.is-rotating .quote-list { gap: 0; min-height: 4.2em; }
.is-rotating .quote-list li { grid-area: 1 / 1; display: flex; align-items: center; }
.quote-list blockquote { margin: 0; }
.quote-list p {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.35;
  font-style: italic;
}
.is-rotating .quote-list li { opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.is-rotating .quote-list li.is-current { opacity: 1; visibility: visible; }
.quote-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.quote-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
}
.quote-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.quote-count { margin-left: auto; font-size: 1.05rem; color: #d7e1f4; font-variant-numeric: tabular-nums; }

/* ---------- 18. Referral CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
}
.cta-band .band-media, .cta-band .band-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.cta-band .band-media img { object-fit: cover; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(1, 29, 82, 0.97) 0%, rgba(1, 41, 113, 0.88) 50%, rgba(1, 41, 113, 0.55) 100%);
}
.cta-band h2 { color: var(--white); }
.cta-band p:not(.eyebrow) { color: #e3eaf8; font-size: var(--fs-lead); max-width: 62ch; }
.cta-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.7rem; }
@media (min-width: 700px) { .cta-points { grid-template-columns: repeat(3, 1fr); align-items: start; max-width: 46rem; gap: 0.75rem 2rem; } }
.cta-points li { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 600; line-height: 1.4; }
.cta-points .icon { color: var(--gold); align-self: flex-start; margin-top: 0.05em; }

/* ---------- 19. Safeguarding ---------- */
.safeguard {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .safeguard { grid-template-columns: 0.9fr 1.4fr; align-items: center; } }
.safeguard-head { display: flex; gap: 1rem; align-items: flex-start; }
.safeguard-head .badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gold);
  color: var(--navy);
}
.safeguard-head .badge .icon { width: 30px; height: 30px; stroke-width: 2; }
.safeguard-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 0.3rem; }
.safeguard-head p { margin: 0; color: var(--muted); }
.help-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 600px) { .help-lines { grid-template-columns: 1fr 1fr; align-items: stretch; } .help-lines__wide { grid-column: 1 / -1; } }
.help-lines > li { display: flex; }
.help-lines > li > .help-line { flex: 1; }
.help-email { display: block; overflow-wrap: anywhere; }
.help-line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 64px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
a.help-line:hover { border-color: var(--blue); background: var(--blue-50); color: var(--ink); text-decoration: none; }
.help-line .num {
  flex: none;
  min-width: 64px;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
}
.help-line--urgent .num { background: var(--error); }
.help-line small { display: block; color: var(--ink); font-size: 0.9375rem; font-weight: 600; margin-top: 0.15rem; }
.help-line .help-email { text-decoration: underline; text-underline-offset: 2px; }
/* Narrow phones: stack the badge above the text so the text column is not squeezed. */
@media (max-width: 379px) {
  .help-line { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
.help-line--wide { grid-column: 1 / -1; }

/* ---------- 20. Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 0.85rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ci-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
}
.contact-item .ci-label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item address { font-weight: 600; font-size: 1.1rem; color: var(--navy); word-break: break-word; }
.contact-item a { display: inline-block; min-height: 44px; padding-top: 0.1rem; }
.map-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; min-height: 44px; }
.map-link .icon { width: 1em; height: 1em; }

/* ---------- 21. Forms ---------- */
.form-card {
  padding: clamp(1.25rem, 0.8rem + 2.5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-card > h2, .form-card > h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid--2 > .span-2 { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field > label, .field-legend {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.req, .opt { font-weight: 400; color: var(--muted); font-size: 0.92em; }
.hint { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--field-border);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.field input[type="date"] { -webkit-appearance: auto; appearance: auto; }
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23012971' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4, 71, 171, 0.3);
}
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  color: var(--error);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}
.field-error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 1.2em; height: 1.2em; margin-top: 0.1em; border-radius: 50%; background: var(--error); color: var(--white); font-size: 0.8em; font-weight: 700; }

fieldset.field, fieldset.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend, fieldset.choice-group > legend { padding: 0; margin-bottom: 0.5rem; font-weight: 700; color: var(--navy); line-height: 1.35; }
.choices { display: grid; gap: 0.6rem; }
.choices--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.choice {
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 52px;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  line-height: 1.4;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.choice:hover { border-color: var(--blue); }
.choice input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0.05rem 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.choice input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.choice-title { display: block; font-weight: 700; color: var(--navy); }
.choice-desc { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }
.choice-group[aria-invalid="true"] .choice, fieldset[aria-invalid="true"] .choice { border-color: var(--error); }
.choice--plain { border: 0; padding: 0.35rem 0; min-height: 44px; background: none; }
.choice--plain:has(input:checked) { background: none; box-shadow: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.form-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }
.form-note a { font-weight: 600; }

/* Status panels */
.status-panel {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius);
  border: 1.5px solid;
}
.status-panel:focus { outline: none; }
.status-panel:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.status-panel h2, .status-panel h3 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem); display: flex; gap: 0.6rem; align-items: center; }
.status-panel h2 .icon, .status-panel h3 .icon { width: 1.4em; height: 1.4em; flex: none; }
.status-panel p:last-child { margin-bottom: 0; }
.status-panel--success { background: var(--success-50); border-color: var(--success); }
.status-panel--success h2, .status-panel--success h3 { color: var(--success); }
.status-panel--error { background: var(--error-50); border-color: var(--error); }
.status-panel--error h2, .status-panel--error h3 { color: var(--error); }
.status-panel .btn-row { margin-top: 1.25rem; }
.ref-code {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px dashed var(--line-strong);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; font-weight: 600; }

.error-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border: 2px solid var(--error);
  border-radius: var(--radius-sm);
  background: var(--error-50);
}
.error-summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }
.error-summary h2 { font-family: var(--font-body); font-size: 1.05rem; color: var(--error); margin-bottom: 0.35rem; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); font-weight: 600; }

.noscript-box {
  padding: 1.5rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--gold-50);
}
.noscript-box h2, .noscript-box h3 { font-size: 1.4rem; }

/* ---------- 22. Referral page ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
.page-hero .band-media, .page-hero .band-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.page-hero .band-media img { object-fit: cover; object-position: center 35%; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(1, 29, 82, 0.97) 0%, rgba(1, 41, 113, 0.9) 55%, rgba(1, 41, 113, 0.72) 100%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 1.7rem + 3vw, 3.75rem); }
.page-hero p:not(.eyebrow) { color: #e3eaf8; font-size: var(--fs-lead); max-width: 66ch; }
.page-hero .cta-points { margin-bottom: 0; }

.breadcrumb { margin-bottom: 0.5rem; font-size: 0.95rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; padding: 0; color: #d7e1f4; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.7; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.5rem; margin-inline: -0.5rem; color: var(--white); }

.referral-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1200px) { .referral-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.referral-aside { display: grid; gap: 1.25rem; }
@media (min-width: 1200px) { .referral-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aside-card h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.aside-card p, .aside-card li { font-size: var(--fs-small); color: var(--muted); }
.aside-card ol { padding-left: 1.2em; margin: 0; }
.aside-card ol li + li { margin-top: 0.4rem; }
.aside-card--navy { background: var(--navy); border-color: var(--navy); color: #e3eaf8; }
.aside-card--navy h2 { color: var(--white); }
.aside-card--navy p { color: #e3eaf8; }
.aside-card--navy a { color: var(--white); font-weight: 700; }
.aside-card .tel-big { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; min-height: 44px; }

.wizard-progress { margin-bottom: 1.75rem; }
.progress-top { display: flex; justify-content: flex-start; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.progress-label { margin: 0; font-weight: 700; color: var(--navy); }
.progress-count { margin: 0; color: var(--muted); font-size: 0.95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.progress-bar span {
  display: block;
  height: 100%;
  width: 10%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  transition: width 0.35s var(--ease);
}
.progress-steps {
  display: none;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  gap: 0.35rem;
  flex-wrap: wrap;
}
@media (min-width: 760px) { .progress-steps { display: flex; } }
.progress-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem 0.25rem 0.3rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
}
.progress-steps .n {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--field-border);
  font-size: 0.78rem;
  font-weight: 700;
}
.progress-steps li.is-done { color: var(--navy); }
.progress-steps li.is-done .n { background: var(--blue); border-color: var(--blue); color: var(--white); }
.progress-steps li.is-current { color: var(--white); background: var(--navy); border-color: var(--navy); font-weight: 700; }
.progress-steps li.is-current .n { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.step-head { margin-bottom: 1.5rem; }
.step-head h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-bottom: 0.35rem; }
.step-head h2:focus { outline: none; }
.step-head h2:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.step-head p { margin: 0; color: var(--muted); }
.step-body { display: grid; gap: 1.35rem; }
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.wizard-nav .spacer { flex: 1; }
@media (max-width: 479px) {
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard-nav .btn { width: 100%; }
  .wizard-nav .spacer { display: none; }
}
.draft-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--navy);
  font-size: 0.97rem;
}
.link-btn {
  padding: 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.link-btn:hover { color: var(--blue-700); }
.info-box {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--gold-50);
  border: 1px solid #ecd98b;
  color: var(--ink);
}
.info-box > .icon { color: var(--navy); width: 26px; height: 26px; margin-top: 0.1rem; }
.info-box p { margin: 0 0 0.75rem; }
.info-box p:last-child { margin-bottom: 0; }

.review-section {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.review-section + .review-section { margin-top: 0.85rem; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.review-head h3 { margin: 0; font-size: 1.15rem; text-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.review-head .link-btn { flex: none; }
.review-list { margin: 0; display: grid; gap: 0.5rem; }
.review-list > div { display: grid; gap: 0.1rem; }
@media (min-width: 640px) { .review-list > div { grid-template-columns: 40% 1fr; gap: 1rem; } }
.review-list dt { color: var(--muted); font-size: 0.95rem; }
.review-list dd { margin: 0; font-weight: 600; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.review-empty { margin: 0; color: var(--muted); font-style: italic; font-size: 0.95rem; }

/* Mode-dependent copy in the referral form */
.wizard[data-mode="self"] .for-other { display: none !important; }
.wizard:not([data-mode="self"]) .for-self { display: none !important; }

/* ---------- 23. Prose pages (privacy, 404) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem); margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose li + li { margin-top: 0.35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: var(--fs-small); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem; border: 1px solid var(--line); }
.prose th { background: var(--cream-2); color: var(--navy); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.updated { color: var(--muted); font-size: 0.95rem; }

.notfound { min-height: 60vh; display: grid; align-items: center; text-align: center; }
.notfound .big { font-family: var(--font-head); font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; color: var(--blue); margin: 0 0 0.5rem; }
.notfound .btn-row { justify-content: center; }

/* ---------- 24. Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #c9d5ec;
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  font-size: var(--fs-small);
}
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 0.9fr 1.2fr; gap: 2rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.2fr 1.1fr 1.1fr; gap: 2.5rem; } }
.footer-brand img { width: 150px; height: auto; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 38ch; }
.footer-tagline { font-family: var(--font-head); font-style: italic; color: var(--gold); font-size: 1.15rem; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; }
@media (min-width: 1024px) { .footer-links { grid-template-columns: repeat(2, auto); column-gap: 2rem; justify-content: start; } }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: #e8eefa; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 0.2rem; }
.footer-contact a { color: #e8eefa; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b4c2de;
  font-size: 0.92rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #e8eefa; }
.footer-privacy { max-width: 70ch; }

/* ---------- 25. Motion ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .value-card:hover, .service-card:hover { transform: none; }
}

/* ---------- 26. Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .hero-media, .band-media, .quote-controls, .skip-link, .wizard-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .page-hero, .section--navy, .section--blue { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .section--navy h2 { color: #000 !important; }
}

/* ---------- 27. Late additions ---------- */
.form-status-panel { margin-top: 1.5rem; }
.form-result:focus { outline: none; }
.form-result:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }
.quote-count { margin: 0 0 0 auto; }
.help-line .num .icon { margin: 0 auto; }
.field > label.choice { font-weight: 400; color: var(--ink); }
.contact-item .map-link { display: inline-flex; font-size: 1rem; }
/* backdrop-filter makes the header a containing block for the fixed menu panel; drop it while open */
body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
@media (max-width: 1099px) { .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(251, 248, 241, 0.97); } }

/* ---------- No-JS fallback: keep the header navigation reachable ---------- */
html:not(.js) .header-cta { display: inline-flex; }
@media (max-width: 1099px) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav {
    position: static;
    display: block;
    inset: auto;
    padding: 0 var(--gutter) 1rem;
    overflow: visible;
  }
}
