/* ============================================================
   MediMist Hospital — Design System
   Soft Mint + Deep Teal theme
   Premium · Minimal · Clinically credible · Mobile-first
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette — Soft Mint + Deep Teal */
  --mint-50:    #E3F3EE;   /* main page + hero background  (Soft Mint) */
  --mint-100:   #CDE5DF;   /* subtle borders                (Pale Mint) */
  --mint-200:   #B7D6CF;   /* mint hover / divider line */
  --teal-700:   #0B716D;   /* primary buttons + selected tab (Deep Teal) */
  --teal-800:   #105C59;   /* statistic cards                (Dark Teal) */
  --teal-900:   #0B4A47;   /* deepest teal — for topbar / emergency bar bg */

  /* Text */
  --navy:       #142D36;   /* main headings                  (Dark Navy) */
  --slate:      #40565E;   /* paragraphs + supporting text   (Dark Slate) */
  --slate-soft: #6B8088;   /* muted captions */

  /* Surfaces */
  --white:      #FFFFFF;   /* header, nav, filter strip */
  --line:       #E3ECE9;   /* default border (subtle mint-tinted) */
  --line-2:     #CDE5DF;   /* stronger mint border (Pale Mint) */

  /* Emergency — kept distinct from teal palette */
  --red-600:    #C0312B;
  --red-100:    #FBE6E4;

  /* Tints & accents (derived for backward-compat) */
  --ink:        #142D36;   /* alias → navy */
  --ink-2:      #40565E;   /* alias → slate (body text) */
  --muted:      #6B8088;
  --bg:         #FFFFFF;
  --bg-soft:    #E3F3EE;   /* alias → mint */
  --bg-mist:    #E3F3EE;
  --teal-900:   #0B4A47;
  --teal-600:   #0B716D;   /* alias → deep teal */
  --teal-500:   #0B716D;
  --teal-300:   #CDE5DF;   /* alias → pale mint */
  --teal-100:   #E3F3EE;   /* alias → soft mint */
  --teal-50:    #E3F3EE;
  --gold-500:   #b89149;   /* kept for any legacy refs */
  --gold-100:   #f3ead4;

  /* Radius & shadow — restrained, mint-tinted */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --shadow-sm: 0 1px 2px rgba(20,45,54,.04), 0 4px 10px rgba(11,113,109,.05);
  --shadow-md: 0 4px 14px rgba(20,45,54,.06), 0 12px 28px rgba(11,113,109,.08);
  --shadow-lg: 0 16px 40px rgba(11,113,109,.10), 0 6px 16px rgba(20,45,54,.05);

  /* Typography */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--slate);
  background: var(--mint-50);   /* Soft Mint page background */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern', 'liga', 'ss01';
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);            /* Dark Navy headings */
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; color: var(--slate); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* Selection */
::selection { background: var(--mint-100); color: var(--navy); }

/* ---------- Visible keyboard focus ---------- */
:focus-visible {
  outline: 3px solid var(--teal-700);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Mist motif (lightweight SVG curves at hero edges) ----------
   The hero has a Soft Mint base. A thin inline SVG with three large
   translucent ellipses (mint, deeper mint, faint teal) is layered on top
   with `pointer-events: none` so clicks pass through. The centre stays
   empty for readable text.
*/
.mist-bg {
  position: relative;
  overflow: hidden;             /* clip decorative overflow at section edge */
  isolation: isolate;           /* keep blend modes contained */
}
.mist-bg::before,
.mist-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
  /* never larger than viewport so no horizontal scroll */
  max-width: 60vw;
}
/* Top-right mint blob */
.mist-bg::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #B7D6CF 0%, transparent 65%);
  top: -180px; right: -120px;
}
/* Bottom-left deeper-mint blob */
.mist-bg::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #CDE5DF 0%, transparent 65%);
  bottom: -140px; left: -100px;
  opacity: .75;
}
.mist-bg > * { position: relative; z-index: 1; }

/* Thin decorative curve line — uses a transparent SVG background
   so it never affects layout or causes horizontal scroll. */
.droplet-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 700' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke='%230B716D' stroke-width='1' opacity='0.10'><ellipse cx='1200' cy='120' rx='420' ry='280'/><ellipse cx='100' cy='600' rx='380' ry='260'/><ellipse cx='1100' cy='650' rx='320' ry='200'/></g></svg>");
  background-size: cover;
  background-position: center;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--teal-900);            /* Deepest teal — distinct from mint page */
  color: #cfe2e1;
  font-size: .8rem;
  letter-spacing: .02em;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 1.5rem;
  flex-wrap: wrap; gap: .75rem;
}
.topbar-left, .topbar-right { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar .emergency-pill {
  color: #fff;
  background: var(--red-600);             /* Emergency red — kept distinct */
  padding: .15rem .6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .72rem;
}

/* ---------- Header (white) ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);   /* subtle mint-tinted border */
  box-shadow: 0 1px 0 rgba(11,113,109,.04);
}
.header-inner {
  display: flex; align-items: stretch;      /* logo stretches full header height */
  gap: 1.25rem;
  /* Asymmetric padding: logo sits flush against left edge; CTA keeps
     breathing room from the right edge. */
  padding: 0 1.5rem 0 0;
  min-height: 110px;                        /* leaves room for the logo artwork */
}
.logo {
  display: flex; align-items: stretch;
  text-decoration: none; color: var(--navy);
}
.logo:hover { text-decoration: none; }
/* Real logo image — source PNG was cropped to artwork bounds (914×898),
   so the image itself contains only the brand artwork with no internal
   whitespace. The image renders at 100px tall (slightly less than the
   110px header) and uses padding-bottom to align it visually in the
   upper portion of the header — leaving breathing room (whitespace)
   below the logo before reaching the header's bottom border. */
.logo-img {
  display: block;
  height: 110px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  padding-bottom: 0;
  align-self: stretch;
}
/* Smaller logo in the footer */
.footer-brand .logo-img {
  height: 84px;
  max-width: 240px;
  padding-bottom: 6px;
}
/* Mobile: logo scales down so it doesn't crowd the hamburger button
   while still stretching to touch both header edges. */
@media (max-width: 920px) {
  .header-inner   { min-height: 110px; }
  .header .logo-img { height: 110px; max-width: 260px; padding-bottom: 0; }
  .footer-brand .logo-img { height: 70px; max-width: 200px; padding-bottom: 5px; }
}
@media (max-width: 720px) {
  .header-inner   { min-height: 80px; }
  .logo-img       { height: 70px;  max-width: 200px; padding-bottom: 5px; }
  .footer-brand .logo-img { height: 64px; max-width: 180px; padding-bottom: 4px; }
}
@media (max-width: 480px) {
  .header-inner   { min-height: 64px; }
  .logo-img       { height: 56px;  max-width: 160px; padding-bottom: 4px; }
  .footer-brand .logo-img { height: 56px; max-width: 160px; padding-bottom: 4px; }
}
.logo-mark {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-800));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--navy);
}
.logo-text small {
  display: block;
  font-size: .7rem;
  color: var(--slate-soft);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  margin-left: clamp(1rem, 4vw, 4rem);    /* nav shifts right of logo, responsive */
  margin-right: 1.5rem;                  /* tighter gap so CTA never clips on smaller screens */
  display: flex; gap: 1.4rem;             /* slightly tighter nav spacing to fit 8 items at narrow viewports */
  align-items: center;
  flex-shrink: 0;
}
.nav a {
  color: var(--slate);
  font-weight: 500;
  font-size: .88rem;                     /* slightly smaller font so 8 items fit comfortably */
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--teal-700); border-color: var(--mint-100); text-decoration: none; }
.nav a.active { color: var(--teal-700); border-color: var(--teal-700); font-weight: 600; }

/* ---------- Header intro animation (one-time per session) ---------- */
/*
   Triggered by adding class="intro-anim" on <body>. JS removes it after
   the sequence completes so the nav stays interactive. Respects
   prefers-reduced-motion (skipped below).
*/
.intro-anim .nav > a,
.intro-anim .nav-mega-trigger,
.intro-anim .header-cta {
  opacity: 0;
  transform: translateY(-6px) scale(.92);
  pointer-events: none;
}
.intro-anim .logo {
  opacity: 0;
  transform: translateX(-6px);
}
.intro-anim .menu-toggle,
.intro-anim .topbar-inner > * {
  opacity: 0;
}

/* Stagger each nav link by 80ms */
.intro-anim .nav > a:nth-child(1) { animation: navIn .45s .10s forwards ease-out; }
.intro-anim .nav > a:nth-child(2) { animation: navIn .45s .18s forwards ease-out; }
.intro-anim .nav > a:nth-child(3) { animation: navIn .45s .26s forwards ease-out; }
.intro-anim .nav > a:nth-child(4) { animation: navIn .45s .34s forwards ease-out; }
.intro-anim .nav > a:nth-child(5) { animation: navIn .45s .42s forwards ease-out; }
.intro-anim .nav > a:nth-child(6) { animation: navIn .45s .50s forwards ease-out; }
.intro-anim .nav > a:nth-child(7) { animation: navIn .45s .58s forwards ease-out; }
.intro-anim .nav > a:nth-child(8) { animation: navIn .45s .66s forwards ease-out; }
.intro-anim .nav-mega-trigger { animation: navIn .45s .26s forwards ease-out; }

/* CTA pops in last (2.40s) — header CTA is the final beat of the intro.
   Lands just after the last hero CTA, so the whole page settles together. */
.intro-anim .header-cta {
  animation: ctaPopRiseDown .55s 2.40s forwards cubic-bezier(.34,1.56,.64,1);
  transform-origin: center;
}

/* Logo and topbar come in first, very fast */
.intro-anim .logo          { animation: logoIn .5s .00s forwards ease-out; }
.intro-anim .topbar-inner > *:nth-child(1) { animation: navIn .35s .00s forwards ease-out; }
.intro-anim .topbar-inner > *:nth-child(2) { animation: navIn .35s .05s forwards ease-out; }
.intro-anim .menu-toggle    { animation: navIn .35s .10s forwards ease-out; }

@keyframes navIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes logoIn {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes ctaPop {
  0%   { opacity: 0; transform: scale(.7); }
  60%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
/* For buttons whose initial transform includes a translateY rise
   (used by both header CTA — falls from above — and hero CTAs — rise from below) */
@keyframes ctaPopRiseDown {
  0%   { opacity: 0; transform: translateY(-6px) scale(.85); }
  60%  { opacity: 1; transform: translateY(0) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ctaPopRiseUp {
  0%   { opacity: 0; transform: translateY(8px) scale(.92); }
  60%  { opacity: 1; transform: translateY(0) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.intro-anim .header-cta { animation-name: ctaPopRiseDown; }
/* hero CTAs use ctaPopRiseUp */
/* Soft glow pulse around CTA on landing */
.intro-anim .header-cta::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: rgba(11,113,109,.35);
  filter: blur(8px);
  opacity: 0;
  animation: ctaGlow .9s 2.75s forwards ease-out;
  z-index: -1;
}
.intro-anim .header-cta { position: relative; }
@keyframes ctaGlow {
  0%   { opacity: 0; transform: scale(.9); }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.15); }
}

/* Respect user's reduced-motion preference — show nav immediately */
@media (prefers-reduced-motion: reduce) {
  .intro-anim .nav a,
  .intro-anim .header-cta,
  .intro-anim .logo,
  .intro-anim .menu-toggle,
  .intro-anim .topbar-inner > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .intro-anim .header-cta::after { display: none; }
}

/* ---------- Hero intro reveal (homepage only, runs in PARALLEL with header) ----------
   Triggered by adding class="hero-intro" on <body>. Sequence runs in lock-step
   with the header sequence so the page comes alive together, not in two waves.

     0.00s logo + topbar + hero eyebrow + hero visual all start
     0.10s Home nav link fades up
     0.18s About ... (80ms stagger across the 8 nav links)
     0.66s Contact (last nav link)
     0.50s "Modern Medicine." fades up
     1.00s "Thoughtful Care." (italic) un-skews and settles
     1.30s lead paragraph fades up
     1.60s meta grid fades in
     1.90s Book Appointment CTA pops (1 of 3)
     2.05s Call Emergency CTA pops (2 of 3)
     2.20s View Specialities CTA pops (3 of 3)
     2.40s Header Book Appointment CTA pops + glow
     2.80s Sequence complete
*/
.hero-intro .hero .eyebrow,
.hero-intro .hero .hero-text h1,
.hero-intro .hero .hero-text h1 *,
.hero-intro .hero .hero-lead,
.hero-intro .hero .hero-meta,
.hero-intro .hero .hero-actions,
.hero-intro .hero .hero-visual {
  opacity: 0;
  pointer-events: none;
}
.hero-intro .hero-text h1         { transform: translateY(14px); }
.hero-intro .hero-text h1 .accent { transform: translateY(8px) skewX(-3deg); display: inline-block; transform-origin: left bottom; }
.hero-intro .hero-lead            { transform: translateY(10px); }
.hero-intro .hero-meta            { transform: translateY(8px); }
.hero-intro .hero-actions         { transform: translateY(8px); }
.hero-intro .hero-visual          { transform: translateX(20px) scale(.98); }

.hero-intro .hero .eyebrow    { animation: heroEyebrow .5s 0.00s forwards ease-out; }
.hero-intro .hero-text h1     { animation: heroUp .65s 0.50s forwards ease-out; }
.hero-intro .hero-text h1 .accent { animation: heroItalic .75s 1.00s forwards cubic-bezier(.22,1,.36,1); }
.hero-intro .hero-lead        { animation: heroUp .55s 1.30s forwards ease-out; }
.hero-intro .hero-meta        { animation: heroUp .55s 1.60s forwards ease-out; }
.hero-intro .hero-actions > * { opacity: 0; transform: translateY(8px) scale(.92); pointer-events: none; }
.hero-intro .hero-actions > *:nth-child(1) { animation: ctaPopRiseUp .55s 1.90s forwards cubic-bezier(.34,1.56,.64,1); }
.hero-intro .hero-actions > *:nth-child(2) { animation: ctaPopRiseUp .55s 2.05s forwards cubic-bezier(.34,1.56,.64,1); }
.hero-intro .hero-actions > *:nth-child(3) { animation: ctaPopRiseUp .55s 2.20s forwards cubic-bezier(.34,1.56,.64,1); }
.hero-intro .hero-visual      { animation: heroVisual .7s 0.10s forwards ease-out; }

@keyframes heroEyebrow {
  to { opacity: 1; }
}
@keyframes heroUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroItalic {
  to { opacity: 1; transform: translateY(0) skewX(0); }
}
@keyframes heroVisual {
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* CTA pop-in: header CTA uses ctaPopRiseDown (above), hero CTAs use ctaPopRiseUp.
   The original ctaPop (scale-only) is no longer referenced but kept for safety. */

/* Skip-on-click: when body gets .intro-skip, snap everything to final state */
.intro-skip .hero .eyebrow,
.intro-skip .hero .hero-text h1,
.intro-skip .hero .hero-text h1 *,
.intro-skip .hero .hero-lead,
.intro-skip .hero .hero-meta,
.intro-skip .hero .hero-actions,
.intro-skip .hero .hero-visual {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}
.intro-skip .hero-actions > * { animation: none !important; opacity: 1 !important; transform: none !important; }

/* Reduced-motion: show hero immediately too */
@media (prefers-reduced-motion: reduce) {
  .hero-intro .hero .eyebrow,
  .hero-intro .hero .hero-text h1,
  .hero-intro .hero .hero-text h1 *,
  .hero-intro .hero .hero-lead,
  .hero-intro .hero .hero-meta,
  .hero-intro .hero .hero-actions,
  .hero-intro .hero .hero-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .hero-intro .hero-actions > * { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Header ----------
   Defined earlier (white surface, navy text, teal active underline).
   Below: header CTA button placement + mobile menu toggle.
*/

.header-cta {
  margin-left: 0;                 /* nav already has margin-right: 1.5rem — no extra gap */
  align-self: center;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 10px;
  width: 44px; height: 44px;
  flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  padding: 0;
  align-self: center;
  flex-shrink: 0;
}
.menu-toggle span {
  width: 18px; height: 1.8px; background: var(--navy); border-radius: 2px; display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--teal-700);          /* Deep Teal #0B716D */
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-800); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost {
  color: var(--teal-700);
  background: #fff;                     /* white surface for ghost/inactive tabs */
  border-color: var(--mint-100);        /* Pale Mint border */
}
.btn-ghost:hover {
  background: var(--mint-50);
  border-color: var(--teal-700);
  color: var(--teal-700);
}
.btn-light {
  background: #fff;
  color: var(--teal-700);
  border-color: var(--mint-100);
}
.btn-light:hover { background: var(--mint-50); border-color: var(--teal-700); }
/* Emergency button — kept visually distinct from the rest of the palette
   so emergency actions remain immediately recognisable. */
.btn-emergency {
  background: var(--red-600);
  color: #fff;
  border-color: var(--red-600);
  box-shadow: 0 8px 20px -6px rgba(192,49,43,.45);
}
.btn-emergency:hover { background: #a32824; border-color: #a32824; }

/* WhatsApp button — light green (WhatsApp brand #25D366) used across the
   site for any WhatsApp action (CTAs, contact cards, mobile action bar).
   White text + icon for contrast. */
.btn-whatsapp {
  background: #25D366;            /* WhatsApp brand green — light, saturated */
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 6px 16px -4px rgba(37,211,102,.45);
}
.btn-whatsapp-link { background: #fff; color: #25D366; border-color: #25D366; box-shadow: 0 4px 12px -5px rgba(37,211,102,.25); }
.btn-whatsapp-link .whatsapp-mark { display: inline-block; width: 1.15em; height: 1.15em; margin-right: .45em; vertical-align: -.18em; }
.btn.btn-whatsapp-link:hover { background: #fff; color: #1ebe5a; border-color: #1ebe5a; box-shadow: 0 12px 26px -6px rgba(37,211,102,.35); transform: translateY(-3px); }
.btn-whatsapp:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
  box-shadow: 0 8px 20px -4px rgba(37,211,102,.55);
}
/* Contact-card variant — same green, full-width card layout on /contact */
.contact-card.whatsapp-card {
  border-color: #25D366;
}
.contact-card.whatsapp-card .ico {
  background: #d6f5e0;
  color: #1a8a48;
}
.contact-card.whatsapp-card:hover { border-color: #1ebe5a; }
/* Mobile action bar WhatsApp tile — light-green icon background */
.mobile-action-bar a.whatsapp {
  background: #d6f5e0;
  color: #1a8a48;
}

.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--teal-700);                 /* Deep Teal */
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1.5px;
  background: var(--teal-700);
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--mint-50);              /* Soft Mint full-width */
  padding: 5rem 0 6rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 4rem;
  align-items: center;
}
.hero-text h1 {
  margin-top: .25rem;
  font-weight: 500;
  color: var(--navy);                      /* Dark Navy */
}
.hero-text h1 .accent {
  color: var(--teal-700);                  /* Deep Teal italic */
  font-style: italic; font-weight: 500;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--slate);                     /* Dark Slate */
  max-width: 56ch;
  margin: 1.25rem 0 1.5rem;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);       /* subtle mint-tinted border */
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  font-size: .9rem;
  color: var(--slate);
}
.hero-meta strong { color: var(--navy); font-weight: 700; }
.hero-meta span { display: block; }
.hero-meta .meta-block { display: flex; align-items: center; gap: .55rem; }

.hero-actions {
  display: flex; gap: .75rem; flex-wrap: wrap;
}

/* Hero image plate — soft mint gradient, matches page background */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #ffffff 0%, var(--mint-100) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-2);
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(11,113,109,.10) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(16,92,89,.08) 0%, transparent 55%);
}
.hero-visual .photo-placeholder {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-visual .photo-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-badge {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: .75rem;
  font-size: .85rem;
  color: var(--ink-2);
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(22,163,74,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; position: relative; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head h2 { margin-bottom: .75rem; }
.section-head p  { color: var(--muted); font-size: 1.05rem; }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Section: Care you can rely on ---------- */
.rely-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.rely-card {
  text-align: left;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.rely-card:hover { border-color: var(--teal-300); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rely-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.rely-icon svg { width: 22px; height: 22px; }
.rely-card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.rely-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Specialities preview ---------- */
.specialities-preview { background: var(--bg-soft); }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* fixed 4 cols so Anaesthesia can be positioned in row 4 */
  gap: 1rem;
}
/* Anaesthesia & Perioperative: single-pill width, centered between
   Day-Care / Diagnostic & Laboratory. Wrap it in a centered container
   so the pill hugs the text (content-based width) rather than stretching
   with empty whitespace. Using justify-self:center so the pill
   positions itself in the middle of row 4. */
.spec-grid > .spec-pill:nth-child(13) {
  grid-column: 1 / -1;             /* take the full row so we can center within it */
  justify-self: center;             /* center the pill horizontally */
  /* No width:100% — pill shrinks to fit its content */
  min-width: 220px;                  /* same as other pills */
  max-width: max-content;            /* hug the text, no unused white space on the right */
  padding-right: 1.5rem;            /* keep right padding consistent with other pills */
}
/* Responsive: collapse grid columns as viewport shrinks */
@media (max-width: 920px) {
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-grid > .spec-pill:nth-child(13) {
    grid-column: 1 / span 3;          /* 3-col layout: span full row */
  }
}
@media (max-width: 720px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid > .spec-pill:nth-child(13) {
    grid-column: auto;                  /* 2-col layout: flow naturally */
  }
}
@media (max-width: 480px) {
  .spec-grid { grid-template-columns: 1fr; }
}
.spec-pill {
  display: flex; align-items: center; gap: .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.spec-pill:hover { border-color: var(--teal-500); background: var(--teal-50); text-decoration: none; color: var(--teal-700); }
.spec-pill .ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.spec-pill .ico svg { width: 16px; height: 16px; }

/* ---------- Emergency strip ---------- */
.emergency-strip {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.emergency-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(255,255,255,.10) 0%, transparent 50%);
  pointer-events: none;
}
.emergency-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.emergency-inner h2 { color: #fff; }
.emergency-inner p  { color: #cfe2e1; font-size: 1.05rem; }
.emergency-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.emergency-actions .btn-light { color: var(--red-600); }
.emergency-actions .btn-light:hover { background: var(--red-100); }

/* ---------- Doctors preview ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.doctor-card:hover { border-color: var(--teal-300); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.doctor-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--teal-50), var(--bg-mist));
  display: block;                 /* img inside needs block-level container */
  overflow: hidden;
  color: var(--teal-700);
  font-size: 3.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;               /* crop to fill, preserves aspect */
  object-position: center 20%;      /* favor top of photo so face stays visible */
}
.doctor-body { padding: 1.25rem; }
.doctor-body h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .15rem; }
.doctor-spec   { color: var(--teal-700); font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.doctor-exp    { color: var(--muted); font-size: .82rem; margin-bottom: 1rem; }
.doctor-tags   { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.tag {
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-700);
}

/* ---------- Facilities preview ---------- */
.facilities-preview { background: var(--bg-soft); }
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.facility-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-align: center;
}
.facility-tile .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--teal-700);
  line-height: 1;
  margin-bottom: .25rem;
}
.facility-tile .label { color: var(--muted); font-size: .9rem; }

/* ---------- Why MediMist ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.why-card {
  padding: 1.75rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
}
.why-card .check {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.why-card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.why-card p  { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.75rem;
  position: relative;
}
.testimonial::before {
  content: '“';
  position: absolute;
  top: -.5rem; left: 1.25rem;
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--teal-300);
  line-height: 1;
}
.testimonial blockquote { margin: 0 0 1rem; font-style: italic; color: var(--ink-2); font-size: .95rem; }
.testimonial figcaption { color: var(--muted); font-size: .85rem; }

/* ---------- Location strip ---------- */
.location-strip {
  background: var(--teal-900);
  color: #fff;
  padding: 4rem 0;
}
.location-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.location-inner h2 { color: #fff; }
.location-inner p  { color: #cfe2e1; }
.location-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.location-mini {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.location-mini strong { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: .35rem; }
.location-mini p { margin: 0; font-size: .92rem; color: #cfe2e1; }

/* ---------- CTA strip (generic) ---------- */
.cta-strip {
  padding: 4rem 0;
  background: var(--bg-mist);
  text-align: center;
}
.cta-strip h2 { margin-bottom: .5rem; }
.cta-strip p  { color: var(--muted); margin-bottom: 1.5rem; }
.cta-actions   { display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: #06181d;
  color: #9aafb4;
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; font-size: .9rem; }
.footer a { color: #cfe2e1; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer-brand p { color: #9aafb4; font-size: .9rem; margin-top: 1rem; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text small  { color: #6b8088; }
.footer-contact-line { display: block; margin-top: .35rem; color: #9aafb4; font-size: .85rem; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  color: #cfe2e1;
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--teal-600); color: #fff; text-decoration: none; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  color: #6b8088;
  text-align: center;
}
.footer-bottom a { color: #9aafb4; }

/* ---------- Persistent mobile action bar ---------- */
.mobile-action-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: .55rem .5rem calc(.55rem + env(safe-area-inset-bottom));
}
.mobile-action-bar .actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .25rem;
  max-width: 600px;
  margin: 0 auto;
}
.mobile-action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none;
  font-size: .65rem;
  font-weight: 600;
  padding: .35rem 0;
  border-radius: 10px;
  color: var(--ink-2);
}
.mobile-action-bar a:hover { text-decoration: none; }
.mobile-action-bar a.emergency { color: var(--red-600); }
.mobile-action-bar a.book      { color: var(--teal-700); background: var(--teal-50); }
.mobile-action-bar .ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.mobile-action-bar .ico svg { width: 20px; height: 20px; }

/* ---------- Floating call (desktop) ---------- */
.float-call {
  display: none;
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 56px; height: 56px;
  background: var(--teal-600); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 28px -4px rgba(14,118,116,.45);
  z-index: 55;
  text-decoration: none;
  transition: transform .15s, background .2s;
}
.float-call:hover { background: var(--teal-700); transform: scale(1.05); text-decoration: none; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 4.5rem 0 3.5rem;
  background: var(--mint-50);              /* Soft Mint full-width */
  position: relative;
  text-align: center;
}
.page-header h1 { font-weight: 500; color: var(--navy); }
.page-lead { max-width: 680px; margin: .75rem auto 0; color: var(--slate); font-size: 1.05rem; }

/* ---------- Page: About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem; align-items: start;
}
.about-text p { color: var(--ink-2); }
.about-text p + p { margin-top: 1rem; }
.about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-card {
  background: var(--teal-800);            /* Dark Teal statistic card */
  color: #fff;
  border: 1px solid var(--teal-800);
  border-radius: var(--r-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: #fff;                            /* white text on dark teal */
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-card span { color: rgba(255,255,255,.80); font-size: .88rem; }

.vision-mission {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.vm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.vm-card h3 {
  font-family: var(--sans);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: .75rem;
}
.vm-card .vm-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.4;
}

/* Core values — 9 items */
.values-section { background: var(--bg-soft); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.value-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  font-size: .95rem;
  transition: border-color .15s, background .15s, transform .15s;
}
.value-chip:hover { border-color: var(--teal-500); background: var(--teal-50); transform: translateY(-2px); }
.value-chip .ico {
  display: block;
  margin: 0 auto .6rem;
  width: 28px; height: 28px;
  color: var(--teal-700);
}

/* ---------- Page: Specialities ---------- */
.jump-bar {
  position: sticky; top: 78px; z-index: 30;
  background: var(--white);                /* white strip as per brief */
  border-bottom: 1px solid var(--line-2);  /* pale mint divider */
}
.jump-bar .container {
  display: flex; gap: .5rem; flex-wrap: wrap;
  padding: .75rem 1.5rem;
  justify-content: center;
}
/* Inactive specialty tab: white surface, pale mint border, dark navy text */
.jump-bar a {
  font-size: .82rem; font-weight: 600;
  padding: .4rem .95rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--mint-100);       /* Pale Mint border */
  transition: background .15s, border-color .15s, color .15s;
}
.jump-bar a:hover {
  background: var(--mint-50);
  border-color: var(--teal-700);
  color: var(--teal-700);
  text-decoration: none;
}
/* When the link matches the current page (specialities), highlight as "selected" */
.jump-bar a.active,
.jump-bar a[aria-current="true"] {
  background: var(--teal-700);            /* Deep Teal */
  color: #fff;
  border-color: var(--teal-700);
}

.speciality-block {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 3rem;
  align-items: start;
}
.speciality-block:first-of-type { border-top: none; }
.speciality-block.reverse .speciality-text { order: 2; }
.speciality-block.reverse .speciality-side { order: 1; }
.speciality-text h2 { font-weight: 500; }
.speciality-list {
  list-style: none; padding: 0; margin: 1.25rem 0 1.5rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.5rem;
}
.speciality-list li {
  position: relative; padding-left: 1.5rem;
  color: var(--ink-2); font-size: .95rem;
}
.speciality-list li::before {
  content: ''; position: absolute; left: 0; top: .55rem;
  width: 6px; height: 6px;
  background: var(--teal-500); border-radius: 50%;
}
.side-card {
  background: var(--teal-50);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--teal-100);
}
.side-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--teal-700);
  margin-bottom: .15rem;
}
.side-card span { color: var(--ink-2); font-size: .88rem; }

.consult-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.5rem;
}
.consult-chip {
  font-size: .82rem;
  padding: .35rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
}

/* ---------- Page: Doctors ---------- */
.filter-bar {
  position: sticky; top: 78px; z-index: 30;
  background: var(--white);                /* white strip per brief */
  border-bottom: 1px solid var(--line-2);  /* pale mint divider */
}
.filter-inner {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  padding: 1rem 1.5rem;
}
.filter-search {
  flex: 1; min-width: 240px;
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--mint-100);       /* Pale Mint border */
  border-radius: 999px;
  padding: .25rem 1rem;
  background: #fff;
}
.filter-search:focus-within { border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(11,113,109,.10); }
.filter-search input {
  flex: 1; border: none; background: transparent; padding: .6rem 0;
  font: inherit; outline: none; color: var(--navy);
}
.filter-select {
  padding: .7rem 1rem;
  border: 1px solid var(--mint-100);
  border-radius: 999px;
  background: #fff;
  font: inherit; cursor: pointer;
  color: var(--navy);
}
.filter-select:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(11,113,109,.10); }

.featured-doctor {
  background: linear-gradient(135deg, #fff 0%, var(--teal-50) 100%);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.featured-doctor .photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--teal-100), var(--bg-mist));
  border-radius: var(--r-md);
  display: flex;                   /* center child img both axes */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 4rem; color: var(--teal-700);
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
  position: relative;
}
.featured-doctor .photo img {
  display: block;
  /* Use 'cover' so photos fill the entire 1:1 box edge-to-edge.
     Hands and stethoscope reach the vertical sides of the box.
     object-position: center top keeps the face visible at the top. */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Match the supplied wide-canvas transparent cutout to the profile portrait frame. */
.featured-doctor .photo.photo--prashant img { object-fit: cover; object-position: center top; }
.featured-doctor .photo--portrait-contain {
  aspect-ratio: 4 / 5;
  background: #fff;
}
.featured-doctor .photo--portrait-contain img {
  object-fit: contain;
  object-position: center;
}
.featured-doctor .photo--portrait-contain.photo--prashant img { object-fit: cover; object-position: center top; }
#dr-prashant-a-kulkarni .photo { background: #fff; }
.featured-doctor h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .25rem; }
.featured-doctor .doctor-spec { color: var(--teal-700); font-weight: 600; font-size: .92rem; margin-bottom: .25rem; }
.featured-doctor .doctor-designation { color: var(--slate); font-size: .95rem; font-weight: 500; margin-bottom: .15rem; }
.featured-doctor .doctor-role { color: var(--teal-700); font-size: .88rem; font-weight: 600; margin-bottom: 1rem; }
.featured-doctor .doctor-bio { color: var(--slate); font-size: .95rem; line-height: 1.65; margin-bottom: 1.25rem; }
.featured-doctor p { color: var(--ink-2); }
.doctor-languages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: .25rem;
}
.doctor-languages__label {
  color: var(--teal-700);
  font-size: .82rem;
  font-weight: 700;
}
.doctor-languages .doctor-tags { margin-bottom: 0; }
.doctor-publications {
  margin-top: .25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-700);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.55);
}
.doctor-publications h4 {
  color: var(--teal-700);
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  margin: 0 0 .65rem;
}
.doctor-publications ul { list-style: none; margin: 0; padding: 0; }
.doctor-publications li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  padding: .5rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .82rem;
  line-height: 1.45;
}
.doctor-publications li:first-child { border-top: 0; padding-top: 0; }
.doctor-publications li:last-child { padding-bottom: 0; }
.doctor-publications time { color: var(--teal-700); font-weight: 700; white-space: nowrap; }

/* Mirrored variant: photo on the right, information on the left.
   Used for alternating doctor profiles so the page has visual rhythm. */
.featured-doctor--reverse {
  grid-template-columns: 1fr 280px;   /* info first column, photo second column */
}
.featured-doctor--reverse .photo {
  order: 2;                           /* photo moves to column 2 (right) */
  /* Use 'contain' so non-square photos fit without any side cropping. */
}
.featured-doctor--reverse .photo img {
  object-fit: contain;
  object-position: center center;
}
/* Mobile: stack normally (photo on top, info below) regardless of variant */
@media (max-width: 920px) {
  .featured-doctor--reverse {
    grid-template-columns: 1fr;
  }
  .featured-doctor--reverse .photo { order: 0; }
  .featured-doctor--reverse > div:last-child { order: 0; }
  .featured-doctor--reverse .photo { max-width: 320px; margin: 0 auto; }
}

.doctor-placeholder {
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 2rem 1.25rem;
  text-align: center;
}
.doctor-placeholder .ph-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 1.5rem;
}
.doctor-placeholder h3 { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-bottom: .35rem; }
.doctor-placeholder p  { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- Page: Facilities ---------- */
.facility-block {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.facility-block:first-of-type { border-top: none; }
.facility-block.reverse .facility-text { order: 2; }
.facility-block.reverse .facility-visual { order: 1; }
.facility-visual {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--teal-50), var(--bg-mist));
  border: 1.5px dashed var(--teal-300);
  display: grid; place-items: center;
  color: var(--teal-700);
  font-weight: 600;
  font-size: .85rem;
  text-align: center;
  padding: 1rem;
}
.facility-spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.facility-spec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem;
}
.facility-spec strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--teal-700); }
.facility-spec span { color: var(--muted); font-size: .88rem; }

/* ---------- Page: Patient Services ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}
.service-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.75rem;
  text-align: center;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.service-tile:hover { border-color: var(--teal-300); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-tile .ico {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin: 0 auto 1rem;
}
.service-tile h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.service-tile p  { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Page: Health Info ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.article-card:hover { border-color: var(--teal-300); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--teal-50), var(--bg-mist));
  display: grid; place-items: center;
  color: var(--teal-700);
  font-size: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.article-body { padding: 1.25rem; }
.article-body .meta { color: var(--muted); font-size: .8rem; margin-bottom: .35rem; }
.article-body h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .5rem; }
.article-body p { color: var(--ink-2); font-size: .92rem; margin-bottom: 1rem; }

/* ---------- Page: Contact ---------- */
.contact-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, border-color .15s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--teal-500); text-decoration: none; }
.contact-card.emergency-card { border-color: var(--red-100); }
.contact-card.emergency-card:hover { border-color: var(--red-600); }
.contact-card .ico {
  width: 50px; height: 50px;
  margin: 0 auto .85rem;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
}
.emergency-card .ico { background: var(--red-100); color: var(--red-600); }
.contact-card h3 {
  font-family: var(--sans); font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 .35rem;
}
.contact-card .val { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: .5rem; }
.contact-card .arrow { font-size: .82rem; color: var(--teal-700); font-weight: 600; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 3rem;
  align-items: start;
}
.contact-main > * + * { margin-top: 2.5rem; }
.contact-main h2 { font-weight: 500; margin-bottom: 1rem; }
.big-address { font-size: 1.1rem; line-height: 1.6; }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.contact-list li { padding: .35rem 0; color: var(--ink-2); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.hours-table td { padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.hours-table .open { color: var(--teal-700); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: sticky; top: 100px;
}
.contact-form h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .35rem; }
.contact-form .form-intro { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label.field {
  display: block;
  font-size: .82rem;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 1rem;
}
label.field input,
label.field select,
label.field textarea {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  color: var(--ink);
}
label.field input:focus,
label.field select:focus,
label.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(11,113,109,.12);
}
label.checkbox {
  display: flex; align-items: flex-start; gap: .5rem;
  font-weight: 400; color: var(--ink-2); font-size: .85rem;
  margin: .5rem 0 1rem;
}
label.checkbox input { width: auto; margin-top: 3px; }
.req { color: var(--red-600); }
.form-note { display: block; color: var(--muted); margin-top: .75rem; font-size: .8rem; text-align: center; }

/* ---------- Appointment page extras ---------- */
.steps { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.steps li {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--line);
}
.steps li:last-child { border-bottom: none; }
.steps .step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal-600);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}
.steps h4 { margin: 0 0 .25rem; font-family: var(--sans); font-size: 1rem; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Map (contact page) ---------- */
.map-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-placeholder {
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-50), var(--bg-mist));
  border: 2px dashed var(--teal-300);
  color: var(--teal-700);
  font-weight: 600;
  text-align: center;
  padding: 1.5rem;
}
.success-msg {
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--r-sm);
  font-size: .9rem;
  text-align: center;
}

/* ---------- Legal / stub pages ---------- */
.legal-page { padding: 4rem 0; }
.legal-page .container { max-width: 820px; }
.legal-page h2 { font-family: var(--serif); margin-top: 2rem; }
.legal-page p { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 920px) {
  .hero-inner,
  .emergency-inner,
  .location-inner,
  .about-grid,
  .vision-mission,
  .contact-layout,
  .featured-doctor,
  .facility-block,
  .speciality-block {
    grid-template-columns: 1fr;
  }
  .speciality-block.reverse .speciality-text,
  .speciality-block.reverse .speciality-side,
  .facility-block.reverse .facility-text,
  .facility-block.reverse .facility-visual {
    order: initial;
  }
  .service-block { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .speciality-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .jump-bar, .filter-bar { position: static; }
  .contact-form { position: static; }
}
@media (max-width: 720px) {
  .header-inner {
    min-height: 110px;
    gap: .75rem;
    padding: 0;
  }
  .header .logo-img {
    content: url("../logo-mobile.png");
    height: 100px;
    max-width: 260px;
    padding-bottom: 5px;
  }
  .menu-toggle {
    display: flex;
    margin-left: auto;
    width: 48px;
    height: 48px;
    position: relative;
    z-index: 2;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    min-height: 2px;
    flex: 0 0 2px;
    background: var(--navy);
    border-radius: 2px;
  }
  .intro-anim .menu-toggle {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .75rem 1.5rem 1.25rem;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: .65rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .header-cta { display: none; }
  .hero { padding: 3rem 0 4rem; }
  .section { padding: 3.5rem 0; }
  .service-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .topbar-right { display: none; }
  .featured-doctor { padding: 1.5rem; }
  .featured-doctor .photo { max-width: 200px; margin: 0 auto; }
  .hero-badge {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    gap: .5rem;
    padding: .75rem .85rem;
    font-size: .76rem;
    line-height: 1.35;
  }
  .hero-badge > span:last-child { min-width: 0; }
  .doctor-publications li {
    grid-template-columns: 1fr;
    gap: .15rem;
  }
  /* Show mobile action bar; hide desktop floating call */
  .mobile-action-bar { display: block; }
  .float-call { display: none; }
  body { padding-bottom: 70px; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }

/* ============================================================
   Mist Droplet Signature — premium navy / teal redesign
   Shared surface rules apply across every existing route.
   ============================================================ */
:root {
  --navy: #17345D;
  --teal-700: #087F7D;
  --teal-800: #086F70;
  --teal-900: #17345D;
  --mint-50: #EDF8F6;
  --mint-100: #DDF4F2;
  --mint-200: #C7E8E4;
  --slate: #24364B;
  --slate-soft: #64717E;
  --white: #FFFFFF;
  --line: #E4E8E5;
  --line-2: #D7ECE9;
  --bg: #FBF9F4;
  --bg-soft: #EDF8F6;
  --bg-mist: #DDF4F2;
  --teal-50: #EDF8F6;
  --teal-100: #DDF4F2;
  --teal-300: #BCE5E0;
  --teal-500: #087F7D;
  --ink: #24364B;
  --ink-2: #64717E;
  --muted: #64717E;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 5px 18px rgba(23,52,93,.06);
  --shadow-md: 0 16px 42px rgba(23,52,93,.09);
  --shadow-lg: 0 24px 64px rgba(23,52,93,.13);
}
body { background: var(--bg); color: var(--slate); }
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -.025em; }
h1 { font-size: clamp(2.8rem, 5.4vw, 4.7rem); line-height: .98; }
h2 { font-size: clamp(2.2rem, 3.6vw, 3.25rem); line-height: 1.02; }
.topbar { background: var(--navy); }
.header { background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-bottom-color: rgba(23,52,93,.09); }
.nav a { color: var(--navy); letter-spacing: .005em; }
.nav a.active, .nav a:hover { color: var(--teal-700); border-color: var(--teal-700); }
.btn { font-weight: 700; letter-spacing: .01em; }
.btn-primary { background: var(--teal-700); box-shadow: 0 10px 22px rgba(8,127,125,.20); }
.btn-primary:hover { background: var(--teal-800); box-shadow: 0 14px 28px rgba(8,127,125,.26); }
.btn-ghost { border-color: #B7DEDA; color: var(--navy); }
.btn-ghost:hover { background: var(--mint-50); border-color: var(--teal-700); color: var(--teal-700); }
.eyebrow { color: var(--teal-700); letter-spacing: .18em; }
.eyebrow::before { width: 38px; background: linear-gradient(90deg, var(--teal-700), #8AD8D1); }

/* Mist surfaces appear in hero, page headings, selected sections and footer — never behind dense copy. */
.mist-bg { background: linear-gradient(132deg, #FBF9F4 0%, #EDF8F6 53%, #DDF4F2 100%); }
.mist-bg::before { width: 560px; height: 560px; background: radial-gradient(circle, rgba(86,190,181,.30) 0%, transparent 67%); opacity: .82; }
.mist-bg::after { width: 420px; height: 420px; background: radial-gradient(circle, rgba(8,127,125,.15) 0%, transparent 67%); opacity: .7; }
.droplet-overlay { background-image: url("../images/mist-droplet-signature.svg"); background-repeat: no-repeat; background-size: min(450px, 36vw); background-position: calc(100% + 110px) -115px; opacity: .24; }
.hero { background: linear-gradient(132deg, #FBF9F4 0%, #EDF8F6 54%, #DDF4F2 100%); padding: 6.5rem 0 7rem; }
.hero-inner { grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 6vw, 6.5rem); }
.hero-text h1 { max-width: 12ch; }
.hero-text h1 .accent { color: var(--teal-700); }
.hero-lead { font-size: 1.08rem; line-height: 1.75; }
.hero-meta { border-color: rgba(23,52,93,.13); gap: .85rem 1.5rem; }
.hero-meta .meta-block { padding-right: 1rem; border-right: 1px solid rgba(23,52,93,.12); }
.hero-meta .meta-block:last-child { border-right: 0; }
.hero-visual { border-radius: 38% 62% 40% 60% / 44% 44% 56% 56%; border: 10px solid rgba(255,255,255,.65); box-shadow: var(--shadow-lg); background: #DDF4F2; isolation: isolate; }
.hero-visual::before { z-index: 1; background: linear-gradient(140deg, rgba(8,127,125,.17), transparent 52%); }
.hero-visual .photo-placeholder { z-index: 0; }
.hero-visual .photo-placeholder img { object-position: 58% center; filter: saturate(.92) contrast(1.02); }
.hero-mist-signature { position: absolute; width: 70%; right: -12%; top: -10%; z-index: 2; opacity: .88; pointer-events: none; filter: drop-shadow(0 12px 15px rgba(23,52,93,.11)); }
.hero-badge { z-index: 3; border-radius: 18px; background: rgba(255,255,255,.90); border-color: rgba(255,255,255,.72); box-shadow: 0 10px 25px rgba(23,52,93,.12); }
.hero-badge > span:last-child { flex: 1; min-width: 0; line-height: 1.35; }

.section { background: transparent; }
.section:nth-of-type(even) { background: rgba(255,255,255,.48); }
.section-head { max-width: 760px; }
.rely-card, .doctor-card, .facility-tile, .why-card, .testimonial, .contact-card, .service-card, .info-card, .vm-card, .stat-card, .side-card, .facility-visual, .contact-form { border-color: var(--line); box-shadow: 0 8px 28px rgba(23,52,93,.045); }
.rely-card:hover, .doctor-card:hover, .spec-pill:hover { border-color: #91D2CC; box-shadow: var(--shadow-md); }
.rely-icon, .spec-pill .ico, .why-card .check { background: linear-gradient(135deg, #EDF8F6, #DDF4F2); color: var(--teal-700); }
.specialities-preview, .facilities-preview, .cta-strip { background: linear-gradient(135deg, #EDF8F6, #FBF9F4); }
.spec-pill { background: rgba(255,255,255,.82); border-color: var(--line); border-radius: 18px; }
.doctor-card { border-radius: 22px; }
.doctor-photo { background: linear-gradient(135deg, #EDF8F6, #DDF4F2); }
.doctor-body h3, .featured-doctor h3 { color: var(--navy); }
.tag { background: #EDF8F6; color: #086F70; }
.facility-tile { background: rgba(255,255,255,.82); }
.facility-tile .num { color: var(--teal-700); }
.emergency-strip, .location-strip { background: linear-gradient(125deg, #17345D 0%, #086F70 100%); overflow: hidden; }
.emergency-strip::after, .location-strip::after { content: ''; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(221,244,242,.23); border-radius: 55% 45% 62% 38% / 48% 62% 38% 52%; right: -85px; bottom: -200px; pointer-events: none; }
.footer { position: relative; overflow: hidden; background: #102B4F; }
.footer::before { content: ''; position: absolute; width: 460px; height: 360px; border-radius: 55% 45% 62% 38% / 48% 62% 38% 52%; right: -120px; top: -180px; border: 1px solid rgba(221,244,242,.20); box-shadow: inset 0 0 90px rgba(8,127,125,.18); pointer-events: none; }
.footer > .container { position: relative; z-index: 1; }
.footer h4 { color: #fff; }
.footer a { color: #DDF4F2; }
.page-header { padding: 5.5rem 0 4.5rem; background: linear-gradient(132deg, #FBF9F4 0%, #EDF8F6 60%, #DDF4F2 100%); overflow: hidden; }
.page-header::after { content: ''; position: absolute; width: 330px; height: 330px; right: 6vw; top: -110px; border-radius: 55% 45% 62% 38% / 48% 62% 38% 52%; background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(8,127,125,.18)); border: 1px solid rgba(255,255,255,.78); box-shadow: 0 16px 34px rgba(23,52,93,.08); transform: rotate(-18deg); pointer-events: none; }
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { max-width: 16ch; margin-inline: auto; }
.page-lead { max-width: 670px; }
.speciality-block, .facility-block { border-color: var(--line); }
.speciality-side .side-card, .facility-visual { background: linear-gradient(135deg, #EDF8F6, #FFFFFF); }
.featured-doctor { background: linear-gradient(135deg, #FFFFFF 0%, #EDF8F6 100%); border-color: #D7ECE9; }
.featured-doctor .photo { background: #EDF8F6; }
.contact-form { background: rgba(255,255,255,.92); border-radius: 24px; }
.field input, .field select, .field textarea, .filter-search, .filter-select { border-color: #D7E3E2; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(8,127,125,.12); }

@media (max-width: 920px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { min-width: 0; }
  .hero-text h1 { max-width: 14ch; }
  .hero-visual { max-width: 580px; width: 100%; margin-inline: auto; }
  .page-header::after { right: -130px; opacity: .62; }
}
@media (max-width: 1080px) {
  .header-inner { min-height: 96px; }
  .header .logo-img { height: 84px; max-width: 240px; padding-bottom: 6px; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; position: relative; z-index: 2; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    margin: 0; gap: 0; padding: .8rem 1.5rem 1.25rem;
    display: none; background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
}

@media (max-width: 920px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-text h1 { max-width: 11ch; }
  .hero-meta .meta-block { border-right: 0; padding-right: 0; }
  .hero-visual { aspect-ratio: 4 / 5; border-width: 6px; border-radius: 32% 68% 36% 64% / 42% 44% 56% 58%; }
  .hero-mist-signature { width: 74%; right: -14%; top: -8%; }
  .page-header { padding: 4.2rem 0 3.4rem; }
  .page-header::after { width: 230px; height: 230px; right: -100px; top: -75px; }
  .droplet-overlay { background-size: 260px; background-position: calc(100% + 70px) -65px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Second-pass art direction: organic mist leaf ---------- */
.mist-bg::before,
.mist-bg::after {
  border-radius: 58% 42% 62% 38% / 50% 63% 37% 50%;
  filter: blur(54px);
  transform: rotate(-24deg);
}
.droplet-overlay {
  background-image: url("../images/mist-leaf-signature.svg");
  background-size: min(510px, 42vw);
  background-position: calc(100% + 140px) -165px;
  opacity: .18;
}
.hero { padding: clamp(5.5rem, 8vw, 7.5rem) 0; }
.hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); gap: clamp(3.5rem, 6vw, 7rem); }
.hero-text h1 {
  max-width: none;
  font-size: clamp(2.65rem, 4.45vw, 4.35rem);
  line-height: 1.01;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.hero-text h1 .accent { display: inline-block; margin-top: .05em; }
.hero-lead { max-width: 53ch; }
.hero-visual {
  aspect-ratio: 5 / 6;
  border-radius: 43% 57% 46% 54% / 33% 46% 54% 67%;
  border: 12px solid rgba(255,255,255,.72);
  box-shadow: 0 30px 65px rgba(23,52,93,.15);
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 10% 15% auto auto;
  width: 31%; height: 44%;
  border-radius: 58% 42% 60% 40% / 42% 60% 40% 58%;
  background: linear-gradient(145deg, rgba(255,255,255,.33), rgba(8,127,125,.10));
  border: 1px solid rgba(255,255,255,.62);
  transform: rotate(27deg);
  z-index: 2;
  pointer-events: none;
}
.hero-mist-signature { width: 93%; right: -25%; top: -12%; opacity: .94; filter: drop-shadow(0 17px 20px rgba(23,52,93,.13)); }
.hero-media { position: relative; padding-bottom: 1.5rem; }
.hero-media .hero-badge { left: 8%; right: 8%; bottom: 0; padding: .7rem .8rem; font-size: .72rem; }
.hero-badge > span:last-child { white-space: normal; }

/* Editorial About composition — uses the supplied hospital interior only. */
.about-aside { display: grid; gap: 1.15rem; }
.about-photo { margin: 0; position: relative; min-height: 285px; overflow: hidden; border-radius: 36% 64% 42% 58% / 45% 38% 62% 55%; border: 8px solid rgba(255,255,255,.78); box-shadow: var(--shadow-lg); background: var(--mint-100); }
.about-photo > img:first-child { width: 100%; height: 100%; min-height: 285px; object-fit: cover; object-position: 57% center; filter: saturate(.92); }
.about-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(8,127,125,.10), transparent 52%); pointer-events: none; }
.about-mist-leaf { position: absolute; width: 62%; right: -17%; top: -17%; z-index: 2; pointer-events: none; opacity: .88; }
.about-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; z-index: 3; margin: 0; padding: .4rem .75rem; border-radius: 999px; background: rgba(255,255,255,.86); color: var(--navy); font-size: .78rem; font-weight: 700; }
.about-aside .about-stats { margin-top: .25rem; }
.about-aside .stat-card { background: rgba(255,255,255,.82); border-color: rgba(8,127,125,.13); }
.about-aside .stat-card strong { color: var(--teal-700); }

/* Editorial speciality panels: meaningful facts remain foreground, supported by one quiet mist treatment. */
.speciality-block { padding: clamp(3.5rem, 7vw, 5.25rem) 0; }
.speciality-side { position: relative; display: grid; align-content: center; gap: 1rem; min-height: 260px; padding: 2rem; overflow: hidden; border-radius: 34% 66% 44% 56% / 46% 43% 57% 54%; background: linear-gradient(145deg, rgba(237,248,246,.88), rgba(221,244,242,.72)); }
.speciality-side::before { content: ''; position: absolute; width: 255px; height: 295px; right: -98px; top: -70px; background: url("../images/mist-leaf-signature.svg") center / contain no-repeat; opacity: .27; pointer-events: none; }
.speciality-side .side-card { position: relative; z-index: 1; padding: 1.35rem; border-radius: 16px; background: rgba(255,255,255,.76); border-color: rgba(255,255,255,.80); box-shadow: 0 10px 26px rgba(23,52,93,.06); }
.speciality-list li::before { width: 7px; height: 7px; border-radius: 60% 40% 60% 40%; transform: rotate(30deg); background: var(--teal-700); }

/* Shared refinement: less generic geometry, consistent visual rhythm. */
.page-header::after, .footer::before, .emergency-strip::after, .location-strip::after { border-radius: 58% 42% 62% 38% / 50% 63% 37% 50%; transform: rotate(-24deg); }
.page-header::after { background: url("../images/mist-leaf-signature.svg") center / contain no-repeat; width: 390px; height: 390px; border: 0; box-shadow: none; opacity: .52; }
.footer::before { width: 520px; height: 420px; background: url("../images/mist-leaf-signature.svg") center / contain no-repeat; border: 0; box-shadow: none; opacity: .20; }
.facility-visual { position: relative; overflow: hidden; background: linear-gradient(140deg, #EDF8F6, #FFFFFF); color: var(--slate-soft); font-style: italic; }
.facility-visual::after { content: ''; position: absolute; width: 180px; height: 230px; right: -60px; bottom: -90px; background: url("../images/mist-leaf-signature.svg") center / contain no-repeat; opacity: .18; pointer-events: none; }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text h1 { white-space: normal; }
  .hero-visual { max-width: 610px; }
}
@media (max-width: 920px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-text h1 { max-width: none; font-size: clamp(2.55rem, 8vw, 3.8rem); }
  .hero-visual { aspect-ratio: 5 / 6; }
  .about-photo { max-width: 620px; width: 100%; }
}
@media (max-width: 720px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-text h1 { font-size: clamp(2.4rem, 11.6vw, 3rem); line-height: 1.04; }
  .hero-visual { border-width: 7px; border-radius: 39% 61% 44% 56% / 35% 44% 56% 65%; }
  .hero-mist-signature { width: 90%; right: -27%; top: -11%; }
  .hero-visual::after { width: 28%; height: 38%; }
  .hero-media .hero-badge { left: 5%; right: 5%; bottom: 0; font-size: .74rem; }
  .about-photo { min-height: 240px; border-width: 6px; }
  .about-photo > img:first-child { min-height: 240px; }
  .speciality-side { min-height: 210px; padding: 1.5rem; border-radius: 26px; }
  .page-header::after { width: 260px; height: 260px; right: -100px; top: -70px; }
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Client redesign: Signature Mist-Droplet Identity ----------
   The translucent ribbon is the recurring visual device across MediMist,
   while small glass droplets and curved silhouettes create a quiet, coherent
   thread between every route without interfering with clinical information.
*/
.hero {
  background:
    radial-gradient(circle at 77% 16%, rgba(158, 226, 222, .62) 0 4%, transparent 16%),
    radial-gradient(circle at 84% 30%, rgba(255, 255, 255, .90) 0 2.5%, transparent 9%),
    linear-gradient(130deg, #fffdf9 0%, #f4fbf9 52%, #dff3f0 100%);
}
.hero::after {
  content: '';
  position: absolute;
  width: min(54vw, 700px);
  height: min(54vw, 700px);
  right: -17vw;
  top: -25vw;
  border: 1px solid rgba(8, 127, 125, .15);
  border-radius: 58% 42% 62% 38% / 50% 63% 37% 50%;
  box-shadow: inset 0 0 80px rgba(255, 255, 255, .36), 0 0 90px rgba(115, 205, 197, .12);
  transform: rotate(-27deg);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-visual {
  background: #cfe9e7;
  border-color: rgba(255,255,255,.9);
}
.hero-visual::before {
  background:
    linear-gradient(135deg, rgba(7, 85, 88, .18), transparent 42%),
    linear-gradient(0deg, rgba(0, 0, 0, .09), transparent 38%);
}
.hero-visual .photo-placeholder img { filter: saturate(.94) contrast(1.03) brightness(1.02); }
.hero-mist-ribbon {
  width: 73%;
  max-width: 460px;
  height: auto;
  left: -21%;
  right: auto;
  top: -15%;
  opacity: .96;
  mix-blend-mode: screen;
  filter: drop-shadow(0 19px 24px rgba(12, 70, 86, .22));
}
.hero-visual::after {
  width: 22%;
  height: 34%;
  right: 7%;
  top: 7%;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.76), rgba(203,242,238,.16) 39%, rgba(8,127,125,.05) 70%);
  border-color: rgba(255,255,255,.82);
  box-shadow: inset 0 0 20px rgba(255,255,255,.20);
}
.hero-badge {
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 14px 34px rgba(23,52,93,.14);
}

/* Lightweight droplets make the identity visible in repeat visits and on all
   inner pages. Pseudo-elements stay decorative and never affect semantics. */
.mist-bg::before {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.93) 0 4%, transparent 5%),
    radial-gradient(ellipse at 31% 23%, rgba(98,202,194,.24) 0 9%, transparent 16%),
    radial-gradient(ellipse at 67% 65%, rgba(255,255,255,.75) 0 3%, transparent 4%),
    radial-gradient(ellipse at 69% 67%, rgba(8,127,125,.13) 0 8%, transparent 14%),
    radial-gradient(circle, rgba(123,211,203,.24) 0%, transparent 67%);
}
.mist-bg::after {
  background:
    radial-gradient(ellipse at 64% 25%, rgba(255,255,255,.88) 0 3%, transparent 4%),
    radial-gradient(ellipse at 65% 27%, rgba(8,127,125,.12) 0 7%, transparent 13%),
    radial-gradient(circle, rgba(8,127,125,.14) 0%, transparent 67%);
}
.droplet-overlay {
  background-image: url("../images/mist-droplet-signature.svg");
  background-size: min(540px, 44vw);
  background-position: calc(100% + 120px) -135px;
  opacity: .36;
}
.page-header::after {
  background-image: url("../images/mist-droplet-signature.svg");
  width: 430px;
  height: 430px;
  opacity: .62;
}
.about-mist-ribbon {
  width: 67%;
  right: -13%;
  top: -13%;
  opacity: .76;
  mix-blend-mode: screen;
  filter: drop-shadow(0 14px 19px rgba(12, 70, 86, .16));
}

/* The visible droplet language continues inside the most important service
   surfaces without adding noisy illustrations or changing content. */
.rely-card,
.facility-tile,
.why-card,
.spec-pill,
.contact-card,
.info-card,
.vm-card {
  position: relative;
  overflow: hidden;
}
.rely-card::after,
.facility-tile::after,
.why-card::after,
.spec-pill::after,
.contact-card::after,
.info-card::after,
.vm-card::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 96px;
  right: -31px;
  bottom: -52px;
  border-radius: 62% 38% 58% 42% / 44% 58% 42% 56%;
  background: linear-gradient(145deg, rgba(255,255,255,.85), rgba(163,228,222,.27) 58%, rgba(8,127,125,.10));
  border: 1px solid rgba(8,127,125,.10);
  box-shadow: inset 8px 9px 16px rgba(255,255,255,.40);
  transform: rotate(26deg);
  pointer-events: none;
}
.rely-card:hover::after,
.facility-tile:hover::after,
.why-card:hover::after,
.spec-pill:hover::after { background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(134,217,210,.41) 58%, rgba(8,127,125,.16)); }
.speciality-side::before,
.facility-visual::after { background-image: url("../images/mist-droplet-signature.svg"); }
.footer::before { background-image: url("../images/mist-droplet-signature.svg"); opacity: .26; }

@media (max-width: 1080px) {
  .hero-mist-ribbon { left: -11%; right: auto; top: -17%; width: 62%; }
}
@media (max-width: 720px) {
  .hero::after { width: 460px; height: 460px; right: -260px; top: -180px; }
  .hero-mist-ribbon { width: 74%; left: -20%; right: auto; top: -17%; }
  .droplet-overlay { background-size: 340px; background-position: calc(100% + 80px) -95px; }
  .page-header::after { width: 275px; height: 275px; right: -110px; top: -58px; }
  .about-mist-ribbon { width: 78%; right: -19%; top: -15%; }
}

/* ---------- Mobile layout refinements ---------- */
@media (max-width: 720px) {
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }
  .topbar-inner { justify-content: center; padding: .45rem 1rem; text-align: center; }
  .topbar-left { justify-content: center; gap: .5rem 1rem; }
  .header-inner { min-height: 110px; gap: .5rem; padding-right: .75rem; position: relative; }
  .header .logo-img { height: 110px; max-width: min(calc(100vw - 76px), 300px); padding-bottom: 0; }
  .menu-toggle { width: 44px; height: 44px; position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); z-index: 3; }
  .nav { max-height: calc(100dvh - 80px); overflow-y: auto; }
  .hero-inner { min-width: 0; gap: 2rem; }
  .hero-text, .hero-media { min-width: 0; max-width: 100%; width: 100%; }
  .hero-text h1, .hero-text .hero-lead { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .hero-actions .btn { max-width: 100%; }
  .rely-card, .spec-pill, .doctor-card, .facility-tile, .why-card, .testimonial, .contact-card { min-width: 0; max-width: 100%; }
  .hero-visual { width: 100%; max-width: 100%; }
  .hero-media .hero-badge { max-width: 100%; }
  .hero-actions, .emergency-actions, .location-actions { align-items: stretch; }
  .hero-actions .btn, .emergency-actions .btn, .location-actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .hero-meta { gap: .65rem 1rem; }
  .hero-meta .meta-block { flex: 1 1 100%; }
  .section-head { margin-bottom: 2rem; }
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-grid > .spec-pill:nth-child(13) { grid-column: auto; justify-self: stretch; max-width: none; }
  .spec-pill { min-width: 0; padding: .85rem 1rem; }
  .speciality-block, .facility-block { gap: 1.5rem; }
  .speciality-list { grid-template-columns: minmax(0, 1fr); }
  .filter-inner { padding: .75rem 1.1rem; }
  .filter-search { min-width: 0; flex-basis: 100%; }
  .filter-select { width: 100%; }
  .featured-doctor { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.1rem; }
  .featured-doctor .photo { width: 100%; max-width: 240px; }
  .doctor-publications li { min-width: 0; overflow-wrap: anywhere; }
  .about-stats, .vision-mission { grid-template-columns: minmax(0, 1fr); }
  .contact-quick { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 1.25rem; }
  .hours-table { table-layout: fixed; font-size: .9rem; }
  .hours-table td { padding: .65rem .25rem; overflow-wrap: anywhere; }
  .map-frame iframe { height: 280px; }
  .footer-grid { gap: 1.75rem; }
  .footer-brand { grid-column: auto; }
  .emergency-strip::after, .location-strip::after {
    width: min(48vw, 180px);
    height: min(48vw, 180px);
    right: 0;
    bottom: -70px;
    transform: none;
  }
  .footer::before {
    width: min(62vw, 240px);
    height: min(52vw, 200px);
    right: 0;
    top: -80px;
    transform: none;
  }
  .mobile-action-bar { display: none; }
  body { padding-bottom: 0; }
}
@media (max-width: 480px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding: 2.75rem 0 3.25rem; }
  .hero-text h1 { font-size: clamp(2.15rem, 10.5vw, 2.75rem); }
  .hero-lead, .page-lead { font-size: .98rem; }
  .hero-media { padding-bottom: 1.25rem; }
  .hero-media .hero-badge { left: 3%; right: 3%; font-size: .68rem; }
  .page-header { padding: 3rem 0 2.5rem; }
  .section { padding: 2.75rem 0; }
  .featured-doctor h3 { font-size: 1.4rem; }
  .service-tile, .vm-card, .contact-form { padding: 1.15rem; }
  .mobile-action-bar .actions { gap: .1rem; }
  .mobile-action-bar a { font-size: .56rem; }
}

/* Specialty highlights: clean, contemporary two-card treatment */
.speciality-side {
  min-height: 0;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: #fff;
}
.speciality-side::before { content: none; display: none; }
.speciality-side .side-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.2rem 1.35rem;
  background: #fff;
  border: 1px solid #e3ecec;
  border-left: 3px solid var(--teal-500);
  border-radius: 10px;
  box-shadow: 0 4px 0 #dce8e8, 0 10px 22px rgba(23,52,93,.08);
  text-align: left;
}
.speciality-side .side-card strong {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
}
.speciality-side .side-card span {
  max-width: 12rem;
  text-align: right;
  line-height: 1.4;
}
@media (max-width: 920px) {
  .speciality-side { gap: .75rem; }
  .speciality-side .side-card { padding: 1rem 1.1rem; }
}

/* Align each discovery CTA with the primary CTA directly above it */
.hero-discovery-actions {
  display: grid;
  grid-template-columns: repeat(2, 191px);
  column-gap: 12px;
  row-gap: 0;
  width: 100%;
  flex: 0 0 100%;
}

.hero-discovery-actions .btn {
  width: 100%;
  min-width: 0;
  height: 55px;
  min-height: 55px;
  box-sizing: border-box;
  padding: .55rem .75rem;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  font-size: .95rem;
  font-weight: 600;
  border-width: 1.5px;
}
@media (max-width: 650px) {
  .hero-actions > .btn { flex: 0 0 100%; }
  .hero-discovery-actions { grid-template-columns: minmax(0, 1fr); row-gap: .75rem; }
}

/* MediMist-branded, multi-column Specialities mega menu */
.header-inner { position: relative; }
.nav-mega { position: static; display: flex; align-items: center; flex: 0 0 auto; }
.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem 0;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: transparent;
  color: var(--slate);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.nav-mega-trigger:hover,
.nav-mega-trigger[aria-expanded="true"] { color: var(--teal-700); border-color: var(--mint-100); }
.nav-mega-trigger.active { color: var(--teal-700); border-color: var(--teal-700); font-weight: 600; }
.nav-mega-trigger:focus-visible,
.nav-mega-panel a:focus-visible { outline: 3px solid rgba(8,127,125,.35); outline-offset: 3px; border-radius: 4px; }
.nav-mega-chevron { display: inline-block; font-size: 1.05rem; line-height: 1; transition: transform .18s ease; }
.nav-mega.open .nav-mega-chevron { transform: rotate(180deg); }
.nav-mega-panel[hidden] { display: none; }
.nav-mega-panel {
  position: absolute;
  z-index: 70;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  max-height: calc(100dvh - 125px);
  overflow: auto;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal-700);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 42px rgba(23,52,93,.16);
}
.nav-mega-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.nav-mega-heading .eyebrow { display: block; margin-bottom: .15rem; color: var(--teal-700); font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
.nav-mega-heading h2 { margin: 0; color: var(--navy); font-size: 1.45rem; line-height: 1.15; }
.nav-mega-all { color: var(--teal-700); font-size: .86rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-mega-all:hover,.nav-mega-link:hover,.nav-mega-appointment:hover { color: var(--teal-800); text-decoration: underline; }
.nav-mega-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) minmax(205px,.95fr); gap: .85rem; align-items: stretch; }
.nav-mega-group { min-width: 0; padding: 1rem; background: #fbfdfd; border: 1px solid #e2efed; border-radius: 12px; }
.nav-mega-group h3 { margin: 0 0 .6rem; color: var(--navy); font-size: .91rem; line-height: 1.3; }
.nav-mega-link { display: block; padding: .42rem .15rem; color: var(--slate); font-size: .86rem; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.nav-mega-link + .nav-mega-link { border-top: 1px solid rgba(8,127,125,.08); }
.nav-mega-feature { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; min-width: 0; padding: 1.25rem; background: linear-gradient(145deg,#eaf7f5,#f4faf9); border: 1px solid #d7ece9; border-radius: 14px; }
.nav-mega-feature-kicker { color: var(--teal-700); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-mega-feature h3 { margin: -.3rem 0 0; color: var(--navy); font-size: 1.25rem; line-height: 1.2; }
.nav-mega-feature p { margin: 0; color: var(--slate-soft); font-size: .86rem; line-height: 1.5; }
.nav-mega-feature .btn { margin-top: auto; }
.nav .nav-mega-feature .btn { color: #fff; }
.nav .nav-mega-feature .btn:hover { color: #fff; text-decoration: none; }
.nav-mega-appointment { color: var(--teal-700); font-size: .85rem; font-weight: 700; text-decoration: none; }
@media (max-width: 1080px) {
  .nav-mega { display: block; width: 100%; }
  .nav-mega-trigger { display: flex; width: 100%; justify-content: space-between; padding: .7rem 0; text-align: left; border-bottom: 1px solid var(--line); }
  .nav-mega-panel { position: static; width: 100%; max-height: min(56dvh, 520px); margin: .35rem 0 .55rem; padding: .75rem; border: 1px solid var(--line); border-top: 2px solid var(--teal-700); border-radius: 12px; box-shadow: none; }
  .nav-mega-heading { align-items: flex-start; flex-direction: column; }
  .nav-mega-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .nav-mega-group { padding: .75rem; }
  .nav-mega-feature { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .nav-mega-grid { grid-template-columns: minmax(0,1fr); }
  .nav-mega-feature { grid-column: auto; }
  .nav-mega-all { white-space: normal; }
}

/* Mega-menu links and specialist chips override the base navigation row */
.nav .nav-mega-all,
.nav .nav-mega-link,
.nav .nav-mega-appointment,
.nav .nav-mega-consult-link {
  margin: 0;
  border: 0;
  text-decoration: none;
}
.nav .nav-mega-link { display: block; padding: .42rem .15rem; color: var(--slate); font-size: .86rem; line-height: 1.35; }
.nav .nav-mega-link + .nav-mega-link { border-top: 1px solid rgba(8,127,125,.08); }
.nav .nav-mega-all { padding: 0; color: var(--teal-700); font-size: .86rem; font-weight: 700; white-space: normal; }
.nav .nav-mega-appointment { padding: 0; color: var(--teal-700); font-size: .85rem; font-weight: 700; }
.nav .nav-mega-link:hover,
.nav .nav-mega-all:hover,
.nav .nav-mega-appointment:hover,
.nav .nav-mega-consult-link:hover { color: var(--teal-800); text-decoration: underline; }
.nav-mega-consults { margin-top: .85rem; padding: 1rem; background: #fbfdfd; border: 1px solid #e2efed; border-radius: 12px; }
.nav-mega-consults h3 { margin: 0 0 .65rem; color: var(--navy); font-size: .91rem; }
.nav-mega-consult-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.nav .nav-mega-consult-link { display: inline-flex; align-items: center; padding: .35rem .7rem; color: var(--teal-800); background: #eaf7f5; border: 1px solid #d7ece9; border-radius: 999px; font-size: .82rem; line-height: 1.2; }
@media (max-width: 1080px) {
  .nav .nav-mega-link { padding: .48rem .15rem; }
  .nav-mega-consults { padding: .8rem; }
}
