/* ==========================================================================
   Prodental Clinics — base styles
   ========================================================================== */

:root {
  /* Brand */
  --blue: #375f83;
  --blue-dark: #24435f;
  --blue-deep: #182f44;
  --blue-tint: #eaf1f7;
  --blue-mist: #f4f8fb;
  --gold: #b89749;
  --gold-dark: #9a7c35;
  --gold-text: #86692a;   /* gold for small text on light backgrounds (AA 4.5:1+) */
  --gold-light: #ecd59e;  /* gold for small text on blue backgrounds (AA 4.5:1+) */
  --gold-tint: #f6efdd;
  --cream: #fbf8f2;

  /* Neutrals */
  --ink: #1b2733;
  --body: #4a5866;
  --muted: #7a8794;
  --line: #e1e7ee;
  --white: #ffffff;

  /* Type */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(24, 47, 68, .06);
  --shadow: 0 14px 40px -12px rgba(24, 47, 68, .18);
  --shadow-lg: 0 30px 60px -20px rgba(24, 47, 68, .28);

  --container: 1200px;
  --section-y: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

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

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

.section { padding-block: var(--section-y); }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--blue); color: var(--white); padding: 10px 18px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; color: var(--white); }

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

/* Eyebrow / section heads ------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--gold { color: var(--gold-light); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head p:last-child { margin-bottom: 0; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head--left .eyebrow::after { display: none; }
.section-head--light h2 { color: var(--white); }
.section-head--light p { color: rgba(255, 255, 255, .78); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--lg { padding: 18px 30px; font-size: 1rem; }

/* Ink text on gold: white on this gold is only 2.8:1 (fails WCAG AA), ink is 5.5:1 */
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(184, 151, 73, .8); }
.btn--gold:hover { background: #c9a95d; color: var(--ink); transform: translateY(-2px); }

.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-2px); }

.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }

.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--blue-deep); border-color: var(--white); }
.btn--ghost:hover .icon { transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--blue);
  text-decoration: none;
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--gold-dark); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Top bar ---------------------------------------------------------------- */

.topbar {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, .82);
  font-size: .85rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  min-height: 42px;
  padding-block: 8px;
}
.topbar a,
.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.topbar a:hover { color: var(--white); }
/* Grow the tap area of small inline links to ~44px without changing the layout */
.topbar a,
.footer__bottom nav a,
.review-card__more { position: relative; }
.topbar a::after,
.footer__bottom nav a::after,
.review-card__more::after { content: ""; position: absolute; inset: -11px -4px; }
.topbar .icon { color: var(--gold); }
.topbar__hours { margin-left: auto; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { height: 78px; width: auto; }
.logo--light img { height: 96px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__list > li { position: relative; }
.nav__list > li > a,
.nav__sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
}
.nav__list > li > a:hover,
.nav__sub-toggle:hover,
.nav__list > li > a[aria-current="page"] { color: var(--blue); }
.nav__list > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav__sub-toggle .icon { transition: transform .25s var(--ease); }

.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  min-width: 300px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__sub::before { /* hover bridge */
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}
.nav__sub a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--body);
  text-decoration: none;
  font-size: .95rem;
}
.nav__sub a:hover { background: var(--blue-mist); color: var(--blue); }
.nav__sub a[aria-current="page"] { background: var(--blue-tint); color: var(--blue); }
.nav__sub-toggle.is-current { color: var(--blue); }

.nav__has-sub:hover .nav__sub,
.nav__has-sub:focus-within .nav__sub,
.nav__has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__has-sub:hover .nav__sub-toggle .icon,
.nav__has-sub.is-open .nav__sub-toggle .icon { transform: rotate(180deg); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  place-items: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (min-width: 961px) {
  /* Logo | centred links | CTA */
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav { display: contents; }
  .nav__list { justify-self: center; gap: 0; }
  .nav__cta { justify-self: end; }

  /* Dividers between links */
  .nav__list > li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 20px;
    border-radius: 2px;
    background: #c9d3de;
    transform: translateY(-50%);
  }
  .nav__list > li > a,
  .nav__sub-toggle { padding-inline: 22px; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(120px, 12vw, 168px);
  background:
    radial-gradient(900px 500px at 100% 0%, var(--blue-tint) 0%, transparent 60%),
    radial-gradient(700px 400px at 0% 100%, var(--gold-tint) 0%, transparent 65%),
    var(--white);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero h1 { margin-bottom: 22px; }
.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 22px;
  border-radius: 4px;
  background: var(--gold);
}
.hero__lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; }
.hero__img-wrap {
  position: relative;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero__media::before { /* gold accent ring */
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 2px solid var(--gold);
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  z-index: -1;
  opacity: .55;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .88rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--body);
}
.float-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.float-card--hours { left: -36px; bottom: 56px; animation: float 6s ease-in-out infinite; }
.float-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-tint);
  color: var(--gold-dark);
}
.float-card--reviews {
  right: -20px;
  top: 64px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue);
  animation: float 6s ease-in-out -3s infinite;
}
.float-card--reviews:hover { color: var(--gold-dark); }
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars .icon { fill: currentColor; stroke: none; width: 16px; height: 16px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Branch strip ----------------------------------------------------------- */

.branch-strip { position: relative; z-index: 2; margin-top: clamp(-110px, -8vw, -72px); }
.branch-strip__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.branch-strip__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 34px 36px;
  background:
    radial-gradient(220px 160px at 0% 100%, rgba(184, 151, 73, .28) 0%, transparent 70%),
    linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
}
.branch-strip__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--gold);
}
.branch-strip__label {
  margin: 8px 0 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--white);
}
.branch-strip__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--white);
  text-decoration: none;
  transition: color .25s, border-color .25s;
}
.branch-strip__more .icon { transition: transform .25s var(--ease); }
.branch-strip__more:hover { color: var(--gold); border-color: var(--gold); }
.branch-strip__more:hover .icon { transform: translateX(4px); }

.branch-strip__groups {
  display: flex;
  gap: 28px 40px;
  padding: 34px 40px;
}
.branch-strip__group:first-child { flex: 1; }
.branch-strip__group + .branch-strip__group { padding-left: 40px; border-left: 1px solid var(--line); }
@media (min-width: 641px) { /* smaller regions stack beside Gauteng */
  .branch-strip__groups { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; }
  .branch-strip__group:first-child { grid-row: span 2; }
  .branch-strip__group .branch-strip__region { margin-bottom: 12px; }
}
.branch-strip__region {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.branch-strip__region::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
.branch-strip__list { display: flex; flex-wrap: wrap; gap: 10px; }
.branch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-mist);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.branch-chip .icon { width: 18px; height: 18px; color: var(--gold); transition: color .25s; }
.branch-chip:hover { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateY(-2px); }
.branch-chip:hover .icon { color: var(--gold); }
.branch-chip--static:hover { background: var(--blue-mist); border-color: var(--line); color: var(--ink); transform: none; }

/* Split layouts ---------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; isolation: isolate; }
.split__media::before { /* gold accent frame, matching the hero */
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .55;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__content > p { max-width: 580px; }

.split__badge {
  position: absolute;
  right: -20px;
  bottom: -28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 300px;
  padding: 20px 22px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.45;
}
.split__badge .icon { color: var(--gold); width: 26px; height: 26px; margin-top: 2px; }

.intro { background: var(--white); }
.split__media--dentist img { object-position: 94% center; } /* crop the wide photo to the dentist only */

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

.services { background: var(--blue-mist); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }

.service-card__media {
  position: relative;
  margin: 10px 10px 0;
  border-radius: 14px;
  overflow: hidden;
}
.service-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.service-card__media::before { /* soft shade at the image base */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(24, 47, 68, .25) 100%);
  z-index: 1;
  pointer-events: none;
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 28px;
  background: var(--white);
}
.service-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--blue-tint);
  color: var(--blue);
  transition: background-color .3s, color .3s;
}
.service-card__icon .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.service-card:hover .service-card__icon { background: var(--blue); color: var(--white); }
.service-card p { font-size: .96rem; flex: 1; }
.service-card__more { /* notch cut into the image's bottom-left corner */
  --notch: 12px;
  position: absolute;
  left: 10px;
  bottom: 100%;
  z-index: 3;
  padding: 7px 7px 0 0;
  background: var(--white);
  border-top-right-radius: 26px; /* pill radius + padding, so the notch hugs the pill */
}
.service-card__more::before,
.service-card__more::after { /* inverted corners where the notch meets the image */
  content: "";
  position: absolute;
  width: var(--notch);
  height: var(--notch);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--notch) - .5px), var(--white) var(--notch));
}
.service-card__more::before { left: 0; bottom: 100%; }
.service-card__more::after { left: 100%; bottom: 0; }
.service-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .86rem;
  text-decoration: none;
  transition: background-color .25s var(--ease);
}
.service-card__btn .icon { transition: transform .25s var(--ease); }
.service-card__btn:hover { background: var(--gold); color: var(--white); }
.service-card__btn:hover .icon { transform: translateX(3px); }

.service-card--cta {
  background:
    radial-gradient(320px 200px at 100% 100%, rgba(184, 151, 73, .3) 0%, transparent 70%),
    linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-color: transparent;
}
.service-card--cta .service-card__body { background: transparent; padding-top: 40px; justify-content: center; }
.service-card--cta h3 { color: var(--white); font-size: 1.45rem; }
.service-card--cta p { color: rgba(255, 255, 255, .78); flex: 0 0 auto; margin-bottom: 28px; }
.service-card--cta .service-card__icon { background: rgba(255, 255, 255, .12); color: var(--gold); }
.service-card--cta:hover .service-card__icon { background: var(--gold); color: var(--white); }
.service-card--cta .btn { align-self: flex-start; }
.service-card--cta::after { display: none; }

/* Get to know ----------------------------------------------------------- */

.about-intro { padding-top: 0; background: var(--blue-mist); }
.about-intro__card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px clamp(40px, 6vw, 88px);
  padding: clamp(32px, 4.5vw, 52px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.about-intro__head h2 { margin: 0; }
.about-intro__text p { margin-bottom: 18px; }
.about-intro__text .btn { margin-top: 10px; }
.pill-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Value band ------------------------------------------------------------- */

.value {
  position: relative;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(184, 151, 73, .18) 0%, transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  overflow: hidden;
}
.value::before { /* subtle dot texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.value .container { position: relative; }
.value__tagline {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--gold-light) !important;
  font-size: .98rem;
}
.value__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: value; }
.value-card {
  position: relative;
  overflow: hidden;
  padding: 40px 34px 38px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07) 0%, rgba(24, 47, 68, .55) 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .6);
  counter-increment: value;
  transition: transform .35s var(--ease), border-color .35s, background-color .35s;
}
.value-card::before { /* large faint number */
  content: counter(value, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1;
  color: rgba(184, 151, 73, .14);
  transition: color .35s;
}
.value-card::after { /* gold underline on hover */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.value-card:hover { transform: translateY(-6px); border-color: rgba(184, 151, 73, .45); }
.value-card:hover::before { color: rgba(184, 151, 73, .28); }
.value-card:hover::after { transform: scaleX(1); }
.value-card h3 { position: relative; margin-bottom: 10px; color: var(--white); }
.value-card p { position: relative; margin: 0; color: rgba(255, 255, 255, .72); }
.value-card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 26px;
  border-radius: 18px;
  border: 1px solid rgba(184, 151, 73, .5);
  background: rgba(184, 151, 73, .12);
  color: var(--gold);
  transition: background-color .35s, color .35s;
}
.value-card:hover .value-card__icon { background: var(--gold); color: var(--white); }
.value-card__icon .icon { width: 28px; height: 28px; stroke-width: 1.8; }

/* Purpose ---------------------------------------------------------------- */

.purpose { background: var(--cream); }
.purpose__top { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; margin-bottom: 24px; }

.purpose__vision {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(360px 240px at 100% 100%, rgba(184, 151, 73, .32) 0%, transparent 70%),
    linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
}
.purpose__vision::after { /* large quote mark */
  content: "\201C";
  position: absolute;
  right: 28px;
  top: -18px;
  font-family: Georgia, serif;
  font-size: 13rem;
  line-height: 1;
  color: rgba(184, 151, 73, .4);
  pointer-events: none;
}
.purpose__statement {
  position: relative;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  color: var(--white);
}

.purpose__mission {
  padding: 44px 44px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #efe7d6;
}
.purpose__mission h3 { margin-bottom: 24px; }
.mission-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mission-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--cream);
  font-size: .97rem;
  line-height: 1.55;
  color: var(--ink);
}
.mission-list__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--gold-text);
}

.purpose__why {
  padding: 40px 44px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #efe7d6;
}
.purpose__why h3 { margin-bottom: 28px; }
.why-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.why-list li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink);
}
.why-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.why-list__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-tint);
  color: var(--gold-dark);
}
.why-list__icon .icon { width: 24px; height: 24px; stroke-width: 1.8; }

/* Family band ------------------------------------------------------------ */

.family-band { position: relative; height: clamp(340px, 46vw, 560px); overflow: hidden; }
.family-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.family-band__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(32px, 5vw, 64px);
  background: linear-gradient(180deg, transparent 35%, rgba(24, 47, 68, .82) 100%);
}
.family-band__text {
  max-width: 640px;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.3;
  color: var(--white);
  border-left: 4px solid var(--gold);
  padding-left: 24px;
}

/* Branches --------------------------------------------------------------- */

.branches__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.branch-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: var(--body);
  transition: border-color .25s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.branch-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); color: var(--body); }
.branch-card__pin {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-dark);
}
.branch-card__area {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--body);
}
.branch-card__name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink); margin: 4px 0 4px; }
.branch-card__where { font-size: .93rem; flex: 1; margin-bottom: 18px; }
.branch-card__go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue); }
.branch-card__go .icon { transition: transform .25s var(--ease); }
.branch-card:hover .branch-card__go .icon { transform: translateX(4px); }
.branch-card--static:hover { border-color: var(--line); box-shadow: none; transform: none; }
.branches__cta { grid-column: span 3; }
.branch-card--cta { background: var(--blue); border-color: var(--blue); }
.branch-card--cta .branch-card__name { color: var(--white); font-size: 1.25rem; }
.branch-card--cta .branch-card__where { color: rgba(255, 255, 255, .8); }
.branch-card--cta .branch-card__go { color: var(--gold-light); }
.branch-card--cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* First visit ------------------------------------------------------------ */

.first-visit { background: var(--blue-mist); }
.first-visit .split__media img { object-position: 85% center; } /* keep the patient’s face in the tall crop */
.steps { position: relative; display: grid; gap: 30px; margin-top: 36px; }
.steps::before { /* timeline connecting the numbers */
  content: "";
  position: absolute;
  left: 25px;
  top: 26px;
  bottom: 26px;
  border-left: 2px dashed rgba(184, 151, 73, .45);
}
.steps li { position: relative; display: flex; gap: 22px; align-items: flex-start; }
.steps h3 { margin: 4px 0 4px; font-size: 1.08rem; }
.steps p { margin: 0; font-size: .97rem; }
.steps__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 6px var(--blue-mist);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  transition: background-color .25s, color .25s;
}
.steps li:hover .steps__num { background: var(--gold); color: var(--white); }

/* Reviews ---------------------------------------------------------------- */

.reviews { --split: 76px; padding-block: 0; background: linear-gradient(180deg, var(--blue-mist) var(--split), var(--white) var(--split)); }
.reviews__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px 44px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.reviews__google {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--blue-mist);
}
.reviews__text { flex: 1; }
.reviews__text h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 4px; }
.reviews__text p { margin: 0; }

.reviews { padding-bottom: var(--section-y); }
.reviews__carousel { margin-top: 32px; }
.reviews__controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.reviews__nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
}
.reviews__nav[data-dir="-1"] .icon { transform: scaleX(-1); }
.reviews__nav:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: var(--white); }
.reviews__nav:disabled { opacity: .4; cursor: default; }
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 24px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }
.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px 26px;
  background: var(--blue-mist);
  border-radius: var(--radius);
  scroll-snap-align: start;
}
.review-card__stars { display: flex; gap: 3px; color: var(--gold); }
.review-card__stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.review-card__text { margin: 0; }
.review-card__text p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  margin: 0;
  font-size: .97rem;
  line-height: 1.65;
  color: var(--ink);
}
.review-card.is-expanded .review-card__text p { display: block; -webkit-line-clamp: unset; }
.review-card__more {
  align-self: flex-start;
  margin-top: -8px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--blue);
  cursor: pointer;
}
.review-card__more:hover { color: var(--gold-dark); }
.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  text-transform: capitalize;
}
.review-card__author small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--body); text-transform: none; }
.review-card__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}

/* FAQ -------------------------------------------------------------------- */

.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 14px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .25s, box-shadow .25s;
}
.faq__item[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.faq__item[open] summary .icon { transform: rotate(180deg); background: var(--blue); color: var(--white); }
.faq__item p { padding: 0 26px 24px; margin: 0; }

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

.cta { /* card straddles the white page and the footer */
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--white) 50%, var(--blue-deep) 50%);
}
.cta__inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 36px clamp(24px, 4vw, 52px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(600px 300px at 0% 100%, rgba(184, 151, 73, .3) 0%, transparent 70%),
    linear-gradient(135deg, #42709a 0%, var(--blue) 55%, var(--blue-dark) 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.cta__text { flex: 1; }
.cta__inner h2 { margin-bottom: 6px; color: var(--white); font-size: clamp(1.3rem, 2vw, 1.6rem); text-wrap: balance; }
.cta__inner p { margin: 0; color: rgba(255, 255, 255, .8); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; flex-shrink: 0; }

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

.site-footer { background: var(--blue-deep); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr 1fr;
  gap: 48px;
  padding-block: 80px 56px;
}
.footer__brand p { margin-top: 22px; max-width: 360px; }
.footer__title {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
}
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.footer__links { display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer__contact { display: grid; gap: 16px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { color: var(--gold); margin-top: 5px; }
.footer__hours { margin: 0; display: grid; gap: 12px; }
.footer__hours div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__hours dt { color: var(--white); }
.footer__hours dd { margin: 0; text-align: right; }
.footer__addresses { padding-bottom: 56px; }
.footer__address-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 48px; line-height: 1.55; }
.footer__address-list strong { font-weight: 500; color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; }
.footer__bottom p { margin: 0; }
.footer__bottom nav { display: flex; align-items: center; gap: 14px; }
.footer__bottom nav span { color: rgba(255, 255, 255, .3); }

/* Inner pages ------------------------------------------------------------ */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 500px at 100% 0%, var(--blue-tint) 0%, transparent 60%),
    radial-gradient(700px 400px at 0% 100%, var(--gold-tint) 0%, transparent 65%),
    var(--white);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: 22px; }
.page-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 22px;
  border-radius: 4px;
  background: var(--gold);
}
.page-hero .hero__lead { max-width: 600px; margin-bottom: 18px; }
.page-hero__content > p:not(.hero__lead) { max-width: 600px; }
.page-hero .hero__actions { margin-top: 32px; }
.page-hero__media img { aspect-ratio: 4 / 3; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 22px;
  font-size: .86rem;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--gold); }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb [aria-current] { color: var(--ink); }

/* Long-form service content */
.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.prose { max-width: 740px; }
.prose__section + .prose__section { margin-top: 52px; padding-top: 52px; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); }
.prose > :last-child,
.prose__section > :last-child { margin-bottom: 0; }
.prose a { font-weight: 500; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.prose ul {
  display: grid;
  gap: 12px;
  margin: 6px 0 1.4em;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--blue-mist);
}
.prose li { position: relative; padding-left: 26px; line-height: 1.55; color: var(--ink); }
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.aside { position: sticky; top: 108px; display: grid; gap: 20px; }
.aside-card { padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.aside-card__title { margin-bottom: 14px; font-size: 1.05rem; }
.aside-nav { display: grid; gap: 2px; margin-inline: -10px; }
.aside-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .94rem;
  line-height: 1.4;
  color: var(--body);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.aside-nav a:hover { background: var(--blue-mist); color: var(--blue); }
.aside-nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue); font-weight: 500; }
.aside-card--blue {
  border-color: transparent;
  background:
    radial-gradient(240px 180px at 100% 100%, rgba(184, 151, 73, .28) 0%, transparent 70%),
    linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: rgba(255, 255, 255, .8);
}
.aside-card--blue .aside-card__title { color: var(--white); }
.aside-card--blue .hours { margin-bottom: 20px; }
.aside-card--blue .btn { width: 100%; }

.hours { margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.hours div { display: flex; justify-content: space-between; gap: 12px; }
.hours dt { color: var(--white); }
.hours dd { margin: 0; text-align: right; white-space: nowrap; }

.cta__text p + p { margin-top: .8em; }
.cta--stacked .cta__actions { flex-direction: column; }
.cta--spaced { /* when the section above is not white */
  padding-top: var(--section-y);
  background: linear-gradient(180deg, var(--white) calc(50% + var(--section-y) / 2), var(--blue-deep) calc(50% + var(--section-y) / 2));
}

/* About */
.community { background: var(--blue-mist); }
.community .split__media img { object-position: 45% center; }
@media (min-width: 961px) {
  .value__grid--prose { grid-template-columns: repeat(2, 1fr); }
}
.value-card--prose { padding: 34px 34px 32px; }
.value-card--prose::before { content: none; }
.value-card--prose p { color: rgba(255, 255, 255, .86); }

/* Contact */
.contact-panel {
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(320px 220px at 100% 100%, rgba(184, 151, 73, .3) 0%, transparent 70%),
    linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: var(--shadow-lg);
  color: rgba(255, 255, 255, .82);
}
.contact-panel__list { display: grid; gap: 14px; }
.contact-panel__list li { display: flex; align-items: flex-start; gap: 12px; overflow-wrap: anywhere; }
.contact-panel__list .icon { margin-top: 6px; color: var(--gold); }
.contact-panel a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); }
.contact-panel a:hover { color: var(--gold); }
.contact-panel__hours { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.contact-panel__hours h2 { margin-bottom: 12px; font-size: 1.02rem; color: var(--white); }

.branch-list-section { background: var(--blue-mist); }
.branch-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.branch-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.branch-item h3 { margin-bottom: 14px; font-size: 1.12rem; }
.branch-item__map {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--blue-tint);
}
.branch-item p { font-size: .96rem; }
.branch-item__address { flex: 1; margin-bottom: 18px; color: var(--ink); }
.branch-item__address strong { font-weight: 500; }
.branch-item .link-arrow { align-self: flex-start; font-size: .9rem; }

.visit { align-items: start; }
.visit__cards { display: grid; gap: 20px; }
.visit-card { padding: 28px 30px; border-radius: var(--radius); background: var(--blue-mist); }
.visit-card h3 { margin-bottom: 8px; }
.visit-card p { margin: 0; }
.visit-card--alert { background: var(--gold-tint); }

.booking { background: var(--blue-mist); scroll-margin-top: 90px; }
.booking__card {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(28px, 4.5vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.booking__card h2 { margin-bottom: 28px; text-align: center; }
.booking__form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #c9d3de;
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.booking__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.booking__status { margin: 0; font-size: .93rem; }

@media (max-width: 1100px) {
  .branch-list { grid-template-columns: repeat(2, 1fr); }
}

/* Legal pages (privacy / terms): text-only hero, single column */
.page-hero--simple .page-hero__inner { grid-template-columns: 1fr; }
.page-hero--simple .hero__lead { max-width: 740px; }
.legal h2 { margin-top: 44px; }
.legal h2:first-child { margin-top: 0; }

/* Avily "designed by" credit (templates/designed-by-avily.html) */
.avily-credit .avily-link { text-decoration: none; }
.avily-credit .avily-link:hover { text-decoration: underline; }
.avily-credit img { display: inline-block; height: 1em; width: auto; vertical-align: middle; margin: 0 4px; }

/* reCAPTCHA badge would sit under the WhatsApp button; the form carries Google's required notice instead */
.grecaptcha-badge { visibility: hidden; }
.booking__notice { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--body); }
.booking__notice a { color: var(--blue); }
.field__req { color: #a3342b; }

/* 404 page */
.notfound__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.notfound__links a {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font-size: .93rem; text-decoration: none;
}
.notfound__links a:hover { border-color: var(--gold); color: var(--blue); }
.notfound h2 { font-size: 1.25rem; margin: 40px 0 14px; }

@media (max-width: 960px) {
  .page-hero__inner,
  .article__layout { grid-template-columns: 1fr; }
  .page-hero__media { max-width: none; }
  .split__media--tall img { aspect-ratio: 4 / 3; } /* portrait crops upscale badly on tablet */
  .aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .prose { max-width: none; }
}

@media (max-width: 640px) {
  .aside,
  .branch-list,
  .booking__form { grid-template-columns: 1fr; }
  .prose ul { padding: 22px 20px; }
  .booking__submit .btn { width: 100%; }
}

/* WhatsApp chat ---------------------------------------------------------- */

.wa {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.wa__btn {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 10px 24px -6px rgba(24, 47, 68, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa__btn svg { width: 32px; height: 32px; }
.wa__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -6px rgba(24, 47, 68, .4); }
.wa__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wa__popup {
  width: min(300px, calc(100vw - 40px));
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  animation: wa-in .3s var(--ease);
}
.wa__popup[hidden] { display: none; }
.wa__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wa__head p { margin: 4px 0 0; color: var(--ink); font-weight: 500; }
.wa__close {
  display: grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: var(--blue-mist); color: var(--body); cursor: pointer;
}
.wa__close:hover { background: var(--blue-tint); color: var(--ink); }
.wa__row { display: flex; gap: 8px; }
.wa__input {
  flex: 1; min-width: 0; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; color: var(--ink); background: var(--white);
}
.wa__input:focus { outline: none; border-color: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .2); }
.wa__send {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: #25d366; color: var(--white); cursor: pointer;
}
.wa__send:hover { background: #1ebe5b; }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

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

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1100px) {
  .branch-strip__inner { grid-template-columns: 1fr; }
  .branch-strip__stat { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 24px 32px; }
  .branch-strip__label { margin: 0; flex: 1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--cta { grid-column: 1 / -1; }
  .branches__grid { grid-template-columns: repeat(2, 1fr); }
  .branches__cta { grid-column: auto; }
  .purpose__top { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .why-list li:nth-child(4) { padding-left: 0; border-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__address-list { grid-template-columns: 1fr 1fr; }
  .topbar__hours { display: none !important; }
}

@media (max-width: 960px) {
  /* backdrop-filter would make the fixed drawer relative to the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 96px 24px 32px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
    z-index: 1;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list > li > a,
  .nav__sub-toggle { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; }
  .nav__list > li > a[aria-current="page"] { box-shadow: none; }
  .nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav__has-sub:hover .nav__sub,
  .nav__has-sub:focus-within .nav__sub { display: none; }
  .nav__has-sub.is-open .nav__sub { display: block; }
  .nav__has-sub:hover .nav__sub-toggle .icon { transform: none; }
  .nav__has-sub.is-open .nav__sub-toggle .icon { transform: rotate(180deg); }
  .nav__cta { width: 100%; }
  .nav-toggle { position: relative; z-index: 2; }

  .hero__inner,
  .split,
  .faq__inner { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .hero__media { max-width: 520px; margin-inline: auto; width: 100%; }
  .split__content > p { max-width: none; }
  .value__grid { grid-template-columns: 1fr; }
  .reviews__inner { flex-direction: column; text-align: center; }
  .cta__inner { flex-direction: column; text-align: center; }
  .about-intro__card { grid-template-columns: 1fr; }
  .reviews { --split: 140px; }
  .reviews__track { grid-auto-columns: calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
  .branch-strip__stat { padding: 22px 20px; }
  .branch-strip__num { font-size: 2.6rem; }
  .branch-strip__groups { flex-direction: column; padding: 24px 20px; }
  .branch-strip__group + .branch-strip__group { padding-left: 0; border-left: 0; }
  .branch-chip { padding: 8px 14px 8px 10px; font-size: .86rem; }
  body { font-size: 1rem; }
  .container { padding-inline: 16px; }
  .topbar { font-size: .8rem; }
  .topbar__inner { justify-content: center; gap: 6px 18px; }
  .site-header__inner { min-height: 72px; }
  .logo img { height: 64px; }
  .hero__actions .btn { width: 100%; }
  .float-card--hours { left: 8px; bottom: 20px; }
  .float-card--reviews { right: 8px; top: 20px; }
  .hero__media::before,
  .split__media::before { inset: 14px -10px -14px 14px; }
  .split__badge { position: relative; right: auto; bottom: auto; margin: -36px 16px 0; max-width: none; }
  .services__grid,
  .branches__grid,
  .mission-list,
  .footer__grid { grid-template-columns: 1fr; }
  .purpose__vision,
  .purpose__mission,
  .purpose__why { padding: 32px 24px; }
  .why-list { grid-template-columns: 1fr; gap: 20px; }
  .why-list li { flex-direction: row; align-items: center; }
  .why-list__icon { flex-shrink: 0; }
  .why-list li + li { padding-left: 0; border-left: 0; }
  .reviews__inner { padding: 32px 24px; }
  .reviews__inner .btn { width: 100%; }
  .reviews__track { grid-auto-columns: 86%; gap: 16px; }
  .cta__actions { align-self: stretch; }
  .cta__actions .btn { width: 100%; }
  .footer__grid { gap: 36px; padding-block: 56px 40px; }
  .footer__address-list { grid-template-columns: 1fr; }
  .footer__addresses { padding-bottom: 40px; }
}
