/* ============================================================
   House Call Direct — design system
   Brand palette per HCD Style Guide v2:
   Navy #102B48 (headings, body, footer, hero overlay) ·
   Teal #00ABB5 (primary buttons, icons, accents — never as
   text on white) · Tints as specified in the guide.
   Headings: Montserrat · Body/UI: Nunito Sans
   Re-theme by editing the variables below (and swapping
   assets/img/logo.png). No other file needs to change for
   a color change.
   ============================================================ */

:root {
  /* Brand palette */
  --navy-900: #102B48;      /* brand navy — footer, dark bands        */
  --navy-800: #14335B;      /* hero background                        */
  --navy-700: #102B48;      /* navy — links, headings                 */
  --navy-600: #1E4066;      /* hover navy                             */
  --navy-40:  #9FAAB6;      /* navy 40 — input borders, disabled      */
  --tint-line:#E7EAED;      /* navy 10 — dividers, hairlines          */
  --tint-teal:#E5F7F8;      /* teal 10 — tinted sections, icon plates */
  --paper:    #FFFFFF;      /* page background                        */
  --card:     #FFFFFF;
  --teal-dark:#009098;      /* primary button hover                   */
  --teal:     #00ABB5;      /* primary buttons, icons, accents        */
  --teal-20:  #CCEEF0;      /* teal 20 — chips, hover tints           */
  --ink:      #102B48;      /* body text (navy)                       */
  --muted:    #586B7F;      /* secondary text (navy 70)               */
  --line:     #E7EAED;      /* hairlines                              */
  --danger:   #B3423A;      /* form errors                            */
  --ok:       #2E7D54;      /* form success                           */

  /* Type */
  --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;

  /* Shape & rhythm */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 18px 44px rgba(16, 43, 72, .10), 0 2px 6px rgba(16, 43, 72, .06);
  --wrap: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- Reset & base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;           /* 18px — Body 18/30 per style guide */
  line-height: 1.66;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -.01em;
  color: var(--navy-900);
  margin: 0 0 .55em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h2 { font-size: clamp(2rem, 4.5vw, 3rem); }              /* H2 48/56 → 32/40 mobile */
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.25; }  /* H3 32/40 */
h4 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.3; } /* H4 24/32 */

a { color: var(--navy-700); text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }

ul, ol, dl, dd, dt, figure, blockquote { margin: 0; padding: 0; }
li { list-style: none; }

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

::selection { background: var(--teal-20); color: var(--navy-900); }

/* ---------- Layout primitives ---------- */

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .875rem;            /* Eyebrow 14/20 per style guide */
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;         /* +12% */
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.lede {
  font-size: 1.25rem;            /* Body Large 20/32 */
  line-height: 1.6;
  color: var(--navy-700);
  max-width: 56ch;
}

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }   /* H2 48/56 per style guide */

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.4rem;
  border-radius: 8px;             /* rounded 8px per style guide */
  border: 2px solid transparent;
  font: 700 .95rem/1 var(--font-body);
  letter-spacing: .04em;
  text-transform: uppercase;      /* bold uppercase label per style guide */
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  min-height: 48px;               /* senior-friendly tap target */
}

.btn:active { transform: translateY(1px); }

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

.btn--ghost {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-700);
}
.btn--ghost:hover { background: var(--navy-700); color: #fff; }

.btn--ghost-light {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); }

.btn--lg { padding: 1.05rem 1.7rem; font-size: 1rem; }

/* ---------- Header ---------- */

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

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy-900);
  margin-right: auto;
}

.brand__logo {
  height: 62px;
  width: auto;
}

.brand__logo--white {
  filter: brightness(0) invert(1);   /* white knockout for the navy footer */
}

.main-nav ul {
  display: flex;
  gap: .35rem;
}

.main-nav a {
  display: block;
  padding: .55rem .9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  text-decoration: none;
}

.main-nav a:hover { background: var(--tint-teal); color: var(--navy-900); }

.main-nav a[aria-current="page"] {
  background: var(--navy-700);
  color: #fff;
}

.header-call {
  white-space: nowrap;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--tint-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(16,43,72,.12);
    display: none;
    padding: .75rem var(--gutter) 1.25rem;
  }

  .main-nav.is-open { display: block; }

  .main-nav ul { flex-direction: column; gap: .15rem; }

  .main-nav a {
    padding: .9rem .75rem;
    font-size: 1.08rem;
    border-radius: var(--radius-sm);
  }

  .main-nav a[aria-current="page"] { color: var(--navy-900); background: var(--tint-teal); }
}

@media (max-width: 560px) {
  .header-call span { display: none; }   /* icon-only call button on small phones */
  .header-call { padding: .9rem; }
  .brand__logo { height: 48px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 110% -10%, rgba(0, 171, 181, .18), transparent 60%),
    radial-gradient(900px 480px at -15% 110%, rgba(255, 255, 255, .07), transparent 55%),
    var(--navy-800);          /* navy hero, per style guide overlay spec */
  color: #fff;
  overflow: hidden;
}

.hero::after {                 /* faint route/house texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05'%3E%3Cpath d='M30 40 22 48v22h16V48z'/%3E%3Cpath d='M28 36l4-4 4 4'/%3E%3Cpath d='M130 120l-8 8v22h16v-22z'/%3E%3Cpath d='M128 116l4-4 4 4'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.hero .eyebrow { color: #fff; }

.hero h1 {
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.625rem);   /* H1 hero 90/96 desktop, 48px mobile */
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.015em;
  margin-bottom: .4em;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero__sub {
  color: rgba(255,255,255,.88);
  font-size: 1.25rem;                       /* Body Large 20/32 */
  line-height: 1.6;
  max-width: 50ch;
  margin-bottom: 1.8rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .85rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
}

.chip svg { width: 15px; height: 15px; color: var(--teal); flex: none; }

/* Signature element: the day's visit slip stack */
.visit-stack { position: relative; }

.visit-card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem;
}

.visit-card--route {
  transform: rotate(-2.5deg) translateX(-14px);
  width: min(420px, 88%);
  margin-inline: auto;
}

.visit-card--slip {
  position: relative;
  margin-top: -34px;
  margin-left: auto;
  width: min(340px, 78%);
  transform: rotate(1.8deg);
}

.visit-card__date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px dashed var(--tint-line);
  padding-bottom: .8rem;
  margin-bottom: .9rem;
}

.visit-card__date b { color: var(--navy-700); font-size: .95rem; }

.visit-stop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: .55rem 0;
}

.visit-stop + .visit-stop { border-top: 1px dashed var(--line); }

.visit-stop__pin {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--tint-teal);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 800;
  font-family: var(--font-body);
}

.visit-stop__who { line-height: 1.3; }
.visit-stop__who b { display: block; font-size: .98rem; color: var(--navy-900); }
.visit-stop__who span { font-size: .84rem; color: var(--muted); }

.visit-stop__time {
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy-700);
  background: var(--teal-20);
  padding: .28rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.visit-card--slip .visit-card__date { border-color: var(--teal-20); }

.slip-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 0;
  font-size: .95rem;
}

.slip-row svg { width: 20px; height: 20px; color: var(--navy-700); flex: none; }

.slip-row b { color: var(--navy-900); }

.slip-confirm {
  margin-top: .8rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy-700);
}

.slip-confirm svg { width: 18px; height: 18px; color: var(--teal); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: clamp(3rem, 8vw, 5rem); }
  .visit-stack { max-width: 480px; }
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--navy-900);
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-weight: 600;
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 2.6rem;
  padding-block: .95rem;
}

.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.trust-strip__item svg { width: 17px; height: 17px; color: var(--teal); flex: none; }

/* ---------- Service cards (home) ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 980px) { .cards-3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--tint-teal);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}

.card__icon svg { width: 27px; height: 27px; }

.card h3 { margin-bottom: .45em; }

.card p { color: var(--ink); margin-bottom: 1.1rem; }

.card__list { margin-bottom: 1.5rem; }

.card__list li {
  position: relative;
  padding: .32rem 0 .32rem 1.6rem;
  font-size: .98rem;
  color: var(--ink);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--teal-20);
  color: var(--teal-dark);
}

.card__list li::after {
  content: "";
  position: absolute;
  left: 3.4px; top: calc(.78em + 3.4px);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  color: var(--teal-dark);
}

.card__link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);   /* navy text, teal underline */
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.card__link::after { content: "→"; transition: transform .15s ease; }
.card__link:hover::after { transform: translateX(4px); }

/* Route divider — dashed line with a house node, the "doctor's route" motif */
.route-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  max-width: 560px;
  color: var(--tint-line);
}

.route-divider::before,
.route-divider::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--tint-line);
}

.route-divider svg { width: 30px; height: 30px; color: var(--teal); flex: none; }

/* ---------- Testimonial ---------- */

.quote-section { background: var(--tint-teal); }

.quote-card {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.quote-card__mark {
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: .6;
  color: var(--teal);
  display: block;
  margin-bottom: .35em;
}

.quote-card blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy-900);
  text-wrap: balance;
}

.quote-card figcaption {
  margin-top: 1.4rem;
  font-weight: 700;
  color: var(--muted);
  font-size: .98rem;
}

.quote-card__stars {
  color: var(--teal);
  letter-spacing: .2em;
  font-size: 1.15rem;
  margin-bottom: .8rem;
}

/* ---------- Why-choose split ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.feature__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal-20);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
}

.feature__icon svg { width: 25px; height: 25px; }

.feature h3 { margin-bottom: .45em; }

.feature p { color: var(--ink); }

.feature .card__link { margin-top: .6rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 320px at 8% 0%, rgba(0,171,181,.22), transparent 60%),
    var(--navy-800);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  max-width: 22ch;
  margin-inline: auto;
}

.cta-band p {
  color: rgba(255,255,255,.88);
  max-width: 52ch;
  margin: 0 auto 1.9rem;
  font-size: 1.12rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.82);
  font-size: .98rem;
}

.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.2rem;
  padding-block: clamp(2.8rem, 6vw, 4rem) 2.2rem;
}

@media (max-width: 980px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }

.site-footer .brand { color: #fff; }

.site-footer__blurb { margin-top: 1rem; max-width: 34ch; color: rgba(255,255,255,.72); }

.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.site-footer__links li { padding: .28rem 0; }

.site-footer__contact li {
  display: flex;
  gap: .7rem;
  padding: .32rem 0;
  align-items: flex-start;
}

.site-footer__contact svg {
  width: 18px; height: 18px;
  color: var(--teal);
  flex: none;
  margin-top: .22em;
}

.socials {
  display: flex;
  gap: .6rem;
  margin-top: 1.2rem;
}

.socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: grid;
  place-items: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.socials a:hover { background: var(--teal); border-color: var(--teal); color: var(--navy-900); }

.socials svg { width: 18px; height: 18px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}

.site-footer__legal { display: flex; gap: 1.6rem; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background:
    radial-gradient(800px 380px at 100% 0%, rgba(0,171,181,.15), transparent 60%),
    var(--navy-800);
  color: #fff;
  padding-block: clamp(3.2rem, 7vw, 5rem);
}

.page-hero .eyebrow { color: var(--teal); }

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  max-width: 24ch;
}

.page-hero .lede { color: rgba(255,255,255,.85); margin-top: .6rem; }

/* Breadcrumb-ish back link */
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  margin-bottom: 1.4rem;
}

.back-link:hover { color: #fff; }
.back-link::before { content: "←"; }

/* ---------- Services page ---------- */

.service-category {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  padding-block: clamp(2.6rem, 5.5vw, 4rem);
}

.service-category + .service-category { border-top: 2px dashed var(--tint-line); }

@media (max-width: 860px) {
  .service-category { grid-template-columns: 1fr; gap: 1.2rem; }
}

.service-category__head { position: sticky; top: 96px; align-self: start; }
@media (max-width: 860px) { .service-category__head { position: static; } }

.service-category__icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  background: var(--tint-teal);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.service-category__icon svg { width: 28px; height: 28px; }

.service-category__head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: .4em;
}

.service-category__head p { color: var(--muted); font-size: .99rem; }

.service-list dt {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.08rem;
  padding-top: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.service-list dt::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
  transform: translateY(-2px);
}

.service-list dd {
  color: var(--muted);
  padding: .25rem 0 .25rem 1.5rem;
  border-left: 2px dashed var(--tint-line);
  margin-left: 4px;
  font-size: .99rem;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}

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

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
}

.form-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.6rem;
}

.form-badges .chip {
  border-color: var(--tint-line);
  background: var(--tint-teal);
  color: var(--navy-700);
}

.form-badges .chip svg { color: var(--navy-700); }

.field { margin-bottom: 1.15rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .4rem;
  color: var(--navy-900);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 2px solid var(--navy-40);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px var(--tint-teal);
}

.field .error-msg {
  display: none;
  color: var(--danger);
  font-size: .88rem;
  font-weight: 600;
  margin-top: .3rem;
}

.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  background: var(--tint-teal);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  font-size: .9rem;
  color: var(--muted);
  margin: 1.2rem 0;
}

.consent input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: .12em;
  accent-color: var(--navy-700);
  flex: none;
}

.consent label b { color: var(--navy-900); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.form-status.is-ok {
  display: block;
  background: #e5f3ea;
  color: var(--ok);
  border: 1.5px solid #bcdcc8;
}

.form-status.is-error {
  display: block;
  background: #f8e8e6;
  color: var(--danger);
  border: 1.5px solid #e5c1bd;
}

/* Contact aside */
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem;
  margin-bottom: 1.4rem;
}

.info-card h3 { font-size: 1.2rem; margin-bottom: .9rem; }

.info-card__row {
  display: flex;
  gap: .8rem;
  padding: .5rem 0;
  align-items: flex-start;
  font-size: .98rem;
}

.info-card__row svg {
  width: 19px; height: 19px;
  color: var(--navy-700);
  flex: none;
  margin-top: .2em;
}

.info-card__row a { font-weight: 700; text-decoration: none; }
.info-card__row span { color: var(--muted); display: block; font-size: .9rem; }

.hours-table { width: 100%; font-size: .98rem; border-collapse: collapse; }
.hours-table td { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--navy-700); }

.insurance-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.insurance-chips span {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--tint-teal);
  border: 1px solid var(--tint-line);
  color: var(--navy-700);
  font-weight: 700;
  font-size: .92rem;
}

/* ---------- Legal / prose pages ---------- */

.prose {
  max-width: 780px;
  margin-inline: auto;
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 2.2em;
  padding-top: .4em;
}

.prose h3 { font-size: 1.18rem; margin-top: 1.8em; }

.prose p, .prose li { color: #3c463f; }

.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.prose li { padding: .18rem 0; }

.prose .updated {
  display: inline-block;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.prose .notice {
  background: var(--teal-20);
  border: 1.5px solid #9AD8DC;
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  font-size: .95rem;
  margin-bottom: 2rem;
}

/* ---------- 404 ---------- */

.notfound { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.notfound h1 { font-size: clamp(4.5rem, 12vw, 8rem); color: var(--navy-700); margin-bottom: .1em; }
.notfound p { max-width: 46ch; margin-inline: auto; color: var(--muted); font-size: 1.12rem; }
.notfound__actions { display: flex; justify-content: center; gap: .9rem; margin-top: 2rem; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */

.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) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .card__link:hover::after { transform: none; }
  .btn { transition: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .cta-band, .hero__ctas, .back-link { display: none; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
