/* ===== Design tokens — palette from pac.ac.il ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #e5f6fe;
  --surface: #ffffff;
  --ink: #333333;
  --ink-soft: #5b6b76;
  --primary: #003e6f;      /* Peres navy */
  --primary-dark: #022851; /* Peres dark navy */
  --blue: #069ddb;         /* Peres bright blue */
  --mint: #2ff7bf;         /* Peres mint accent — reserved for actions and
                              interaction feedback, not static decoration */
  --mint-soft: rgba(47, 247, 191, 0.5);
  --primary-soft: #d9eff8; /* Peres light blue */
  --radius: 16px;
  --radius-lg: 24px;
  /* Layered rather than one wide blur: the tight first layer defines the edge,
     the wider ones give depth. A single 30px blur at 8% just dissolves into
     white and leaves cards looking flat. */
  --shadow:
    0 1px 2px rgba(2, 40, 81, 0.07),
    0 4px 10px rgba(2, 40, 81, 0.07),
    0 12px 26px rgba(2, 40, 81, 0.07);
  --shadow-lg:
    0 2px 4px rgba(2, 40, 81, 0.09),
    0 8px 18px rgba(2, 40, 81, 0.10),
    0 24px 48px rgba(2, 40, 81, 0.12);
  --font: "Heebo", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
svg { width: 1.25em; height: 1.25em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--primary); }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}
.container-narrow { width: min(820px, 92%); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.9em;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 62, 111, 0.38);
}
.btn-primary:hover { background: var(--blue); color: #fff; }
/* Mint on the icon is the one bright accent left in the hero, so the eye
   lands on the action rather than on decoration. */
.btn-primary svg { color: var(--mint); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--primary-soft); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: rgba(2, 40, 81, 0.1);
  box-shadow: 0 4px 20px rgba(2, 40, 81, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--primary);
}
.brand-text small {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.5em 1.3em;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  /* Negative margin that cancels one container gutter, letting a child
     reach the viewport edge. Mirrors .container's own width:min(1120px,92%)
     — a percentage here would resolve against the grid column, not the
     container, so the gutter has to be recomputed from the viewport. */
  --bleed: calc((min(1120px, 92vw) - 100vw) / 2);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 75% at 85% 15%, rgba(47, 247, 191, 0.18), transparent 60%),
    radial-gradient(60% 80% at 10% 90%, rgba(6, 157, 219, 0.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-logo {
  width: min(190px, 45%);
  height: auto;
  margin-bottom: 1.4rem;
}
.hero h1 {
  /* Eased down from 3.8rem: the headline is now a sentence rather than a
     three-word phrase, and at the old size it wrapped to three cramped lines
     in a 515px column. balance evens out whatever it does wrap to. */
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  text-wrap: balance;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
  margin-bottom: 1.1rem;
}
.accent {
  color: var(--blue);
  /* thinner and translucent — underlines the word instead of blocking it */
  background-image: linear-gradient(transparent 80%, var(--mint-soft) 80%);
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  /* full ink rather than ink-soft: bold in the muted grey reads muddy */
  color: var(--ink);
  max-width: 52ch;
  margin-bottom: 1.2rem;
}
/* Qualifying trust line — states the supervision model up front so the
   people who call have already accepted it. */
.hero-trust {
  /* a peer of .hero-sub — same size and ink, just not bold. The rule and the
     muted grey were making the qualifier disappear. */
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  color: var(--ink);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}
.hero-badges li {
  background: var(--surface);
  border: 1px solid rgba(0, 62, 111, 0.12);
  border-radius: 999px;
  padding: 0.4em 1.1em;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary);
  box-shadow: var(--shadow);
}
/* The photo bleeds past the container to the viewport edge (the outer edge
   is inline-end, since the media column sits left in RTL). .hero clips the
   overflow. */
.hero-media {
  position: relative;
  margin-inline-end: var(--bleed);
}
/* <picture> is inline by default, which leaves the img's width:100% resolving
   against a shrink-wrapped box */
.hero-media picture { display: block; }
.hero-photo {
  width: 100%;
  /* height:auto is required — the img width/height attributes otherwise
     win as presentational hints and aspect-ratio is ignored */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  /* rounded on the inner edge only; square where it meets the page edge */
  border-start-start-radius: var(--radius-lg);
  border-end-start-radius: var(--radius-lg);
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2.8rem; max-width: 720px; }
.section-tag {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  margin-bottom: 0.5rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--primary-dark);
}
.section-sub { color: var(--ink-soft); margin-top: 0.8rem; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-text p { margin-bottom: 1.1rem; color: var(--ink-soft); font-size: 1.05rem; }
.about-text p:first-child { color: var(--ink); font-weight: 500; }
.video-block { margin-bottom: 2.8rem; }
.video-player {
  width: 100%;
  /* height:auto so the width/height attributes lose as presentational hints */
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.video-caption {
  margin-top: 0.85rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
  text-align: center;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid rgba(0, 62, 111, 0.11);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.info-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 0.9rem;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--primary-dark); }
.info-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.6rem;
  border-top: 4px solid var(--blue);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--mint);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--primary); }
.service-card p { font-size: 0.95rem; color: var(--ink-soft); }
.services-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ===== Mid-page CTA band =====
   Echoes the hero's gradient so it reads as a bookend rather than a new
   section, and stays short enough not to interrupt the read. */
.cta-band {
  padding: clamp(2.4rem, 6vw, 3.4rem) 0;
  border-block: 1px solid rgba(0, 62, 111, 0.1);
  background:
    radial-gradient(60% 130% at 82% 5%, rgba(47, 247, 191, 0.16), transparent 60%),
    radial-gradient(60% 130% at 15% 95%, rgba(6, 157, 219, 0.14), transparent 60%),
    var(--bg);
}
.cta-band-inner { text-align: center; }
.cta-band h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.45rem;
}
.cta-band p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid rgba(0, 62, 111, 0.11);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo {
  width: 120px; height: 120px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  object-fit: cover;
  /* the mint ring was multiplied across eight portraits */
  border: 4px solid var(--primary-soft);
  outline: 2px solid rgba(0, 62, 111, 0.10);
  outline-offset: 3px;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.25rem; color: var(--primary-dark); }
.team-role { color: var(--ink-soft); font-size: 0.95rem; }

/* Clinic members: same card, lighter treatment, five across — they are the
   clinicians a visitor would actually sit with, not the management trio. */
.team-subhead {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2.8rem 0 1.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.team-subhead::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to left, rgba(0, 62, 111, 0.2), transparent);
}
.team-grid-members { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.team-grid-members .team-card { padding: 1.6rem 1rem; }
.team-grid-members .team-photo { width: 96px; height: 96px; margin-bottom: 0.9rem; }
.team-grid-members .team-card h3 { font-size: 1.02rem; }
.team-grid-members .team-role { font-size: 0.88rem; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid rgba(0, 62, 111, 0.11);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--mint); color: var(--primary-dark); }
.faq-body {
  padding: 0 1.5rem 1.3rem;
  color: var(--ink-soft);
}
.faq-body p + p { margin-top: 0.6rem; }

/* ===== Contact ===== */
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  background: var(--surface);
  border: 1px solid rgba(0, 62, 111, 0.11);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 3.2rem);
  box-shadow: var(--shadow-lg);
}
.contact-info h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: 0.7rem; color: var(--primary-dark); }
.contact-info > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.contact-list svg { color: var(--blue); flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form h3 { font-size: 1.25rem; margin-bottom: 0.2rem; color: var(--primary-dark); }
.form-note { font-size: 0.92rem; font-weight: 500; }
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.form-privacy svg { width: 1.05em; height: 1.05em; flex-shrink: 0; margin-top: 0.15em; color: var(--primary); }
/* the text and its link share one flex item, so the link stays in the flow
   instead of being squeezed into a column of its own */
.form-privacy > span { min-width: 0; }
.form-privacy a { white-space: nowrap; }

/* ===== HubSpot embed =====
   The v2 embed either injects its own markup into #hubspotForm or drops an
   iframe in, depending on portal settings. These rules cover the injected
   case; the iframe case only takes the width rule, and its interior has to
   be styled from the HubSpot form editor. */
#hubspotForm { direction: rtl; text-align: right; }
#hubspotForm iframe { width: 100% !important; border: 0; }
#hubspotForm .hs-form-field { margin-bottom: 1rem; }
#hubspotForm label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
#hubspotForm input[type="text"],
#hubspotForm input[type="email"],
#hubspotForm input[type="tel"],
#hubspotForm input[type="number"],
#hubspotForm select,
#hubspotForm textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75em 1em;
  border: 1.5px solid rgba(0, 62, 111, 0.18);
  border-radius: 12px;
  background: #fbfdfe;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#hubspotForm input:focus,
#hubspotForm select:focus,
#hubspotForm textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(6, 157, 219, 0.18);
}
#hubspotForm textarea { resize: vertical; }
#hubspotForm .hs-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.9em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 62, 111, 0.38);
  transition: transform 0.15s ease, background 0.15s ease;
}
#hubspotForm .hs-button:hover { background: var(--blue); transform: translateY(-2px); }
#hubspotForm .hs-error-msg,
#hubspotForm .hs-error-msgs label { color: #d10303; font-size: 0.9rem; font-weight: 500; }
#hubspotForm .hs-form-required { color: #d10303; }
#hubspotForm ul { list-style: none; }

/* ===== Footer ===== */
.footer { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%); color: #d9eff8; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem;
}
.footer-logo {
  width: min(240px, 70%);
  height: auto;
  margin-bottom: 1rem;
}
.footer-brand p { color: #aecfdf; font-size: 0.95rem; max-width: 34ch; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { color: #d9eff8; }
.footer-links a:hover { color: var(--mint); }
.footer-contact { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-contact a { color: #fff; font-weight: 600; font-size: 1.1rem; }
.footer-contact a:hover { color: var(--mint); }
.footer-contact span { color: #aecfdf; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.1rem;
  color: #aecfdf;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== Cookie consent =====
   A low bar rather than a modal: it never covers content and never blocks the
   page, so it costs the visitor nothing to ignore. */
.cookie-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.4rem;
  padding: 0.9rem clamp(1rem, 4vw, 2rem) calc(0.9rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 62, 111, 0.12);
  box-shadow: 0 -6px 24px rgba(2, 40, 81, 0.1);
}
.cookie-bar[hidden] { display: none; }
.cookie-text { font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); max-width: 62ch; }
.cookie-text span { color: var(--primary); font-weight: 500; }
.cookie-text a,
.form-privacy a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55em 1.4em;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid var(--primary);
  transition: background 0.15s ease, color 0.15s ease;
}
.cookie-btn-solid { background: var(--primary); color: #fff; }
.cookie-btn-solid:hover { background: var(--blue); border-color: var(--blue); }
.cookie-btn-ghost { background: transparent; color: var(--primary); }
.cookie-btn-ghost:hover { background: var(--primary-soft); }

/* ===== Mobile sticky call bar (desktop: absent) ===== */
.mobile-call { display: none; }
@keyframes callPulse {
  0%, 100% { box-shadow: 0 14px 32px rgba(2, 40, 81, 0.45), 0 0 0 0 rgba(47, 247, 191, 0.6); }
  50%      { box-shadow: 0 14px 32px rgba(2, 40, 81, 0.45), 0 0 0 14px rgba(47, 247, 191, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-call { transition: none; }
  .mobile-call.pulse { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* The photo earns its place beside the text on desktop, but on a single
     column it only pushed the proposition and the CTA down the page. */
  .hero-media { display: none; }

  /* Leadership gets the same compact treatment as the members: three stacked
     full-width cards cost ~840px for no added information. */
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    max-width: none;
    margin-inline: 0;
  }
  .team-card { padding: 1.6rem 1rem; }
  .team-photo { width: 96px; height: 96px; margin-bottom: 0.9rem; }
  .team-card h3 { font-size: 1.02rem; }
  .team-role { font-size: 0.88rem; }

  /* Sticky call action: length stops costing conversions once the CTA is
     always one tap away. Floated as a pill rather than a flush bottom bar —
     flush dark bars read as browser or system chrome and get filtered out. */
  .mobile-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: fixed;
    inset-inline: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    padding: 1.05rem 1.2rem;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #fff;
    font-weight: 700;
    font-size: 1.06rem;
    border: 2px solid var(--mint);
    box-shadow: 0 14px 32px rgba(2, 40, 81, 0.45);
    transform: translateY(160%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  }
  .mobile-call.visible { transform: none; }
  /* both are pinned to the bottom — lift the call pill clear of the banner
     while it is up. --cookie-h is measured in script.js. */
  body.cookie-open .mobile-call { bottom: calc(0.75rem + var(--cookie-h, 0px)); }
  .mobile-call:hover, .mobile-call:focus { color: #fff; }
  .mobile-call svg { width: 1.2em; height: 1.2em; color: var(--mint); }
  /* Motion is the strongest attention cue: a mint ring expands once, twice,
     then stops. Applied via a separate class so it fires only on first reveal
     and not every time the bar re-enters. */
  .mobile-call.pulse { animation: callPulse 1.1s ease 0.35s 2; }
  /* keeps the pill clear of the copyright line */
  body { padding-bottom: 6rem; }
  .about-grid { grid-template-columns: 1fr; }
  /* Single column: the form comes first and the phone, address and session
     length follow it. display:contents dissolves .contact-info so its children
     can be ordered as siblings of the form — it carries no box styling of its
     own, so nothing is lost. */
  .contact-card {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
  }
  .contact-info { display: contents; }
  .contact-info .section-tag { align-self: flex-start; }
  .contact-info h2,
  .contact-info > p { margin-bottom: 0; }
  .contact-form { order: 1; }
  .contact-list { order: 2; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  /* members stay multi-column on narrow screens — the compact cards allow it,
     and eight stacked cards would be an endless scroll */
  .team-grid-members {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    max-width: none;
  }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid rgba(0, 62, 111, 0.12);
    box-shadow: var(--shadow-lg);
    padding: 0.6rem 4%;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0.4rem; border-bottom: 1px solid rgba(0, 62, 111, 0.08); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 0.4rem; }
  .nav-toggle { display: flex; }
  /* The nav links are hidden behind the hamburger here, so the freed width
     goes to the brand — at 44px the mark was barely registering. */
  .brand-mark { width: 58px; height: 58px; }
  .brand-text { font-size: 1.18rem; }
  .brand-text small { font-size: 0.85rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Two up, not one: stacking these cost ~800px of scroll and gained nothing,
     since each card is a short label plus one line. */
  .services-grid, .about-cards { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .info-card, .service-card { padding: 1.4rem 1.1rem; }
  /* the nav already carries the clinic logo */
  .hero-logo { display: none; }

  /* Hero block: one consistent vertical step between elements instead of
     three different ones. */
  .hero h1 { margin-bottom: 1.3rem; }
  .hero-sub { margin-bottom: 1.3rem; }
  .hero-trust { margin-bottom: 1.8rem; }
  /* Side by side, the secondary button gets squeezed. Stacked full-width
     pills are tidier and give both a proper tap target. */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Three pills of differing widths, right-aligned and wrapping, made a
     ragged staircase down the left edge. Centred, the block is symmetric. */
  .hero-badges { justify-content: center; gap: 0.5rem; }
  .hero-badges li { font-size: 0.87rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
