/* =========================================================
   Sompura Basappa Hospital — Premium Design System
   Palette: Deep Medical Blue + Teal + White
   ========================================================= */

:root {
  --c-blue-900: #06305b;
  --c-blue-800: #0a4d8c;
  --c-blue-700: #1565b7;
  --c-blue-50:  #eaf3fc;
  --c-teal-500: #0fb5ba;
  --c-teal-400: #29c7cc;
  --c-teal-50:  #e6fafa;
  --c-ink-900:  #0b1b2b;
  --c-ink-700:  #2a3a4d;
  --c-ink-500:  #5a6a7d;
  --c-ink-300:  #aab4c1;
  --c-line:     #e6ecf3;
  --c-bg:       #ffffff;
  --c-bg-soft:  #f6f9fc;
  --c-emergency:#e53935;
  --c-success:  #18a957;
  --c-amber:    #f5a524;

  --grad-hero: linear-gradient(135deg, #06305b 0%, #0a4d8c 55%, #0fb5ba 130%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
  --grad-cta:  linear-gradient(135deg, #0a4d8c 0%, #0fb5ba 100%);

  --shadow-sm: 0 1px 2px rgba(11,27,43,.06), 0 1px 1px rgba(11,27,43,.04);
  --shadow-md: 0 10px 30px rgba(6,48,91,.08), 0 2px 6px rgba(6,48,91,.05);
  --shadow-lg: 0 24px 60px rgba(6,48,91,.14), 0 6px 16px rgba(6,48,91,.08);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --header-h:  84px;
}

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

/* ---------- Disable double-click & casual text-selection ---------- */
/* Prevents word-selection on dblclick + most drag-selection,
   while keeping inputs, contact details and editable areas usable. */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable="true"],
.selectable, a[href^="tel:"], a[href^="mailto:"], code, pre {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; background-color: #eef6fb; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink-900);
  background: transparent;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Safety net against horizontal scroll from full-bleed/decorative overflow
     (brand-banner halo, map full-bleed). `clip` is used instead of `hidden`
     so it never breaks the sticky header. */
  overflow-x: clip;
}
/* ---------- Site-wide "medical ecosystem" gradient backdrop ----------
   A soft aurora of the brand palette — medical blue, teal, wellness mint and
   cyan over a clean light base — fixed behind everything so white cards and
   panels float above it. Uses a fixed pseudo-element (not background-attachment:
   fixed) so it stays smooth on iOS/Android. Dark sections (hero, footer,
   page-heads) and opaque cards paint over it normally. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 820px at 6% -6%, rgba(21,101,183,.30), transparent 60%),
    radial-gradient(1050px 760px at 96% 2%, rgba(15,181,186,.28), transparent 58%),
    radial-gradient(1150px 900px at 102% 88%, rgba(24,169,87,.20), transparent 60%),
    radial-gradient(1050px 820px at -4% 102%, rgba(41,199,204,.26), transparent 60%),
    radial-gradient(950px 720px at 50% 48%, rgba(120,116,224,.08), transparent 70%),
    linear-gradient(180deg, #f3fbff 0%, #e1eff7 100%);
  background-repeat: no-repeat;
}
img, svg, video { max-width: 100%; display: block; }
/* Deter image drag-to-save (complements the JS dragstart/contextmenu blockers) */
img { -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; user-drag: none; }
a { color: var(--c-blue-800); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-teal-500); }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--c-ink-900); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin: 0 0 1em; color: var(--c-ink-700); }
ul { margin: 0 0 1em; padding-left: 1.1em; }
ul li { margin-bottom: .35em; color: var(--c-ink-700); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--soft { background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.section--dark { background: var(--grad-hero); color: #fff; }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-teal-500); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--c-teal-500); border-radius: 2px;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--c-ink-500); }
.text-muted { color: var(--c-ink-500); }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--c-line); margin: 32px 0; border: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-teal-50); color: var(--c-blue-800);
  padding: 6px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}
.badge--blue { background: var(--c-blue-50); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; min-height: 50px; box-sizing: border-box; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; transition: all .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-secondary { background: #fff; color: var(--c-blue-800); border-color: var(--c-line); }
.btn-secondary:hover { border-color: var(--c-blue-800); color: var(--c-blue-800); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-emergency { background: var(--c-emergency); color: #fff; }
.btn-emergency:hover { background: #c62828; color: #fff; transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; transform: translateY(-2px); }
/* Official WhatsApp glyph auto-prepended to every WhatsApp action button. */
a.btn-whatsapp[href*="wa.me"]::before {
  content: ""; display: inline-block; vertical-align: -.2em;
  width: 1.15em; height: 1.15em; flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'white'%3E%3Cpath%20d%3D'M20.5%203.5A11%2011%200%20003.6%2017.4L2%2022l4.7-1.5a11%2011%200%200013.8-17zM12%2020a8%208%200%2001-4.1-1.1l-.3-.2-2.8.9.9-2.7-.2-.3A8%208%200%201112%2020zm4.6-6c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8%201c-.1.2-.3.2-.5.1a6.5%206.5%200%2001-3.2-2.8c-.2-.4%200-.4.2-.6l.4-.4c.1-.2.2-.3.3-.5s0-.4%200-.5-.6-1.5-.8-2-.5-.5-.6-.5h-.6c-.2%200-.5.1-.7.3-.3.3-1%201-1%202.5s1%202.8%201.1%203a8.7%208.7%200%20003.4%203c2%20.8%202%20.5%202.4.5s1.5-.6%201.7-1.2c.2-.6.2-1.1.1-1.2z'%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}
/* Inline WhatsApp glyph (topbar link) — inherits its row's colour like sibling icons. */
.wa-ico { width: 1em; height: 1em; vertical-align: -.15em; fill: currentColor; flex: 0 0 auto; }
/* Footer "WhatsApp" contact row: whole row is the link; icon shares the icon column. */
.footer-contact .wa-foot { display: flex; gap: 10px; align-items: flex-start; color: inherit; }
.footer-contact .wa-foot:hover { color: #fff; }
/* Highlight only the "All days · 24×7 Emergency" line — larger, bold, deep red.
   Higher specificity (both classes) so it beats `.trust-strip__cell span` below. */
.trust-strip__cell.trust-strip__cell--hours span {
  color: #8b0000; font-weight: 800; font-size: .95rem; white-space: nowrap;
}
/* size modifiers neutralised — every button shares one height site-wide,
   width still follows its label. Header CTAs keep a compact override below. */
.btn-lg { padding: 14px 28px; font-size: .95rem; }
.btn-sm { padding: 14px 28px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--c-blue-900); color: #cfe2f5; font-size: .82rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px; gap: 24px;
}
.topbar a { color: #cfe2f5; }
.topbar a:hover { color: #fff; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; opacity: .8; }
.topbar__pulse {
  display: inline-block; width: 8px; height: 8px; background: #25D366; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.7); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.65); }
  70%  { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 720px) { .topbar { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-cta); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-family: var(--font-display); letter-spacing: .02em;
  box-shadow: var(--shadow-md);
}
.brand__logo {
  height: 64px; width: auto; max-width: 84px;
  object-fit: contain; display: block;
}
/* Logo already contains the hospital name — hide the duplicate text label */
.brand .brand__name { display: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--c-blue-900); letter-spacing: .005em; }
.brand__name span { font-size: .72rem; color: var(--c-ink-500); letter-spacing: .14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex-shrink: 0; }
.nav a {
  position: relative; color: var(--c-ink-700); font-weight: 500; font-size: .95rem;
  padding: 10px 14px; border-radius: 10px; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--c-blue-800); background: var(--c-blue-50); }
.nav a.active { color: var(--c-blue-800); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--c-teal-500); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 10px; }

.has-dropdown { position: relative; display: flex; align-items: center; }
.has-dropdown > a { display: inline-flex; align-items: center; }
.has-dropdown > a::after {
  content: ""; display: inline-block; margin-left: 8px;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
.has-dropdown:hover > a::after,
.has-dropdown:focus-within > a::after { transform: rotate(-135deg) translateY(2px); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s ease;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .9rem; }
.dropdown a:hover { background: var(--c-blue-50); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--c-blue-50); border: 1px solid var(--c-line);
  align-items: center; justify-content: center;
}
.menu-toggle svg { color: var(--c-blue-800); }

@media (max-width: 1024px) {
  .nav, .nav-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn.btn-emergency { display: inline-flex; padding: 10px 14px; font-size: .82rem; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: #fff; transform: translateX(100%);
  transition: transform .35s ease, visibility 0s linear .35s;
  display: flex; flex-direction: column;
  /* When closed the panel sits off-screen to the right. `visibility:hidden`
     keeps that off-screen fixed box from contributing to the document's
     horizontal scroll on mobile (where root overflow:clip can't always
     contain a fixed element). It flips to visible the instant it opens. */
  visibility: hidden;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .35s ease, visibility 0s;
}
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--c-line); }
.mobile-menu__close { width: 42px; height: 42px; border-radius: 12px; background: var(--c-blue-50); border: 0; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu__nav { padding: 18px 12px; overflow-y: auto; flex: 1; }
.mobile-menu__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-size: 1.02rem; color: var(--c-ink-900); border-radius: 12px;
}
.mobile-menu__nav a:hover, .mobile-menu__nav a.active { background: var(--c-blue-50); color: var(--c-blue-800); }
.mobile-menu__nav .sub { padding-left: 24px; }
.mobile-menu__cta { padding: 18px 22px; border-top: 1px solid var(--c-line); display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero); color: #fff;
  padding: clamp(56px, 9vw, 120px) 0 clamp(120px, 14vw, 180px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(15,181,186,.35) 0, transparent 35%),
    radial-gradient(circle at 88% 70%, rgba(21,101,183,.45) 0, transparent 40%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px;
  background: linear-gradient(180deg, transparent, #fff);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 .accent { background: linear-gradient(90deg, #29c7cc, #9be8eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead {
  font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 56ch; margin: 20px 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-trust__item { display: flex; align-items: center; gap: 12px; }
.hero-trust__item strong { display: block; font-size: 1.5rem; font-family: var(--font-display); color: #fff; line-height: 1; }
.hero-trust__item span { display: block; font-size: .82rem; color: rgba(255,255,255,.72); }
.hero-trust__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #9be8eb; }

.hero-card-stack { position: relative; min-height: 460px; }
.hero-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; max-width: 460px; margin: 0 0 0 auto;
  background:
    linear-gradient(135deg, rgba(6,48,91,.55), rgba(15,181,186,.25)),
    url('https://images.unsplash.com/photo-1631815589968-fdb09a223b1e?auto=format&fit=crop&w=900&q=80') center/cover;
}
.hero-floater {
  position: absolute; background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px; padding: 16px 18px; color: var(--c-ink-900);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
}
.hero-floater.f1 { top: 30px; left: -10px; }
.hero-floater.f2 { bottom: 40px; right: -10px; }
.hero-floater__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: var(--grad-cta);
}
.hero-floater strong { font-size: .98rem; display: block; }
.hero-floater span { font-size: .8rem; color: var(--c-ink-500); }
@media (max-width: 720px) {
  .hero-floater.f1 { left: 8px; top: 18px; }
  .hero-floater.f2 { right: 8px; bottom: 18px; }
}

/* ---------- Premium brand banner (atop hero) ---------- */
.brand-banner {
  position: relative;
  text-align: center;
  margin: 0 auto clamp(28px, 4vw, 56px);
  padding: clamp(8px, 1.5vw, 18px) 0 clamp(6px, 1vw, 14px);
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
}
.brand-banner::before {
  /* soft radial halo / stage-light behind the wordmark */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(98%, 1180px);
  height: 260%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(155,232,235,.22) 0%, rgba(15,181,186,.10) 32%, transparent 62%);
  filter: blur(2px);
  z-index: -1;
  pointer-events: none;
}

/* mouse-tracking stage spotlight */
.brand-banner__spotlight {
  position: absolute;
  inset: -25% -8%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    480px circle at var(--mx) var(--my),
    rgba(155,232,235,.30) 0%,
    rgba(15,181,186,.14) 25%,
    transparent 60%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .45s ease;
  will-change: background;
}
.brand-banner.is-hovering .brand-banner__spotlight { opacity: 1; }

/* floating light motes — drifting particles for atmosphere */
.brand-banner__mote {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(155,232,235,.95) 0%, rgba(155,232,235,0) 70%);
  filter: blur(.6px);
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  will-change: transform, opacity;
}
.brand-banner__mote--1 { left:  8%; top: 22%; width: 6px;  height: 6px;  animation: mote-drift-a 11s ease-in-out 0s   infinite; }
.brand-banner__mote--2 { left: 24%; top: 78%; width: 10px; height: 10px; animation: mote-drift-b 13s ease-in-out 1.4s infinite; }
.brand-banner__mote--3 { left: 58%; top: 18%; width: 7px;  height: 7px;  animation: mote-drift-c 15s ease-in-out 2.6s infinite; }
.brand-banner__mote--4 { left: 78%; top: 64%; width: 9px;  height: 9px;  animation: mote-drift-a 14s ease-in-out 3.8s infinite; }
.brand-banner__mote--5 { left: 44%; top: 88%; width: 5px;  height: 5px;  animation: mote-drift-b 17s ease-in-out 5.2s infinite; }
@keyframes mote-drift-a {
  0%, 100% { transform: translate(0,0) scale(.7);  opacity: 0;   }
  15%, 85% { opacity: .85; }
  50%      { transform: translate(46px,-36px) scale(1.1); opacity: 1; }
}
@keyframes mote-drift-b {
  0%, 100% { transform: translate(0,0) scale(.6);  opacity: 0;   }
  15%, 85% { opacity: .75; }
  50%      { transform: translate(-34px,-44px) scale(1.15); opacity: 1; }
}
@keyframes mote-drift-c {
  0%, 100% { transform: translate(0,0) scale(.8);  opacity: 0;   }
  15%, 85% { opacity: .9; }
  50%      { transform: translate(28px,38px) scale(1.05); opacity: 1; }
}

/* eyebrow pill */
.brand-banner__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(.72rem, 1vw, .88rem);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(155,232,235,.85);
  padding: 6px 14px;
  border: 1px solid rgba(155,232,235,.32);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15,181,186,.12), rgba(10,77,140,.08));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin-bottom: clamp(14px, 1.6vw, 22px);
  box-shadow: 0 0 18px rgba(15,181,186,.18);
  /* entrance */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .7s ease 80ms, transform .7s ease 80ms;
}
.brand-banner.is-revealed .brand-banner__mark {
  opacity: 1;
  transform: translateY(0);
}

/* wordmark — gradient is applied per letter, this element drives layout + heartbeat */
.brand-banner__title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 7.2vw, 5.8rem);
  letter-spacing: clamp(.03em, .35vw, .075em);
  line-height: 1.06;
  margin: 0;
  word-spacing: clamp(2px, .6vw, 12px);
  text-wrap: balance;
  color: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  /* slow medical heartbeat — lub-dub */
  animation: brand-heartbeat 3.6s ease-in-out 1.6s infinite;
  will-change: filter;
}
@keyframes brand-heartbeat {
  0%, 40%, 100% {
    filter:
      drop-shadow(0 6px 22px rgba(15,181,186,.32))
      drop-shadow(0 2px 4px rgba(6,48,91,.50));
  }
  10% {
    filter:
      drop-shadow(0 6px 34px rgba(15,181,186,.70))
      drop-shadow(0 2px 6px rgba(6,48,91,.55));
  }
  18% {
    filter:
      drop-shadow(0 6px 24px rgba(15,181,186,.38))
      drop-shadow(0 2px 4px rgba(6,48,91,.50));
  }
  28% {
    filter:
      drop-shadow(0 6px 30px rgba(15,181,186,.55))
      drop-shadow(0 2px 5px rgba(6,48,91,.52));
  }
}

/* individual letters (split + injected by main.js) */
.brand-banner__word { display: inline-block; }
.brand-banner__letter {
  display: inline-block;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f4fdfd 26%,
    #b8eef0 52%,
    #29c7cc 76%,
    #9be8eb 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* entrance state */
  opacity: 0;
  transform: translateY(.36em) scale(.94);
  filter: blur(14px);
  transition:
    opacity 1s cubic-bezier(.16,.84,.44,1),
    transform 1s cubic-bezier(.16,.84,.44,1),
    filter 1s cubic-bezier(.16,.84,.44,1);
  transition-delay: calc(var(--n, 0) * 38ms + 220ms);
  will-change: transform, opacity, filter;
}
.brand-banner.is-revealed .brand-banner__letter {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* travelling sheen sweep across the whole wordmark */
.brand-banner__title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  background: linear-gradient(
    110deg,
    transparent 40%,
    rgba(255,255,255,.92) 50%,
    transparent 60%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 260% 100%;
  background-position: 260% 0;
  animation: brand-banner-shine 7s ease-in-out 2s infinite;
  pointer-events: none;
}
@keyframes brand-banner-shine {
  0%, 6%   { background-position: 260% 0; }
  55%      { background-position: -60% 0; }
  100%     { background-position: -60% 0; }
}

/* glowing underline rule — scales in from center, then a shimmer travels across */
.brand-banner__rule {
  position: relative;
  width: clamp(120px, 22vw, 320px);
  height: 3px;
  margin: clamp(16px, 2.2vw, 26px) auto clamp(10px, 1.4vw, 16px);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15,181,186,.55) 22%,
    #9be8eb 50%,
    rgba(15,181,186,.55) 78%,
    transparent 100%
  );
  box-shadow:
    0 0 14px rgba(15,181,186,.55),
    0 0 30px rgba(155,232,235,.32);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s cubic-bezier(.16,.84,.44,1) 750ms;
  overflow: hidden;
}
.brand-banner.is-revealed .brand-banner__rule { transform: scaleX(1); }
.brand-banner__rule::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.95) 50%,
    transparent 100%
  );
  background-size: 30% 100%;
  background-repeat: no-repeat;
  background-position: -40% 0;
  animation: brand-rule-shimmer 5.2s ease-in-out 2.2s infinite;
}
@keyframes brand-rule-shimmer {
  0%        { background-position: -40% 0; }
  55%, 100% { background-position: 140% 0; }
}

/* tagline fades up last */
.brand-banner__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(.82rem, 1.1vw, 1rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .9s ease 1.15s, transform .9s ease 1.15s;
}
.brand-banner.is-revealed .brand-banner__tagline {
  opacity: 1;
  transform: translateY(0);
}

/* reduced-motion: everything still visible, no motion */
@media (prefers-reduced-motion: reduce) {
  .brand-banner__title,
  .brand-banner__title::after,
  .brand-banner__rule::after,
  .brand-banner__mote { animation: none !important; }
  .brand-banner__title::after { opacity: 0; }
  .brand-banner__letter {
    transition: none !important;
    opacity: 1; transform: none; filter: none;
  }
  .brand-banner__mark,
  .brand-banner__tagline { opacity: 1; transform: none; transition: none; }
  .brand-banner__rule { transform: scaleX(1); transition: none; }
  .brand-banner__title {
    filter:
      drop-shadow(0 6px 22px rgba(15,181,186,.40))
      drop-shadow(0 2px 4px rgba(6,48,91,.55));
  }
}

@media (max-width: 580px) {
  .brand-banner__mark { letter-spacing: .28em; font-size: .7rem; padding: 5px 11px; }
  .brand-banner__title { letter-spacing: .035em; word-spacing: 1px; }
  .brand-banner__tagline { letter-spacing: .14em; font-size: .76rem; }
  .brand-banner__mote { display: none; } /* mobile: drop ambient particles */
  .brand-banner__spotlight { display: none; }
}

/* ------------------------------------------------------------------
   Brand banner on mobile/tablet — reliability fix.
   On many mobile GPUs, animating `filter` (the heartbeat glow) on text
   that uses -webkit-background-clip:text BREAKS the gradient clip, so the
   wordmark renders flat/dark and the JS-gated reveal can stall. On phones
   we therefore: (a) use a STATIC glow instead of the animated filter,
   (b) drive the entrance with a self-running CSS animation that needs no
   JS class and never touches `filter`, and (c) brighten the tagline.
   Result: the teal→white gradient + a clean fade-in, matching the desktop
   look, with nothing left invisible or dim.
   ------------------------------------------------------------------ */
@media (max-width: 720px) {
  .brand-banner__title {
    animation: none !important;
    will-change: auto;
    filter:
      drop-shadow(0 4px 16px rgba(15,181,186,.42))
      drop-shadow(0 2px 4px rgba(6,48,91,.5)) !important;
  }
  /* the moving sheen also animates a clipped layer — skip it on mobile */
  .brand-banner__title::after { display: none !important; }

  /* letters: self-running fade+rise (no blur, no JS dependency) */
  .brand-banner__letter {
    filter: none !important;
    transition: none !important;
    animation: bb-letter-in .7s cubic-bezier(.16,.84,.44,1) both !important;
    animation-delay: calc(var(--n, 0) * 32ms + 150ms) !important;
  }
  /* underline + tagline always shown; tagline brighter & self-revealing */
  .brand-banner__rule { transform: scaleX(1) !important; transition: none !important; }
  .brand-banner__tagline {
    color: rgba(255,255,255,.96) !important;
    transition: none !important;
    animation: bb-tagline-in .8s ease 1s both !important;
  }
}
@keyframes bb-letter-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bb-tagline-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Respect reduced-motion on phones: show everything, no motion */
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .brand-banner__letter,
  .brand-banner__tagline {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  margin-top: -90px; position: relative; z-index: 2;
}
.trust-strip__inner {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 28px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 960px) { .trust-strip__inner { grid-template-columns: repeat(2, 1fr); } }
.trust-strip__cell { display: flex; align-items: center; gap: 14px; padding: 6px 8px; }
.trust-strip__cell + .trust-strip__cell { border-left: 1px solid var(--c-line); padding-left: 22px; }
@media (max-width: 960px) { .trust-strip__cell + .trust-strip__cell { border-left: 0; padding-left: 8px; } }
.trust-strip__icon {
  width: 50px; height: 50px; border-radius: 14px; flex: 0 0 50px;
  background: var(--c-teal-50); color: var(--c-blue-800);
  display: grid; place-items: center;
}
.trust-strip__cell strong { display: block; color: var(--c-ink-900); font-family: var(--font-display); }
.trust-strip__cell span { font-size: .85rem; color: var(--c-ink-500); }

/* ---------- Cards ---------- */
.card {
  background: var(--grad-card); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px; transition: all .3s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(15,181,186,.4); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; color: var(--c-blue-800);
  background: var(--c-teal-50); margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--c-blue-800);
  margin-top: 6px;
}
.card__link svg { transition: transform .2s ease; }
.card:hover .card__link svg { transform: translateX(4px); }

/* Department card variant */
.dept-card { padding: 0; }
.dept-card__img {
  height: 180px; background-size: cover; background-position: center;
  position: relative; border-radius: var(--radius) var(--radius) 0 0;
}
.dept-card__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,48,91,.55));
  border-radius: var(--radius) var(--radius) 0 0;
}
.dept-card__body { padding: 24px 26px 26px; }
.dept-card h3 { font-size: 1.15rem; }

/* ---------- Surgical Excellence ---------- */
.surg-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
@media (max-width: 960px) { .surg-grid { grid-template-columns: 1fr; gap: 32px; } }
.surg-art {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 460px;
  background:
    linear-gradient(135deg, rgba(6,48,91,.2), rgba(15,181,186,.15)),
    url('https://images.unsplash.com/photo-1551076805-e1869033e561?auto=format&fit=crop&w=1100&q=80') center/cover;
  box-shadow: var(--shadow-lg);
}
.surg-art__chip {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 16px;
  padding: 18px 22px; display: flex; align-items: center; gap: 14px;
}
.surg-art__chip svg { color: var(--c-teal-500); }
.surg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.surg-list span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; color: var(--c-ink-700); font-weight: 500;
}
.surg-list span::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
  background: var(--c-teal-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230fb5ba'><path d='M16.7 5.3a1 1 0 010 1.4l-7 7a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.4L9 11.6l6.3-6.3a1 1 0 011.4 0z'/></svg>");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Why choose us ---------- */
.why-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 26px; transition: all .25s ease;
}
.why-card:hover { border-color: var(--c-teal-400); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-card .num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c-blue-50); color: var(--c-blue-800); font-weight: 800; font-family: var(--font-display);
  margin-bottom: 16px;
}

/* ---------- Counters ---------- */
.counter-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 50px; border-radius: var(--radius-lg);
  background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-lg);
}
@media (max-width: 960px) { .counter-row { grid-template-columns: repeat(2, 1fr); padding: 36px 24px; gap: 24px; } }
.counter { text-align: center; }
.counter strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-family: var(--font-display); line-height: 1; }
.counter span { display: block; opacity: .85; margin-top: 8px; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--grad-hero); color: #fff;
  border-radius: var(--radius-lg); padding: 50px;
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 30%, rgba(15,181,186,.4), transparent 50%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; max-width: 22ch; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 880px) {
  .cta-banner { grid-template-columns: 1fr; padding: 36px 28px; }
  .cta-banner__actions { justify-content: flex-start; }
}

/* ---------- Testimonials ---------- */
.t-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px; height: 100%; display: flex; flex-direction: column;
}
.t-card .stars { color: #f5a524; margin-bottom: 12px; font-size: 1.1rem; letter-spacing: 2px; }
.t-card blockquote { margin: 0 0 18px; color: var(--c-ink-700); font-size: 1rem; line-height: 1.65; }
.t-card__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-card__avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad-cta);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-display);
}
.t-card__author strong { display: block; }
.t-card__author span { font-size: .82rem; color: var(--c-ink-500); }
.t-card__source { margin-left: auto; font-size: .78rem; color: var(--c-ink-500); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Reviews marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
  will-change: transform;
  padding: 4px 14px;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: 0 0 360px;
  max-width: 360px;
  height: auto;
}
@media (max-width: 640px) {
  .marquee__item { flex: 0 0 290px; max-width: 290px; }
  .marquee__track { gap: 18px; animation-duration: 40s; }
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.marquee-meta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; font-size: .85rem; color: var(--c-ink-500);
}
.marquee-meta .stars-mini { color: #f5a524; letter-spacing: 1px; }
.marquee-meta strong { color: var(--c-ink-900); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  padding: 4px 22px; margin-bottom: 12px; transition: all .2s ease;
}
.faq details[open] { border-color: var(--c-teal-400); box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--c-ink-900);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; color: var(--c-blue-800); transition: transform .2s ease;
  font-weight: 300; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--c-ink-500); }

/* ---------- Blog article body ---------- */
.article {
  max-width: 760px; margin: 0 auto;
  font-size: 1.06rem; line-height: 1.78;
}
.article h2 { margin: 2em 0 .55em; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.article h3 { margin: 1.6em 0 .45em; font-size: 1.18rem; }
.article p, .article ul, .article ol { margin: 0 0 1.1em; color: var(--c-ink-700); }
.article ul li, .article ol li { margin-bottom: .55em; color: var(--c-ink-700); }
.article a {
  color: var(--c-blue-800); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article a:hover { color: var(--c-teal-500); }
.article blockquote {
  border-left: 4px solid var(--c-teal-500);
  padding: 12px 24px; margin: 1.6em 0;
  background: var(--c-teal-50); border-radius: 0 14px 14px 0;
  color: var(--c-ink-900); font-style: italic;
}
.article figure { margin: 1.6em 0; }
.article figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.article figure figcaption { font-size: .82rem; color: var(--c-ink-500); margin-top: 8px; text-align: center; }

.tldr {
  background: linear-gradient(135deg, rgba(15,181,186,.10), rgba(15,181,186,.03));
  border: 1px solid rgba(15,181,186,.32);
  border-radius: 18px; padding: 22px 26px;
  margin: 0 auto 32px; max-width: 760px;
}
.tldr strong { display: block; color: var(--c-teal-500); letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; margin-bottom: 6px; }
.tldr p { margin: 0; color: var(--c-ink-900); font-size: 1.02rem; }

.post-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; color: rgba(255,255,255,.78); font-size: .9rem;
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

.author-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--c-bg-soft); border: 1px solid var(--c-line);
  border-radius: 16px; padding: 20px 22px; margin: 36px auto;
  max-width: 760px;
}
.author-card__avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--grad-cta); display: grid; place-items: center;
  color: #fff; font-weight: 800; flex: 0 0 54px; font-family: var(--font-display);
}
.author-card strong { display: block; color: var(--c-ink-900); }
.author-card span { font-size: .85rem; color: var(--c-ink-500); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- Blog cards ---------- */
.blog-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: all .25s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.blog-card__body { padding: 22px 24px 26px; }
.blog-card__meta { display: flex; gap: 14px; color: var(--c-ink-500); font-size: .8rem; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card p { font-size: .9rem; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #06243f; color: #c5d6e9; padding: 80px 0 28px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: #c5d6e9; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .brand__mark { background: var(--grad-cta); }
.footer-brand .brand__logo {
  height: 68px; max-width: 88px;
  background: rgba(255,255,255,.96);
  padding: 6px; border-radius: 14px;
  box-shadow: var(--shadow-md);
}

/* Developed By Smart Web Labs credit pill */
.footer-dev {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(15,181,186,.12), rgba(21,101,183,.10));
  border: 1px solid rgba(15,181,186,.25);
  font-size: .78rem; color: #c5d6e9; letter-spacing: .04em;
  transition: all .25s ease;
}
.footer-dev:hover { border-color: rgba(15,181,186,.55); transform: translateY(-1px); }
.footer-dev .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #0fb5ba;
  box-shadow: 0 0 0 0 rgba(15,181,186,.55); animation: pulse 1.8s infinite;
}
.footer-dev a {
  font-weight: 800; letter-spacing: .12em; font-size: .8rem;
  background: linear-gradient(90deg, #0fb5ba, #29c7cc, #9be8eb);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-decoration: none;
}
.footer-dev a:hover { filter: brightness(1.2); }
.footer-brand strong { color: #fff; font-family: var(--font-display); }
.footer-list, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; font-size: .92rem; }
.footer-contact li {
  display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 14px;
  color: #c5d6e9;
}
.footer-contact svg { color: var(--c-teal-400); flex: 0 0 18px; margin-top: 3px; }
.footer-bottom {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: .82rem; flex-wrap: wrap;
}
.footer-bottom > * { flex: 0 0 auto; }
@media (max-width: 720px) {
  .footer-bottom {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-bottom > * {
    flex-basis: 100%;
    text-align: center;
    align-self: center;
  }
}
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.social a svg { width: 18px; height: 18px; }
.social a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.35); filter: brightness(1.05); }
/* Brand colours — clearly visible on the dark footer. */
.social a[aria-label="Facebook"]  { background: #1877F2; }
.social a[aria-label="Instagram"] { background: radial-gradient(circle at 28% 108%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social a[aria-label="WhatsApp"]  { background: #25D366; }
.social a[aria-label="Google"]    { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.social a[aria-label="Google"] svg path:nth-of-type(1) { fill: #4285F4; }
.social a[aria-label="Google"] svg path:nth-of-type(2) { fill: #34A853; }
.social a[aria-label="Google"] svg path:nth-of-type(3) { fill: #FBBC05; }
.social a[aria-label="Google"] svg path:nth-of-type(4) { fill: #EA4335; }

/* ---------- Floating buttons ---------- */
.float-stack { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 12px; z-index: 80; }
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 0; box-shadow: var(--shadow-lg); position: relative; cursor: pointer;
  transition: transform .2s ease;
}
.float-btn:hover { transform: scale(1.06); }
.float-btn--wa { background: #25D366; }
.float-btn--call { background: var(--c-emergency); }
.float-btn--top {
  background: var(--grad-cta);
  opacity: 0;
  transform: translateY(10px) scale(.85);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.float-btn--top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.float-btn--top:hover { transform: scale(1.06) translateY(-2px); }
.float-btn--top:focus-visible { outline: 2px solid var(--c-teal-400); outline-offset: 3px; }
.float-btn--wa::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 3px solid rgba(37,211,102,.45); animation: ringPulse 2s infinite;
}
@keyframes ringPulse {
  0%   { transform: scale(.85); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}
.float-btn svg { width: 26px; height: 26px; }

/* Sticky bottom emergency on mobile */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  display: none; grid-template-columns: 1fr 1fr 1fr;
  background: #fff; border-top: 1px solid var(--c-line);
  box-shadow: 0 -8px 24px rgba(6,48,91,.08);
}
.mobile-cta-bar a {
  padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: .72rem; color: var(--c-ink-700); font-weight: 600;
}
.mobile-cta-bar a svg { width: 22px; height: 22px; }
.mobile-cta-bar a.call svg { color: var(--c-emergency); }
.mobile-cta-bar a.wa svg { color: #25D366; }
.mobile-cta-bar a.book svg { color: var(--c-blue-800); }
@media (max-width: 720px) {
  .mobile-cta-bar { display: grid; }
  .float-stack { bottom: 80px; }
  body { padding-bottom: 60px; }
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--c-ink-700); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--c-line);
  border-radius: 12px; font: inherit; color: var(--c-ink-900); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--c-teal-500); box-shadow: 0 0 0 4px rgba(15,181,186,.15);
}
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.form-note { font-size: .78rem; color: var(--c-ink-500); margin-top: 12px; }
.form-success {
  background: #e8f7ee; border: 1px solid #b6e2c5; color: #1c6b3a;
  border-radius: 12px; padding: 14px 16px; font-size: .92rem; display: none;
}
.form-success.is-visible { display: block; }

/* Multi-step */
.steps { display: flex; gap: 12px; margin-bottom: 26px; }
.step { flex: 1; padding: 10px 12px; border-radius: 12px; background: var(--c-bg-soft); color: var(--c-ink-500); font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.step.active { background: var(--c-blue-50); color: var(--c-blue-800); }
.step.done { background: var(--c-teal-50); color: var(--c-blue-800); }
.step__num { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .75rem; }
.step.active .step__num { background: var(--c-blue-800); color: #fff; }
.step.done .step__num { background: var(--c-teal-500); color: #fff; }
.step-pane { display: none; }
.step-pane.is-active { display: block; }

/* ---------- Page header (subpages) ---------- */
.page-head {
  background: var(--grad-hero); color: #fff;
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(15,181,186,.3), transparent 45%);
}
.page-head .container { position: relative; }
.page-head h1 { color: #fff; max-width: 22ch; }
.page-head p { color: rgba(255,255,255,.82); max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.7); font-size: .82rem; margin-bottom: 16px; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }

/* ---------- Doctor cards ---------- */
.doc-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden;
  transition: all .25s ease;
  display: flex; flex-direction: column;          /* let the body stretch */
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc-card__img {
  aspect-ratio: 4/4; background-size: cover; background-position: center top;
  background-color: var(--c-blue-50);
}
/* body fills remaining height so the meta + buttons can anchor to the bottom,
   keeping the Profile/Book row aligned across cards of unequal text length */
.doc-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.doc-card h3 { margin-bottom: 4px; font-size: 1.1rem; }
.doc-card .spec { color: var(--c-teal-500); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.doc-card p { font-size: .9rem; margin-bottom: 14px; }
.doc-card .doc-meta { display: flex; gap: 16px; font-size: .82rem; color: var(--c-ink-500); margin-bottom: 14px; margin-top: auto; }
/* the action row (Profile / Book) is the last child of the body */
.doc-card__body > div:last-child { margin-top: 0; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--c-line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Full-width (edge-to-edge) location map */
.map-section { padding-top: clamp(48px, 7vw, 90px); }
.map-section__head { text-align: center; margin-bottom: clamp(22px, 3.5vw, 38px); }
.map-section__head p { max-width: 62ch; margin: 0 auto; }
.map-full { width: 100%; line-height: 0; border-top: 1px solid var(--c-line); }
.map-full iframe { width: 100%; height: clamp(360px, 46vw, 520px); border: 0; display: block; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery > div { aspect-ratio: 4/3; background-size: cover; background-position: center; border-radius: var(--radius); display: block; transition: transform .25s ease, box-shadow .25s ease; }
.gallery > div:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

/* ---------- Misc ---------- */
.list-check { list-style: none; padding-left: 0; }
.list-check li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  background: var(--c-teal-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230fb5ba'><path d='M16.7 5.3a1 1 0 010 1.4l-7 7a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.4L9 11.6l6.3-6.3a1 1 0 011.4 0z'/></svg>");
  background-repeat: no-repeat; background-position: center; border-radius: 50%;
}
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-row a { background: var(--c-blue-50); color: var(--c-blue-800); padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.tag-row a:hover { background: var(--c-blue-800); color: #fff; }
.tag-row a.is-active { background: var(--c-blue-800); color: #fff; cursor: default; }

/* ---------- Founder spotlight ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;        /* top-align the photo with the bio heading */
}
.founder__media { position: relative; }
.founder__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.founder__media::before {
  content: "";
  position: absolute;
  inset: auto -16px -16px auto;
  width: 62%;
  height: 62%;
  border-radius: var(--radius-lg);
  background: var(--grad-cta);
  opacity: .12;
  z-index: -1;
}
.founder__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 48, 91, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: var(--shadow-md);
}
.founder__badge svg { width: 18px; height: 18px; color: var(--c-teal-400); }
.founder__name { margin: 6px 0 4px; }
.founder__roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.founder__role {
  background: var(--c-blue-50);
  color: var(--c-blue-800);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.founder__role--accent { background: var(--grad-cta); color: #fff; }
.founder__quote {
  margin: 22px 0 0;
  padding: 16px 22px;
  border-left: 3px solid var(--c-teal-500);
  background: var(--c-bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--c-ink-700);
}
.founder__sign { margin-top: 12px; font-weight: 700; color: var(--c-blue-800); font-family: var(--font-display); }
@media (max-width: 820px) {
  .founder { grid-template-columns: 1fr; }
  .founder__media { max-width: 360px; margin: 0 auto; width: 100%; }
  .founder__photo { aspect-ratio: 1 / 1; }
  /* keep the decorative offset block from poking past the viewport edge */
  .founder__media::before { inset: auto 0 -10px 0; width: 70%; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Emergency banner */
.emergency-strip {
  background: linear-gradient(90deg, #e53935, #b71c1c); color: #fff; padding: 18px 0;
}
.emergency-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.emergency-strip strong { color: #fff; font-size: 1.05rem; }
.emergency-strip p { color: rgba(255,255,255,.9); margin: 0; }

/* Print */
@media print {
  .site-header, .site-footer, .float-stack, .mobile-cta-bar, .topbar { display: none; }
}

/* ============================================================
   Responsive UI/UX audit fixes — mobile & tablet
   ============================================================ */

/* Responsive split layouts used by appointment / contact / doctor pages.
   Replaces inline grid-template-columns that previously didn't collapse. */
.layout-split {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr .8fr;
  align-items: flex-start;
}
.layout-split--equal { grid-template-columns: 1fr 1fr; gap: 32px; }
.layout-split--reverse { grid-template-columns: .85fr 1.15fr; gap: 48px; }
.layout-split__aside { position: sticky; top: 96px; }
@media (max-width: 900px) {
  .layout-split,
  .layout-split--equal,
  .layout-split--reverse { grid-template-columns: 1fr; gap: 28px; }
  .layout-split__aside { position: static; top: auto; }
}

/* Container — tighten side padding on smallest phones */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .section-head { margin-bottom: 32px; }
  .nav-cta .btn { padding: 8px 12px; font-size: .78rem; }
  .brand__logo { height: 54px; max-width: 70px; }
}

/* Hero — remove the desktop max-width on smaller viewports so the headline
   can breathe; reduce the card-stack min-height so the floaters don't
   leave huge empty space below the image. */
@media (max-width: 720px) {
  .hero h1 { max-width: none; }
  .hero p.lead { font-size: 1rem; }
  .hero-card-stack { min-height: 400px; }
  .hero-image { margin: 0 auto; max-width: 100%; }
  .hero-floater { padding: 12px 14px; }
  .hero-floater strong { font-size: .92rem; }
  .hero-floater span { font-size: .76rem; }
  .hero-floater__icon { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
  .hero-card-stack { min-height: 340px; }
  .hero-image { aspect-ratio: 4 / 3.5; }
}

/* Trust strip — single column on smallest phones; 2-col was crammed.
   Replace the vertical border with a top divider when stacked. */
@media (max-width: 520px) {
  .trust-strip { margin-top: -70px; }
  .trust-strip__inner { grid-template-columns: 1fr; gap: 4px; padding: 22px 18px; }
  .trust-strip__cell { padding: 10px 8px; }
  .trust-strip__cell + .trust-strip__cell {
    padding-left: 8px; padding-top: 16px;
    border-left: 0; border-top: 1px solid var(--c-line);
  }
}

/* Surgical excellence art — reduce min-height on mobile so the section
   doesn't waste vertical space; chip stays comfortably positioned. */
@media (max-width: 720px) {
  .surg-art { min-height: 320px; }
  .surg-art__chip { left: 16px; right: 16px; bottom: 18px; padding: 14px 16px; }
  .surg-art__chip svg { width: 28px; height: 28px; }
  .surg-art__chip strong { font-size: .92rem; }
}
@media (max-width: 480px) {
  .surg-list { grid-template-columns: 1fr; gap: 10px; }
}

/* CTA banner — tighter on small viewports */
@media (max-width: 520px) {
  .cta-banner { padding: 28px 22px; }
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-banner .btn-lg { padding: 14px 22px; font-size: .92rem; }
}

/* Counters — give numbers room on phones */
@media (max-width: 640px) {
  .counter-row { padding: 28px 18px; gap: 16px; }
  .counter strong { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .counter span { font-size: .78rem; letter-spacing: .03em; }
}

/* Multi-step appointment form — labels collapse to numbers only
   on the smallest phones, where 4 step pills couldn't sit on one line. */
@media (max-width: 600px) {
  .steps { gap: 8px; margin-bottom: 22px; }
  .step { padding: 8px 10px; font-size: .78rem; gap: 6px; }
  .step__num { width: 22px; height: 22px; font-size: .72rem; }
}
@media (max-width: 440px) {
  .step { justify-content: center; padding: 10px 6px; }
  /* Hide the text label, keep the number circle */
  .step > :not(.step__num) { display: none; }
}

/* Form spacing tighter on phones */
@media (max-width: 480px) {
  .form-card { padding: 24px 20px; }
  .form-row { gap: 12px; margin-bottom: 12px; }
  .form-field input, .form-field select, .form-field textarea { padding: 12px 12px; }
}

/* Page header (subpages) — let h1 use full width on mobile */
@media (max-width: 720px) {
  .page-head h1 { max-width: none; }
  .page-head p { font-size: .98rem; }
  .crumbs { font-size: .78rem; gap: 6px; }
}

/* Blog article body — slightly smaller type & tighter spacing on phones */
@media (max-width: 560px) {
  .article { font-size: 1rem; line-height: 1.7; }
  .article h2 { margin: 1.6em 0 .45em; font-size: 1.3rem; }
  .article h3 { margin: 1.3em 0 .35em; font-size: 1.1rem; }
  .tldr { padding: 18px 18px; margin: 0 auto 24px; }
  .tldr p { font-size: .96rem; }
  .post-meta { font-size: .82rem; gap: 10px; }
}

/* Author card — wrap nicely on phones */
@media (max-width: 480px) {
  .author-card { padding: 16px 18px; gap: 12px; }
  .author-card__avatar { width: 46px; height: 46px; flex-basis: 46px; }
}

/* Footer — keep the developer credit pill compact on phones AND centered. */
@media (max-width: 720px) {
  .footer-bottom > .footer-dev {
    flex-basis: auto;
    align-self: center;
    margin: 0 auto;
  }
}

/* Doctor cards — keep two action buttons readable on mobile */
@media (max-width: 380px) {
  .doc-card .doc-meta { flex-wrap: wrap; gap: 8px; }
}

/* Floating buttons — slightly smaller on small phones for less visual clutter */
@media (max-width: 480px) {
  .float-btn { width: 50px; height: 50px; }
  .float-btn svg { width: 22px; height: 22px; }
  .float-stack { right: 14px; }
}

/* Mobile CTA bar — make sure tap targets are healthy */
@media (max-width: 480px) {
  .mobile-cta-bar a { padding: 14px 6px; font-size: .68rem; }
  .mobile-cta-bar a svg { width: 20px; height: 20px; }
}

/* Marquee — ensure cards don't exceed viewport on narrowest phones */
@media (max-width: 360px) {
  .marquee__item { flex: 0 0 260px; max-width: 260px; }
  .t-card { padding: 22px; }
  .t-card blockquote { font-size: .94rem; }
}

/* Reveal — keep content accessible if JS doesn't run */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sticky header — slightly shorter on mobile for more content area */
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand__logo { height: 58px; max-width: 74px; }
  .brand__mark { width: 40px; height: 40px; border-radius: 12px; }
}

/* Surgeries cards — give the badge breathing room when stacking */
@media (max-width: 480px) {
  .card { padding: 22px; }
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: .9rem; }
}

/* Doctors profile — image aspect to suit narrow screens */
@media (max-width: 720px) {
  .doc-card__img { aspect-ratio: 4/3.5; }
}

/* Map iframe — minimum sensible height on phones */
@media (max-width: 720px) {
  .map-wrap iframe { min-height: 320px; }
}

/* Mobile menu items — comfy tap targets */
@media (max-width: 480px) {
  .mobile-menu__nav a { padding: 16px 16px; font-size: 1.05rem; }
}

/* Section padding cap on mobile — was 56px min, fine, but let's
   ensure soft sections don't double-pad with mobile bottom bar */
@media (max-width: 720px) {
  body { padding-bottom: 64px; }
}

/* ============================================================
   Mobile menu — Departments submenu (collapsible)
   ============================================================ */
.mobile-menu__submenu { display: block; margin: 0; padding: 0; }
.mobile-menu__submenu > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 1.02rem;
  color: var(--c-ink-900);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background .2s ease, color .2s ease;
}
.mobile-menu__submenu > summary::-webkit-details-marker { display: none; }
.mobile-menu__submenu > summary::after {
  content: "";
  flex: 0 0 8px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--c-ink-500);
  border-bottom: 2px solid var(--c-ink-500);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
.mobile-menu__submenu[open] > summary::after {
  transform: rotate(-135deg) translateY(2px);
  border-color: var(--c-blue-800);
}
.mobile-menu__submenu > summary:hover,
.mobile-menu__submenu[open] > summary {
  background: var(--c-blue-50);
  color: var(--c-blue-800);
}
.mobile-menu__sublist {
  margin: 4px 0 8px 12px;
  border-left: 2px solid var(--c-line);
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu__sublist a {
  padding: 12px 14px;
  font-size: .96rem;
  color: var(--c-ink-700);
  border-radius: 10px;
  display: block;
}
.mobile-menu__sublist a:hover {
  background: var(--c-teal-50);
  color: var(--c-blue-800);
}

/* ============================================================
   Footer — alignment across desktop, tablet, mobile
   ============================================================ */
.footer-grid { align-items: start; }                /* don't stretch cells */
.footer-grid > * { min-width: 0; }                  /* prevent overflow on narrow */
.site-footer h4 { margin-top: 0; }                  /* consistent first-line position */

@media (min-width: 721px) and (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
}

/* Single column + fully centered contents on phones */
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .footer-grid > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .site-footer { padding: 56px 0 24px; }

  /* Brand: stack logo above the name, centered */
  .footer-brand {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin-bottom: 8px;
  }

  /* Section headings + body paragraph */
  .site-footer h4 { text-align: center; margin-bottom: 14px; }
  .site-footer p { text-align: center; }

  /* Quick-link lists */
  .footer-list {
    padding-left: 0;
    list-style: none;
    width: 100%;
    text-align: center;
  }
  .footer-list li { text-align: center; }

  /* Contact list with icons — stack icon above text, both centered */
  .footer-contact {
    padding-left: 0;
    list-style: none;
    width: 100%;
  }
  .footer-contact li {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  .footer-contact li svg { margin-top: 0; }
  .footer-contact li span,
  .footer-contact li small { text-align: center; }

  /* Social icons row */
  .social { justify-content: center; }
}

/* ============================================================
   Mobile button system — all .btn elements equal-width, full container
   ============================================================ */
@media (max-width: 720px) {
  /* Every standard button: full width, generous tap target, centered */
  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: .95rem;
    min-height: 48px;
    box-sizing: border-box;
  }
  .btn-lg,
  .btn-sm {
    padding: 14px 22px;
    font-size: .95rem;
    min-height: 48px;
  }

  /* Stack containers of multiple buttons */
  .hero-cta,
  .cta-banner__actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  /* Override inline 1fr 1fr grids on doctor cards so the two buttons stack */
  .doc-card__body > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Standalone btn pairs in section-ends (e.g. testimonials, blog) */
  .text-center { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
  .text-center > .btn { margin: 0; }

  /* Section-head action rows that mix inline btns */
  .section-head > .btn,
  .section .btn + .btn { margin-top: 0; }

  /* === EXCEPTIONS — keep these their natural size === */
  .nav-cta { width: auto; }
  .nav-cta .btn,
  .nav-cta .btn-sm {
    width: auto;
    min-height: 0;
    padding: 10px 14px;
    font-size: .82rem;
    flex: 0 0 auto;
  }
  .float-btn,
  .mobile-cta-bar a,
  .tag-row a {
    width: auto;
    min-height: 0;
    padding: initial;
  }
  .float-btn { width: 50px; height: 50px; }
  .mobile-cta-bar a { padding: 12px 6px; }
  .tag-row a { padding: 8px 14px; }
}

/* ============================================================
   Responsiveness hardening — eliminates the root causes of
   horizontal scroll / blow-out on phones & tablets, site-wide.
   ============================================================ */

/* 1) Allow grid & flex children to shrink below their intrinsic content
      width. `min-width:auto` (the CSS default) is the single most common
      reason a long word, image or nowrap element silently forces the page
      wider than the screen. Setting it to 0 lets tracks collapse cleanly. */
.grid > *,
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.hero-grid > *,
.surg-grid > *,
.layout-split > *,
.counter-row > *,
.cta-banner > *,
.footer-grid > *,
.trust-strip__inner > *,
.founder > *,
.emergency-strip .container > *,
.form-row > * { min-width: 0; }

/* 2) Long unbroken strings (emails, URLs, the street address) wrap instead
      of pushing the layout sideways. */
body { overflow-wrap: break-word; }
.footer-contact span, .topbar__item, .crumbs { overflow-wrap: anywhere; }

/* 3) No embedded media (images, maps, video) can ever exceed its container. */
img, svg, video, iframe, canvas { max-width: 100%; }

/* 4) Final guarantee: nothing produces a horizontal scrollbar on the page.
      `clip` is used (not `hidden`) so the sticky header keeps working. */
html, body { max-width: 100%; overflow-x: clip; }

/* 5) Tablet polish — give 2-column card grids a touch more breathing room
      in the 641–820px band before they stack at 640px. */
@media (min-width: 641px) and (max-width: 820px) {
  .grid { gap: 18px; }
  .card { padding: 24px; }
}
