/* ==========================================================================
   Advanced Home Health Services — design system
   Light theme only. See /Design/brand-and-structure.html for rationale.
   ========================================================================== */

:root {
  /* One blue family, three steps */
  --blue-deep: #0A3A5E;
  --blue:      #0E5C9A;
  --sky:       #3E93CE;
  --wash:      #D8E9F6;
  --ground:    #F2F8FC;

  /* Single warm accent — only ever on blue */
  --amber:     #F5A524;

  /* Blue-biased neutrals */
  --ink:       #0C1A26;
  --slate:     #556877;
  --faint:     #5F7182;
  --line:      #D7E3EE;
  --white:     #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(10, 58, 94, .05);
  --shadow:    0 1px 2px rgba(10, 58, 94, .05), 0 10px 28px -14px rgba(10, 58, 94, .25);
  --shadow-lg: 0 2px 4px rgba(10, 58, 94, .06), 0 20px 48px -20px rgba(10, 58, 94, .3);

  --r-card: 12px;
  --r-btn:  8px;
  --r-pill: 999px;

  --display: "Manrope", "Trebuchet MS", system-ui, sans-serif;
  --body:    "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gap-section: 96px;
}

@media (max-width: 780px) {
  :root { --gap-section: 64px; }
}

/* ---------- reset ---------- */

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -.02em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout primitives ---------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--gap-section); }
.section--ground { background: var(--ground); }
.section--deep { background: var(--blue-deep); color: #E4EEFC; }

.section__head { max-width: 62ch; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--wash);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}

.section--deep .eyebrow { background: rgba(255, 255, 255, .14); color: #BDD9EC; }

h2.section__title { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.section--deep h2.section__title { color: #fff; }

.section__lede {
  font-size: 20px;
  color: var(--slate);
  margin-top: 18px;
}
.section--deep .section__lede { color: #B4D0E4; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #0A4677; }

.btn--ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); background: var(--ground); }

.btn--onblue { background: #fff; color: var(--blue-deep); }
.btn--onblue:hover { background: var(--wash); }

.btn__icon { width: 20px; height: 20px; flex: none; }

/* ---------- image placeholders (replace with real photography) ---------- */

.ph {
  position: relative;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  background: var(--wash);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(14, 92, 154, .05) 14px 28px
  );
  border-radius: var(--r-card);
  color: var(--blue-deep);
  padding: 24px;
  min-height: 220px;
}

.ph__icon { width: 34px; height: 34px; margin-inline: auto; opacity: .55; }

.ph__label {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  max-width: 26ch;
  line-height: 1.5;
}

/* Placeholders for facts we cannot verify yet */
.pending {
  font-family: var(--display);
  font-weight: 700;
  color: #8A5A06;
  background: #FBF1DC;
  border-radius: 4px;
  padding: 0 6px;
}

/* ==========================================================================
   01 · Utility bar
   ========================================================================== */

.utility {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.utility__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 10px;
}

.utility__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--blue-deep);
  text-decoration: none;
}
.utility__phone:hover { color: var(--blue); }
.utility__phone svg { width: 19px; height: 19px; color: var(--blue); }

.utility__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate);
}
.utility__langs a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--slate);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0 16px;
  line-height: 1.1;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.utility__langs a:hover { color: var(--blue); border-color: var(--blue); }
.utility__langs a[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.utility__hours {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
}
.utility__hours b { font-family: var(--display); color: var(--ink); }
.utility__hours svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

@media (max-width: 900px) {
  .utility__hours { margin-left: 0; }
}

/* ==========================================================================
   02 · Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__in {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.logo__img { height: 48px; width: auto; display: block; }
@media (max-width: 480px) { .logo__img { height: 40px; } }
.footer__place {
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 700;
  color: #C6DCEC;
  margin-top: 12px;
  max-width: 30ch;
  line-height: 1.4;
}
.logo__mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--blue-deep);
  color: var(--amber);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  flex: none;
}

.logo__txt {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.logo__txt span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--slate);
}

.nav { margin-left: auto; }

/* The CTA inside the nav is the mobile duplicate — hidden until the menu collapses */
.nav > .btn { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__list a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-btn);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__list a:hover { background: var(--ground); color: var(--blue); }

.header .btn { flex: none; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--white);
  color: var(--blue-deep);
  cursor: pointer;
  place-items: center;
}
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 1040px) {
  .nav__toggle { display: grid; }
  .header__cta { display: none; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 24px 22px;
    margin-left: 0;
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list a { padding: 13px 12px; font-size: 18px; }
  .nav > .btn { display: flex; margin-top: 12px; width: 100%; }
}

/* ==========================================================================
   03 · Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 104px);
}

.hero::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -14%;
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--wash) 0%, rgba(216, 233, 246, 0) 68%);
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: .1em;
  background: var(--amber);
  border-radius: 2px;
  opacity: .75;
}

.hero__lede {
  font-size: 21px;
  color: var(--slate);
  margin-top: 22px;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__note {
  margin-top: 22px;
  font-size: 16.5px;
  color: var(--faint);
}

.hero__media picture { display: block; }
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media img { aspect-ratio: 3 / 2; }
}

/* ==========================================================================
   04 · Trust bar
   ========================================================================== */

.trust { padding-bottom: var(--gap-section); }

.trust__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust__item {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  row-gap: 6px;
  align-content: start;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}
.trust__item:last-child { border-right: 0; }

.trust__icon {
  grid-column: 1;
  grid-row: 1;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--wash);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}
.trust__icon svg { width: 22px; height: 22px; }

.trust__item > p { display: contents; }
.trust__item p b {
  grid-column: 2;
  align-self: center;
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.trust__item p span {
  grid-column: 2;
  display: block;
  font-size: 16px;
  color: var(--slate);
  line-height: 1.5;
  margin-top: 3px;
}

@media (max-width: 980px) {
  .trust__card { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .trust__card { grid-template-columns: 1fr; }
  .trust__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust__item:last-child { border-bottom: 0; }
}

/* ==========================================================================
   05 · Services
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px 30px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--wash);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--wash);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}
.card__icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--slate); font-size: 16.5px; line-height: 1.6; }

.card__more {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card__more svg { width: 17px; height: 17px; transition: transform .18s ease; }
.card:hover .card__more svg { transform: translateX(4px); }

@media (max-width: 940px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   06 · How it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  gap: 20px;
  counter-reset: step;
}

/* Each step spans the shared rows, so titles of different length
   still leave every paragraph starting on the same line. */
.step {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
}

.step { position: relative; padding-top: 22px; }
@supports not (grid-template-rows: subgrid) { .step { display: block; } }

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
}

.step::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 56px;
  right: -20px;
  height: 2px;
  background: var(--line);
}
.step:last-child::after { display: none; }

.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 16.5px; line-height: 1.6; }

@media (max-width: 940px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
}

/* ==========================================================================
   07 · Team
   ========================================================================== */

.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.disciplines { display: grid; gap: 10px; }

.discipline {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 15px 20px;
}

.discipline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  flex: none;
}

.discipline b { font-family: var(--display); font-size: 17.5px; font-weight: 700; }
.discipline__abbr { color: var(--slate); font-size: 16px; margin-left: auto; text-align: right; }

@media (max-width: 900px) {
  .team__grid { grid-template-columns: 1fr; gap: 36px; }
  .discipline__abbr { display: none; }
}

/* ==========================================================================
   08 · Languages  (dark inset #1)
   ========================================================================== */

.langs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.langs__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.langs__item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-card);
  padding: 22px 24px;
}
.langs__item b {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.langs__item span { font-size: 16px; color: #A6C6DE; }

.langs__quote {
  font-size: 24px;
  line-height: 1.45;
  color: #fff;
  font-style: italic;
  margin-top: 28px;
}
.langs__quote strong { color: var(--amber); font-style: normal; font-weight: 700; }

@media (max-width: 900px) {
  .langs__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 460px) {
  .langs__list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   09 · Testimonials
   ========================================================================== */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote__mark { width: 30px; height: 30px; color: var(--wash); flex: none; }

.quote blockquote {
  margin: 0;
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
}

.quote figcaption {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--slate);
}
.quote figcaption b { font-family: var(--display); color: var(--ink); display: block; font-size: 16.5px; }

@media (max-width: 940px) { .quotes { grid-template-columns: 1fr; } }

/* ==========================================================================
   10 · Insurance
   ========================================================================== */

.insurance__strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.insurance__logo {
  min-width: 168px;
  min-height: 78px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--r-btn);
  padding: 14px 22px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--faint);
  text-align: center;
}

/* ==========================================================================
   11 · Service area
   ========================================================================== */

.area__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.area__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}
.area__cities li {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 15px;
}

.area__media .ph { min-height: 340px; }

@media (max-width: 900px) { .area__grid { grid-template-columns: 1fr; gap: 34px; } }

/* ==========================================================================
   12 · CTA band  (dark inset #2)
   ========================================================================== */

.cta { background: var(--blue); }

.cta__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-block: 56px;
}

.cta__text { flex: 1 1 340px; }
.cta h2 { font-size: clamp(27px, 3.4vw, 36px); font-weight: 800; color: #fff; }
.cta p { color: #D2E7F4; font-size: 19px; margin-top: 10px; }
.cta p b { color: var(--amber); font-family: var(--display); }

.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: var(--r-btn);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-decoration: none;
}
.cta__phone:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.cta__phone svg { width: 21px; height: 21px; color: var(--amber); }

/* ==========================================================================
   13 · Footer  (dark inset #3)
   ========================================================================== */

.footer {
  background: var(--blue-deep);
  color: #B4D0E4;
  font-size: 16.5px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: 64px 48px;
}

.footer .logo__txt { color: #fff; }

.footer .logo__img { height: 48px; width: auto; display: block; }
@media (max-width: 480px) { .logo__img { height: 40px; } }
.footer__place {
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 700;
  color: #C6DCEC;
  margin-top: 12px;
  max-width: 30ch;
  line-height: 1.4;
}
.logo__mark { background: rgba(255, 255, 255, .1); }

.footer__blurb { margin-top: 20px; max-width: 34ch; line-height: 1.65; }

.footer h3, .footer__h {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer__links { display: grid; gap: 10px; }
.footer__links a { color: #B4D0E4; text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }

.footer__contact { display: grid; gap: 14px; }
.footer__contact div { display: flex; gap: 11px; align-items: flex-start; }
.footer__contact svg { width: 19px; height: 19px; color: var(--amber); flex: none; margin-top: 4px; }
.footer__contact a { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; }
.footer__contact a:hover { text-decoration: underline; }

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-block: 22px 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  font-size: 16px;
}
.footer__bar nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bar a { color: #B4D0E4; text-decoration: none; }
.footer__bar a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bar nav { margin-left: 0; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- print ---------- */

@media print {
  .header, .utility, .cta, .nav__toggle { display: none; }
  body { font-size: 12pt; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.pagehead {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 72px);
}
.pagehead h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 20ch;
}
.pagehead .section__lede { max-width: 60ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 18px;
}
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs span { color: var(--line); }

/* long-form text */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-top: 44px; }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 32px; }
.prose p { color: var(--ink); }
.prose ul { display: grid; gap: 10px; }
.prose ul li {
  position: relative;
  padding-left: 28px;
  color: var(--slate);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 6px; top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
}
.prose strong { font-family: var(--display); font-weight: 700; color: var(--ink); }

/* two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.split--narrow { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) { .split, .split--narrow { grid-template-columns: 1fr; gap: 36px; } }

/* boxed fact panel */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 16px; }
.panel h3, .panel__h { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.panel p, .panel li { color: var(--slate); font-size: 16.5px; }
.panel--accent { border-left: 4px solid var(--blue); }

/* definition rows */
.rows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--white); }
.rows > div { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; }
.rows dt {
  margin: 0; padding: 15px 20px; background: var(--ground);
  border-right: 1px solid var(--line);
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--slate);
}
.rows dd { margin: 0; padding: 14px 20px; }
@media (max-width: 620px) {
  .rows > div { grid-template-columns: 1fr; }
  .rows dt { border-right: 0; border-bottom: 1px solid var(--line); padding: 9px 16px; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 76ch; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 22px;
  position: relative;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: var(--ground); }
.faq .faq__body { padding: 0 22px 20px; color: var(--slate); }

/* form */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--display); font-size: 17px; font-weight: 700; }
.field .hint { font-size: 16px; color: var(--faint); }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  padding: 13px 15px;
  min-height: 52px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }
.form__note { font-size: 16.5px; color: var(--faint); max-width: 60ch; }

/* contact tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 24px 26px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.tile__icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--wash); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 6px;
}
.tile__icon svg { width: 23px; height: 23px; }
.tile h3, .tile__label { font-size: 12.5px; font-family: var(--display); margin: 0; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.tile p, .tile a {
  font-family: var(--display);
  font-size: 17.5px;
  overflow-wrap: anywhere;
  hyphens: none;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.tile a:hover { color: var(--blue); text-decoration: underline; }
.tile small { font-size: 16px; color: var(--slate); font-family: var(--body); font-weight: 400; }

/* service detail blocks */
.svcblock {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.svcblock:last-child { border-bottom: 1px solid var(--line); }
.svcblock h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.svcblock p { color: var(--slate); }
.svcblock ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.svcblock ul li {
  font-family: var(--display); font-size: 16px; font-weight: 600;
  background: var(--ground); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 5px 14px; color: var(--blue-deep);
}
@media (max-width: 620px) { .svcblock { grid-template-columns: 1fr; gap: 14px; } }

/* nav active state */
.nav__list a[aria-current="page"] { color: var(--blue); background: var(--wash); }

/* ---------- coverage map ---------- */

.map { margin: 0; }
.map__svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--ground);
}
.map__label {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  fill: var(--slate);
}
.map__label--office {
  font-size: 22px;
  font-weight: 800;
  fill: var(--blue-deep);
  letter-spacing: -.01em;
}
.map__water {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  fill: #3F6E99;
  letter-spacing: .08em;
}
.map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  margin-top: 14px;
  font-size: 16px;
  color: var(--slate);
}
.map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.map__key { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.map__key--office { background: var(--blue); box-shadow: 0 0 0 3px rgba(14,92,154,.18); }
.map__key--town { background: var(--sky); }
.map__note { color: var(--faint); font-size: 16px; }
.map__ping { opacity: .18; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .map__ping { animation: map-ping 3.2s ease-out infinite; }
}
@keyframes map-ping {
  0%   { transform: scale(.75); opacity: .26; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- home vs facility ---------- */

.compare2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.compare2__col {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  padding: 28px 30px 30px;
}
.compare2__col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}
.compare2__col--home {
  background: var(--white);
  border-color: var(--wash);
  box-shadow: var(--shadow);
}
.compare2__col--home h3 { color: var(--blue); }
.compare2__col ul { display: grid; gap: 12px; }
.compare2__col li {
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.55;
}
.compare2__col li::before {
  content: "";
  position: absolute;
  left: 0; top: .18em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ground);
  border: 1px solid var(--line);
}
.compare2__col--home li { color: var(--ink); }
.compare2__col--home li::before {
  background: var(--wash);
  border-color: var(--wash);
}
.compare2__col--home li::after {
  content: "";
  position: absolute;
  left: 6px; top: .48em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.compare2__col:not(.compare2__col--home) li { color: var(--slate); }
@media (max-width: 760px) { .compare2 { grid-template-columns: 1fr; } }


/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  padding: 14px 22px;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }


/* ---------- grid items must be allowed to shrink ---------- */

.hero__grid > *,
.team__grid > *,
.langs__grid > *,
.area__grid > *,
.split > *,
.cards > *,
.tiles > *,
.quotes > *,
.compare2 > * { min-width: 0; }

.map__legend span { min-width: 0; }

/* four-up language tiles that still collapse on small screens */
.langs__list--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .langs__list--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .langs__list--4 { grid-template-columns: 1fr; } }

/* ---------- screen-reader-only ---------- */

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

/* ---------- services dropdown ---------- */

.nav__item--menu { position: relative; display: flex; align-items: center; }

.nav__more {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
}
.nav__more svg { width: 17px; height: 17px; transition: transform .18s ease; }
.nav__more:hover { color: var(--blue); background: var(--ground); }
.nav__item--menu:hover .nav__more svg,
.nav__more[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 268px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
/* the gap between trigger and panel would drop the hover, so bridge it */
.nav__menu::before {
  content: "";
  position: absolute;
  inset: -12px 0 100% 0;
}
.nav__item--menu:hover .nav__menu,
.nav__item--menu:focus-within .nav__menu,
.nav__menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav__menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 7px;
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__menu a:hover { background: var(--ground); color: var(--blue); }
.nav__menu-all { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.nav__menu-all a { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .nav__menu { transition: none; }
  .nav__more svg { transition: none; }
}

/* stacked menu: the submenu opens inline instead of floating */
@media (max-width: 1040px) {
  .nav__item--menu { flex-wrap: wrap; }
  .nav__item--menu > a { flex: 1; }
  .nav__more { width: 48px; height: 48px; margin-left: 0; }
  .nav__menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 2px 0 6px;
    padding: 6px 0 6px 14px;
    border: 0;
    border-left: 2px solid var(--wash);
    border-radius: 0;
    box-shadow: none;
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__menu::before { display: none; }
  .nav__item--menu:hover .nav__menu,
  .nav__item--menu:focus-within .nav__menu { display: none; }
  .nav__menu[data-open="true"] { display: grid; }
}

/* ---------- anchor targets under the sticky header ----------
   Without this the browser scrolls the target flush to the viewport top,
   where the sticky header covers it — so a jump link looks like it did
   nothing at all. */

.svcblock[id],
.panel[id],
section[id],
[id]:target { scroll-margin-top: 108px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Say plainly which service you landed on. */
.svcblock[id]:target,
.panel[id]:target {
  position: relative;
  animation: land 2.4s ease-out;
}
.svcblock[id]:target::before,
.panel[id]:target::before {
  content: "";
  position: absolute;
  inset: -14px -18px;
  border-radius: var(--r-card);
  background: var(--wash);
  z-index: -1;
  animation: land-bg 2.4s ease-out forwards;
}
@keyframes land { from { transform: translateX(3px); } to { transform: none; } }
@keyframes land-bg { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .svcblock[id]:target, .panel[id]:target { animation: none; }
  .svcblock[id]:target::before, .panel[id]:target::before { animation: none; opacity: 0; }
}

/* ---------- coverage (Medicare only) ---------- */

.coverage { display: grid; gap: 14px; max-width: 760px; margin-inline: auto; }
.coverage__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.coverage__item--yes { border-color: var(--wash); box-shadow: var(--shadow); }
.coverage__icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--wash); color: var(--blue);
  display: grid; place-items: center; flex: none;
}
.coverage__icon svg { width: 22px; height: 22px; }
.coverage__item b { font-family: var(--display); font-size: 19px; font-weight: 700; }
.coverage__tag {
  margin-left: auto;
  font-family: var(--display); font-size: 15.5px; font-weight: 700;
  background: var(--ground); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 15px; color: var(--slate);
}
.coverage__tag--yes { background: var(--blue); border-color: transparent; color: #fff; }
@media (max-width: 560px) { .coverage__tag { margin-left: 0; } }

/* ---------- back to top ---------- */

.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background-color .15s ease;
}
.totop[hidden] { display: none; }
.totop.is-in { opacity: 1; transform: none; }
.totop:hover { background: var(--ground); }
.totop svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }
@media (max-width: 560px) { .totop { right: 14px; bottom: 14px; } }

/* footer tagline */
.footer__place span { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8FB0C6; margin-top: 6px; }
.map__label--city { font-size: 20px; font-weight: 800; fill: var(--blue-deep); }


/* keep the postal code from breaking across lines */
.nobreak { white-space: nowrap; }

/* ---------- forms: bot trap and result message ---------- */

.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.formmsg {
  font-size: 17px;
  line-height: 1.5;
  border-radius: var(--r-btn);
  padding: 14px 18px;
  border: 1px solid transparent;
}
.formmsg[hidden] { display: none; }
.formmsg[data-state="ok"]   { background: #E6F3EC; border-color: #BFE0CD; color: #12603C; }
.formmsg[data-state="err"]  { background: #FAEAEA; border-color: #EBC7C7; color: #8C2626; }
.formmsg[data-state="busy"] { background: var(--ground); border-color: var(--line); color: var(--slate); }
