/* ===================================================================
   Dr. Mangla Superspeciality Hospital, Stylesheet
   Aesthetic: Refined medical editorial, deep teal, warm cream, gold accents
   =================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand palette, matched precisely to Dr. Mangla Hospital M+H caduceus logo */
  /* Brand palette, matched precisely to the Dr. Mangla Hospital M+H caduceus logo.
     NOTE: logo has two greens (deep teal-green for M letters, bright mint-teal for caduceus).
     Logo uses NO gold — accents are kept in the same green family. */
  --teal-deep: #004d3f;   /* very dark teal for headings / shadows */
  --teal: #007460;        /* PRIMARY brand green (logo M letters) */
  --teal-soft: #009a82;   /* hover / soft mid-teal */
  --teal-bright: #02a796; /* bright mint-teal accent (logo caduceus) */
  --teal-pale: #e6f4f1;   /* pale teal tint for backgrounds */
  --gold: #02a796;        /* alias: kept for codepaths still using --gold; mapped to bright teal */
  --gold-soft: #4ec2b1;   /* alias: kept for codepaths; mapped to lighter mint-teal */
  --cream: #ffffff;       /* pure white, primary background */
  --cream-warm: #f6faf9;  /* very subtle cool off-white for section variation */
  --ink: #1a2620;
  --ink-soft: #4a5a52;
  --ink-mute: #7a8a82;
  --line: #e5e7e3;
  --white: #ffffff;

  /* Type, Artemis-tier corporate hospital pairing */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --font-serif: 'Montserrat', system-ui, sans-serif; /* legacy alias for any inline use */

  /* Layout */
  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 12px rgba(13, 79, 51, 0.06);
  --shadow: 0 12px 40px rgba(13, 79, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 79, 51, 0.14);
  --t: cubic-bezier(.2,.7,.2,1);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--teal-deep); }
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
p { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}
.eyebrow.center { display: block; text-align: center; }

.lead { font-size: 1.15rem; line-height: 1.7; color: var(--ink-soft); }

/* italic accent in display font */
.italic { font-family: var(--font-display); color: var(--gold); font-weight: 700; }

/* ---------- LAYOUT HELPERS ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.center { text-align: center; }
.grid { display: grid; gap: 2rem; }

/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--teal-deep);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 0.55rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #ffffff; display: inline-flex; align-items: center; gap: 0.5rem; transition: color .2s; }
.topbar a:hover { color: var(--gold-soft); }
.topbar-left, .topbar-right { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: center; }
.topbar svg { width: 14px; height: 14px; }
.topbar-loc { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; opacity: 0.95; }
.topbar-loc svg { color: var(--gold-soft); }

/* Prominent emergency call button in topbar */
.emergency-call {
  display: inline-flex !important;
  align-items: center;
  gap: 0.7rem;
  background: var(--gold);
  color: var(--teal-deep) !important;
  padding: 0.4rem 0.95rem 0.4rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.emergency-call:hover {
  background: #fff;
  color: var(--teal-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.em-pulse {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  animation: emPulse 2s ease-in-out infinite;
}
.em-pulse svg { width: 14px; height: 14px; color: #fff; }
@keyframes emPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 79, 51, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(13, 79, 51, 0); }
}
.em-text { display: flex; flex-direction: column; gap: 0.05rem; }
.em-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-deep);
  opacity: 0.8;
  font-family: var(--font-display);
}
.em-num {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--teal-deep);
  font-family: var(--font-display);
}

/* ---------- HEADER / NAV ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--t);
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  gap: 1.5rem;
  min-width: 0;
}
.logo { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; min-width: 0; }
.logo-mark {
  width: 56px; height: 56px;
  background: transparent;
  border: none;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.logo-mark img,
.logo-mark svg {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.logo-text { line-height: 1.1; min-width: 0; }
.logo-text .name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--teal-deep);
  letter-spacing: -0.005em;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.logo-text .tag {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
}

.nav-links { display: flex; gap: 1.75rem; align-items: center; flex-shrink: 0; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-deep); }
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold);
}
.nav-links .btn-cta {
  padding: 0.75rem 1.35rem;
  font-size: 0.88rem;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--gold);
  color: var(--teal-deep) !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(2, 167, 150, 0.3);
}
.nav-links .btn-cta:hover {
  background: var(--teal-deep);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(13, 79, 51, 0.28);
}
.nav-links .btn-cta svg { width: 14px; height: 14px; }

.btn-cta {
  background: var(--teal-deep);
  color: #ffffff;
  padding: 1.05rem 1.85rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(13, 79, 51, 0.18);
  transition: all .35s cubic-bezier(.4, .14, .3, 1);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.btn-cta:hover {
  background: var(--teal);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13, 79, 51, 0.28);
}
.btn-cta:active { transform: translateY(-1px); }
.btn-cta svg { width: 16px; height: 16px; transition: transform .3s; }
.btn-cta:hover svg { transform: translateX(3px); }

.btn-outline {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--teal-deep);
  padding: 1.05rem 1.85rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 0.55rem;
  transition: all .35s cubic-bezier(.4, .14, .3, 1);
}
.btn-outline:hover {
  background: var(--teal-deep);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(13, 79, 51, 0.2);
}
.btn-outline:active { transform: translateY(-1px); }

/* ---------- HAMBURGER (with animated lines-to-X transformation) ---------- */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--teal-deep);
  border-radius: 2px;
  transition: transform .4s cubic-bezier(.68,-0.55,.27,1.55),
              opacity .25s ease,
              background .3s ease;
  transform-origin: center;
}
.menu-toggle:hover span { background: var(--teal); }
/* Animated X state — applied when nav is open (JS toggles .nav-open on body) */
body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: #ffffff;
  overflow: hidden;
  padding: 4rem 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(20, 96, 93, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 620px; }
.hero h1 { margin: 1.25rem 0 1.5rem; }
.hero h1 .accent { color: var(--gold); font-weight: 800; }
.hero .lead { margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  color: var(--teal-deep);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-stat .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.55rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.hero-visual { position: relative; }
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.85rem;
  border: 1px solid var(--line);
}
.hero-badge-icon {
  width: 44px; height: 44px;
  background: var(--teal-pale);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--teal);
}
.hero-badge .b-num { font-family: var(--font-display); font-size: 1.4rem; color: var(--teal-deep); line-height: 1; font-weight: 800; }
.hero-badge .b-label { font-size: 0.78rem; color: var(--ink-mute); margin-top: 0.2rem; }

.hero-quote {
  position: absolute;
  top: 8%; right: -32px;
  background: var(--teal-deep);
  color: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  max-width: 200px;
  box-shadow: var(--shadow);
}

/* ---------- TRUST STRIP ---------- */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 48px; height: 48px;
  background: var(--teal-pale);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--teal);
  flex-shrink: 0;
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-item h4 { color: var(--teal-deep); font-size: 1rem; margin-bottom: 0.15rem; }
.trust-item p { font-size: 0.85rem; margin: 0; color: var(--ink-mute); }

/* ---------- SECTION HEADERS ---------- */
.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { font-size: 1.05rem; }

/* ---------- SPECIALITIES GRID ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.spec-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .4s var(--t);
  position: relative;
  overflow: hidden;
}
.spec-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold);
  transition: width .4s var(--t);
}
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-soft); }
.spec-card:hover::after { width: 100%; }
.spec-icon {
  width: 56px; height: 56px;
  background: var(--teal-pale);
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--teal);
  margin-bottom: 1.5rem;
  transition: all .3s var(--t);
}
.spec-card:hover .spec-icon { background: var(--teal-deep); color: var(--gold-soft); }
.spec-icon svg { width: 28px; height: 28px; }
.spec-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.spec-card p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.25rem; }
.spec-card .spec-tagline {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-weight: 500;
}
.spec-card .spec-conditions {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}
.spec-card .spec-conditions li {
  font-size: 0.78rem;
  color: var(--teal-deep);
  background: var(--teal-pale);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all .25s var(--t);
}
.spec-card:hover .spec-conditions li {
  background: #fff;
  border: 1px solid var(--teal-pale);
}
.spec-card .read-more {
  font-size: 0.88rem;
  color: var(--teal);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.4rem;
  letter-spacing: 0.01em;
  transition: color .3s, transform .3s;
}
.spec-card:hover .read-more { color: var(--teal-deep); transform: translateX(2px); }

/* ---------- ABOUT SPLIT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5/4;
  box-shadow: var(--shadow);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split.reverse .split-img { order: 2; }
.split-content .eyebrow { margin-bottom: 1.25rem; }
.split-content h2 { margin-bottom: 1.5rem; }
.split-content p { margin-bottom: 1rem; font-size: 1.02rem; }
.split-features { margin-top: 2rem; display: grid; gap: 1rem; }
.split-feature {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.split-feature svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.split-feature h4 { color: var(--teal-deep); font-size: 1rem; margin-bottom: 0.2rem; }
.split-feature p { font-size: 0.88rem; margin: 0; }

.split-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  background: rgba(2, 167, 150, 0.08);
  border: 1px solid rgba(2, 167, 150, 0.22);
  border-radius: 999px;
  color: var(--teal-deep);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-display);
}
.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ---------- DOCTORS GRID ---------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .4s var(--t);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-pale) 0%, #ffffff 100%);
  position: relative;
  display: grid; place-items: center;
}
.doctor-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--t); }
.doctor-card:hover .doctor-img img { transform: scale(1.05); }
.doctor-img.doctor-icon-wrap, .doctor-icon-wrap { background: linear-gradient(135deg, var(--teal-pale) 0%, #ffffff 100%); }
.doctor-icon-wrap svg { width: 70%; height: auto; max-width: 200px; transition: transform .5s var(--t); }
.doctor-card:hover .doctor-icon-wrap svg { transform: scale(1.05); }
.doctor-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,74,48,0.18) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s var(--t);
  pointer-events: none;
}
.doctor-card:hover .doctor-img::after { opacity: 1; }
.doctor-info { padding: 1.5rem; display: flex; flex-direction: column; }
.doctor-info .role {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.doctor-info h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.doctor-info .qualifications {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
  margin-bottom: 1rem;
}
.doctor-info .specialty {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

/* Book Consultation CTA inside doctor cards */
.doctor-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--teal-deep);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: auto;
  box-shadow: 0 3px 10px rgba(13, 79, 51, 0.15);
  transition: all .3s var(--t);
  font-family: var(--font-display);
  align-self: flex-start;
}
.doctor-cta svg { width: 14px; height: 14px; transition: transform .3s; }
.doctor-cta:hover {
  background: var(--teal);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 79, 51, 0.25);
}
.doctor-cta:hover svg { transform: translateX(3px); }

/* Detail cards on doctors.html, full-width button */
.doctor-detail-card .doctor-cta {
  align-self: flex-start;
  margin-top: 1.25rem;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--teal-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: -200px;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 150, 90, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45, 138, 134, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.cta-content h2 { color: var(--cream); }
.cta-content h2 .accent { color: var(--gold-soft); font-weight: 800; }
.cta-content p { color: rgba(247, 243, 236, 0.85); font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.cta-banner .btn-cta { background: var(--gold); color: var(--teal-deep); }
.cta-banner .btn-cta:hover { background: var(--cream); }
.cta-banner .btn-outline { color: var(--cream); border-color: rgba(247, 243, 236, 0.4); }
.cta-banner .btn-outline:hover { background: var(--cream); color: var(--teal-deep); border-color: var(--cream); }

/* ---------- TESTIMONIALS ---------- */
.testimonials { background: var(--cream-warm); }
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.test-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  border: 1px solid var(--line);
}
.test-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.4;
}
.test-stars { color: var(--gold); margin-bottom: 1rem; letter-spacing: 0.15em; }
.test-card p { font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1.5rem; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.test-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal-pale);
  display: grid; place-items: center;
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
}
.test-author .name { font-weight: 500; color: var(--teal-deep); font-size: 0.95rem; }
.test-author .role { font-size: 0.8rem; color: var(--ink-mute); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 5rem 0 2rem;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer .logo-mark {
  background: #ffffff;
  border-radius: 50%;
  padding: 4px;
  overflow: hidden;
}
.footer .logo-text .name { color: var(--cream); }
.footer .logo-text .tag { color: var(--gold-soft); }
.footer-about p {
  color: rgba(247, 243, 236, 0.7);
  font-size: 0.92rem;
  margin: 1.5rem 0;
  line-height: 1.7;
}
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(247, 243, 236, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--t);
  color: rgba(247, 243, 236, 0.85);
  flex-shrink: 0;
}
.footer-social a:hover { background: var(--gold); color: var(--teal-deep); }
.footer-social svg {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
}
.footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.75rem; }
.footer a {
  color: rgba(247, 243, 236, 0.7);
  font-size: 0.92rem;
  transition: color .3s var(--t);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.footer a:hover { color: var(--gold-soft); }
.footer-contact-item {
  display: flex; gap: 0.85rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.footer-contact-item svg {
  width: 18px; height: 18px;
  color: var(--gold-soft);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  margin-bottom: 0.2rem;
}
.footer-contact-item .value {
  color: rgba(247, 243, 236, 0.85);
  font-size: 0.92rem;
  line-height: 1.55;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.4rem 0.85rem;
  background: rgba(2, 167, 150, 0.15);
  border: 1px solid rgba(2, 167, 150, 0.3);
  border-radius: 999px;
  color: var(--gold-soft) !important;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s var(--t);
  font-family: var(--font-display);
}
.map-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal-deep) !important;
}
.map-link svg {
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
  color: currentColor !important;
}
.empath-credit {
  color: var(--gold-soft) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color .2s;
}
.empath-credit:hover { color: var(--gold) !important; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 243, 236, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(247, 243, 236, 0.6);
}

/* ---------- PAGE HEADER (interior pages) ---------- */
.page-header {
  background:
    /* premium dark-to-medium gradient for depth */
    linear-gradient(105deg, #082a1c 0%, var(--teal-deep) 40%, var(--teal) 100%);
  color: var(--cream);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Subtle medical-cross pattern overlay (SVG, base64-encoded inline) */
  background-image:
    radial-gradient(ellipse at 0% 50%, rgba(0,0,0,0.35) 0%, transparent 55%),
    radial-gradient(circle at 18% 25%, rgba(78, 194, 177,0.10) 0%, transparent 38%),
    radial-gradient(circle at 82% 75%, rgba(46,138,96,0.28) 0%, transparent 40%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23ffffff' stroke-width='0.6' opacity='0.04'><path d='M38 28h4v8h8v4h-8v8h-4v-8h-8v-4h8z'/><circle cx='40' cy='40' r='18'/></g></svg>");
  background-size: auto, auto, auto, 80px 80px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Vignette for premium depth */
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 2; }
.page-header .eyebrow { color: var(--gold-soft); margin-bottom: 1.25rem; }
.page-header h1 { color: #ffffff; margin-bottom: 1rem; text-shadow: 0 2px 24px rgba(0,0,0,0.2); }
.page-header h1 .accent { color: var(--gold-soft); font-weight: 800; }
.page-header p { color: rgba(255,255,255,0.85); max-width: 680px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; }
.breadcrumb {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(247,243,236,0.6);
}
.breadcrumb a { color: rgba(247,243,236,0.85); }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb .sep { margin: 0 0.5rem; }

/* ---------- ABOUT PAGE SPECIFIC ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--white);
  padding: 2.25rem 1.75rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--line);
  transition: all .35s var(--t);
  position: relative;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(13,79,51,0.08);
  border-color: rgba(26, 107, 72, 0.18);
}
.value-icon {
  width: 76px; height: 76px;
  background: rgba(26, 107, 72, 0.06);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 1.5rem;
  color: var(--teal);
  position: relative;
  transition: all .35s var(--t);
}
.value-icon::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(26, 107, 72, 0.18);
  transition: all .35s var(--t);
}
.value-card:hover .value-icon {
  background: rgba(2, 167, 150, 0.10);
  color: var(--teal-deep);
  transform: scale(1.04);
}
.value-card:hover .value-icon::before {
  border-color: rgba(2, 167, 150, 0.35);
  transform: rotate(45deg);
}
.value-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.3;
  transition: stroke-width .3s;
}
.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.005em;
}
.value-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* mission/vision blocks */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.mv-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: box-shadow .35s var(--t), transform .35s var(--t);
}
.mv-card:hover {
  box-shadow: 0 18px 50px rgba(13,79,51,0.10);
  transform: translateY(-4px);
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.mv-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(26, 107, 72, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  color: var(--teal);
  position: relative;
}
.mv-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(26, 107, 72, 0.18);
}
.mv-icon svg { width: 30px; height: 30px; }
.mv-card .num {
  font-family: var(--font-display);
  font-size: 3.25rem;
  color: rgba(2, 167, 150, 0.18);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.mv-card h2 { font-size: 1.65rem; margin-bottom: 1rem; }
.mv-card p { font-size: 0.96rem; line-height: 1.75; }

/* ---------- DOCTORS PAGE ---------- */
.doctor-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  margin-bottom: 2rem;
}
.doctor-detail-card .img-side {
  background: linear-gradient(135deg, var(--teal-pale) 0%, #ffffff 100%);
  aspect-ratio: 4/5;
  overflow: hidden;
  display: grid; place-items: center;
}
.doctor-detail-card .img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.doctor-detail-card .img-side.doctor-icon-wrap svg { width: 70%; max-width: 240px; height: auto; }
.doctor-detail-card .info-side { padding: 2.5rem; }
.doctor-detail-card .role {
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.doctor-detail-card h3 { font-size: 1.85rem; margin-bottom: 0.5rem; }
.doctor-detail-card .qual { font-size: 0.95rem; color: var(--ink-mute); font-style: italic; margin-bottom: 1.25rem; }
.doctor-detail-card .bio { font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.5rem; }
.doctor-detail-card .expertise-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  list-style: none;
}
.doctor-detail-card .expertise-list li {
  background: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--teal-deep);
  border: 1px solid var(--line);
}

/* ---------- SPECIALITIES PAGE ---------- */
.spec-detail {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 2.5rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  transition: all .3s var(--t);
}
.spec-detail:hover { box-shadow: var(--shadow); border-color: var(--teal-soft); }
.spec-detail .num-side {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-right: 1px solid var(--line);
  padding-right: 2rem;
}
.spec-detail h3 { font-size: 1.65rem; margin-bottom: 1rem; }
.spec-detail .lead-text { margin-bottom: 1.5rem; }
.spec-detail h4 {
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}
.services-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.services-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info-list { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.contact-info-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.contact-info-item .icon {
  width: 48px; height: 48px;
  background: var(--teal-pale);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--teal-deep);
  flex-shrink: 0;
}
.contact-info-item .icon svg { width: 22px; height: 22px; }
.contact-info-item h4 { color: var(--teal-deep); font-size: 1rem; margin-bottom: 0.4rem; }
.contact-info-item p { font-size: 0.92rem; margin-bottom: 0.2rem; }
.contact-info-item a { color: var(--teal); font-weight: 500; }
.contact-info-item a:hover { color: var(--gold); }

.form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.form-card h2 { font-size: 1.85rem; margin-bottom: 0.5rem; }
.form-card .subtitle { margin-bottom: 2rem; color: var(--ink-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-deep);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  transition: all .25s var(--t);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(20, 96, 93, 0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-card button[type="submit"] {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  width: 100%;
  display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;
  transition: all .3s var(--t);
}
.form-card button[type="submit"]:hover { background: var(--gold); color: var(--teal-deep); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 3rem;
  height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all .3s var(--t);
}
.faq-item:hover { border-color: var(--teal-soft); }
.faq-item summary {
  padding: 1.5rem 1.75rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--teal-deep);
  font-size: 1rem;
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 300;
  transition: transform .3s var(--t);
  font-family: var(--font-display);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 1.75rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 99;
  animation: pulse 2s infinite;
  color: white;
}
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ---------- STICKY BOTTOM CTA BAR (mobile / tablet) ---------- */
.sticky-cta-bar {
  display: none; /* shown via media query ≤1024px */
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: #ffffff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(13, 79, 51, 0.10);
  padding: 0.5rem max(0.5rem, env(safe-area-inset-left)) max(0.5rem, env(safe-area-inset-bottom));
  /* support iPhone notch / home indicator */
}
.sticky-cta-bar::before {
  /* Subtle teal accent line at top */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-bright) 100%);
}
.sticky-cta-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.55rem 0.4rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 12px;
  margin: 0 0.25rem;
  color: #ffffff;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
  font-family: var(--font-display);
  min-height: 56px;
  text-align: center;
  line-height: 1.1;
}
.sticky-cta-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sticky-cta-btn:active { transform: scale(0.96); filter: brightness(0.95); }
.sticky-cta-btn:hover { filter: brightness(1.05); }
.sticky-cta-call {
  background: var(--teal-deep);
}
.sticky-cta-wa {
  background: #25D366;
}
.sticky-cta-book {
  background: var(--teal-bright);
  color: var(--teal-deep);
  font-weight: 700;
}
/* Inner flex layout for the buttons */
.sticky-cta-bar {
  /* override display:none from above when active */
}
@media (max-width: 1024px) {
  .sticky-cta-bar {
    display: flex;
    align-items: stretch;
  }
  /* Hide the WhatsApp floating button on mobile since the bar covers it */
  .whatsapp-float {
    display: none;
  }
  /* Add bottom padding to body so content isn't hidden behind the bar */
  body {
    padding-bottom: 76px;
  }
  /* Adjust footer last-row spacing */
  .footer-bottom {
    margin-bottom: 0.5rem;
  }
}
@media (max-width: 480px) {
  .sticky-cta-btn {
    font-size: 0.66rem;
    padding: 0.5rem 0.25rem 0.45rem;
    margin: 0 0.18rem;
  }
  .sticky-cta-btn svg {
    width: 18px;
    height: 18px;
  }
  body {
    padding-bottom: 70px;
  }
}
@media (max-width: 360px) {
  .sticky-cta-btn {
    font-size: 0.6rem;
    padding: 0.45rem 0.15rem 0.4rem;
  }
  .sticky-cta-btn span {
    letter-spacing: 0.02em;
  }
}

/* ---------- ANIMATIONS ---------- */
/* Reveal-on-scroll: starts hidden, becomes visible when JS adds .visible.
   Fallback: if JS never runs (file missing / error), animation auto-completes after 2s
   so content never stays permanently invisible. */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--t), transform .8s var(--t); animation: revealFallback 0s ease 2s forwards; }
.reveal.visible { opacity: 1; transform: translateY(0); animation: none; }
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}
/* Honor reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeInUp .8s var(--t) backwards; }
.hero-content > *:nth-child(1) { animation-delay: .1s; }
.hero-content > *:nth-child(2) { animation-delay: .2s; }
.hero-content > *:nth-child(3) { animation-delay: .3s; }
.hero-content > *:nth-child(4) { animation-delay: .4s; }
.hero-content > *:nth-child(5) { animation-delay: .5s; }
.hero-visual { animation: fadeInUp 1s var(--t) .3s backwards; }

/* ---------- RESPONSIVE ---------- */
/* ==========================================================
   RESPONSIVE, Tablet (≤1024px) / Mobile (≤768px) / Small (≤480px)
   ========================================================== */

/* ==========================================================
   GLOBAL MOBILE SAFETY NET, prevent overflow / breaking layouts
   ========================================================== */
* { -webkit-tap-highlight-color: rgba(26,107,72,0.15); }
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%; /* prevent iOS auto-scaling text */
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}
img, svg, video, iframe, picture {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Long words / URLs / emails wrap instead of overflowing */
a, p, span, h1, h2, h3, h4, h5, h6, li, td, th, label {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* Container always full-width-fit */
.container {
  width: 100%;
  max-width: var(--max);
}
/* iOS prevents zoom on input focus only when font-size ≥ 16px */
input, select, textarea {
  font-size: 16px;
  max-width: 100%;
}
/* Make all interactive elements have minimum 44px tap target (Apple/WCAG) */
@media (hover: none) and (pointer: coarse) {
  a, button, input[type="submit"], input[type="button"], .btn-cta, .btn-outline {
    min-height: 44px;
  }
}

@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
  .split-img { aspect-ratio: 5/4; max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .doctor-detail-card { grid-template-columns: 1fr; }
  .doctor-detail-card .img-side { aspect-ratio: 4/3; max-height: 480px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-content { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .cta-actions { justify-content: center; }
  .mv-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .spec-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

  /* Trigger mobile menu earlier so Book Appointment doesn't get clipped */
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 100%; left: 0; right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all .35s var(--t);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.6rem 0; font-size: 1rem; }
  .nav-links .btn-cta { width: 100%; justify-content: center; margin-top: 0.5rem; padding: 0.9rem 1.5rem; font-size: 0.95rem; }
}

@media (max-width: 768px) {
  /* ---- Layout & nav ---- */
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .header { padding: 0.75rem 0; }
  .logo-text .name { font-size: 0.78rem; }
  .logo-text .tag { font-size: 0.55rem; }
  .logo-mark { width: 44px; height: 44px; }
  .logo { gap: 0.6rem; }

  /* ---- Topbar ---- */
  .topbar { padding: 0.5rem 0; }
  .topbar .container { font-size: 0.72rem; gap: 0.55rem; justify-content: center; flex-direction: column; padding: 0 1rem; }
  .topbar-left { gap: 0.5rem; }
  .topbar-left a[href^="mailto"] { display: none; }
  .topbar-loc { font-size: 0.72rem; }
  .emergency-call { padding: 0.35rem 0.85rem 0.35rem 0.4rem; }
  .em-num { font-size: 0.88rem; }
  .em-label { font-size: 0.58rem; }
  .em-pulse { width: 26px; height: 26px; }

  /* ---- Page header ---- */
  .page-header { padding: 5rem 0 4rem; }
  .page-header h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .page-header p { font-size: 1rem; }

  /* ---- Headings ---- */
  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); line-height: 1.2; }
  h2 { font-size: clamp(1.55rem, 6vw, 2rem); line-height: 1.25; }
  h3 { font-size: 1.2rem; }
  .lead, .lead-text { font-size: 1rem; }

  /* ---- Hero ---- */
  .hero { min-height: auto; padding: 2.5rem 0 4rem; }
  .hero-actions { gap: 1rem; flex-direction: column; align-items: stretch; }
  .hero-actions .btn-cta, .hero-actions .btn-outline { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; padding-top: 1.5rem; }
  .hero-stat .num { font-size: 1.65rem; }
  .hero-stat .label { font-size: 0.78rem; }

  /* ---- Buttons ---- */
  .btn-cta, .btn-outline { padding: 0.95rem 1.5rem; font-size: 0.92rem; }

  /* ---- Sections ---- */
  .spec-grid { grid-template-columns: 1fr; gap: 1rem; }
  .spec-card { padding: 1.75rem 1.5rem; }
  .spec-card h3 { font-size: 1.15rem; }
  .spec-card .spec-conditions li { font-size: 0.74rem; padding: 0.28rem 0.6rem; }

  .doctors-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .values-grid { grid-template-columns: 1fr; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .spec-detail { grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 1.5rem; }
  .spec-detail .num-side {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 1rem;
    font-size: 2.25rem;
  }
  .services-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer { padding: 3rem 0 1.5rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
  .trust-item:last-child { border-bottom: none; }
  .mv-card { padding: 2rem 1.5rem; }
  .form-card { padding: 1.5rem 1.25rem; }
  .map-wrap iframe { height: 320px; }
  .faq-item summary { padding: 1.15rem 1.25rem; font-size: 0.95rem; }
  .faq-item .answer { padding: 0 1.25rem 1.25rem; font-size: 0.9rem; }
  .test-card { padding: 1.75rem 1.5rem; }
  .cta-content h2 { font-size: 1.65rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-cta, .cta-actions .btn-outline { justify-content: center; }

  /* ---- New components, doctor cards, trust, map ---- */
  .doctor-cta { width: 100%; justify-content: center; padding: 0.85rem 1rem; font-size: 0.88rem; }
  .doctor-info { padding: 1.25rem; }
  .doctor-info h3 { font-size: 1.15rem; }
  .doctor-detail-card .info-side { padding: 1.5rem 1.25rem; }
  .doctor-detail-card .img-side.doctor-icon-wrap svg { width: 50%; max-width: 160px; }
  .doctor-icon-wrap svg { width: 65%; max-width: 160px; }
  .trust-badge { font-size: 0.78rem; padding: 0.5rem 0.85rem; }
  .map-link { font-size: 0.74rem; padding: 0.4rem 0.75rem; }
  .split-cta { gap: 1rem; align-items: stretch; }
  .split-cta .btn-outline { text-align: center; justify-content: center; }

  /* ---- WhatsApp float on mobile ---- */
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}

/* ---- Small phones (≤480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .lead, .lead-text { font-size: 0.95rem; }

  /* Topbar, go super compact */
  .topbar .container { font-size: 0.65rem; gap: 0.4rem; padding: 0 0.75rem; }
  .topbar-loc { font-size: 0.65rem; }
  .em-num { font-size: 0.8rem; }
  .em-label { font-size: 0.52rem; letter-spacing: 0.1em; }
  .em-pulse { width: 22px; height: 22px; }
  .em-pulse svg { width: 12px; height: 12px; }

  /* Header */
  .header { padding: 0.6rem 0; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-text .name { font-size: 0.66rem; letter-spacing: -0.01em; }
  .logo-text .tag { font-size: 0.5rem; letter-spacing: 0.1em; }
  .menu-toggle { width: 36px; height: 36px; }
  .menu-toggle span { width: 22px; }

  /* Page header */
  .page-header { padding: 3rem 0 2.5rem; }
  .page-header h1 { font-size: 1.65rem; }
  .breadcrumb { font-size: 0.7rem; }

  /* Hero */
  .hero { padding: 2rem 0 3rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-stat .num { font-size: 1.4rem; }
  .hero-stat .label { font-size: 0.72rem; }

  /* Spec cards */
  .spec-card { padding: 1.5rem 1.25rem; }
  .spec-card h3 { font-size: 1.05rem; }
  .spec-icon { width: 48px; height: 48px; }
  .spec-icon svg { width: 22px; height: 22px; }
  .spec-card .spec-conditions li { font-size: 0.72rem; padding: 0.25rem 0.55rem; }

  /* Doctor cards */
  .doctor-info { padding: 1rem; }
  .doctor-info h3 { font-size: 1.05rem; }
  .doctor-info .role { font-size: 0.7rem; }
  .doctor-info .qualifications { font-size: 0.78rem; margin-bottom: 0.75rem; }
  .doctor-info .specialty { font-size: 0.85rem; }
  .doctor-cta { padding: 0.75rem 0.85rem; font-size: 0.82rem; }
  .doctor-icon-wrap svg { width: 60%; max-width: 140px; }

  /* Footer */
  .footer-grid { gap: 1.5rem; }
  .footer h4 { font-size: 0.95rem; }
  .footer-about p { font-size: 0.9rem; }
  .footer-contact-item .value { font-size: 0.88rem; }
  .map-link { font-size: 0.7rem; padding: 0.35rem 0.7rem; }
  .footer-social a { width: 36px; height: 36px; }

  /* Buttons */
  .btn-cta, .btn-outline { padding: 0.85rem 1.25rem; font-size: 0.88rem; }

  /* Spec detail page (specialities) */
  .spec-detail { padding: 1.5rem 1.25rem; }
  .spec-detail h3 { font-size: 1.2rem; }
  .spec-detail .num-side { font-size: 1.9rem; }

  /* Forms */
  .form-card { padding: 1.25rem 1rem; }
  .form-card label { font-size: 0.82rem; }
  .form-card input, .form-card select, .form-card textarea { font-size: 16px; padding: 0.7rem 0.85rem; }

  /* Contact info */
  .contact-info-item { padding: 1.1rem; }
  .contact-info-item .icon { width: 40px; height: 40px; }

  /* FAQ */
  .faq-item summary { padding: 1rem 1rem; font-size: 0.9rem; }
  .faq-item summary::after { font-size: 1.3rem; }
  .faq-item .answer { padding: 0 1rem 1rem; font-size: 0.85rem; }

  /* Map */
  .map-wrap iframe { height: 260px; }

  /* Testimonials */
  .test-card { padding: 1.25rem 1rem; }
  .test-card p { font-size: 0.88rem; }
  .test-avatar { width: 40px; height: 40px; font-size: 0.85rem; }

  /* CTA banner */
  .cta-content h2 { font-size: 1.35rem; }
  .cta-content p { font-size: 0.92rem; }

  /* About page values/mission cards */
  .mv-card { padding: 1.5rem 1.25rem; }
  .value-card { padding: 1.25rem; }
  .value-card h4 { font-size: 0.95rem; }
  .value-card p { font-size: 0.85rem; }

  /* Trust strip */
  .trust-item h4 { font-size: 0.9rem; }
  .trust-item p { font-size: 0.78rem; }

  /* WhatsApp float */
  .whatsapp-float { width: 48px; height: 48px; bottom: 14px; right: 14px; }
  .whatsapp-float svg { width: 24px; height: 24px; }

  /* Doctor detail cards */
  .doctor-detail-card .info-side { padding: 1.25rem 1rem; }
  .doctor-detail-card h3 { font-size: 1.3rem; }
  .doctor-detail-card .bio { font-size: 0.88rem; line-height: 1.65; }
  .doctor-detail-card .expertise-list li { font-size: 0.82rem; }

  /* Page-header eyebrow */
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.14em; }

  /* Split image, bigger margin on tiny screens */
  .split-img { max-width: 100%; }

  /* Trust badge */
  .trust-badge { font-size: 0.74rem; padding: 0.45rem 0.75rem; }
}

/* ---- Very small phones (≤360px) ---- */
@media (max-width: 360px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .hero-stat .num { font-size: 1.25rem; }
  .topbar .container { font-size: 0.6rem; }
  .em-label { display: none; }
  .em-num { font-size: 0.78rem; }
  .logo-text .name { font-size: 0.6rem; letter-spacing: -0.015em; }
  .logo-text .tag { display: none; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; }
}
