/* ── RESET & TOKENS ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Blue — the clinic-logo sky field. Trust, calm, primary surface color. */
  --c-primary:       oklch(52% 0.135 251);
  --c-primary-hover: oklch(45% 0.13 251);
  --c-primary-dark:  oklch(33% 0.10 253);
  --c-primary-bg:    oklch(97% 0.014 247);
  --c-primary-light: oklch(90% 0.05 246);
  /* Red — the logo's heart. Reserved for calls to action, never decorative. */
  --c-red:           oklch(55% 0.21 22);
  --c-red-hover:     oklch(48% 0.205 22);
  --c-red-dark:      oklch(36% 0.165 23);
  --c-red-bg:        oklch(96% 0.03 25);
  /* Yellow — the logo's figure. A single deliberate accent, used sparingly. */
  --c-yellow:        oklch(80% 0.16 86);
  --c-yellow-dark:   oklch(40% 0.06 80);
  --c-whatsapp:      oklch(74% 0.18 152);
  --c-white:         oklch(99.5% 0.003 250);
  --c-bg:            oklch(99% 0.006 250);
  --c-surface:       oklch(99.5% 0.003 250);
  --c-border:        oklch(91% 0.014 253);
  --c-border-light:  oklch(96% 0.008 253);
  --c-text:          oklch(16% 0.03 259);
  --c-text-body:     oklch(36% 0.03 258);
  --c-text-muted:    oklch(53% 0.028 258);
  --c-navy:          oklch(20% 0.045 254);
  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-full: 9999px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 20px 48px oklch(52% 0.135 251 / 0.14), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --container: 1200px;
  --section-y: clamp(56px, 9vw, 100px);
  --header-transition: 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── BASE ───────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--c-primary-hover); }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--c-text); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.0625rem, 2vw, 1.25rem); }
p { color: var(--c-text-body); }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
}

/* ── LAYOUT ─────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--c-primary-bg); }
.section--white { background: var(--c-white); }
.section--dark { background: var(--c-navy); }

.error-page {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-page .container {
  max-width: 760px;
}
.error-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 42px;
  margin-bottom: 22px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  color: var(--c-primary-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.error-page h1 {
  margin-bottom: 18px;
}
.error-page p {
  max-width: 58ch;
  margin: 0 auto 28px;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary { background: var(--c-red); color: #fff; }
.btn-primary:hover {
  background: var(--c-red-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(55% 0.21 22 / 0.32);
}
.btn-secondary { background: var(--c-white); color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn-secondary:hover { background: var(--c-primary-bg); color: var(--c-primary); }
.btn-white { background: var(--c-white); color: var(--c-red); }
.btn-white:hover { background: var(--c-red-bg); color: var(--c-red-dark); }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 2px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.24); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1EB855; color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* ── ANNOUNCE BAR ───────────────────────────────────── */
.announce-bar {
  background: var(--c-navy);
  color: rgba(255,255,255,0.8);
  font-size: 0.8125rem;
  padding: 9px 24px;
}
.announce-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.announce-bar a { color: var(--c-primary-light); font-weight: 600; }
.announce-items { display: flex; gap: 28px; flex-wrap: wrap; }
.announce-item { display: flex; align-items: center; gap: 6px; }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);       /* white sits underneath gradient */
  box-shadow: none;
  transition: box-shadow var(--header-transition);
}
/* Gradient overlay fades out on scroll — lets white base show through */
.navbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, oklch(30% 0.09 253) 0%, oklch(52% 0.135 251) 100%);
  z-index: -1;
  opacity: 1;
  transition: opacity var(--header-transition);
  pointer-events: none;
}
html.is-scrolled .navbar {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04), 0 1px 0 0 var(--c-border);
}
html.is-scrolled .navbar::after { opacity: 0; }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  transition: transform 0.25s var(--ease-out-quart);
}
.logo-wrap:hover .logo-icon { transform: scale(1.06); }
.logo-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;            /* hero default */
  line-height: 1.25;
  transition: color var(--header-transition);
}
.logo-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65); /* hero default */
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 1px;
  transition: color var(--header-transition);
}
html.is-scrolled .logo-name { color: var(--c-text); }
html.is-scrolled .logo-sub  { color: var(--c-text-muted); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88); /* hero default */
  transition:
    background  150ms ease,
    color       var(--header-transition);
  text-decoration: none;
}
.nav-link:hover {
  background: rgba(255,255,255,0.13);
  color: #fff;
}
/* Active link: white underline accent in hero, teal in scrolled */
.nav-link.active {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.55);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
html.is-scrolled .nav-link { color: var(--c-text-body); }
html.is-scrolled .nav-link:hover { background: var(--c-primary-bg); color: var(--c-primary); }
html.is-scrolled .nav-link.active {
  color: var(--c-primary);
  text-decoration-color: var(--c-primary);
}

/* Book Appointment CTA — ghost-white in hero, solid teal when scrolled */
.nav-cta { margin-left: 12px; }
.nav-cta .btn-primary {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  box-shadow: none;
  transition:
    background    var(--header-transition),
    border-color  var(--header-transition),
    color         var(--header-transition),
    box-shadow    200ms ease,
    transform     200ms ease;
}
.nav-cta .btn-primary:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
  transform: none;
  box-shadow: none;
}
html.is-scrolled .nav-cta .btn-primary {
  background: var(--c-red);
  border-color: transparent;
  color: #fff;
}
html.is-scrolled .nav-cta .btn-primary:hover {
  background: var(--c-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(55% 0.21 22 / 0.32);
}

/* Hamburger toggle */
.nav-toggle {
  --nav-toggle-bg: transparent;
  --nav-toggle-bars: rgb(250, 253, 253);
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  z-index: 110;
  position: relative;
  background: var(--nav-toggle-bg);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-toggle-bars);
  /* no background transition — bar colour must snap, never fade through white */
  transition:
    transform   0.25s var(--ease-out-quart),
    opacity     0.25s var(--ease-out-quart);
}
/* Scrolled: dark bars (snaps instantly because background is not in transition list) */
html.is-scrolled .nav-toggle,
.nav-toggle.is-scrolled { --nav-toggle-bars: rgb(17, 22, 39); }
/* Open: white bars on teal button, even when the header is scrolled */
.nav-toggle.open,
html.is-scrolled .nav-toggle.open,
.nav-toggle.is-scrolled.open {
  --nav-toggle-bg: rgb(11, 145, 133);
  --nav-toggle-bars: rgb(250, 253, 253);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* prefers-reduced-motion: instant state changes, no animation */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar::after,
  .logo-name,
  .logo-sub,
  .nav-link,
  .nav-toggle span,
  .nav-cta .btn-primary { transition: none !important; }
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    linear-gradient(to bottom, oklch(24% 0.06 253 / 0.55) 0%, transparent 22%),
    linear-gradient(140deg, oklch(28% 0.09 253 / 0.93) 0%, oklch(48% 0.135 251 / 0.88) 55%, oklch(58% 0.11 244 / 0.85) 100%),
    url('/assets/dr_check_up.avif') center/cover no-repeat;
  padding: clamp(64px, 11vw, 120px) 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255,255,255,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 5% 85%, oklch(80% 0.16 86 / 0.10) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
.hero .eyebrow { color: var(--c-primary-light); margin-bottom: 16px; }
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
}
.hero h1 em { font-style: normal; color: var(--c-yellow); }
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}
.trust-badge svg { flex-shrink: 0; color: var(--c-primary-light); }

/* Gentle on-load entrance — hero and inner page-hero content, one pass, no loop */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
  .hero-content > *,
  .page-hero .container > *,
  .error-page .container > * {
    animation: hero-fade-up 0.6s var(--ease-out-quart) both;
  }
  .hero-content > *:nth-child(1), .page-hero .container > *:nth-child(1), .error-page .container > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-content > *:nth-child(2), .page-hero .container > *:nth-child(2), .error-page .container > *:nth-child(2) { animation-delay: 0.14s; }
  .hero-content > *:nth-child(3), .page-hero .container > *:nth-child(3), .error-page .container > *:nth-child(3) { animation-delay: 0.23s; }
  .hero-content > *:nth-child(4), .page-hero .container > *:nth-child(4), .error-page .container > *:nth-child(4) { animation-delay: 0.32s; }
  .hero-content > *:nth-child(5) { animation-delay: 0.4s; }
}

/* Clinic banner */
.clinic-banner {
  background: var(--c-navy);
  padding: var(--section-y) 0;
}
.clinic-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.clinic-banner-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.clinic-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-quart);
}
.clinic-banner-img:hover img { transform: scale(1.035); }
.clinic-banner-content .eyebrow { color: var(--c-primary-light); display: block; margin-bottom: 12px; }
.clinic-banner-content h2 { color: #fff; margin-bottom: 20px; }
.clinic-banner-content p { color: rgba(255,255,255,0.75); margin-bottom: 16px; line-height: 1.78; font-size: 1.0625rem; }
.clinic-banner-content p:last-of-type { margin-bottom: 28px; }

/* ── FACT STRIP ─────────────────────────────────────── */
/* A running line, not boxed metric cards — keeps the numbers factual */
/* instead of dressing them up as a dashboard. */
/* ── SECTION HEADER ─────────────────────────────────── */
.section-header { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-header .eyebrow { display: block; margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SERVICE CARDS ──────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.22s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-light));
  transform: scaleX(0);
  transition: transform 0.22s var(--ease-out);
  transform-origin: left;
}
.service-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--c-primary-bg);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}
.service-card h3 { font-size: 1.0625rem; color: var(--c-text); }
.service-card p { font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.65; flex: 1; }
.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-top: 4px;
  transition: transform 0.22s var(--ease-out), color 0.15s;
}
.service-card:hover .service-tag { transform: translateX(3px); color: var(--c-primary-hover); }

/* ── ABOUT SNIPPET ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-photo-wrap { position: relative; }
.about-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--c-primary-light) 0%, var(--c-primary-bg) 100%);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s var(--ease-out-quart);
}
.about-photo-wrap:hover .about-photo img { transform: scale(1.035); }
.photo-placeholder { color: var(--c-primary); }
.about-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: var(--c-yellow);
  color: var(--c-yellow-dark);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.badge-number { display: block; font-size: 2rem; font-weight: 700; line-height: 1; }
.badge-text { font-size: 0.6875rem; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.07em; }
.about-content .eyebrow { display: block; margin-bottom: 12px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; line-height: 1.78; color: var(--c-text-muted); font-size: 1.0625rem; }
.about-features { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--c-text-body);
}
.about-feature svg { flex-shrink: 0; color: var(--c-primary); margin-top: 2px; }

/* ── INFO CARDS ─────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
a.info-card { display: block; text-decoration: none; color: inherit; }
.info-icon {
  width: 60px;
  height: 60px;
  background: var(--c-primary-bg);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--c-primary);
}
.info-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.info-card p { font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.65; }

/* ── PAYMENT STRIP ──────────────────────────────────── */
.payment-strip {
  background: var(--c-white);
  padding: 32px 0;
  border-top: 1px solid var(--c-border-light);
}
.payment-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.payment-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.payment-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pay-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-body);
  background: var(--c-bg);
}
.pay-badge svg { color: var(--c-primary); }

/* ── CTA BANNER ─────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(140deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  padding: clamp(56px, 9vw, 88px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.cta-banner-inner { position: relative; max-width: 680px; margin: 0 auto; padding: 0 24px; }
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.78); font-size: 1.0625rem; margin-bottom: 36px; line-height: 1.7; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── CONTACT FORM ───────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: stretch;
}
.contact-layout > .reveal {
  display: flex;
  flex-direction: column;
}
.form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  flex: 1;
}
.form-card h3 { margin-bottom: 8px; }
.form-card > p { color: var(--c-text-muted); font-size: 0.9375rem; margin-bottom: 28px; }
.form-card > .form-note {
  margin-top: -12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--c-primary-bg);
  color: var(--c-text);
}
.form-honeypot { display: none; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
  transition: color 0.15s var(--ease-out);
}
.form-group:focus-within label { color: var(--c-primary); }
.req { color: var(--c-red); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 1rem; /* 16px floor — smaller sizes trigger iOS Safari's auto-zoom on focus */
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-text-muted);
  opacity: 0.7;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px oklch(52% 0.135 251 / 0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: var(--c-primary);
}
@media (prefers-reduced-motion: no-preference) {
  .form-success.is-visible { animation: form-feedback-in 0.5s var(--ease-out-quart); }
  .form-success svg { animation: form-check-in 0.5s 0.1s var(--ease-out-quart) both; }
}
@keyframes form-feedback-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes form-check-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
.form-success svg { margin: 0 auto 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--c-text-muted); font-size: 0.9375rem; }
.form-success-steps {
  list-style: none;
  counter-reset: success-step;
  text-align: left;
  max-width: 380px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-success-steps li {
  counter-increment: success-step;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--c-text-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form-success-steps li::before {
  content: counter(success-step);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  background: var(--c-primary-bg);
  color: var(--c-primary);
  font-size: 0.75rem;
  font-weight: 700;
}
.form-error {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 28, 28, 0.24);
  border-radius: var(--r-sm);
  background: rgba(254, 242, 242, 0.9);
  color: var(--c-red);
  font-size: 0.9375rem;
}
.form-error.visible { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .form-error.visible { animation: form-feedback-in 0.35s var(--ease-out-quart); }
}

/* Contact info panel */
.contact-info-panel { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.contact-info-panel .map-card { flex: 1; min-height: 200px; }
.contact-info-panel .map-card iframe { height: 100%; min-height: 200px; }
.contact-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--c-primary-bg);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
}
.contact-block-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}
.contact-block-value { font-weight: 500; color: var(--c-text); font-size: 0.9375rem; line-height: 1.5; }
.contact-block a { color: var(--c-primary); font-weight: 600; }

/* Hours table */
.hours-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.hours-card h4 { margin-bottom: 16px; font-size: 0.875rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--c-border-light); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 10px 0; font-size: 0.9rem; }
.hours-table td:first-child { color: var(--c-text-muted); }
.hours-table td:last-child { font-weight: 600; text-align: right; }
.h-open { color: var(--c-primary); }
.h-closed { color: var(--c-red); }

/* Map */
.map-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-card);
  margin-top: 12px;
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}
.contact-info-panel .map-card {
  display: flex;
  flex-direction: column;
}
.contact-info-panel .map-card iframe {
  flex: 1;
  height: auto;
  min-height: 180px;
}
.map-card-address {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border-light);
  background: var(--c-bg);
}
.map-card-address svg { flex-shrink: 0; color: var(--c-primary); }
.map-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--c-border-light);
}
.map-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.map-copy strong { display: block; color: var(--c-text); font-size: 0.9375rem; }
.map-copy span { font-size: 0.85rem; color: var(--c-text-muted); }
.map-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  background: var(--c-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.map-action:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ── PAGE HERO (inner pages) ────────────────────────── */
.page-hero {
  background: linear-gradient(140deg, oklch(30% 0.09 253) 0%, oklch(52% 0.135 251) 100%);
  padding: clamp(48px, 7vw, 80px) 0;
  text-align: center;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }
.breadcrumb-cur { color: rgba(255,255,255,0.85); font-weight: 500; }
.page-hero .eyebrow { display: block; color: var(--c-primary-light); margin-bottom: 12px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.0625rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ── ABOUT PAGE ─────────────────────────────────────── */
.doctor-profile {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: start;
}
.doctor-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  background:
    radial-gradient(85% 65% at 22% 12%, oklch(90% 0.05 246) 0%, transparent 60%),
    radial-gradient(70% 55% at 85% 100%, oklch(88% 0.07 40) 0%, transparent 55%),
    var(--c-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
}
.photo-monogram {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.75rem;
  line-height: 1;
  color: var(--c-primary-dark);
  letter-spacing: 0.01em;
}
.photo-monogram-rule {
  display: block;
  width: 40px;
  height: 3px;
  margin: 18px auto;
  background: var(--c-red);
  border-radius: var(--r-full);
}
.doctor-photo-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: oklch(33% 0.10 253 / 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  padding: 14px 16px;
  color: #fff;
}
.doctor-photo-badge strong { display: block; font-size: 1rem; }
.doctor-photo-badge span { font-size: 0.8125rem; opacity: 0.85; }
.doctor-credentials { display: flex; flex-direction: column; gap: 20px; }
.doctor-credentials > h2 { margin-bottom: 8px; }
.doctor-credentials > .eyebrow { margin-bottom: 20px; }
.doctor-credentials > .btn-wrap { margin-top: 28px; }
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
}
.cred-icon {
  width: 40px;
  height: 40px;
  background: var(--c-primary-bg);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}
.cred-title { font-size: 0.875rem; font-weight: 700; color: var(--c-text); }
.cred-value { font-size: 0.875rem; color: var(--c-text-muted); margin-top: 2px; }

/* Text-led rows, not icon cards — this page already sits next to the */
/* icon-heavy services grid, so values are told through a serif numeral */
/* instead of repeating the same rounded-icon-box motif again. */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.value-row { padding-top: 22px; border-top: 2px solid var(--c-border-light); }
.value-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.625rem;
  color: var(--c-red);
  margin-bottom: 10px;
  line-height: 1;
}
.value-row h3 { font-size: 1rem; margin-bottom: 8px; }
.value-row p { font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.65; }

/* ── PATIENT REVIEWS ────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.review-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-card--featured { grid-row: span 2; }
.review-stars { display: flex; gap: 3px; }
.review-text {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--c-text-body);
  flex: 1;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}
.review-text::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 2rem;
  line-height: 1;
  color: var(--c-primary);
  font-style: normal;
  opacity: 0.5;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
/* Avatar shades pulled from the existing brand tokens, not arbitrary hex */
.review-avatar--1 { background: var(--c-primary); }
.review-avatar--2 { background: var(--c-navy); }
.review-avatar--3 { background: var(--c-red); }
.review-avatar--4 { background: var(--c-primary-dark); }
.review-avatar--5 { background: var(--c-primary-hover); }
.review-name { font-weight: 600; font-size: 0.9375rem; color: var(--c-text); line-height: 1.3; }
.review-meta { font-size: 0.8125rem; color: var(--c-text-muted); margin-top: 2px; }
.review-google { margin-left: auto; flex-shrink: 0; opacity: 0.85; }
.reviews-source {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  padding-top: 8px;
}
.reviews-source strong { color: var(--c-text); }

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.7);
  padding-top: clamp(48px, 7vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  object-fit: contain;
}
.footer-logo-name { font-size: 0.9375rem; font-weight: 700; color: #fff; line-height: 1.3; }
.footer-tagline { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.65);
}
.footer-contact-line svg { color: var(--c-primary-light); flex-shrink: 0; }
.footer-contact-line a { color: rgba(255,255,255,0.65); }
.footer-contact-line a:hover { color: var(--c-primary-light); }
.footer h4 { color: #fff; margin-bottom: 20px; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--c-primary-light); }
.footer-hours-list { display: flex; flex-direction: column; gap: 8px; }
.fhour-row { display: flex; justify-content: space-between; font-size: 0.85rem; gap: 12px; }
.fhour-row .fday { color: rgba(255,255,255,0.45); }
.fhour-row .ftime { color: rgba(255,255,255,0.8); font-weight: 500; }
.fhour-row .ftime.closed { color: #F87171; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--c-primary-light); }

/* ── WHATSAPP FLOAT ─────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: wa-pulse 2.5s ease-in-out infinite; }
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); animation: none; }
.wa-float svg { color: #fff; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,0.6), 0 0 0 10px rgba(37,211,102,0.08); }
}
.wa-tooltip {
  position: absolute;
  right: 64px;
  background: var(--c-white);
  color: var(--c-text);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.2s;
  pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ── SERVICE LIST ───────────────────────────────────── */
.service-list {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  padding-left: 1rem;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: disc;
}

/* ── QUICK CONTACT (contact page) ───────────────────── */
.quick-contact {
  padding: 36px 0;
  border-bottom: 1px solid var(--c-border-light);
  background: var(--c-white);
}

/* ── DOCTOR PAGE PARAGRAPHS ─────────────────────────── */
.doctor-para {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  line-height: 1.78;
  margin-bottom: 16px;
}
.doctor-para--last { margin-bottom: 28px; }

/* ── REVIEW CARD COMPACT ────────────────────────────── */
.review-card--compact {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
}
.review-card--compact .review-stars { flex-shrink: 0; }
.review-card--compact .review-author {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}

/* ── FOCUS & INTERACTIVE STATES ─────────────────────── */
.nav-link:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
/* hover: only on real pointer devices — avoids iOS tap-hover persistence */
@media (hover: hover) {
  .nav-toggle:not(.open):hover { --nav-toggle-bg: var(--c-primary-bg); }
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
@media (min-width: 769px) {
  .btn-sm { min-height: 42px; padding: 11px 22px; }
}
@media (max-width: 768px) {
  .btn-sm { min-height: 44px; }
}

/* ── CONTACT ACTION STRIP ───────────────────────────── */
.contact-action-strip {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border-light);
  padding: 16px 0;
}
.contact-action-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--c-border);
  color: var(--c-text-body);
  background: var(--c-surface);
  transition: all 0.18s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.cta-pill:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-bg); }
.cta-pill svg { flex-shrink: 0; }
.cta-pill--wa {
  border-color: rgba(37,211,102,0.4);
  color: #166534;
  background: rgba(240,253,244,0.8);
}
.cta-pill--wa:hover { border-color: #25D366; background: rgba(220,252,231,0.8); color: #166534; }
.cta-pill--primary { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.cta-pill--primary:hover {
  background: var(--c-red-hover);
  border-color: var(--c-red-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px oklch(55% 0.21 22 / 0.28);
}

/* ── BENEFITS LIST (Why Choose Us) ─────────────────── */
/* Numbered rows, not icon cards — deliberately distinct from the */
/* services/values card grids so the page doesn't repeat one module. */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: 48px;
}
.benefit-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-border-light);
}
.benefit-index {
  flex-shrink: 0;
  width: 40px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-primary);
}
.benefit-row h3 { font-size: 0.9375rem; color: var(--c-text); margin: 0 0 4px; }
.benefit-row p { font-size: 0.85rem; color: var(--c-text-muted); line-height: 1.55; margin: 0; }

/* ── SERVICES CATEGORIES ────────────────────────────── */
.services-category { margin-bottom: clamp(44px, 7vw, 68px); }
.services-category:last-child { margin-bottom: 0; }
.services-category-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-border-light);
}
.cat-icon {
  width: 36px;
  height: 36px;
  background: var(--c-primary-bg);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}
.services-category-hd h2 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--c-text);
  margin: 0;
  line-height: 1.2;
}
.services-category .services-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.services-category--pair .services-grid { grid-template-columns: repeat(2, 1fr); max-width: 840px; }
.services-category--solo .services-grid { max-width: 420px; }

/* ── SCROLL REVEAL ──────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s var(--ease-out-quart), transform 0.55s var(--ease-out-quart);
  }
  .reveal.visible { opacity: 1; transform: none; }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .clinic-banner-grid { grid-template-columns: 1fr; }
  .doctor-profile { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  /* Tablet: fluid 2-up instead of a squeezed 3-up grid (fixes cramped cards on iPad-width viewports) */
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .reviews-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .info-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .values-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card--featured { grid-row: span 1; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; --nav-toggle-bg: rgba(0,0,0,0.18); }
  html.is-scrolled .nav-toggle,
  .nav-toggle.is-scrolled {
    --nav-toggle-bg: transparent;
    --nav-toggle-bars: rgb(17, 22, 39);
  }
  /* open beats is-scrolled: group both selectors so teal wins at any scroll position */
  .nav-toggle.open,
  html.is-scrolled .nav-toggle.open,
  .nav-toggle.is-scrolled.open {
    --nav-toggle-bg: rgb(11, 145, 133);
    --nav-toggle-bars: rgb(250, 253, 253);
  }
  .nav-toggle:not(.open) {
    background: rgba(0,0,0,0.18) !important;
  }
  .nav-toggle:not(.open) span {
    background: rgb(250, 253, 253) !important;
  }
  html.is-scrolled .nav-toggle:not(.open),
  .nav-toggle.is-scrolled:not(.open) {
    background: transparent !important;
  }
  html.is-scrolled .nav-toggle:not(.open) span,
  .nav-toggle.is-scrolled:not(.open) span {
    background: rgb(17, 22, 39) !important;
  }
  .nav-toggle.open,
  html.is-scrolled .nav-toggle.open,
  .nav-toggle.is-scrolled.open {
    background: rgb(11, 145, 133) !important;
  }
  .nav-toggle.open span,
  html.is-scrolled .nav-toggle.open span,
  .nav-toggle.is-scrolled.open span {
    background: rgb(250, 253, 253) !important;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--c-white);
    z-index: 99;
    padding: 88px 24px 32px;
    align-items: flex-start;
    gap: 4px;
    overflow-y: auto;
  }
  .nav-links.open .nav-link { font-size: 1.25rem; padding: 12px 16px; width: 100%; border-radius: var(--r-md); color: var(--c-text-body); }
  .nav-links.open .nav-link.active { color: var(--c-primary); text-decoration-color: var(--c-primary); }
  .nav-links.open .nav-cta { display: block; width: 100%; margin-top: 16px; }
  .nav-links.open .nav-cta .btn-primary { background: var(--c-red); border-color: transparent; color: #fff; }
  .nav-links.open .btn { width: 100%; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 16/9; }
  .about-badge { bottom: -10px; right: 16px; }
  .doctor-profile { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .map-card-footer { align-items: flex-start; flex-wrap: wrap; }
  .map-action { width: 100%; min-height: 44px; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .announce-bar-inner { justify-content: center; }
  .announce-items { justify-content: center; gap: 16px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .contact-action-inner { gap: 8px; }
  .cta-pill { font-size: 0.8125rem; padding: 9px 16px; min-height: 44px; }
  .cta-actions .btn, .error-actions .btn { width: 100%; justify-content: center; }
  .services-category--pair .services-grid { grid-template-columns: 1fr; max-width: 100%; }
  .services-category--solo .services-grid { max-width: 100%; }
}
@media (max-width: 480px) {
  .payment-inner { flex-direction: column; gap: 16px; }
  .cta-pill { flex: 1 1 auto; justify-content: center; min-width: 150px; }
}
@media (max-width: 380px) {
  /* Narrow phones: tighten the logo lockup so the two-line name doesn't wrap a third line */
  .navbar-inner { padding: 12px 16px; gap: 12px; }
  .logo-wrap { gap: 8px; }
  .logo-icon { width: 38px; height: 38px; }
  .logo-name { font-size: 0.8125rem; }
  .logo-sub { font-size: 0.625rem; }
}

/* ── REDUCED MOTION SAFETY NET ──────────────────────── */
/* Collapses every transition/animation on this site (hover lifts, image */
/* zoom, reveal, hero entrance, WhatsApp pulse) to effectively instant for */
/* users who've asked for reduced motion, without hiding any content. */
@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;
  }
}
