/* ==========================================================================
   ECM Homepage v4 — Figma "ECM / Home" (node 1:497)
   Loaded after main.css + homepagev3.css. Header/footer rules apply site-wide;
   homepage section rules are scoped to .hv4-* classes.
   ========================================================================== */

:root {
  /* Brand colours follow the site colour theme (assets/css/ecm-theme-selector.css sets
     --sage / --mid / --gold per theme); fallbacks are the Figma burgundy values. */
  --hv4-maroon: var(--sage, #6b141a);
  --hv4-maroon-text: var(--mid, #8b1a21);
  --hv4-ink: #1f2933;
  --hv4-body: #333;
  --hv4-cream: #f9f4ed;
  --hv4-yellow: #ffeeae;
  --hv4-green: #cbd985;
  --hv4-green-chip: #dfed97;
  --hv4-gold: var(--gold, #c59b27);
  --hv4-gutter: clamp(16px, 5vw, 96px);
  /* One vertical rhythm for every homepage section: same space top and bottom */
  --hv4-section-y: clamp(48px, 4.7vw, 90px);
  --hv4-max: 1728px;
  --hv4-font-heading: 'Inter', Arial, sans-serif;
  --hv4-font-card: 'Poppins', Arial, sans-serif;
  --hv4-text: 17.6px;
  --hv4-lh: 29.92px;
  --hv4-btn-shadow: 0 10px 15px color-mix(in srgb, var(--hv4-maroon) 30%, transparent);
}

/* Ocean and Plum don't set --mid, so derive the lighter text/hover shade from their primary */
:root[data-theme="ocean"],
:root[data-theme="plum"] {
  --hv4-maroon-text: color-mix(in srgb, var(--sage) 82%, #fff);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--hv4-maroon);
  font-size: 16px;
  line-height: 16.64px;
  letter-spacing: 0.176px;
}

nav {
  height: 83px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2ddd6;
  padding: 0 20px;
}
.nav-logo-image { width: 234px; height: auto; }
/* Two-layer header logo (see header.php): the gold layer is a normal image, the primary
   layer is a mask filled with the colour theme's primary, so only that part changes. */
.nav-logo-art { position: relative; display: block; line-height: 0; }
.nav-logo-image.nav-logo-image--layered { filter: none !important; }
.nav-logo-primary {
  position: absolute;
  inset: 0;
  background-color: var(--sage, #6b141a);
  -webkit-mask: var(--icon) center / 100% 100% no-repeat;
          mask: var(--icon) center / 100% 100% no-repeat;
  pointer-events: none;
}
.nav-links { gap: 32px; }
.nav-links a {
  color: #000;
  font-size: var(--hv4-text);
  font-weight: 600;
  line-height: var(--hv4-lh);
}
.nav-links a::after { background: var(--hv4-maroon); bottom: 1px; }
.nav-links a:hover { color: var(--hv4-maroon); }

.nav-location-badge {
  background: #e7e7e7;
  gap: 8px;
  padding: 5px 5px 5px 10px;
  border-radius: 20px;
  color: #000;
  font-size: var(--hv4-text);
}
.nav-location-badge .nav-location-pin {
  width: 12.464px; height: 14px; flex: none; display: block;
  /* SVG used as a mask so the pin takes the colour theme's primary */
  background-color: var(--hv4-maroon);
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.nav-location-badge span.js-location-full { color: #000; font-weight: 600; }
.nav-location-change {
  color: #000;
  font-weight: 600;
  letter-spacing: 0.42px;
}
.nav-cta {
  background: var(--hv4-ink);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: var(--hv4-text) !important;
  line-height: var(--hv4-lh);
}
.nav-cta:hover { background: var(--hv4-maroon) !important; }

/* ── Shared ─────────────────────────────────────────────────────────────── */
.hv4-container {
  width: 100%;
  max-width: calc(var(--hv4-max) + 2 * var(--hv4-gutter));
  margin: 0 auto;
  padding-left: var(--hv4-gutter);
  padding-right: var(--hv4-gutter);
}
/* main.css gives every <section> `padding: 90px 5%`; each .hv4-* section
   class below sets its own padding (class beats element selector). */

.hv4-h2 {
  font-family: var(--hv4-font-heading);
  font-weight: 600;
  font-size: 41.6px;
  line-height: 49.92px;
  color: var(--hv4-maroon);
  margin: 0;
}
.hv4-lead {
  font-size: var(--hv4-text);
  line-height: var(--hv4-lh);
  color: var(--hv4-body);
  margin: 0;
}

.hv4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  min-height: 66px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--hv4-text);
  line-height: var(--hv4-lh);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.hv4-btn img { display: block; flex: none; }
.hv4-btn--primary img { margin: 0 1.45px; } /* 15.09px glyph centred in the design's 18px icon box */
.hv4-btn--primary {
  background: var(--hv4-maroon);
  color: #fff;
  filter: drop-shadow(var(--hv4-btn-shadow));
}
.hv4-btn--primary:hover { background: var(--hv4-maroon-text); transform: translateY(-1px); color: #fff; }
.hv4-btn--outline-gold {
  width: 264px;
  padding: 4px 0;
  gap: 6px;
  border-color: #ffdc5d;
  color: #fff;
  font-weight: 600;
  background: transparent;
}
.hv4-btn--outline-gold:hover { background: rgba(255, 220, 93, 0.15); color: #fff; }
.hv4-btn--outline-dark {
  width: 264px;
  padding: 4px 0;
  border-color: #000;
  color: #000;
  font-weight: 600;
  background: transparent;
}
.hv4-btn--outline-dark:hover { background: #000; color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hv4-hero {
  position: relative;
  /* 805px at the 1920px design width, shrinking proportionally on smaller screens */
  min-height: clamp(480px, 41.9vw, 805px);
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #22324a;
}
.hv4-hero__media { position: absolute; inset: 0; }
.hv4-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 19% 91%;
  display: block;
}
/* Slideshow: slides stack and crossfade */
.hv4-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hv4-hero__slide.is-active { opacity: 1; }
.hv4-hero__media img.hv4-hero__slide--1 { object-position: 70% 35%; }
.hv4-hero__media img.hv4-hero__slide--2 { object-position: 70% 50%; }
.hv4-hero__media img.hv4-hero__slide--3 { object-position: 72% 40%; }
.hv4-hero__media img.hv4-hero__slide--4 { object-position: 75% 35%; }
@media (prefers-reduced-motion: reduce) {
  .hv4-hero__slide { transition: none; }
}
.hv4-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hv4-hero__inner { max-width: 804px; }
/* "Since 2002" stamp: sits above the headline on desktop */
.hv4-hero__stamp {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 0 24px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
}
.hv4-hero__title {
  font-family: var(--hv4-font-heading);
  font-weight: 700;
  font-size: 54px;
  line-height: 60px;
  color: #fff;
  max-width: 680px;
  margin: 0;
}
.hv4-hero__sub {
  margin: 18px 0 0;
  max-width: 608px;
  color: #fff;
  font-size: var(--hv4-text);
  line-height: var(--hv4-lh);
}
.hv4-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
}

/* ── Categories ─────────────────────────────────────────────────────────── */
.hv4-cats { background: var(--hv4-cream); padding: var(--hv4-section-y) 0; }
.hv4-cats__head { text-align: center; }
.hv4-loc {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 17px;
  line-height: 28.9px;
  color: var(--hv4-ink);
}
.hv4-loc img { display: block; width: 13px; height: 17px; }
.hv4-loc em { font-style: italic; margin: 0 9px 0 4px; }
.hv4-loc__change {
  background: var(--hv4-gold);
  color: var(--hv4-ink);
  border: 0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 16px;
  line-height: 16.8px;
  font-weight: 500;
  cursor: pointer;
}
.hv4-loc__change:hover { background: color-mix(in srgb, var(--hv4-gold) 85%, #000); }
.hv4-cats__title { max-width: 534px; margin: 0 auto; }
.hv4-cats__sub { padding-top: 12px; text-align: center; }

.hv4-cats__grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.hv4-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 30px rgba(149, 149, 149, 0.2);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.hv4-card:hover { transform: translateY(-4px); box-shadow: 0 8px 36px rgba(149, 149, 149, 0.35); }
.hv4-card__img {
  height: 260px;
  background: #fceaea;
  overflow: hidden;
  flex: none;
}
.hv4-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv4-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.hv4-card__title {
  font-family: var(--hv4-font-card);
  font-weight: 600;
  font-size: 20px;
  line-height: 34px;
  color: var(--hv4-ink);
  margin: 0 0 8px;
}
.hv4-card__desc {
  flex: 1;
  font-size: var(--hv4-text);
  line-height: 26px;
  color: #222;
  margin: 0 0 14px;
}
.hv4-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: var(--hv4-text);
  line-height: 23.76px;
  color: var(--hv4-maroon);
}
.hv4-card__cta-arrow { transition: transform 0.2s; }
.hv4-card:hover .hv4-card__cta-arrow { transform: translateX(3px); }
.hv4-cats__action { display: flex; justify-content: center; margin-top: 76px; }
.hv4-cats__dots { display: none; }

/* ── Why (feature cards) ────────────────────────────────────────────────── */
.hv4-why { padding: var(--hv4-section-y) 0; background: #fff; }
.hv4-why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 29px;
}
.hv4-why__card {
  background: var(--hv4-yellow);
  border-radius: 16px;
  min-height: 304px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--hv4-maroon-text);
}
.hv4-why__card {
  /* keeps the .reveal fade-in (opacity 0.6s) alongside the hover transitions */
  transition: opacity 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.hv4-why__card:hover {
  transform: translateY(-6px);
  background-color: #ffe68a;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--hv4-maroon) 14%, transparent);
}
.hv4-why__icon {
  --icon-h: 60px;
  display: block;
  flex: none;
  height: var(--icon-h);
  width: calc(var(--icon-h) * var(--icon-ratio, 1));
  /* SVG used as a mask so the icon takes the colour theme's colour */
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: transform 0.3s ease;
}
.hv4-why__card:hover .hv4-why__icon { transform: scale(1.1); }
.hv4-why__card:hover .hv4-why__icon--flip { transform: scaleX(-1) scale(1.1); }
.hv4-why__icon--flip { transform: scaleX(-1); }
.hv4-why__title {
  font-family: var(--hv4-font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 47.6px;
  margin: 14px 0 0;
  color: inherit;
}
.hv4-why__desc {
  color: #333;
  margin: 6px 0 0;
  max-width: 375px;
  font-size: var(--hv4-text);
  line-height: 29.04px;
  color: inherit;
}

/* ── Split (image + text) used by About and How It Works ───────────────── */
.hv4-split {
  display: grid;
  grid-template-columns: minmax(0, 764fr) minmax(0, 781fr);
  column-gap: clamp(40px, 7.6vw, 145px);
  align-items: center;
}
.hv4-split__img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 764 / 736;
}
.hv4-split__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hv4-about { padding: var(--hv4-section-y) 0; background: #fff; }
.hv4-about__text { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.hv4-about__title { max-width: 677px; }
.hv4-about__body { font-size: 16px; line-height: 26px; }
.hv4-about__body p { margin: 0; }
.hv4-about__body p + p { margin-top: 20px; }
.hv4-about .hv4-btn { min-width: 209px; }
/* About photo slideshow: slides stack and crossfade */
.hv4-about__media { position: relative; }
.hv4-split__img img.hv4-about__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hv4-split__img img.hv4-about__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hv4-split__img img.hv4-about__slide { transition: none; }
}

/* ── Chips + Guides ────────────────────────────────────────────────────── */
.hv4-explore {
  background: linear-gradient(to bottom, var(--hv4-cream), #fff);
  padding: var(--hv4-section-y) 0;
}
.hv4-explore__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 55px;
}
.hv4-explore__panel {
  position: relative;
  min-height: 675px;
  border-radius: 24px;
  overflow: hidden;
}
.hv4-chips {
  background: var(--hv4-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.hv4-chips__title {
  font-family: var(--hv4-font-heading);
  font-weight: 600;
  font-size: 41.6px;
  line-height: 49.92px;
  color: #000;
  text-align: center;
  max-width: 677px;
  margin: 0 24px 67px;
}
.hv4-chips__rows { width: 100%; display: flex; flex-direction: column; gap: 25px; }
.hv4-chips__row { overflow: hidden; width: 100%; }
.hv4-chips__track {
  display: flex;
  gap: 19px;
  width: max-content;
  animation: hv4-marquee var(--hv4-marquee-duration, 60s) linear infinite;
}
.hv4-chips__row:nth-child(even) .hv4-chips__track { animation-direction: reverse; }
.hv4-chips__row:hover .hv4-chips__track { animation-play-state: paused; }
@keyframes hv4-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 9.5px)); }
}
.hv4-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 100px;
  background: #fff;
  font-family: var(--hv4-font-heading);
  font-size: 26px;
  line-height: 49.92px;
  color: #000;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hv4-chip--alt { background: var(--hv4-green-chip); }
a.hv4-chip:hover { background: var(--hv4-maroon); color: #fff; }

.hv4-guides {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 61px 24px 60px;
}
.hv4-guides__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv4-guides__link {
  position: relative;
  font-family: var(--hv4-font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 28px;
}
.hv4-guides__link strong { font-weight: 700; }
.hv4-guides__link:hover { text-decoration: underline; }
.hv4-guides .hv4-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  flex: 1;
}
.hv4-guides .hv4-card__title { font-size: 18px; line-height: 26px; }
.hv4-guides .hv4-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 1 auto;
}
.hv4-guides .hv4-card__body { justify-content: space-between; }

/* ── How it works ──────────────────────────────────────────────────────── */
/* Inner spacing: design values at 1920px wide, scaled with the viewport (value / 19.2 = vw). */
.hv4-how {
  background: #fff;
  padding: var(--hv4-section-y) 0;
}
.hv4-how__head { text-align: center; margin-bottom: clamp(32px, 4vw, 77px); }
.hv4-how__head .hv4-lead { padding-top: 12px; }
.hv4-how .hv4-split { grid-template-columns: minmax(0, 764fr) minmax(0, 812fr); }
.hv4-how__content { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 50px); }
.hv4-steps { list-style: none; margin: 0; padding: 10px; }
.hv4-step {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: clamp(110px, 8.9vw, 171px);
  padding: 16px 0;
  border-bottom: 1px solid #e2e2e2;
}
.hv4-step:last-child { border-bottom: 0; }
.hv4-step { cursor: default; outline: none; }
.hv4-step__num { transition: transform 0.25s, background 0.25s; }
.hv4-step.is-active .hv4-step__num,
.hv4-step:focus-visible .hv4-step__num { transform: scale(1.06); background: var(--hv4-maroon-text); }

/* Step image swap */
.hv4-how__media { position: relative; }
.hv4-how__media .hv4-how__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hv4-how__media .hv4-how__img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hv4-how__media .hv4-how__img { transition: none; }
}
.hv4-step__num {
  flex: none;
  width: 87px;
  height: 87px;
  border-radius: 100px;
  background: var(--hv4-maroon);
  color: #fff;
  font-size: 30px;
  line-height: 29.92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hv4-step__text { display: flex; flex-direction: column; gap: 7px; max-width: 677px; }
.hv4-step__title {
  font-family: var(--hv4-font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  color: var(--hv4-maroon);
  margin: 0;
}
.hv4-step__desc { margin: 0; max-width: 568px; }
.hv4-how__notes { display: flex; flex-direction: column; gap: 28px; max-width: 609px; }
.hv4-how__notes a { color: var(--hv4-maroon); text-decoration: none; }
.hv4-how__notes a:hover { text-decoration: underline; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.hv4-faq {
  background: linear-gradient(to bottom, var(--hv4-cream), #fff);
  padding: var(--hv4-section-y) 0;
}
.hv4-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 534fr) minmax(0, 961fr);
  column-gap: clamp(32px, 12vw, 234px);
  align-items: start;
}
.hv4-faq__intro { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.hv4-faq__intro .hv4-lead { max-width: 453px; }
.hv4-faq__link {
  font-weight: 600;
  font-size: var(--hv4-text);
  line-height: var(--hv4-lh);
  color: var(--hv4-maroon);
  text-decoration: none;
}
.hv4-faq__link:hover { text-decoration: underline; }
.hv4-faq__items { display: flex; flex-direction: column; gap: 16px; }
.hv4-faq .faq-item {
  background: #fffef9;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  box-shadow: none;
}
.hv4-faq .faq-q {
  background: var(--hv4-yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  color: var(--hv4-ink);
  cursor: pointer;
}
.hv4-faq .faq-icon {
  flex: none;
  font-weight: 700;
  font-size: 19.2px;
  line-height: 32.64px;
  color: var(--hv4-maroon);
  background: none;
  width: auto;
  height: auto;
  transition: transform 0.35s ease;
}
.hv4-faq .faq-item.open .faq-icon { transform: rotate(45deg); }

/* Smooth open/close: animate the answer's grid row from 0fr to 1fr (auto height).
   The answer is always yellow, so the open card reads as one block. */
.hv4-faq .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  padding: 0;
  background: var(--hv4-yellow);
  font-size: var(--hv4-text);
  line-height: var(--hv4-lh);
  color: var(--hv4-body);
  transition: grid-template-rows 0.35s ease;
}
.hv4-faq .faq-item.open .faq-a { grid-template-rows: 1fr; padding: 0; max-height: none; }
.hv4-faq .faq-a__inner { min-height: 0; overflow: hidden; }
.hv4-faq .faq-a__text {
  padding: 0 24px 22px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}
.hv4-faq .faq-item.open .faq-a__text { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hv4-faq .faq-a,
  .hv4-faq .faq-a__text,
  .hv4-faq .faq-icon { transition: none; }
}

/* ── Provider CTA ──────────────────────────────────────────────────────── */
.hv4-pcta-wrap { background: #fff; padding: var(--hv4-section-y) 0; }

/* Where a section ending in white is followed by another white section, the two
   paddings would stack into a double gap — keep just one. */
.hv4-why + .hv4-about,
.hv4-explore + .hv4-how,
.hv4-faq + .hv4-pcta-wrap { padding-top: 0; }
.hv4-pcta {
  position: relative;
  /* Height follows the width (design 1728 × 585) so narrower screens get a shorter banner
     and the photo is cropped less; it still grows if the copy needs more room. */
  /* (a min-height rather than aspect-ratio: with overflow hidden, aspect-ratio would clip the copy) */
  min-height: min(585px, calc((100vw - 2 * var(--hv4-gutter)) * 585 / 1728));
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hv4-pcta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv4-pcta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.72vw, 33px);
  align-items: flex-start;
  /* 673px at the design width, narrowing with the banner so the copy stays left of the people */
  max-width: min(673px, 42%);
  margin: clamp(24px, 2.1vw, 40px) clamp(24px, 5.7vw, 99px);
}
.hv4-pcta__title {
  font-family: var(--hv4-font-heading);
  font-weight: 600;
  /* 60px at 1920px wide, scaling down with the screen */
  font-size: clamp(34px, 3.125vw, 60px);
  line-height: 1.05;
  color: var(--hv4-maroon);
  margin: 0;
}
.hv4-pcta__content .hv4-lead { font-size: clamp(15px, 0.92vw, 17.6px); line-height: 1.7; }
.hv4-pcta__btns { display: flex; flex-wrap: wrap; gap: clamp(14px, 1.46vw, 28px); align-items: center; }
/* Buttons shrink with the banner (design size at 1920px) so they stay on one row */
.hv4-pcta .hv4-btn {
  font-size: clamp(15px, 0.92vw, 17.6px);
  min-height: clamp(48px, 3.44vw, 66px);
  padding: clamp(10px, 0.94vw, 18px) clamp(20px, 1.67vw, 32px);
}
.hv4-pcta .hv4-btn--outline-dark { width: auto; min-width: clamp(170px, 13.75vw, 264px); }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer { background: #2a0609; padding: 64px var(--hv4-gutter) 40px; }
.footer-top {
  grid-template-columns: minmax(0, 594fr) repeat(3, minmax(0, 330fr));
  gap: 48px;
  max-width: var(--hv4-max);
  margin: 0 auto;
}
.footer-bottom { max-width: var(--hv4-max); margin: 0 auto; }
.footer-col-title { letter-spacing: 1.408px; font-size: var(--hv4-text); line-height: var(--hv4-lh); }
.footer-links { padding-left: 0; margin: 0; }
.footer-links a,
.footer-bottom-right a,
.footer-tagline,
.trust-item { font-size: var(--hv4-text); line-height: var(--hv4-lh); }
.footer-tagline { color: rgba(255, 255, 255, 0.7); margin: 14px 0 0; }
.footer-trust { margin-top: 20px; }
.trust-item { color: #f0d4b0; gap: 8px; }
.trust-item img { width: 17.594px; height: 17.594px; margin: 0 1.232px; flex: none; }

/* Footer column toggles (accordion on phones; see footer.php). On wider screens the
   toggle looks exactly like the old title and every panel is open. */
.footer-col-toggle {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: default;
}
.footer-col-icon { display: none; }
.footer-col-panel { display: grid; grid-template-rows: 1fr; }
.footer-col-panel__inner { min-height: 0; overflow: hidden; }

/* Footer logo — composed from the Figma vector groups (node 1:980) */
.hv4-flogo {
  position: relative;
  display: block;
  width: 298.563px;
  height: 95px;
  overflow: hidden;
}
.hv4-flogo img,
.hv4-flogo span { position: absolute; display: block; }
.hv4-flogo img { width: auto; height: auto; max-width: none; }
.hv4-flogo__name {
  inset: 48.68% -1.06% 18.68% 25.7%;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 27.545px;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}
.hv4-flogo__tag {
  inset: 83.68% 3.27% 3.69% 26.06%;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 10.137px;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1399px) {
  .hv4-cats__grid,
  .hv4-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv4-explore__grid { grid-template-columns: 1fr; }
  /* scales from 48px at 1399px down through tablet widths */
  .hv4-hero__title { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; }
  .hv4-hero__title { max-width: min(680px, 66%); }
  .hv4-hero__sub { max-width: min(608px, 66%); }
}
@media (max-width: 1100px) {
  .hv4-split,
  .hv4-how .hv4-split,
  .hv4-faq__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .hv4-split__img { aspect-ratio: 4 / 3; }
  /* Smaller buttons on tablets */
  .hv4-btn { min-height: 54px; padding: 12px 26px; gap: 10px; font-size: 16px; line-height: 24px; }
  .hv4-btn--outline-gold,
  .hv4-btn--outline-dark { width: auto; min-width: 220px; }
  .hv4-about .hv4-btn { min-width: 0; }
  /* FAQ stacks: centre the intro above the questions, full width */
  .hv4-faq__intro { align-items: center; text-align: center; width: 100%; gap: 20px; }
  .hv4-faq__intro .hv4-lead { max-width: none; }
  .hv4-pcta__content { max-width: 52%; }
  .hv4-pcta::after {
    content: '';
    position: absolute;
    inset: 0;
    /* readable behind the text on the left, fading out so the people on the right stay visible */
    background: linear-gradient(90deg, rgba(232, 214, 198, 0.92) 0%, rgba(232, 214, 198, 0.7) 45%, rgba(232, 214, 198, 0) 80%);
  }
  .hv4-pcta__content { z-index: 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
/* Body copy is 16px on small screens */
@media (max-width: 767px) {
  :root {
    --hv4-text: 16px;
    --hv4-lh: 26px;
  }
  body { font-size: 16px; }
  .hv4-why__title { font-size: 20px; line-height: 26px; }
  .hv4-why__desc { font-size: 16px; line-height: 24px; }
  .hv4-pcta__content .hv4-lead { font-size: 16px; }
  /* FAQ question titles on phones */
  .hv4-faq .faq-q { font-size: 18px; line-height: 24px; padding: 16px 18px; gap: 12px; }
  .hv4-faq .faq-a__text { padding: 0 18px 18px; }
  /* Smaller buttons on phones */
  .hv4-btn,
  .hv4-pcta .hv4-btn { min-height: 48px; padding: 10px 22px; gap: 8px; font-size: 15px; line-height: 22px; }
  .hv4-btn img { transform: scale(0.9); }
  .hv4-btn--outline-gold,
  .hv4-btn--outline-dark,
  .hv4-pcta .hv4-btn--outline-dark { min-width: 0; }

  /* Care categories: swipeable slider, one card at a time with the next one peeking in */
  .hv4-cats__grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--hv4-gutter);
    margin-left: calc(-1 * var(--hv4-gutter));
    margin-right: calc(-1 * var(--hv4-gutter));
    padding: 8px var(--hv4-gutter) 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .hv4-cats__grid::-webkit-scrollbar { display: none; }
  .hv4-cats__grid .hv4-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
    transition-delay: 0s !important;
  }
  .hv4-cats__grid .hv4-card:hover { transform: none; }
  .hv4-cats__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }
  .hv4-cats__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: color-mix(in srgb, var(--hv4-maroon) 25%, transparent);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
  }
  .hv4-cats__dot[aria-current="true"] { width: 24px; background: var(--hv4-maroon); }
  .hv4-cats__action { margin-top: 32px; }
}
@media (max-width: 720px) {
  nav { height: 77px; }
  /* Top bar: smaller so the message fits on one line */
  body .trust-bar { font-size: 13px; line-height: 18px; letter-spacing: 0; padding: 8px 12px; }
  /* one step more specific than inner.css's `nav a.nav-logo img.nav-logo-image { width: 234px }`
     (which loads later), so the phone size wins and the logo keeps space above and below */
  .nav-logo-image,
  body nav a.nav-logo img.nav-logo-image { width: 180px; height: auto; }
  /* Hero stacks on phones: the photo on top (faces in view), copy below on a
     solid navy panel so neither competes with the other */
  .hv4-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background: linear-gradient(180deg, #22324a 0%, #1b2940 100%);
  }
  .hv4-hero__media {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 3;
  }
  .hv4-hero__media img { object-position: 80% 70%; }
  .hv4-hero__media img.hv4-hero__slide--1 { object-position: 74% 35%; }
  .hv4-hero__media img.hv4-hero__slide--2 { object-position: 72% 40%; }
  .hv4-hero__media img.hv4-hero__slide--3 { object-position: 78% 30%; }
  .hv4-hero__media img.hv4-hero__slide--4 { object-position: 80% 30%; }
  /* copy sits fully below the photo (no overlay fade to hide an overlap) */
  .hv4-hero__content { padding-top: 28px; padding-bottom: 40px; margin-top: 0; }
  /* phones: the stamp straddles the photo's bottom-left edge, in normal flow so
     the headline always starts below it (never overlaps, whatever the text wraps to) */
  .hv4-hero__stamp {
    width: 88px;
    height: 88px;
    margin: -72px 0 14px;
  }
  .hv4-hero__inner { max-width: none; }
  .hv4-hero__title { font-size: 32px; line-height: 38px; max-width: none; }
  .hv4-hero__sub { max-width: none; }
  .hv4-hero__sub { margin-top: 14px; color: rgba(255, 255, 255, 0.9); }
  .hv4-hero__ctas { gap: 14px; margin-top: 28px; }
  .hv4-hero__ctas .hv4-btn { width: 100%; }
  .hv4-h2,
  .hv4-chips__title { font-size: 32px; line-height: 40px; }
  /* Feature cards: two per row on phones, with tighter type to fit */
  .hv4-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hv4-why__card { min-height: 0; padding: 28px 12px; border-radius: 14px; justify-content: flex-start; }
  .hv4-why__icon { --icon-h: 34px; }
  .hv4-why__title { font-size: 20px; line-height: 26px; margin-top: 10px; }
  .hv4-why__desc { font-size: 16px; line-height: 24px; margin-top: 6px; }
  .hv4-explore__panel { min-height: 0; }
  .hv4-chips { padding: 56px 0; }
  .hv4-chips__title { margin-bottom: 40px; }
  .hv4-chip { font-size: 20px; line-height: 42px; }
  .hv4-step { gap: 18px; min-height: 0; padding: 24px 0; }
  .hv4-step__num { width: 60px; height: 60px; font-size: 24px; }
  .hv4-step__title { font-size: 20px; line-height: 28px; }
  /* Provider banner stacks: full-strength photo on top, copy on a cream panel below */
  .hv4-pcta {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background: #eadbcd;
  }
  .hv4-pcta::after { display: none; }
  .hv4-pcta__bg {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 78% center;
  }
  .hv4-pcta__content { margin: 0; padding: 32px 24px 36px; max-width: none; gap: 24px; }
  .hv4-pcta__title { font-size: 28px; line-height: 34px; }
  .hv4-pcta__btns { gap: 16px; width: 100%; }
  .hv4-pcta__btns .hv4-btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  /* Footer link columns: accordion */
  .footer-top { row-gap: 0; padding-bottom: 0; border-bottom: 0; }
  .footer-brand { margin-bottom: 28px; text-align: center; }
  .footer-brand .hv4-flogo,
  .footer-brand .footer-logo-image { margin-left: auto; margin-right: auto; }
  .footer-brand .footer-tagline { margin-left: auto; margin-right: auto; }
  .footer-brand .footer-trust { align-items: center; }
  .footer-brand .trust-item { justify-content: center; }
  .footer-acc { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .footer-acc:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 8px; }
  .footer-acc .footer-col-title { margin-bottom: 0; }
  .footer-acc .footer-col-toggle { padding: 16px 0; cursor: pointer; }
  .footer-acc .footer-col-toggle:focus-visible { outline: 2px solid #f0d4b0; outline-offset: 2px; border-radius: 4px; }
  .footer-acc .footer-col-icon {
    display: block;
    position: relative;
    width: 14px;
    height: 14px;
    flex: none;
  }
  .footer-acc .footer-col-icon::before,
  .footer-acc .footer-col-icon::after {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease;
  }
  .footer-acc .footer-col-icon::after { transform: rotate(90deg); }
  .footer-acc.is-open .footer-col-icon::after { transform: rotate(0deg); }
  .footer-acc .footer-col-panel { grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
  .footer-acc.is-open .footer-col-panel { grid-template-rows: 1fr; }
  .footer-acc .footer-links { padding-bottom: 18px; }
  /* Copyright row: let long legal links wrap instead of pushing the row wider than the screen */
  .footer-bottom { width: 100%; text-align: center; }
  .footer-bottom > * { max-width: 100%; }
  .footer-bottom-right a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-acc .footer-col-panel,
  .footer-acc .footer-col-icon::before,
  .footer-acc .footer-col-icon::after { transition: none; }
  .hv4-chips__track { animation: none; }
  .hv4-chips__row { overflow-x: auto; }
}
