/* ==============================
   APOLLO DENTAL CLINIC – STYLES
   ============================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Professional medical blue palette */
  --blue-900:      #0a2d4a;
  --blue-800:      #0d3a5c;
  --blue-700:      #134d73;
  --primary:       #1a6b9e;
  --primary-dark:  #134d73;
  --primary-light: #e8f2fa;
  --primary-mid:   #b8d4ea;
  --primary-pale:  #f4f9fc;
  --accent:        #2d7ec8;
  --accent-dark:   #1a5f96;
  --accent-light:  #dceaf5;
  --gold:          #c9a227;
  --gold-light:    #f5f0e0;
  --gold-soft:     #faf8f3;
  --dark:          #0f2940;
  --body-text:     #3d5568;
  --text-mid:      #5a7080;
  --light-bg:      #f4f9fc;
  --border:        #d4e3ef;
  --white:         #ffffff;
  --green:         #25d366;
  --topbar-h:      38px;
  --header-h:      76px;
  --site-header-h: 114px;
  --radius:        8px;
  --radius-lg:     12px;
  --shadow:        0 4px 20px rgba(13, 58, 92, 0.08);
  --shadow-lg:     0 12px 40px rgba(13, 58, 92, 0.12);
  --transition:    0.3s ease;
  --font-head:     'Poppins', system-ui, sans-serif;
  --font-body:     'Poppins', system-ui, sans-serif;
  --clinic-pattern: url("/images/apollo-clinic-pattern.svg");
  --clinic-hero-bg: url("/images/apollo-hero-clinic-bg.svg");
}

html {
  font-size: 16px;
  /* At browser Zoom 100%, shrink the whole UI ~10% so type/images feel balanced */
  zoom: 0.9;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--site-header-h);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* Tailwind deco layer sits behind page content (do not override fixed header/floats) */
body > section,
body > footer,
body > .wave-divider {
  position: relative;
  z-index: 1;
}

/* Optional subtle equipment texture on sections (very faint) */
.section--bg {
  position: relative;
  isolation: isolate;
}

.section--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--clinic-pattern);
  background-repeat: repeat;
  background-size: 360px 360px;
  opacity: 0.22;
}

.section--bg > .container {
  position: relative;
  z-index: 1;
}

/* file:/// warning — use https://localhost:3000 (or npm run dev:http) */
.file-protocol-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: #b45309;
  color: #fff;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top, 0));
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.file-protocol-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.file-protocol-banner code {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.file-protocol-banner__hint {
  margin-top: 6px;
  font-size: 0.82rem;
  opacity: 0.95;
}

.is-file-protocol .file-protocol-banner,
.is-file-protocol .file-protocol-banner[hidden] {
  display: block;
}

.is-file-protocol body {
  padding-top: calc(var(--site-header-h) + 88px);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

/* ---------- TYPOGRAPHY ---------- */
.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__title em,
.section__title span {
  color: var(--primary);
}

/* Sections that highlight their accent word in orange (#e87820) */
.faq .section__title span,
.about .section__title span,
.services .section__title span,
.doctors .section__title span,
.clinic-tech .section__title span,
.why .section__title span,
.gallery .section__title span,
.testimonials .section__title span,
.areas .section__title span,
.directions .section__title span,
.contact .section__title span { color: #e87820; }

.section__header--apollo {
  text-align: left;
  margin-bottom: 48px;
}

.section__header--apollo .section__desc {
  margin: 0;
  max-width: 720px;
}

.section__header--apollo .section__title {
  position: relative;
  padding-bottom: 14px;
}

.section__header--apollo .section__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
}

.section__tag {
  border-radius: 0;
  background: transparent;
  padding: 0 0 0 12px;
  border-left: 4px solid var(--primary);
  letter-spacing: 0.08em;
  color: var(--primary-dark);
}

.section__desc {
  max-width: 600px;
  font-size: 1.05rem;
  color: var(--body-text);
  line-height: 1.8;
}

/* Hero description matches the typography of every other section's
   description (.section__desc) — same body font, same colour, same
   line-height. Slightly larger (1.1rem) and wider max-width because
   it's lead copy at the top of the page. */
.hero-description {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--body-text);
  line-height: 1.75;
  max-width: 640px;
  margin: 18px 0 28px;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header .section__desc { margin: 0 auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--lg { padding: 16px 36px; font-size: 1rem; }

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,130,161,0.32); }

.btn--whatsapp {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--whatsapp:hover { background: #1fb855; border-color: #1fb855; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }

.btn--gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  font-weight: 600;
}
.btn--gold:hover { background: #b89220; border-color: #b89220; color: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,162,39,0.35); }

/* Invisalign section uses orange (#e87820) for the consultation CTA — the
   generic .btn--gold class stays gold elsewhere; this override only affects
   the button inside the Invisalign section. */
.invisalign .btn--gold {
  background: #e87820;
  border-color: #e87820;
  color: var(--white);
}
.invisalign .btn--gold:hover {
  background: #c9651a;
  border-color: #c9651a;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(232, 120, 32, 0.40);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  font-weight: 600;
}
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-2px); }

/* Outline / ghost variant — used by locality hero secondary CTAs
   (e.g. "WhatsApp Us" alongside the primary "Call" button) */
.btn--ghost {
  background: transparent;
  color: var(--blue-900);
  border-color: var(--blue-900);
}
.btn--ghost:hover {
  background: var(--blue-900);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 45, 74, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* ---------- SITE HEADER (topbar + nav, no overlap) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(10, 45, 74, 0.1);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(10, 45, 74, 0.14);
}

.header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 24px;
}

/* Push the nav out of the 1200px container so the logo sits at the left
   page edge and the CTA sits at the right page edge. Keep a small 20px
   breathing room so they don't literally touch the viewport edge. */
.nav.container {
  max-width: none;
  padding-left: 20px;
  padding-right: 20px;
}

/* Symmetric 1fr | auto | 1fr grid guarantees the menu sits exactly at page-centre
   regardless of logo or CTA width. Logo hugs the left edge of column 1, CTA hugs
   the right edge of column 3. Toggle (mobile only) shares column 3 with CTA. */
.nav > .nav__logo   { justify-self: start;  grid-column: 1; }
.nav > .nav__menu   { justify-self: center; grid-column: 2; }
.nav > .nav__cta    { justify-self: end;    grid-column: 3; }
.nav > .nav__toggle { justify-self: end;    grid-column: 3; }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  width: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  display: block;
}

.nav__logo:not(.nav__logo--footer) .logo-img {
  height: 56px;
  max-width: 72px;
}

.logo-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav__logo:not(.nav__logo--footer) .logo-wordmark {
  font-size: 1.6rem;
}

.logo-wordmark__apollo {
  color: var(--primary-dark);
}

.logo-wordmark__dental {
  color: #e87820;
}

.logo-wordmark--footer .logo-wordmark__apollo {
  color: var(--white);
}

.logo-wordmark--footer .logo-wordmark__dental {
  color: #e87820;
}

.logo-text { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.logo-text--white { color: var(--white); }

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

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--blue-800);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav__link:hover { color: var(--primary); }
.nav__link:hover::after { transform: scaleX(1); }

/* Active state — visible "you are here" indicator. The script.js scroll-spy
   adds the .active class to the link whose section is currently in view (and
   immediately on click). Renders as a filled navy pill so it stands out
   clearly against the white header. Keeps the SAME padding as the base link
   so applying .active causes no layout shift / size jump. */
.nav__link {
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav__link.active {
  background: #e87820;
  color: var(--white);
}
.nav__link.active::after { display: none; }
.nav__link.active:hover {
  color: var(--white);
  background: #c9651a;
}

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- TOP BAR ---------- */
.topbar {
  background: linear-gradient(90deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
  color: var(--white);
  font-size: 0.8rem;
  position: relative;
  min-height: var(--topbar-h);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-h);
  padding: 8px 0;
}

.topbar__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.topbar__location svg {
  color: #fca5a5;
  flex-shrink: 0;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar a { color: var(--white); font-weight: 600; }
.topbar a:hover { color: var(--primary-mid); }
.topbar__brand { color: var(--white); font-weight: 600; }
.topbar__sep { opacity: 0.5; }

/* ---------- HERO (Apollo Dental style) ---------- */
.hero {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  background: linear-gradient(180deg, var(--primary-pale) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 48px 24px 56px;
}

.hero__badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero__title span { color: var(--primary); }

.hero__subtitle {
  font-size: 1rem;
  color: var(--body-text);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--dark); }
.stat span { font-size: 0.78rem; color: var(--body-text); font-weight: 500; letter-spacing: 0.04em; }
.stat__divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero__image-wrap .hero__photo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero__rating-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__rating-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; }

.hero__card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__card--main {
  width: 220px;
  padding: 40px 32px;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 4s ease-in-out infinite;
}

.hero__card--photo {
  width: min(100%, 340px);
  padding: 0;
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

.hero__photo {
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.hero__icon-wrap { margin: 0 auto 16px; width: 80px; }
.hero__card-label { font-size: 0.9rem; font-weight: 600; color: var(--primary); }

.hero__card--badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  top: 10%;
  right: 5%;
  animation: float 4s ease-in-out infinite 1s;
}

.hero__card--rating {
  padding: 16px 20px;
  text-align: center;
  bottom: 10%;
  left: 0;
  animation: float 4s ease-in-out infinite 2s;
}

.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 4px; }
.hero__card--rating p { font-size: 0.8rem; font-weight: 600; color: var(--dark); }

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

.hero__card--main { animation: floatCenter 4s ease-in-out infinite; }
@keyframes floatCenter {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-12px); }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}
.hero__scroll span { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: var(--primary); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.3; transform: scaleY(0.5); } }

/* ---------- SERVICES ---------- */
.services {
  background: linear-gradient(180deg, var(--primary-pale) 0%, var(--primary-light) 55%, var(--accent-light) 100%);
}

/* ---------- DOCTORS ---------- */
/* Full image width + height fills section */
/*.doctors.section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;

  background-image:
      linear-gradient(
          rgba(255,255,255,0.65),
          rgba(255,255,255,0.65)
      ),
      url('/images/bg-img-doctor.png');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}*/

.doctors.section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;

  background-image: url('/images/bg-img-doctor.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.title-tooth {
  width: 200px;
  height: 100px;
  object-fit: contain;
}

.section__title {
  margin: 0;
}

/*.doctors__bg {
  position: absolute;
  top: 50%;
  left: 36%;
  transform: translate(-50%, -50%) scale(1.08);
  transform-origin: 28% 50%;
  height: 100%;
  width: auto;
  max-width: none;
  z-index: 0;
  pointer-events: none;
  display: block;
}*/

.doctors__bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  z-index: 0;
  pointer-events: none;

  opacity: 0.15; /* increase for visibility */
}

@media (max-width: 768px) {
  .doctors__bg {
    left: 28%;
    transform: translate(-50%, -50%) scale(1.05);
    transform-origin: 22% 50%;
  }
}

.doctors.section::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255,255,255,0.55);

  z-index: 1;
}

.doctors.section > .container {
  position: relative;
  z-index: 2;
}

/* Soft veil on the right for doctor cards only */
.doctors.section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(181, 223, 240, 0.15) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.22) 80%,
    rgba(252, 252, 252, 0.32) 100%
  );
  z-index: 1;
  pointer-events: none;
}



.doctors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
  align-items: stretch;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(3, 5, 7, 0.42);
  transition: transform var(--transition), box-shadow var(--transition);
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 24px rgba(3, 5, 7, 0.42);
}

a.doctor-card--link {
  text-decoration: none;
  color: inherit;
}

a.doctor-card--link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

/* ---------- DOCTOR PROFILE (inner page) ---------- */
.doctor-profile {
  /* Body already has padding-top for fixed header — don't add header height again */
  padding: 20px 0 56px;
  background: linear-gradient(180deg, var(--primary-pale) 0%, var(--white) 45%);
}

.doctor-profile .container {
  max-width: 1120px;
}

.doctor-profile__crumb {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.doctor-profile__crumb a {
  color: var(--primary);
  text-decoration: none;
}

.doctor-profile__crumb a:hover {
  text-decoration: underline;
}

.doctor-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.doctor-profile__heading {
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 4vw, 2.05rem);
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.22;
  margin: 0 0 12px;
}

.doctor-profile__tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 24px;
  line-height: 1.55;
}

.doctor-profile__content p {
  font-size: 0.975rem;
  line-height: 1.72;
  color: var(--body-text);
  margin: 0 0 18px;
}

.doctor-profile__content h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 32px 0 14px;
}

.doctor-profile__quote {
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 500;
  color: var(--blue-800);
  line-height: 1.65;
  margin: 0 0 10px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(201, 162, 39, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.doctor-profile__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.doctor-profile__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--body-text);
}

.doctor-profile__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.doctor-profile__cta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.doctor-profile__aside {
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 2px rgba(201, 162, 39, 0.45),
    0 12px 36px rgba(13, 58, 92, 0.12);
}

.doctor-profile__aside img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

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

  .doctor-profile__aside {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

.doctor-card__photo {
  flex: 0 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-pale) 0%, var(--primary-light) 100%);
  box-sizing: border-box;
  border: 2px solid rgba(201, 162, 39, 0.45);
}

.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.doctor-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 22px 20px;
  text-align: center;
  background-color: var(--white);
  border-top: none;
}

.doctor-card__name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0 0 8px;
  line-height: 1.35;
}

.doctor-card__role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  line-height: 1.5;
}

.doctor-card__more-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e87820;
  pointer-events: none;
}

.doctor-card__more-arrow {
  flex-shrink: 0;
  display: block;
}

@media (max-width: 992px) {
  .doctors__grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 600px) and (max-width: 992px) {
  .doctors__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }

  .doctors__grid .doctor-card:last-child {
    grid-column: 1 / -1;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

@media (min-width: 993px) and (max-width: 1100px) {
  .doctors__grid {
    gap: 20px;
  }

  .doctor-card__body {
    padding: 18px 16px 18px;
  }

  .doctor-card__name {
    font-size: 1rem;
  }
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.40);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 0 24px;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
  border-top: 4px solid var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.service-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 14px;
  box-sizing: border-box;
  background: #f4f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 6px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition);
}

.service-card:hover .service-card__image img {
  transform: scale(1.02);
}

.service-card h3,
.service-card p {
  padding-left: 24px;
  padding-right: 24px;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p { font-size: 0.9rem; color: rgba(25, 25, 25, 0.881); line-height: 1.7; }

.service-card--featured {
  border-top-color: var(--gold);
  position: relative;
}

.service-card--featured:hover {
  border-color: var(--gold);
}

.service-card__badge {
  display: inline-block;
  background: #e87820;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 0 24px 10px;
}

.services {
  position: relative;
  overflow: hidden;

  background-image: url('/images/dental-solutions-bg.png');
  background-repeat: no-repeat;
  background-size: cover;       /* Fill container, crop if needed */
  background-position: center;  /* Keep image centered */

}

/* ---------- INVISALIGN ---------- */
.invisalign {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
  color: var(--white);
}

.invisalign::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--clinic-pattern);
  background-size: 340px 340px;
  background-repeat: repeat;
  opacity: 0.08;
  filter: brightness(2.8);
}

.invisalign .container {
  position: relative;
  z-index: 1;
}

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

.invisalign__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.invis-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  z-index: 2;
}

.invis-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 40px;
  z-index: 1;
}

.invis-card h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.invis-card p { opacity: 0.7; margin-bottom: 24px; }

.invis-card ul { display: flex; flex-direction: column; gap: 10px; }
.invis-card li { font-size: 0.92rem; color: rgba(255,255,255,0.85); }

.invisalign__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  z-index: 1;
  padding-top: 56px;
}

.invisalign__img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: contain;
  object-position: center;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  background: #ffffff;
  padding: 12px;
  box-sizing: border-box;
}

.invisalign__img--main {
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: none;
}

.invisalign__img--secondary {
  aspect-ratio: 16 / 10;
  min-height: 160px;
}

.invis-glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(253,185,49,0.18) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -50px; left: -50px;
  pointer-events: none;
}

/* ---------- GALLERY / Treatments & Care (continuous marquee) ---------- */
.gallery.section {
  padding: 48px 0 56px;
}

.gallery {
  background: var(--light-bg);
}

.gallery .section__header--apollo {
  margin-bottom: 32px;
}

.gallery .container { margin-bottom: 0; }

.gallery .container {
  max-width: 100%;
  padding-left: clamp(14px, 3vw, 10px);
  padding-right: clamp(14px, 3vw, 10px);
}

.gallery__layout--marquee {
  width: 100%;
  max-width: none;
  margin: 0;
}

.gallery__marquee-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #e8f2fa 0%, var(--white) 50%, #eef5fa 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.gallery__marquee-viewport {
  overflow: hidden;
  width: 100%;
  padding: 24px 0;
}

.gallery__marquee-track {
  display: flex;
  width: max-content;
  animation: gallery-marquee-scroll 45s linear infinite;
}

.gallery__marquee-wrap:hover .gallery__marquee-track {
  animation-play-state: paused;
}

.gallery__marquee-group {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 2vw, 24px);
  padding: 0 clamp(12px, 2vw, 20px);
  flex-shrink: 0;
}

.gallery__slide {
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 300px);
  margin: 0;
  padding: 0;
}

.gallery__slide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 58, 92, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.gallery__slide-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 12px;
  overflow: hidden;
  background: #f4f9fc;
  box-sizing: border-box;
}

.gallery__slide-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.gallery__slide-label {
  padding: 12px 14px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-align: center;
  background: #e87820;
  border-top: 1px solid #e87820;
  margin: 0;
}

.gallery__marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.gallery__marquee-fade--left {
  left: 0;
  background: linear-gradient(90deg, #e8f2fa 0%, transparent 100%);
}

.gallery__marquee-fade--right {
  right: 0;
  background: linear-gradient(270deg, #eef5fa 0%, transparent 100%);
}

@keyframes gallery-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .gallery__marquee-group[aria-hidden="true"] {
    display: none;
  }

  .gallery__marquee-fade {
    display: none;
  }
}

@media (max-width: 768px) {
  .gallery__slide {
    width: clamp(160px, 38vw, 240px);
  }

  .gallery__marquee-track {
    animation-duration: 55s;
  }
}

@media (max-width: 520px) {
  .gallery__slide {
    width: clamp(140px, 42vw, 200px);
  }

  .gallery__slide-label {
    font-size: 13px;
    font-weight: 700;
    padding: 11px 12px;
  }
}

/* ---------- WHY CARD WITH IMAGE ---------- */
.why-card--image {
  padding: 0;
  overflow: hidden;
}

.why-card--image .why-card__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.why-card--image .why-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-card--image .why-card__num {
  top: 12px;
  right: 12px;
}

.why-card--image h3,
.why-card--image p {
  padding-left: 24px;
  padding-right: 24px;
}

.why-card--image p {
  padding-bottom: 24px;
}

.invisalign__content .section__tag { background: rgba(255,255,255,0.12); color: var(--primary-mid); border-left-color: var(--accent); }
.invisalign__content .section__title { color: var(--white); }
.invisalign__content p { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 1.05rem; }
.invisalign__content strong { color: var(--gold); }

.invisalign__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.invisalign__features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 36px; height: 36px;
  background: rgba(253,185,49,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.invisalign__features strong { display: block; color: var(--white); font-size: 0.95rem; margin-bottom: 2px; }
.invisalign__features span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ---------- WHY CHOOSE US (light navy shades) ---------- */
.why.section {
  padding: 48px 0 56px;
}

.why {
  position: relative;
  isolation: isolate;
  color: var(--dark);
  background: linear-gradient(
    165deg,
    #f4f9fc 0%,
    #e8f2fa 28%,
    #dceaf5 55%,
    #cfe3f2 82%,
    #c5dff0 100%
  );
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(45, 126, 200, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 65% 50% at 88% 78%, rgba(26, 107, 158, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(184, 212, 234, 0.35) 0%, transparent 62%);
}

.why > .container {
  position: relative;
  z-index: 1;
}

.why .section__header--apollo {
  margin-bottom: 32px;
}

.why .section__tag {
  color: var(--primary-dark);
  border-left-color: var(--primary);
}

.why .section__title {
  color: var(--blue-900);
}

.why .section__header--apollo .section__title::after {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  row-gap: 0;
  max-width: 1040px;
  margin: 0 auto;
}

.why-card {
  display: grid;
  grid-template-columns: 48px 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 6px;
  align-items: start;
  padding: 26px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 107, 158, 0.16);
  border-radius: 0;
  position: relative;
  overflow: visible;
  transition: background var(--transition), padding var(--transition);
}

.why-card:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.65);
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
  border-radius: var(--radius);
  border-bottom-color: transparent;
}

.why-card__num {
  position: static;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  color: #e87820;
  line-height: 1;
  opacity: 1;
}

.why-card svg {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  margin: 2px 0 0;
  width: 44px;
  height: 44px;
  padding: 9px;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid rgba(26, 107, 158, 0.18);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26, 107, 158, 0.08);
}

.why-card svg path,
.why-card svg circle,
.why-card svg rect,
.why-card svg line,
.why-card svg polyline {
  stroke: var(--primary);
}

.why-card h3 {
  grid-column: 3;
  grid-row: 1;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0;
}

.why-card p {
  grid-column: 3;
  grid-row: 2;
  font-size: 0.9rem;
  color: var(--body-text);
  line-height: 1.65;
  margin: 0;
}

/* ---------- TESTIMONIALS (split quote layout) ---------- */
/*.testimonials {
  background: linear-gradient(135deg, rgb(248, 250, 252) 0%, rgb(241, 245, 249) 100%);
  overflow: hidden;
}*/

.testimonials {
  position: relative;
  overflow: hidden;

  background-color: #f5f7fa;
  background-image: url('images/patient-feedback-bg.jpg');
  background-repeat: repeat;
  background-size: 300px;
}




.testimonials__layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 48px;
  align-items: start;
}

.testimonials__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonials__aside .section__header--apollo {
  margin-bottom: 0;
}

.testimonials__intro {
  font-size: 0.95rem;
  color: var(--body-text);
  line-height: 1.7;
  margin: 0;
}

.testimonials__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.testimonials__score {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #dce6ef 0%, #cfd9e4 100%);
  border: 1px solid rgba(26, 107, 158, 0.18);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.testimonials__score-num {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1;
  flex-shrink: 0;
}

.testimonials__score-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.testimonials__score-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 2px;
  line-height: 1.2;
}

.testimonials__score-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.testimonials__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: auto;
  padding-top: 8px;
}

.testimonials__slider {
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 0;
  position: relative;
  align-self: stretch;
  padding: 12px;
  box-sizing: border-box;
  background: linear-gradient(160deg, #e4ebf2 0%, #d8e2ec 100%);
  border: 1px solid rgba(26, 107, 158, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.testimonials__slider::before {
  content: '\201C';
  position: absolute;
  top: 6px;
  right: 18px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.5rem;
  line-height: 1;
  color:goldenrod;
  pointer-events: none;
  z-index: 2;
}

.testimonials__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.testi-card {
  min-width: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(145deg, #f2f6fa 0%, #e8eef4 100%);
  border: 1px solid rgba(26, 107, 158, 0.16);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  box-shadow: 0 4px 20px rgba(13, 58, 92, 0.1);
  position: relative;
}

.testi-card__stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testi-card p {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--blue-900);
  line-height: 1.65;
  margin-bottom: 16px;
  font-family: var(--font-head);
  max-width: 92%;
}

.testi-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid rgba(26, 107, 158, 0.14);
}

.testi-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testi-card__author strong {
  display: block;
  color: var(--dark);
  font-size: 0.98rem;
}

.testi-card__author span {
  font-size: 0.8rem;
  color: var(--body-text);
}

.testimonials__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  padding: 0;
}

.testi-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}

.testimonials__nav {
  display: flex;
  gap: 10px;
}

.testi-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.testi-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

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

  .testimonials__controls {
    margin-top: 0;
    justify-content: space-between;
    width: 100%;
  }

  .testimonials__panel {
    order: 2;
  }

  .testimonials__aside {
    order: 1;
  }

  .testimonials__slider::before {
    font-size: 3.5rem;
    right: 12px;
  }

  .testi-card {
    padding: 22px 20px 18px;
  }

  .testimonials__slider {
    padding: 10px;
  }

  .testi-card p {
    font-size: 0.98rem;
    max-width: 100%;
  }
}

/* ---------- CONTACT ---------- */
.contact { background: var(--light-bg); }

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px 56px;
  align-items: stretch;
}

.contact__aside {
  min-width: 0;
  width: 100%;
}

.contact__heading {
  max-width: 640px;
}

.contact__heading .section__title {
  margin-bottom: 0;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item__icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item--address .contact-item__icon {
  background: rgba(220, 38, 38, 0.11);
  border: 1.5px solid rgba(185, 28, 28, 0.38);
}

.contact-item--address .contact-item__icon svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(185, 28, 28, 0.3));
}

.contact-item strong { display: block; color: var(--dark); font-size: 0.9rem; margin-bottom: 4px; }
.contact-item span { font-size: 0.88rem; color: var(--body-text); line-height: 1.6; }
.contact-item .address-block p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--body-text);
  line-height: 1.6;
}
.contact-item .address-block p + p { margin-top: 0.2em; }
.contact-item a { font-size: 0.88rem; color: var(--primary); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

/* Map stretches to match the left column row height on wide layouts */
.contact__map {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  width: 100%;
  min-height: 0;
  align-self: stretch;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(13, 58, 92, 0.10);
}

.contact__map iframe {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.contact__map--interactive {
  position: relative;
  min-height: 320px;
  background: #e8eaed;
}

.clinic-location-map {
  width: 100%;
  height: 100%;
  min-height: 320px;
  z-index: 1;
}

.clinic-location-map .leaflet-control-zoom {
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.clinic-map-pin {
  background: transparent;
  border: none;
}

.clinic-map-pin__bubble {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  background: #ea4335;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.clinic-map-pin__dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: #c5221f;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.clinic-map-pin--origin {
  width: 88px;
  height: 40px;
}

.clinic-map-pin__origin-label {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  padding: 3px 8px;
  background: #156C8E;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(21, 108, 142, 0.35);
}

.clinic-map-pin__origin-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #156C8E;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.clinic-place-card {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 500;
  max-width: min(320px, calc(100% - 24px));
  pointer-events: auto;
}

.clinic-place-card__inner {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 14px 16px 12px;
}

.clinic-place-card__eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5f6368;
}

.clinic-place-card__title {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.clinic-place-card__title-navy {
  color: var(--blue-900);
}

.clinic-place-card__title-orange {
  color: #e87820;
}

.clinic-place-card__subtitle {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #3c4043;
}

.clinic-place-card__address {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #5f6368;
}

.clinic-place-card__address p {
  margin: 0;
}

.clinic-place-card__address p + p {
  margin-top: 0.2em;
}

.clinic-place-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clinic-place-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.clinic-place-card__btn--directions {
  background: #1a73e8;
  color: #fff;
}

.clinic-place-card__btn--directions:hover {
  background: #1765cc;
  color: #fff;
}

.clinic-place-card__btn--maps {
  background: #fff;
  color: #1a73e8;
  border-color: #dadce0;
}

.clinic-place-card__btn--maps:hover {
  background: #f8f9fa;
  color: #174ea6;
}

@media (max-width: 640px) {
  .clinic-place-card {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 8px;
    max-width: none;
  }

  .clinic-place-card__inner {
    padding: 12px 14px 10px;
  }

  .clinic-place-card__title {
    font-size: 0.92rem;
  }

  .clinic-place-card__subtitle {
    font-size: 0.74rem;
  }
}

/* Locality pages + optional outline map links */
.btn--map-directions {
  border-color: #dc2626;
  color: #b91c1c;
}

.btn--map-directions svg {
  stroke: #dc2626;
}

.btn--map-directions:hover {
  background: rgba(220, 38, 38, 0.06);
  border-color: #b91c1c;
  color: #991b1b;
}

@media (min-width: 901px) {
  /* Slightly shorter than the left column; keeps top alignment */
  .contact__map {
    align-self: start;
    height: 90%;
    min-height: 260px;
    max-height: 500px;
    margin-top: 20px;
  }
}

/* ---------- AREAS WE SERVE ---------- */
/* ============ AREAS WE SERVE v3 (champagne theme) ============
   Soft champagne/ivory background — premium and easy on the eyes.
   Navy is the primary text colour; gold returns as an *accent* on
   borders and badges where it has the biggest visual impact.
   ============================================================ */
.areas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(13, 58, 92, 0.07) 0%, transparent 55%),
    linear-gradient(135deg, #fdf8ec 0%, #f5e9cb 55%, #ecdba6 100%);
  color: var(--blue-900);
}

/* Soft decorative orbs — warm gold + cool navy hint */
.areas::before,
.areas::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.areas::before {
  top: -180px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.18) 0%, transparent 70%);
}
.areas::after {
  bottom: -200px; left: -160px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(13, 58, 92, 0.08) 0%, transparent 70%);
}

.areas > .container { position: relative; z-index: 1; }

/* Section header — navy text with gold tag accent */
.areas .section__tag {
  color: var(--primary-dark);
  border-left-color: var(--gold);
  background: rgba(255, 255, 255, 0.65);
}
.areas .section__title {
  color: var(--blue-900);
}
.areas .section__title::after { background: var(--gold); }
.areas .section__desc {
  color: rgba(13, 36, 56, 0.78);
}

/* New asymmetric layout: featured card spans full width on top row,
   other two share row below. On desktop = 1 big card + 2 small in a 12-col grid. */
/* ============ AREAS WE SERVE v4 — Tier Cards ============
   Three equal cards, each representing a distance tier from the clinic.
   Color-coded top accent bar + distance badge make the tiers instantly
   scannable. On tablet → 2-up, primary spans full width. On mobile → stacked.
   ========================================================= */
.areas__groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.area-group {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(13, 58, 92, 0.08);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 10px 28px rgba(13, 58, 92, 0.10), 0 2px 6px rgba(13, 58, 92, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.area-group:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(13, 58, 92, 0.16), 0 4px 10px rgba(13, 58, 92, 0.08);
}

/* Top accent bar — color identifies the tier */
.area-group::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--primary-dark);
}
.area-group--primary::after {
  background: linear-gradient(90deg, var(--gold) 0%, #e6c050 100%);
}
.area-group--secondary::after {
  background: var(--primary-dark);
}
.area-group--tertiary::after {
  background: var(--accent);
}

/* Override old "★ Closest to clinic" pseudo-element from v3 (no longer needed) */
.area-group--primary::before { content: none; }

/* Override old primary-card width/border so it sits as a normal equal column */
.area-group--primary {
  grid-column: auto;
  background: #ffffff;
  border: 1px solid rgba(13, 58, 92, 0.08);
  border-left: 1px solid rgba(13, 58, 92, 0.08);
}

/* Distance badge — pill at the top of the card */
.area-group__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-pale);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 24px 24px 12px;
  align-self: flex-start;
  width: fit-content;
}
.area-group--primary .area-group__badge {
  color: #8a6a0a;
  background: #fdf3d1;
}
.area-group--tertiary .area-group__badge {
  color: var(--accent);
  background: rgba(45, 126, 200, 0.10);
}

/* Card heading */
.area-group h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0 24px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(13, 58, 92, 0.08);
  line-height: 1.3;
}
.area-group--primary h3 {
  color: var(--blue-900);
  border-bottom-color: rgba(201, 162, 39, 0.25);
}
.area-group--tertiary h3 {
  border-bottom-color: rgba(45, 126, 200, 0.18);
}

/* Chip list */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0 24px 24px;
  margin: 0;
  flex: 1;
  align-content: flex-start;
}

.area-chips li a {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--primary-pale);
  color: var(--primary-dark);
  border-radius: 20px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.area-chips li a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.area-group--primary .area-chips li a {
  background: #fdf3d1;
  color: #8a6a0a;
}
.area-group--primary .area-chips li a:hover {
  background: var(--gold);
  color: var(--white);
}

.area-group--tertiary .area-chips li a {
  background: rgba(45, 126, 200, 0.10);
  color: var(--accent);
}
.area-group--tertiary .area-chips li a:hover {
  background: var(--accent);
  color: var(--white);
}

/* Bottom note */
.areas__note {
  margin-top: 32px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 162, 39, 0.30);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  color: var(--blue-900);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.92rem;
  line-height: 1.7;
}
.areas__note strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Responsive: tablet = 2-up (primary spans full width), mobile = stacked */
@media (max-width: 1024px) {
  .areas__groups { grid-template-columns: repeat(2, 1fr); }
  .area-group--primary { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .areas__groups { grid-template-columns: 1fr; gap: 16px; }
  .area-group--primary { grid-column: auto; }
}

/* ---------- DIRECTIONS ---------- */
/* ============ DIRECTIONS — COMPACT GRID ============
   Clean 3-col grid of compact cards. Soft gradient backdrop +
   subtle GPS-pulse marker in the corner (gold pin broadcasting
   pulse rings outward, like Google Maps showing a destination).
   The pulse is the only animation — minimal, thematic, premium.
   =================================================== */
.directions {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  color: var(--blue-900);
}

/* Soft gradient depth — gold + navy corner glows */
.directions::before {
  content: none;
}

.directions .section__tag {
  color: var(--primary-dark);
  border-left-color: var(--gold);
  background: rgba(255, 255, 255, 0.65);
}

.directions .section__title {
  color: var(--blue-900);
}

.directions .section__title::after {
  background: var(--gold);
}

.directions .section__desc {
  color: rgba(13, 36, 56, 0.78);
}

.directions > .container {
  position: relative;
  z-index: 1;
}

/* --- GPS destination pulse markers — 3 across the section ---
   Multiple "beacons" suggest multiple neighbourhoods being served.
   Each marker pulses on the same 3.2s cycle but with offset start
   times so they never pulse in unison (looks organic, not robotic). */
.directions__pulse {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 0;
  pointer-events: none;
}

/* Marker positions */
.directions__pulse--tr { top: 56px;  right: 6%; }      /* top-right (primary, gold) */
.directions__pulse--ml { top: 45%;   left: 4%; }       /* middle-left (navy) */
.directions__pulse--br { bottom: 80px; right: 10%; }   /* bottom-right (gold, small) */

.directions__pulse-pin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.55);
  z-index: 2;
}

.directions__pulse--ml .directions__pulse-pin {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(13, 58, 92, 0.55);
}

.directions__pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: gps-pulse 3.2s ease-out infinite;
}

.directions__pulse--ml .directions__pulse-ring {
  border-color: var(--primary);
}

/* Stagger rings within each pulse so they fan out continuously */
.directions__pulse-ring:nth-of-type(2) { animation-delay: 1.05s; }
.directions__pulse-ring:nth-of-type(3) { animation-delay: 2.1s; }

/* Stagger different pulse markers so they don't sync up across the section */
.directions__pulse--ml .directions__pulse-ring                       { animation-delay: 0.4s; }
.directions__pulse--ml .directions__pulse-ring:nth-of-type(2)        { animation-delay: 1.45s; }
.directions__pulse--ml .directions__pulse-ring:nth-of-type(3)        { animation-delay: 2.5s; }

.directions__pulse--br .directions__pulse-ring                       { animation-delay: 0.8s; }
.directions__pulse--br .directions__pulse-ring:nth-of-type(2)        { animation-delay: 1.85s; }
.directions__pulse--br .directions__pulse-ring:nth-of-type(3)        { animation-delay: 2.9s; }

@keyframes gps-pulse {
  0%   { transform: scale(1);  opacity: 0.6;  border-width: 2px; }
  80%  { opacity: 0.08; }
  100% { transform: scale(8);  opacity: 0;    border-width: 1px; }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .directions__pulse-ring { animation: none; opacity: 0.20; }
}

/* Tablet — tuck markers tighter so they don't crowd the cards */
@media (max-width: 900px) {
  .directions__pulse--tr { top: 48px; right: 16px; }
  .directions__pulse--ml { top: 40%;  left: 12px; }
  .directions__pulse--br { bottom: 60px; right: 16px; }
}

/* Mobile — hide the middle-left + bottom-right pulses to avoid clutter
   on small screens, keep only the top-right marker */
@media (max-width: 640px) {
  .directions__pulse { width: 12px; height: 12px; }
  .directions__pulse--ml,
  .directions__pulse--br { display: none; }
}

.directions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.direction-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(13, 58, 92, 0.10);
  border-radius: 12px;
  padding: 18px 20px 16px 22px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* Slim accent bar on the left edge */
.direction-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  transition: background var(--transition);
}

.direction-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 58, 92, 0.08);
}
.direction-card:hover::before { background: var(--gold); }

.direction-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.direction-card h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0;
  line-height: 1.3;
}

/* Distance/time pill — compact gold badge */
.direction-card__meta {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a6a0a;
  background: rgba(201, 162, 39, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.direction-card p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0 0 8px;
}

.direction-card__link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

.direction-card__link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.directions__cta {
  margin-top: 20px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 58, 92, 0.08);
  border-radius: 12px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

@media (max-width: 1000px) {
  .directions__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .directions__grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- LOCALITY PAGES ---------- */

/* Floating "Back" pill — appears at the top-right corner of the viewport on
   every locality page. Fixed-positioned so it stays visible while the visitor
   scrolls. z-index 1100 puts it ABOVE the .site-header (z-index 1000) so it
   can never be hidden behind the header even if their boxes overlap slightly
   on small screens. Honors iOS safe-area insets so it clears the notch /
   Dynamic Island. Touch target meets Apple HIG 44pt minimum. */
.back-fab {
  position: fixed;
  top: calc(var(--site-header-h) + env(safe-area-inset-top, 0px) + 10px);
  right: max(20px, env(safe-area-inset-right, 20px));
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px 11px 16px;
  min-height: 44px;
  background: #e87820;
  border: 1.5px solid #e87820;
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px rgba(232, 120, 32, 0.30);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.back-fab:hover,
.back-fab:focus-visible {
  background: #c9651a;
  border-color: #c9651a;
  color: #ffffff;
  transform: translateX(-3px);
  box-shadow: 0 12px 28px rgba(232, 120, 32, 0.40);
  outline: none;
}
.back-fab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.back-fab:hover svg,
.back-fab:focus-visible svg { transform: translateX(-3px); }

@media (max-width: 768px) {
  .back-fab {
    /* Use the same --site-header-h variable so the button stays in sync with
       whatever the body padding-top is, regardless of viewport width. */
    top: calc(var(--site-header-h) + env(safe-area-inset-top, 0px) + 8px);
    right: max(14px, env(safe-area-inset-right, 14px));
    padding: 10px 16px 10px 12px;
    font-size: 0.85rem;
  }
  .back-fab svg { width: 14px; height: 14px; }
}

.locality-hero {
  background: linear-gradient(135deg, var(--primary-pale) 0%, var(--primary-light) 100%);
  padding: 80px 0 60px;
  margin-top: 0;
}

.locality-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.locality-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.locality-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.locality-heading--bold {
  font-weight: 700;
}

.locality-hero h1 em {
  color: #e87820;
  font-style: normal;
}

.locality-hero__lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}

.locality-hero__ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.locality-section {
  padding: 56px 0;
}

.locality-section--alt {
  background: var(--primary-pale);
}

.locality-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--primary-dark);
  margin-bottom: 18px;
  text-align: center;
}

.locality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.locality-grid__item {
  background: var(--white);
  border-radius: 12px;
  padding: 22px 22px;
  border: 1px solid var(--primary-mid);
}

.locality-grid__item h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.locality-grid__item p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

.locality-direction {
  max-width: 820px;
  margin: 28px auto 0;
  padding: 24px 28px;
  background: var(--white);
  border-left: 4px solid #e87820;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 18px rgba(13,58,92,0.06);
}

.locality-direction h3 {
  font-family: var(--font-head);
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.locality-direction p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
}

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

/* ---------- FAQ ---------- */
/* Same treatment as .about: photo in ::before + soft angled white veil in ::after */
.faq {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/faq-bg-question.png') center / cover no-repeat;
  z-index: 0;
}

.faq::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.62) 45%,
    rgba(232, 244, 252, 0.58) 100%
  );
  z-index: 1;
}

.faq > .container {
  position: relative;
  z-index: 2;
}

/* Match About section header contrast (clear type on the light veil) */
.faq .section__header--apollo .section__tag {
  color: var(--blue-900);
  border-left-color: var(--primary-dark);
}

.faq .section__header--apollo .section__title {
  color: var(--blue-900);
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.faq .section__header--apollo .section__desc {
  color: #152a3d;
  font-weight: 500;
  line-height: 1.75;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}

/* ============ FAQ LAYOUT v2 ============
   Left: compact promo card (image + heading + WhatsApp CTA) — content-centered, no sticky
   Right: 2-column FAQ accordion grid so heights match
   ======================================== */
.faq__container {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

/* Promo card */
.faq__visual {
  background: linear-gradient(160deg, var(--primary-pale) 0%, #fff 100%);
  border: 1px solid var(--primary-light);
  border-radius: 20px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(13, 58, 92, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.faq__visual img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(13, 58, 92, 0.18);
  display: block;
  background: var(--primary-pale);
  border: 4px solid #fff;
}

.faq__visual-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.faq__visual-caption h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.2;
}

.faq__visual-caption p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
  max-width: 240px;
}

.faq__visual-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #25D366;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq__visual-cta:hover {
  transform: translateY(-2px);
  background: #20bd5a;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* 2-column accordion grid (was 1-column in v1) */
.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 0;
  align-content: start;
}

@media (max-width: 1024px) {
  .faq__container {
    grid-template-columns: minmax(240px, 280px) 1fr;
    gap: 32px;
  }
  .faq__visual img { width: 150px; height: 150px; }
}

@media (max-width: 820px) {
  .faq__container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .faq__visual {
    max-width: 480px;
    margin: 0 auto;
    flex-direction: row;
    text-align: left;
    padding: 20px;
    gap: 20px;
  }
  .faq__visual img { width: 110px; height: 110px; flex-shrink: 0; border-width: 3px; }
  .faq__visual-caption { align-items: flex-start; }
  .faq__visual-caption p { max-width: none; }
  .faq__visual-cta { width: auto; padding: 10px 16px; font-size: 0.88rem; }
  .faq__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .faq__visual {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 24px 20px;
  }
  .faq__visual img { width: 140px; height: 140px; }
  .faq__visual-caption { align-items: center; }
  .faq__visual-cta { width: 100%; }
  .faq__grid { grid-template-columns: 1fr; }
}

.faq__item {
  background: var(--primary-pale);
  border: 1px solid var(--primary-mid);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq__item:hover {
  box-shadow: 0 4px 20px rgba(13,58,92,0.1);
}

.faq__item[open] {
  border-color: var(--primary);
}

.faq__item summary {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  padding: 0 20px 18px;
  margin: 0;
}

/* ============ CLINIC TECH — BENTO GRID ============
   4-col asymmetric grid:
   - Featured "Gold Provider" hero tile spans 2x2 (left, dominant)
   - Two wide cards (2x1) on the right column for trust signals
   - Two compact cards (1x1) for at-a-glance equipment
   - One wide card (2x1) at the bottom-right for closing trust statement
   Pattern used by Apple, Stripe, Linear product pages.
   Plus: animated gradient-mesh background (3 drifting orbs) for
   premium tech feel — same technique as Stripe/Linear marketing pages.
   ================================================== */
.clinic-tech {
  background: var(--primary-pale);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Floating gradient orbs — gold (premium) + cyan-accent (tech).
   Drift slowly in different patterns so they never sync up.
   Pure radial-gradient (no blur filter) = vector-sharp soft edges.
   Browsers render gradients mathematically, so they're crisp at any zoom. */
.clinic-tech::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(201, 162, 39, 0.58) 0%,
    rgba(201, 162, 39, 0.42) 20%,
    rgba(201, 162, 39, 0.22) 45%,
    rgba(201, 162, 39, 0.06) 70%,
    transparent 85%);
  top: -200px;
  left: -200px;
  z-index: 0;
  pointer-events: none;
  animation: tech-orb-drift-1 20s ease-in-out infinite;
  will-change: transform;
}

.clinic-tech::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(45, 126, 200, 0.48) 0%,
    rgba(45, 126, 200, 0.34) 20%,
    rgba(45, 126, 200, 0.18) 45%,
    rgba(45, 126, 200, 0.05) 70%,
    transparent 85%);
  bottom: -240px;
  right: -240px;
  z-index: 0;
  pointer-events: none;
  animation: tech-orb-drift-2 26s ease-in-out infinite;
  will-change: transform;
}

@keyframes tech-orb-drift-1 {
  0%, 100% { transform: translate(0, 0)       scale(1);    }
  33%      { transform: translate(80px, 60px) scale(1.08); }
  66%      { transform: translate(40px, 130px) scale(0.95);}
}

@keyframes tech-orb-drift-2 {
  0%, 100% { transform: translate(0, 0)        scale(1);    }
  33%      { transform: translate(-70px, -40px) scale(0.94);}
  66%      { transform: translate(-120px, -80px) scale(1.10);}
}

/* Container content sits above the orbs */
.clinic-tech > .container {
  position: relative;
  z-index: 1;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .clinic-tech::before,
  .clinic-tech::after { animation: none; }
}

.clinic-tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
  margin-top: 40px;
}

.tech-card {
  position: relative;
  display: block;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 24px rgba(37, 59, 82, 0.42);
}

.tech-card:hover {
  box-shadow: 0 6px 24px rgba(37, 59, 82, 0.42);
  transform: translateY(-4px);
}

/* --- Tile sizes --- */
.tech-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 162, 39, 0.14) 0%, transparent 45%),
    linear-gradient(135deg, #fffaee 0%, #ffffff 30%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-left: 5px solid var(--gold);
  box-shadow: 0 6px 24px rgba(37, 59, 82, 0.42);
  justify-content: flex-start;
  height: 70%;
}

.tech-card--wide {
  grid-column: span 2;
}

/* --- Ribbon (Gold Provider) --- */
.tech-card__ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.45);
}

/* --- Icon block --- */
.tech-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.tech-card__icon--gold {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fdf3d1 0%, #fffaee 100%);
  color: var(--gold);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.25);
}

.tech-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
}

.tech-card--featured h3 {
  font-size: 1.35rem;
  color: var(--blue-900);
  margin-top: 4px;
}

.tech-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

.tech-card--featured p {
  font-size: 0.96rem;
  line-height: 1.7;
}

/* --- Featured card bullet list --- */
.tech-card__bullets {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-card__bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-900);
  line-height: 1.5;
}

.tech-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--gold);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M13.485 4.515a1 1 0 010 1.414l-6 6a1 1 0 01-1.414 0l-3-3a1 1 0 011.414-1.414L6.778 9.808l5.293-5.293a1 1 0 011.414 0z'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .clinic-tech__grid { grid-template-columns: repeat(2, 1fr); }
  .tech-card--featured,
  .tech-card--wide { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 580px) {
  .clinic-tech__grid { grid-template-columns: 1fr; gap: 16px; }
  .tech-card--featured,
  .tech-card--wide { grid-column: span 1; }
  .tech-card--featured { padding: 26px 22px; }
  .tech-card--featured h3 { font-size: 1.2rem; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); }

.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 20px;
  padding: 18px 24px 14px;
}

.nav__logo--footer {
  margin-bottom: 10px;
}

.nav__logo--footer .logo-img {
  height: 36px;
  max-width: 48px;
}

.nav__logo--footer .logo-wordmark {
  font-size: 1.15rem;
}

.footer__brand p {
  font-size: 0.82rem;
  margin: 8px 0 10px;
  line-height: 1.55;
}

.footer__socials { display: flex; gap: 8px; }

.footer__socials a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.footer__socials a:hover { background: var(--primary); color: var(--white); }

.footer__links h4,
.footer__contact h4 {
  color: #e87820;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.footer__links ul { display: flex; flex-direction: column; gap: 2px; }

.footer__links a {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  margin-bottom: 3px;
  line-height: 1.35;
  /* Prevent long emails / addresses from overflowing on narrow phones */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer__contact .footer__address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}

.footer__contact .address-block--footer p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact .address-block--footer p + p {
  margin-top: 0.2em;
}

.footer__contact p:last-child {
  margin-bottom: 0;
}

.footer__contact svg { flex-shrink: 0; margin-top: 2px; opacity: 0.7; }

.footer__contact a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__contact a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 6px 24px;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p { font-size: 0.78rem; margin: 0; }
.footer__bottom a { color: var(--primary); }
.footer__bottom a:hover { text-decoration: underline; }

/* ============ WHATSAPP QR MODAL ============
   On desktop, clicking a WhatsApp link shows a modal with a QR code.
   The patient scans it with their phone's camera → WhatsApp opens
   on their phone with the prefilled message → message reaches the
   doctor from the patient's real phone number (not from a shared
   WhatsApp Web session on the desktop).
   Mobile users skip the modal entirely (their phone has WhatsApp).
   =========================================== */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  padding: 24px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Dim backdrop lives directly on the fixed wrapper, so it covers the full
     viewport and stays locked while the inner card scrolls (instead of being
     a child that could leave gaps at the bottom). */
  background: rgba(13, 36, 56, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.25s ease, visibility 0.25s;
}
.wa-modal[aria-hidden="false"] { visibility: visible; opacity: 1; }

/* Legacy overlay div is no longer needed — backdrop is on .wa-modal itself */
.wa-modal__overlay { display: none; }

.wa-modal__card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  max-width: 420px;
  width: 100%;
  margin: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wa-modal[aria-hidden="false"] .wa-modal__card {
  transform: translateY(0) scale(1);
}

/* Prominent, always-visible close button at top-right of the card */
.wa-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue-900);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  z-index: 2;
}
.wa-modal__close:hover,
.wa-modal__close:focus-visible {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #ffffff;
  transform: rotate(90deg);
  outline: none;
}

.wa-modal__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.wa-modal__icon svg { width: 24px; height: 24px; }

.wa-modal__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0 0 4px;
}

.wa-modal__subtitle {
  font-size: 0.86rem;
  color: var(--text-mid);
  margin: 0 0 14px;
  line-height: 1.45;
}

.wa-modal__qr {
  display: inline-block;
  padding: 8px;
  background: #ffffff;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  margin-bottom: 12px;
}
.wa-modal__qr img {
  display: block;
  width: 190px;
  height: 190px;
}

.wa-modal__steps {
  text-align: left;
  margin: 0 0 12px;
  padding: 0 0 0 22px;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.wa-modal__steps li { margin-bottom: 2px; }
.wa-modal__steps strong { color: var(--blue-900); }

/* Short hint shown below the QR — explains when the QR is useful */
.wa-modal__hint {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #f7fafc;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.4;
}
.wa-modal__hint strong { color: var(--blue-900); }

.wa-modal__divider {
  position: relative;
  margin: 10px 0 10px;
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
}
.wa-modal__divider::before,
.wa-modal__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: #eaeaea;
}
.wa-modal__divider::before { left: 0; }
.wa-modal__divider::after  { right: 0; }

.wa-modal__direct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #25D366;
  border: 1.5px solid #25D366;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  margin-bottom: 8px;
}
.wa-modal__direct:hover {
  background: #25D366;
  color: white;
  transform: translateY(-1px);
}

.wa-modal__phone {
  font-size: 0.8rem;
  color: var(--blue-900);
  font-weight: 600;
  margin: 4px 0 0;
  letter-spacing: 0.02em;
}

body.wa-modal-open { overflow: hidden; }

/* Phone tuning — the QR modal shows on mobile too. The QR is useful if the
   visitor wants to scan from a second device (tablet, family member's phone)
   and the "Open WhatsApp on this device" button is the one-tap path. */
@media (max-width: 480px) {
  .wa-modal { padding: 16px 10px; }
  .wa-modal__card { padding: 26px 20px 20px; border-radius: 16px; }
  .wa-modal__close { width: 38px; height: 38px; top: 8px; right: 8px; font-size: 1.4rem; }
  .wa-modal__icon { width: 44px; height: 44px; margin-bottom: 8px; }
  .wa-modal__icon svg { width: 22px; height: 22px; }
  .wa-modal__title { font-size: 1.1rem; }
  .wa-modal__subtitle { font-size: 0.82rem; margin-bottom: 12px; }
  .wa-modal__qr { padding: 6px; margin-bottom: 10px; }
  .wa-modal__qr img { width: 168px; height: 168px; }
  .wa-modal__hint { font-size: 0.74rem; padding: 6px 10px; margin-bottom: 10px; }
  .wa-modal__direct {
    /* On mobile this is the PRIMARY action — fill it green so it's obvious */
    background: #25D366;
    color: #ffffff;
    padding: 11px 22px;
    font-size: 0.9rem;
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }
  .wa-modal__direct:hover { background: #1fb855; }
  .wa-modal__phone { font-size: 0.78rem; }
}

/* ============ BOOK APPOINTMENT MODAL ============ */
.appt-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  padding: max(10px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  background: rgba(13, 36, 56, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 0.25s ease, visibility 0.25s;
}

.appt-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.appt-modal__card {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background-color: #d8e4ec;
  border-radius: 20px;
  padding: clamp(16px, 3.8vw, 24px) clamp(14px, 4vw, 22px) clamp(14px, 3.2vw, 20px);
  max-width: 440px;
  width: 100%;
  max-height: calc(100vh - 20px);
  max-height: min(calc(100dvh - 20px), calc(100svh - 20px));
  margin: auto;
  flex-shrink: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Full-card background photo (cover) — light veil keeps title & labels readable */
.appt-modal__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--blue-900);
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.5) 38%,
      rgba(252, 252, 253, 0.9) 100%
    ),
    url('/images/preventive-care.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.appt-modal__card > * {
  position: relative;
  z-index: 1;
}

.appt-modal[aria-hidden="false"] .appt-modal__card {
  transform: translateY(0) scale(1);
}

.appt-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue-900);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  z-index: 10;
}

.appt-modal__close:hover,
.appt-modal__close:focus-visible {
  background: #e87820;
  border-color: #e87820;
  color: #ffffff;
  transform: rotate(90deg);
  outline: none;
}

.appt-modal__title {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 700;
  margin: 0 0 clamp(6px, 2vw, 10px);
  padding-top: 2px;
  padding-right: 28px;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 2px 10px rgba(255, 255, 255, 0.55);
}

.appt-modal__title-accent {
  color: var(--blue-900);
}

.appt-modal__title-rest {
  color: #e87820;
}

/* Two-tone brand strip — navy → orange (matches reversed title order) */
.appt-modal__color-bar {
  width: min(100%, 220px);
  height: 4px;
  margin: 0 auto clamp(10px, 3vw, 16px);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.appt-modal__color-bar::before,
.appt-modal__color-bar::after {
  content: '';
  flex: 1;
  min-height: 100%;
}

.appt-modal__color-bar::before {
  background: var(--blue-900);
}

.appt-modal__color-bar::after {
  background: #e87820;
}

.appt-modal__error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 8px;
  margin: 0 0 clamp(8px, 2vw, 12px);
  line-height: 1.35;
}

.appt-modal__form {
  text-align: left;
}

.appt-modal__label {
  display: block;
  font-size: clamp(0.78rem, 2.8vw, 0.86rem);
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 2px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.45);
}

.appt-modal__label span {
  color: #e87820;
}

.appt-modal__input,
.appt-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: clamp(0.82rem, 2.9vw, 0.9rem);
  padding: 8px 10px;
  margin-bottom: clamp(7px, 2vw, 10px);
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--blue-900);
  box-shadow: 0 1px 4px rgba(13, 36, 56, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.appt-modal__input:focus,
.appt-modal__textarea:focus {
  outline: none;
  border-color: #e87820;
  box-shadow: 0 0 0 3px rgba(232, 120, 32, 0.28);
}

.appt-modal__textarea {
  resize: vertical;
  min-height: 56px;
  max-height: 100px;
  line-height: 1.35;
  vertical-align: top;
}

.appt-modal__submit {
  width: 100%;
  margin-top: 2px;
  padding: 10px 14px;
  font-size: clamp(0.86rem, 2.9vw, 0.92rem);
  font-weight: 700;
  color: #fff;
  background: var(--blue-900);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  min-height: 44px;
}

.appt-modal__submit:hover,
.appt-modal__submit:focus-visible {
  background: var(--blue-800);
  outline: none;
}

.appt-modal__submit:active {
  transform: translateY(1px);
}

.appt-modal__call-hint {
  margin: clamp(8px, 2vw, 12px) 0 0;
  padding: 8px 10px;
  font-size: clamp(0.75rem, 2.8vw, 0.82rem);
  color: var(--text-mid);
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 1px 4px rgba(13, 36, 56, 0.06);
}

.appt-modal__call-link {
  color: var(--blue-900);
  font-weight: 700;
}

.appt-modal__call-link:focus-visible {
  outline: 2px solid #e87820;
  outline-offset: 2px;
}

body.appt-modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .appt-modal {
    align-items: center;
    padding: max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .appt-modal__card {
    border-radius: 16px;
    max-height: calc(100vh - 16px);
    max-height: min(calc(100dvh - 16px), calc(100svh - 16px));
  }

  .appt-modal__title {
    padding-right: 32px;
  }

  .appt-modal__color-bar {
    width: min(100%, 180px);
  }
}

/* Short viewports (e.g. phones landscape, split-screen): keep popup on-screen */
@media (max-height: 720px) {
  .appt-modal__card {
    padding: 12px 14px 10px;
    border-radius: 14px;
  }

  .appt-modal__close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }

  .appt-modal__textarea {
    min-height: 48px;
    max-height: 82px;
    margin-bottom: 6px;
  }

  .appt-modal__input,
  .appt-modal__textarea {
    margin-bottom: 6px;
    padding: 7px 9px;
  }

  .appt-modal__call-hint {
    margin-top: 6px;
    padding: 6px 8px;
  }
}

/* ---------- FLOATING WHATSAPP ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 60px; height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: all var(--transition);
  animation: pulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
  animation: none;
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 72px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--dark);
  border-right: none;
}

.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 36px rgba(37,211,102,0.7), 0 0 0 12px rgba(37,211,102,0.08); }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 100px; right: 28px;
  z-index: 998;
  width: 44px; height: 44px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer__container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__container { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero__subtitle { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { height: 280px; }

  .invisalign__container { grid-template-columns: 1fr; }
  .invisalign__visual { min-height: 260px; }

  .contact__container { grid-template-columns: 1fr; }
  .contact__map {
    margin-top: 24px;
    min-height: min(340px, 50vh);
  }
  .contact__map iframe {
    flex: none;
    min-height: min(340px, 50vh);
    height: min(340px, 50vh);
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .about.section { padding: 20px 0 36px; margin-top: -6px; }
  .gallery.section { padding: 40px 0 48px; }
  .gallery .section__header--apollo { margin-bottom: 24px; }
  .why.section { padding: 40px 0 48px; }
  .why .section__header--apollo { margin-bottom: 24px; }

  .nav { height: 64px; gap: 16px; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__logo:not(.nav__logo--footer) .logo-img { height: 48px; max-width: 62px; }
  .nav__logo:not(.nav__logo--footer) .logo-wordmark { font-size: 1.3rem; }
  .nav__logo--footer .logo-img { height: 32px; max-width: 42px; }
  .nav__logo--footer .logo-wordmark { font-size: 1rem; }

  .hero { padding-top: 0; }
  .hero__container { padding-top: 32px; padding-bottom: 48px; }
  .hero__title { font-size: 2.4rem; }
  .hero__actions { gap: 12px; }
  .hero__subtitle { font-size: 1rem; }

  .services__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .why__grid { grid-template-columns: 1fr; column-gap: 0; max-width: 640px; }

  .footer__container { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 20px 18px; }

  .testi-card { padding: 26px 24px 22px; }

  .invisalign__content .btn--lg { width: 100%; justify-content: center; text-align: center; white-space: normal; }

  .invisalign__gallery { max-width: 100%; }
  .hero__card--photo { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .about.section { padding: 16px 0 32px; margin-top: -4px; }
  .gallery.section { padding: 32px 0 40px; }
  .gallery .section__header--apollo { margin-bottom: 20px; }
  .why.section { padding: 32px 0 40px; }
  .why .section__header--apollo { margin-bottom: 20px; }

  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; max-width: 100%; }
  .why-card { padding: 22px 0; }
  .why-card__num { font-size: 1.45rem; }
  .hero__stats { flex-direction: column; gap: 16px; }
  .stat__divider { display: none; }
  .footer__container { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
  .testi-card { padding: 22px 18px 18px; }
  .testi-card p { font-size: 0.92rem; }

  .hero__title { font-size: 2rem; }
  .hero__badge { font-size: 0.75rem; padding: 6px 12px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .hero__visual { height: 220px; }
  .hero__card--main { width: 180px; padding: 28px 20px; }

    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    right: max(16px, env(safe-area-inset-right, 16px));
  }
  .back-to-top {
    bottom: max(88px, calc(68px + env(safe-area-inset-bottom, 0)));
    right: max(16px, env(safe-area-inset-right, 16px));
  }
}

@media (max-width: 360px) {
  .hero__title { font-size: 1.75rem; }
  .btn--lg { padding: 14px 20px; font-size: 0.95rem; }
  .section__title { font-size: 1.65rem; }
}

/* ---------- QUICK LINKS (Apollo homepage cards) ---------- */
.quick-links {
  background: var(--light-bg);
  padding: 0;
  margin-top: -1px;
}

.quick-links__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 16px;
  background: var(--white);
  border-right: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}

.quick-card:last-child { border-right: none; }

.quick-card:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.quick-card strong {
  font-size: 0.95rem;
  color: var(--dark);
}

.quick-card span:last-child {
  font-size: 0.8rem;
  color: var(--body-text);
}

.quick-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: #e87820;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-card--accent .quick-card__icon {
  background: var(--accent-light);
  color: #e87820;
}

.quick-card--accent:hover { background: var(--primary-light); }

/* ---------- ABOUT + STATS ---------- */
.about.section {
  padding: 24px 0 40px;
  margin-top: -8px;
}

.about.section + .services.section {
  padding-top: 48px;
}

/* ---------- GLOBAL: collapse double-stacked .section padding ----------
   Every .section has padding: 96px 0 by default, so two stacked sections
   produce 192px of dead space between them. This rule replaces that with
   a single 48px gap (24px from each side) for any two adjacent sections.
   Section-specific overrides (.about.section, .gallery.section, etc.)
   keep working because they have higher CSS specificity than .section
   alone, and same-or-higher specificity than this rule. */
.section + .section {
  padding-top: 24px;
}
.section:has(+ .section) {
  padding-bottom: 24px;
}

.about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/about-clinic-interior.png') center / cover no-repeat;
  z-index: 0;
}

.about::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.62) 45%,
    rgba(232, 244, 252, 0.58) 100%
  );
  z-index: 1;
}

.about__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.about__content.section__header--apollo { margin-bottom: 0; }

.about .section__tag {
  color: var(--blue-900);
  border-left-color: var(--primary-dark);
}

.about .section__title {
  color: var(--blue-900);
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.about .section__desc {
  color: #152a3d;
  font-weight: 500;
  line-height: 1.75;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}

.about .about__note {
  font-size: 0.92rem;
  color: #0f2438;
  font-weight: 500;
  margin: 16px 0 24px;
  padding-left: 14px;
  border-left: 3px solid var(--primary-dark);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65);
}

.about .btn--primary {
  background: #e87820;
  border-color: #e87820;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 120, 32, 0.35);
}

.about .btn--primary:hover {
  background: #c9651a;
  border-color: #c9651a;
  box-shadow: 0 8px 24px rgba(232, 120, 32, 0.40);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-self: center; /* vertically center the 4 boxes against the taller left column */
}

.stat-box {
  background: linear-gradient(145deg, var(--blue-800) 0%, var(--primary) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-box strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}

.stat-box span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.stat-box small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 6px;
}

.stat-box--accent {
  background: linear-gradient(145deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
}

/* ---------- FLOATING APPOINTMENT ---------- */
.appointment-float {
  position: fixed;
  bottom: 28px;
  right: 100px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(37,130,161,0.35);
  transition: all var(--transition);
}

.appointment-float:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.footer { border-top: 4px solid var(--primary); }

@media (max-width: 900px) {
  .quick-links__grid { grid-template-columns: 1fr 1fr; }
  .quick-card { border-bottom: 1px solid var(--border); }
  .quick-card:nth-child(2) { border-right: none; }
  .about__container { grid-template-columns: 1fr; }
  /* Collapse Appointment button to a compact circle on mobile so it stacks neatly above WhatsApp */
  .appointment-float { padding: 14px; border-radius: 50%; width: 52px; height: 52px; justify-content: center; }
  .appointment-float span { display: none; }
}

@media (max-width: 480px) {
  .quick-links__grid { grid-template-columns: 1fr; }
  .quick-card { border-right: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Touch-friendly tap targets (phones & tablets) */
@media (hover: none) and (pointer: coarse) {
  .nav__link,
  .nav__toggle,
  .btn,
  .testi-nav-btn,
  .testi-dot,
  .area-chips li a,
  .quick-card,
  .footer__socials a,
  .faq__item summary {
    min-height: 44px;
    min-width: 44px;
  }
  .nav__link,
  .area-chips li a,
  .faq__item summary {
    display: flex;
    align-items: center;
  }
  /* Disable hover-zoom effects on touch devices */
  .service-card:hover,
  .tech-card:hover,
  .direction-card:hover,
  .area-group:hover,
  .locality-grid__item:hover { transform: none; }
}

/* =====================================================
   MOBILE / iOS / ANDROID HARDENING (added 2026-05-20)
   ===================================================== */

/* Smooth scroll + remove iOS tap-highlight blue flash */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Allow zoom for accessibility, but prevent text-size auto-resize on iOS rotate */
html, body { -webkit-text-size-adjust: 100%; }

/* Remove 300ms tap-delay on all interactive elements */
a, button, [role="button"], input, label, select, summary, textarea {
  touch-action: manipulation;
}

/* Prevent iOS auto-zoom on form inputs (font-size must be >= 16px) */
input, select, textarea {
  font-size: 16px;
}

/* iOS Safari "100vh" bug fix — use 100dvh where supported */
@supports (height: 100dvh) {
  .hero-section,
  .hero { min-height: auto; }
}

/* Apple safe-area insets — top notch / Dynamic Island */
.site-header {
  padding-top: env(safe-area-inset-top, 0);
}
@supports (padding-top: env(safe-area-inset-top)) {
  body { padding-top: calc(var(--site-header-h) + env(safe-area-inset-top, 0)); }
}

/* Floating buttons: stacked stack with iOS safe-area awareness.
   Stacking order from bottom up: WhatsApp → Appointment → Back-to-Top.
   The right edge is shared so they line up vertically. */
.whatsapp-float,
.appointment-float,
.back-to-top {
  right: max(16px, calc(16px + env(safe-area-inset-right, 0px)));
}
.whatsapp-float   { bottom: max(20px,  calc(20px  + env(safe-area-inset-bottom, 0px))); }
.appointment-float { bottom: max(96px,  calc(96px  + env(safe-area-inset-bottom, 0px))); }
.back-to-top      { bottom: max(168px, calc(168px + env(safe-area-inset-bottom, 0px))); }

/* Mobile nav (≤768px) — compact centered sheet (desktop unchanged) */
@media (max-width: 768px) {
  /* Undo desktop grid constraints: menu must span viewport, not centred “auto” column */
  .nav > .nav__menu {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    right: auto;
    top: calc(var(--site-header-h) + env(safe-area-inset-top, 0px));
    bottom: auto;
    width: min(300px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    margin: 0;
    padding: 14px max(14px, env(safe-area-inset-left)) calc(26px + env(safe-area-inset-bottom, 0px))
      max(14px, env(safe-area-inset-right));
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 14px 48px rgba(13, 58, 92, 0.16);
    max-height: min(78dvh, calc(100dvh - var(--site-header-h) - env(safe-area-inset-top, 0px) - 12px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1002;
    transform: translate(-50%, -12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.26s ease,
      transform 0.26s ease,
      visibility 0.26s;
  }

  .nav__menu.open {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__menu > li {
    width: 100%;
  }

  .nav__menu .nav__link {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 10px;
    font-size: 1.03rem;
    color: var(--dark);
    border-bottom: 1px solid var(--primary-light);
    min-height: 52px;
    border-radius: 8px;
  }

  .nav__menu .nav__link::after {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Keep burger / close above any stray overlay quirks */
  .nav__toggle {
    position: relative;
    z-index: 1010;
  }
}

/* Locality-page hero scales for phones */
@media (max-width: 600px) {
  /* Extra top padding keeps the H1 below the floating Back pill at top-right */
  .locality-hero { padding: 56px 0 32px; }
  .locality-hero h1 { font-size: 1.55rem; line-height: 1.25; }
  .locality-hero__lead { font-size: 0.95rem; line-height: 1.65; }
  .locality-hero__crumb { font-size: 0.78rem; }
  .locality-hero__ctas { flex-direction: column; width: 100%; }
  .locality-hero__ctas .btn { width: 100%; justify-content: center; }
  .locality-section { padding: 36px 0; }
  .locality-section h2 { font-size: 1.3rem; }
  .locality-direction { padding: 18px 20px; }
}

/* Topbar — mid-size phones / tablets: one row, ends of line, no wrap */
@media (max-width: 768px) {
  .topbar { font-size: 0.78rem; }
  .topbar__inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    min-height: 36px;
  }
  /* Location: grows to fill the gap, ellipses if too long */
  .topbar__location {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar__location svg { flex-shrink: 0; color: #fca5a5; }
  .topbar__location > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  /* Links: stay on right edge, never shrink */
  .topbar__links {
    flex: 0 0 auto;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
  }
  .topbar__links a[href^="https"] { display: none; }
  .topbar__sep                    { display: none; }
  .topbar__links a[href^="tel"] {
    background: rgba(255,255,255,0.10);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.18);
    white-space: nowrap;
  }
}

/* Topbar — phones */
@media (max-width: 520px) {
  .topbar__inner { padding: 6px 12px; gap: 8px; }
  .topbar__location { font-size: 0.72rem; }
  .topbar__links a[href^="tel"] {
    font-size: 0.74rem;
    padding: 4px 10px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
}

/* Topbar — tiny phones (iPhone SE, very small Androids) */
@media (max-width: 380px) {
  .topbar__inner { padding: 5px 10px; gap: 6px; }
  .topbar__location { font-size: 0.68rem; }
  .topbar__links a[href^="tel"] { font-size: 0.7rem; padding: 4px 8px; }
}

/* Directions cards full-width on smallest phones */
@media (max-width: 420px) {
  .direction-card { padding: 18px 16px 16px; }
  .direction-card h3 { font-size: 0.95rem; }
  .direction-card p { font-size: 0.82rem; }
  .areas__note { padding: 16px 18px; font-size: 0.86rem; }
  .area-chips li a { font-size: 0.78rem; padding: 8px 12px; min-height: 36px; }
}

/* Floating buttons compact on small screens to avoid covering content.
   Note: .appointment-float is already collapsed to a 52×52 circle at <=900px
   (rule above). At <=480px we just keep that circle — do NOT add padding-based
   pill rules that would override the circle shape. */
@media (max-width: 480px) {
  .whatsapp-float { width: 52px; height: 52px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .whatsapp-float__tooltip { display: none; }
  .appointment-float {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    font-size: 0;
  }
  .appointment-float svg { margin: 0; }
  .back-to-top { width: 42px; height: 42px; }
}

/* Mobile Safari: avoid iframe horizontal scroll inside map */
iframe { max-width: 100%; }

/* Prevent layout jump while Google Maps iframe loads */
.contact__map,
.locality-section iframe { background: var(--primary-light); }

/* Honour user "Reduce Motion" preference (iOS + Android) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark-mode friendliness for theme-color bar (status bar) — content remains light */
@media (prefers-color-scheme: dark) {
  .topbar { background: linear-gradient(90deg, #061d31 0%, #0a2d4a 100%); }
}

/* PWA standalone-mode tweaks (when launched from home screen) */
@media all and (display-mode: standalone) {
  body { padding-top: calc(var(--site-header-h) + env(safe-area-inset-top, 24px)); }
  .topbar { padding-top: env(safe-area-inset-top, 0); }
}

/* Stop overscroll bounce on body but keep scroll containers smooth */
body { overscroll-behavior-y: contain; }
.nav__menu, .contact__map iframe { overscroll-behavior: contain; }



.tech-card__img {
  width: 85%;      /* Adjust size */
  height: 50%;     /* Adjust size */
  object-fit: cover;
  display: block;
  margin: 0 auto;
}





/* =========================
   SECTION
========================= */

.clinic-tech {
  padding: 80px 0;
  background: #f5f7fa;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: auto;
}

/* =========================
 HEADER
========================= */

.section__header {
  text-align: center;
  margin-bottom: 50px;
}


.section__tag {
  display: inline-block;
  background: #eaf4ff;
  color: #0066cc;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

.section__title {
  font-size: 42px;
  margin: 18px 0 10px;
  color: #1e293b;
}

.section__title span {
  color: #ff7a00;
}

.section__desc {
  max-width: 700px;
  margin: auto;
  color: #64748b;
  line-height: 1.7;
}

/* =========================
 GRID
========================= */

.clinic-tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =========================
 CARD
========================= */

.tech-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 6px 20px rgba(0,0,0,.08);

  transition: .3s ease;

  display: flex;
  flex-direction: column;

  height: 100%;
}

.tech-card:hover {
  transform: translateY(-6px);
}

/* =========================
 IMAGE
========================= */

.tech-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* =========================
 CONTENT
========================= */

.tech-card__content {
  padding: 18px;
  text-align: center;
}

.tech-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0f172a;
}

.tech-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
  font-size: 14px;
}

/* =========================
 GOLD PROVIDER
========================= */

.tech-card__ribbon {
  position: absolute;
  margin: 12px;

  background: #d4af37;
  color: #fff;

  padding: 6px 12px;

  border-radius: 20px;

  font-size: 12px;
  font-weight: 600;
}

.tech-card:first-child {
  position: relative;
  border: 2px solid #d4af37;
}

.tech-card__features {
  margin-top: 15px;
  color: #444;
  line-height: 1.9;
  font-size: 14px;
}

/* =========================
 TABLET
========================= */

@media (max-width: 992px) {

  .clinic-tech__grid {
      grid-template-columns: repeat(2, 1fr);
  }

}

/* =========================
 MOBILE
========================= */

@media (max-width: 768px) {

  .clinic-tech__grid {
      grid-template-columns: 1fr;
  }

  .section__title {
      font-size: 30px;
  }

  .tech-card__img {
      height: 200px;
  }

}




/* TECHNOLOGY SECTION BACKGROUND */

.clinic-tech {
  position: relative;
  overflow: hidden;

  background-image: url('/images/dental-tech-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
/* Animated circles */

.clinic-tech::before,
.clinic-tech::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(30, 136, 229, 0.08);
  animation: floatTech 12s ease-in-out infinite;
}

.clinic-tech::before {
  width: 400px;
  height: 400px;
  top: -150px;
  left: -120px;
}

.clinic-tech::after {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -80px;
  animation-delay: 4s;
}

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

.clinic-tech .container {
  position: relative;
  z-index: 2;
}