/* ==========================================================================
   MAIS HOSPITAL JHANG — PREMIUM HEALTHCARE DESIGN SYSTEM
   Punjab Healthcare Commission Licensed (License No. R-25737)
   Design principles: clarity, trust, hierarchy, calm, restrained accents.
   ========================================================================== */

:root {
  /* -- Brand ------------------------------------------------------------ */
  --navy-950: #071f2c;
  --navy-900: #0b3b4f;
  --navy-800: #10475e;
  --navy-700: #1d5a75;
  --accent-600: #0284c7;
  --accent-700: #0369a1;
  --accent-100: #e0f2fe;
  --teal-600: #0d9488;
  --teal-100: #ccfbf1;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --whatsapp-soft: #e9fbf0;

  /* -- Neutrals --------------------------------------------------------- */
  --white: #ffffff;
  --off-white: #f8fafc;
  --cool-gray: #eef2f6;
  --border: #e3e9ef;
  --border-strong: #cbd7e1;
  --ink: #10222e;
  --ink-soft: #345267;
  --muted: #58718a;
  --faint: #8aa0b5;

  /* -- Meaning ---------------------------------------------------------- */
  --bg: var(--white);
  --bg-soft: var(--off-white);
  --bg-navy: var(--navy-950);
  --text: var(--ink);
  --text-muted: #44586b;
  --link: var(--accent-600);
  --success: #15803d;
  --focus-ring: #0284c7;

  /* -- Typography ------------------------------------------------------- */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Urdu Typesetting', Tahoma, sans-serif;

  --fs-hero: clamp(2.35rem, 5vw, 3.9rem);
  --fs-h1: clamp(1.9rem, 3.6vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 2.8vw, 2.1rem);
  --fs-h3: 1.22rem;
  --fs-h4: 1.05rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.02rem, 1.6vw, 1.15rem);
  --fs-sm: 0.92rem;
  --fs-xs: 0.82rem;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.7;

  /* -- Spacing scale (comfortable, generous) ---------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 5rem;
  --sp-16: 7rem;

  /* -- Shape ------------------------------------------------------------ */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* -- Elevation -------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(16, 34, 46, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 34, 46, 0.07), 0 1px 2px rgba(16, 34, 46, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(16, 34, 46, 0.12);
  --shadow-lg: 0 16px 32px -12px rgba(16, 34, 46, 0.18);
  --shadow-navy: 0 10px 24px -8px rgba(11, 59, 79, 0.35);

  /* -- Layout ----------------------------------------------------------- */
  --container: 1180px;
  --container-narrow: 860px;
  --header-h: 76px;
  --header-inner-h: 64px;

  /* -- Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.22s;

  /* -- Breakpoints (consumed by JS if needed) --------------------------- */
  --bp-md: 768px;
  --bp-lg: 1024px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::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: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

p { max-width: 68ch; }

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

button { cursor: pointer; background: none; border: 0; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.urdu-text { font-family: var(--font-urdu); direction: rtl; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container-narrow { max-width: var(--container-narrow); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: var(--lh-tight); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy-900);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: var(--sp-3);
}
.kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent-600);
  border-radius: 2px;
}
.kicker.is-centered { justify-content: center; }

.lede {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: var(--lh-body);
  max-width: 62ch;
}

.muted { color: var(--text-muted); }
.strong { font-weight: 700; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); box-shadow: var(--shadow-navy); }

.btn-accent { background: var(--accent-600); color: #fff; }
.btn-accent:hover { background: var(--accent-700); box-shadow: 0 8px 18px -6px rgba(2, 132, 199, 0.45); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1eb857; box-shadow: 0 8px 18px -6px rgba(37, 211, 102, 0.55); }

.btn-soft { background: var(--accent-100); color: var(--accent-700); }
.btn-soft:hover { background: #ccebfc; }

.btn-outline { border-color: var(--border-strong); color: var(--navy-900); background: transparent; }
.btn-outline:hover { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

.btn-lg { padding: 1rem 1.75rem; font-size: 1.02rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.86rem; }

.btn-block { width: 100%; }

/* ==========================================================================
   Utility bar (thin strip above header)
   ========================================================================== */
.utility-bar {
  background: var(--navy-950);
  color: #c9d9e2;
  font-size: 0.82rem;
  position: relative;
  z-index: 120;
}
.utility-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 40px;
  padding-block: 0.35rem;
}
.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #dbe7ee;
  white-space: nowrap;
}
.utility-link i { color: #7fc7ec; font-size: 0.9rem; }
.utility-link:hover { color: #fff; }
.utility-spacer { flex: 1; }
.utility-wa { color: #9fe8bd; }
.utility-wa i { color: #25d366; }
.utility-loc { color: #9fb6c4; }
.utility-hours { color: #9fb6c4; white-space: nowrap; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-inner-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.3rem;
  background: linear-gradient(150deg, var(--navy-900), var(--teal-600));
  box-shadow: 0 6px 14px -6px rgba(11, 59, 79, 0.45);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.brand-name em { font-style: normal; color: var(--teal-600); }
.brand-sub { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.brand-urdu { font-family: var(--font-urdu); font-size: 0.74rem; color: var(--accent-700); }

.primary-nav { flex: 1; }
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
}
.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-link-item:hover { color: var(--navy-900); background: var(--cool-gray); }
.nav-link-item.is-active { color: var(--navy-900); background: rgba(11, 59, 79, 0.08); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu (docked to header bottom edge) */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 1rem 1.25rem;
  max-height: calc(100vh - var(--header-inner-h));
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu li { border-bottom: 1px solid var(--cool-gray); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu .nav-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 0.5rem;
  font-size: 1.02rem;
  border-radius: var(--radius-sm);
}
.mobile-menu .nav-link-item::after {
  content: '\203A';
  color: var(--faint);
  font-size: 1.1rem;
}
.mobile-cta { padding-top: 0.75rem; }
.mobile-cta .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   Sections & page heroes
   ========================================================================== */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy-950); color: #dbe7ee; }
.section-navy h1, .section-navy h2, .section-navy h3,
.section-navy .h1, .section-navy .h2, .section-navy .h3 { color: #fff; }
.section-navy .lede { color: #a8c1d1; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered .kicker { justify-content: center; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head .lede { color: var(--text-muted); }

.page-hero {
  background:
    radial-gradient(1000px 440px at 85% -10%, rgba(13, 148, 136, 0.28), transparent 60%),
    radial-gradient(900px 420px at 10% 0%, rgba(2, 132, 199, 0.25), transparent 55%),
    var(--navy-950);
  color: #e6eef4;
  padding: clamp(3rem, 6vw, 4.75rem) 0;
}
.page-hero .kicker { color: #6fd2ec; }
.page-hero .kicker::before { background: #6fd2ec; }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: #b9ccd9; max-width: 66ch; }
.page-hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(7, 31, 44, 0.96) 0%, rgba(11, 59, 79, 0.9) 55%, rgba(13, 148, 136, 0.55) 100%),
    var(--navy-950);
  color: #edf4f8;
  overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 30px 30px;
  opacity: 0.5;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(7,31,44,0.86) 0%, rgba(7,31,44,0.45) 55%, transparent 90%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fe8bd;
  margin-bottom: 1.25rem;
}
.hero-eyebrow i { color: #25d366; font-size: 0.9rem; }
.hero h1 {
  font-size: var(--fs-hero);
  color: #fff;
  margin-bottom: 1rem;
}
.hero h1 .accent-text {
  background: linear-gradient(95deg, #52d6c0 0%, #7cc8f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-urdu { font-family: var(--font-urdu); color: #a8d4e8; font-size: 1.15rem; margin-bottom: 1.1rem; }
.hero .lede { color: #c4d6e1; max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2.25rem; }

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-trust-list li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; color: #d9e6ee; }
.hero-trust-list i { color: #52d6c0; }

.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-visual img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-metrics {
  margin-top: -3.2rem;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(7, 31, 44, 0.92);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
}
.hero-metric { padding: 1.1rem 0.9rem; text-align: center; background: var(--navy-950); }
.hero-metric b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: #fff; }
.hero-metric span { font-size: 0.74rem; color: #93b0c2; line-height: 1.3; display: block; }
.hero-metric .metric-icon { color: #52d6c0; font-size: 0.95rem; margin-bottom: 0.2rem; }

/* ==========================================================================
   Quick actions
   ========================================================================== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.quick-action:hover { border-color: var(--accent-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quick-action .qa-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.15rem;
  background: var(--accent-100);
  color: var(--accent-700);
}
.quick-action:nth-child(2) .qa-icon,
.quick-action[data-accent="whatsapp"] .qa-icon { background: var(--whatsapp-soft); color: var(--whatsapp-dark); }
.quick-action:nth-child(3) .qa-icon { background: var(--teal-100); color: var(--teal-600); }
.quick-action:nth-child(4) .qa-icon { background: #eef2f6; color: var(--navy-800); }
.quick-action .qa-text { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.quick-action .qa-text b { font-size: 0.98rem; color: var(--navy-900); }
.quick-action .qa-text span { font-size: 0.78rem; color: var(--muted); }
.quick-action .qa-arrow { color: var(--faint); transition: transform var(--dur) var(--ease); }
.quick-action:hover .qa-arrow { transform: translateX(3px); color: var(--accent-600); }

/* ==========================================================================
   Services (homepage compact list + services page grid)
   ========================================================================== */
.service-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 0.75rem;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur) var(--ease);
  border-radius: var(--radius-sm);
}
.service-row:hover { background: var(--bg-soft); }
.service-row .svc-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.2rem;
  background: var(--accent-100);
  color: var(--accent-700);
}
.service-row .svc-body { min-width: 0; }
.service-row .svc-body h3 { font-size: 1.12rem; margin-bottom: 0.15rem; }
.service-row .svc-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.service-row .svc-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; font-weight: 700; color: var(--accent-600);
  white-space: nowrap;
}
.service-row .svc-link:hover { color: var(--accent-700); }

.services-index {
  position: sticky;
  top: calc(var(--header-inner-h) + 1.5rem);
  align-self: start;
}
.services-index a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600; color: var(--text-muted);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.services-index a:hover { background: var(--cool-gray); color: var(--navy-900); }
.services-index a i { width: 20px; text-align: center; color: var(--accent-600); }

.service-block { margin-bottom: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: calc(var(--header-inner-h) + 1rem); }
.service-block-head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.25rem; }
.service-block-head .svc-icon {
  width: 54px; height: 54px; flex-shrink: 0;
  border-radius: 12px; display: grid; place-items: center;
  font-size: 1.25rem; background: var(--accent-100); color: var(--accent-700);
}
.service-block h2 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.service-block .urdu { font-family: var(--font-urdu); color: var(--teal-600); font-size: 0.95rem; }
.service-block p.body-text { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 1.25rem; line-height: 1.75; }
.service-block .feat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.service-block .feat-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9rem; color: var(--text); }
.service-block .feat-list i { color: var(--teal-600); margin-top: 0.2rem; font-size: 0.85rem; }
.service-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.services-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-index { position: static; }
}

/* ==========================================================================
   Doctor directory
   ========================================================================== */
.directory-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 2.5rem;
}
.search-field { position: relative; margin-bottom: 1.1rem; }
.search-field i {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-size: 1.05rem;
}
.search-field input {
  width: 100%;
  padding: 0.95rem 1.1rem 0.95rem 2.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search-field input:focus { border-color: var(--accent-600); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14); }

.filter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.filter-pill {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: all var(--dur) var(--ease);
}
.filter-pill i { font-size: 0.82rem; opacity: 0.9; }
.filter-pill:hover { border-color: var(--navy-800); color: var(--navy-900); }
.filter-pill.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: 0 4px 10px -4px rgba(11, 59, 79, 0.5); }

.result-count { margin-top: 1rem; font-size: 0.84rem; color: var(--muted); }

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.doctor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.doctor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-strong); }
.doctor-card-head {
  height: 108px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.doctor-card-head::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,31,44,0.0), rgba(7,31,44,0.35));
  pointer-events: none;
}
.doctor-avatar {
  position: relative; z-index: 2;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: 0.04em;
  color: #fff; border: 3px solid rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 8px 18px -6px rgba(7,31,44,0.5);
}
.doctor-desig {
  position: absolute; z-index: 3; right: 0.9rem; bottom: 0.9rem;
  background: rgba(7,31,44,0.88); color: #e6eef4;
  font-size: 0.68rem; font-weight: 700;
  padding: 0.28rem 0.75rem; border-radius: var(--radius-pill);
}
.doctor-card-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.doctor-card-body h3 { font-size: 1.14rem; margin-bottom: 0.15rem; }
.doctor-title { font-size: 0.82rem; font-weight: 700; color: var(--teal-600); margin-bottom: 0.5rem; }
.doctor-qual {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 700; color: var(--accent-700);
  background: var(--accent-100); padding: 0.28rem 0.7rem; border-radius: var(--radius-sm);
  width: max-content; max-width: 100%; margin-bottom: 0.75rem;
}
.doctor-exp { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.45; }
.doctor-sched {
  display: flex; flex-direction: column; gap: 0.3rem;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.75rem 0.95rem;
  margin-bottom: 1.1rem;
}
.doctor-sched div { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.84rem; }
.doctor-sched dt { color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.doctor-sched dd { font-weight: 700; color: var(--text); text-align: right; }
.doctor-card-actions { margin-top: auto; display: grid; gap: 0.55rem; }
.doctor-card-actions .btn { padding: 0.72rem 1rem; font-size: 0.9rem; }

/* Doctor profile modal */
.profile-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background:
    radial-gradient(500px 200px at 90% -20%, rgba(13,148,136,0.3), transparent 60%),
    var(--navy-900);
  color: #fff;
}
.profile-head .doctor-avatar { width: 84px; height: 84px; font-size: 1.7rem; }
.profile-head h3 { color: #fff; font-size: 1.45rem; margin-bottom: 0.15rem; }
.profile-head p { color: #b9d4e8; font-size: 0.9rem; font-weight: 600; }
.profile-body { padding: 1.75rem 2rem; }
.profile-block { margin-bottom: 1.5rem; }
.profile-block:last-child { margin-bottom: 0; }
.profile-block h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.profile-block p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.8rem; font-weight: 700; color: var(--accent-700);
  background: var(--accent-100); padding: 0.3rem 0.8rem; border-radius: var(--radius-pill);
}
.profile-sched { display: flex; flex-direction: column; gap: 0.4rem; }
.profile-sched div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.profile-sched dt { color: var(--muted); }
.profile-sched dd { font-weight: 700; text-align: right; }
.profile-ctas { display: grid; gap: 0.65rem; margin-top: 0.5rem; }
.profile-ctas .btn { padding: 0.85rem 1.25rem; }

/* ==========================================================================
   Schedule table
   ========================================================================== */
.schedule-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-top: 2.75rem;
}
.schedule-card-head {
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.schedule-card-head h3 { font-size: 1.2rem; }
.schedule-card-head p { font-size: 0.84rem; color: var(--muted); margin-top: 0.15rem; }
.schedule-wrap { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.schedule-table th {
  text-align: left; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: #cfe0ea; background: var(--navy-900); padding: 0.85rem 1.1rem; white-space: nowrap;
}
.schedule-table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table tbody tr:hover td { background: var(--bg-soft); }
.table-doc { display: flex; flex-direction: column; line-height: 1.3; }
.table-doc .t-title { font-size: 0.76rem; color: var(--muted); }
.table-qual { font-size: 0.82rem; color: var(--text-muted); }
.table-dept { display: inline-block; font-size: 0.76rem; font-weight: 700; color: var(--teal-600); background: var(--teal-100); padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); }
.table-time { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.table-book {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 700; color: var(--whatsapp-dark);
  background: var(--whatsapp-soft); padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease);
}
.table-book:hover { background: var(--whatsapp); color: #fff; }

/* ==========================================================================
   Trust / credentials
   ========================================================================== */
.trust-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.trust-item:last-child { border-right: none; }
.trust-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.trust-icon.phc { background: var(--accent-100); color: var(--accent-700); }
.trust-icon.dialysis { background: var(--teal-100); color: var(--teal-600); }
.trust-icon.insurance { background: #fdeeee; color: #b42318; }
.trust-icon.legacy { background: #fdf3e2; color: #b45309; }
.trust-item h3 { font-size: 1.06rem; }
.trust-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.trust-item b { color: var(--navy-900); }

.trust-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.trust-detail { padding: 1.75rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.trust-detail i { font-size: 1.4rem; color: var(--accent-600); margin-bottom: 0.9rem; }
.trust-detail h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.trust-detail p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   Facilities
   ========================================================================== */
.facilities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.facility-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.facility-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.facility-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--cool-gray); }
.facility-media img { width: 100%; height: 100%; object-fit: cover; }
.facility-media .facility-icon {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-size: 1.05rem; color: #fff; background: var(--navy-900);
  box-shadow: 0 6px 14px -4px rgba(7,31,44,0.5);
}
.facility-body { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.facility-body h3 { font-size: 1.16rem; margin-bottom: 0.35rem; }
.facility-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.facility-body .feat-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.facility-body .feat-list li { display: flex; gap: 0.5rem; font-size: 0.86rem; color: var(--text); align-items: flex-start; }
.facility-body .feat-list i { color: var(--teal-600); font-size: 0.8rem; margin-top: 0.25rem; }
.facility-cta { margin-top: auto; }

/* ==========================================================================
   Patient information
   ========================================================================== */
.patient-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.patient-info-tile {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.5rem 1.35rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease);
}
.patient-info-tile:hover { border-color: var(--accent-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.patient-info-tile i { font-size: 1.25rem; color: var(--accent-600); }
.patient-info-tile b { font-size: 1rem; color: var(--navy-900); }
.patient-info-tile span { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }

.info-block { margin-bottom: clamp(2rem, 4vw, 3rem); scroll-margin-top: calc(var(--header-inner-h) + 1rem); }
.info-block-head { display: flex; align-items: flex-start; gap: 1.1rem; margin-bottom: 1rem; }
.info-block-head .info-icon {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
  background: var(--accent-100); color: var(--accent-700);
}
.info-block h2 { font-size: 1.45rem; margin-bottom: 0.2rem; }
.info-block .lede { font-size: 0.98rem; }
.info-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-xs);
}
.info-panel ul { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.info-panel ul li { display: flex; gap: 0.6rem; font-size: 0.94rem; color: var(--text-muted); align-items: flex-start; }
.info-panel ul i { color: var(--teal-600); margin-top: 0.25rem; font-size: 0.85rem; }
.info-panel-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { max-width: var(--container-narrow); margin-inline: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color var(--dur) var(--ease); }
.faq-item.is-open { border-color: var(--accent-600); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.35rem; text-align: left;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--navy-900);
}
.faq-q i { color: var(--accent-600); transition: transform var(--dur) var(--ease); font-size: 0.9rem; }
.faq-item.is-open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a-inner { padding: 0 1.35rem 1.25rem; color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; }

/* ==========================================================================
   Location
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: stretch;
}
.location-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
}
.location-card h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.location-card .urdu { color: var(--teal-600); font-size: 0.95rem; margin-bottom: 1.25rem; }
.address-lines { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.75rem; }
.address-lines li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.address-lines i { color: var(--accent-600); margin-top: 0.25rem; min-width: 1.1rem; }
.address-lines a { font-weight: 700; color: var(--navy-900); }
.address-lines a:hover { color: var(--accent-600); }
.location-actions { margin-top: auto; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.map-frame {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 320px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative;
  background: var(--bg-soft);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.6rem;
  padding: 2rem;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(13,148,136,0.2), transparent 60%),
    var(--navy-950);
  color: #c4d6e1;
}
.map-cover i { font-size: 2.2rem; color: #7fc7ec; }
.map-cover b { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.map-cover span { font-size: 0.92rem; max-width: 40ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: #a9c0cf; padding-top: 4rem; font-size: 0.9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .brand-name, .footer-brand .brand-sub { line-height: 1.25; }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-brand .brand-sub { color: #86a4b8; }
.footer-brand .brand-urdu {
  display: inline-block; margin-top: 0.5rem; color: #9fe8bd; font-family: var(--font-urdu); font-size: 0.95rem;
}
.footer-brand p { color: #8ea7b9; font-size: 0.88rem; line-height: 1.65; margin-top: 0.9rem; }
.footer-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 1.1rem; font-size: 0.78rem; font-weight: 700; color: #9fd2ea;
  background: rgba(2, 132, 199, 0.16); border: 1px solid rgba(127, 199, 236, 0.3);
  padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
}
.footer-col h4 {
  color: #fff; font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  margin-bottom: 1rem; padding-bottom: 0.5rem; position: relative;
}
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 26px; height: 2px; background: var(--accent-600); border-radius: 2px; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: #8ea7b9; font-size: 0.88rem; transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease); }
.footer-links a:hover { color: #fff; padding-left: 0.2rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: #8ea7b9; margin-bottom: 0.65rem; }
.footer-contact i { color: #7fc7ec; margin-top: 0.25rem; min-width: 1rem; }
.footer-contact a { color: #d8e6ee; font-weight: 600; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: #6f8ca0;
}

/* ==========================================================================
   Booking modal & dialogs
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(7, 31, 44, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal {
  width: 100%;
  max-width: 620px;
  max-height: min(92vh, 900px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.modal-header h3 { color: #fff; font-size: 1.3rem; }
.modal-header p { color: #a9cee4; font-size: 0.84rem; margin-top: 0.25rem; }
.modal-close {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.05rem;
  transition: background var(--dur) var(--ease);
}
.modal-close:hover { background: rgba(255,255,255,0.24); }
.modal-body { padding: 1.75rem; }

.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-control {
  width: 100%; padding: 0.8rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.95rem; background: #fff; color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control:focus { border-color: var(--accent-600); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14); }
textarea.form-control { resize: vertical; min-height: 88px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.wa-preview {
  background: var(--whatsapp-soft);
  border: 1.5px dashed #9fe0bd;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0 1.15rem;
  font-size: 0.82rem; color: #0f4d2e; line-height: 1.55;
  white-space: pre-line; font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace;
}
.wa-note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  background: var(--accent-100); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; font-size: 0.82rem; color: var(--accent-700); line-height: 1.5;
  margin-bottom: 1.1rem;
}
.wa-note i { margin-top: 0.15rem; }

/* ==========================================================================
   Floating WhatsApp assistant
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 1200;
}
.wa-float-btn {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.8rem; color: #fff;
  background: var(--whatsapp);
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.6);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.wa-float-btn:hover { transform: scale(1.06); background: #1eb857; }
.wa-float-tooltip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); white-space: nowrap;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wa-float-btn:hover + .wa-float-tooltip, .wa-float:hover .wa-float-tooltip { opacity: 1; }

.wa-chat {
  position: fixed; right: 20px; bottom: 92px; z-index: 1201;
  width: 360px; max-width: calc(100vw - 2rem);
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(12px) scale(0.97); opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.28s var(--ease);
}
.wa-chat.is-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; pointer-events: auto; }
.wa-chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.15rem; background: var(--whatsapp-dark); color: #fff;
}
.wa-chat-user { display: flex; align-items: center; gap: 0.7rem; }
.wa-chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.18); font-size: 1.15rem; border: 2px solid rgba(255,255,255,0.7); }
.wa-chat-user b { display: block; font-size: 0.94rem; line-height: 1.2; }
.wa-chat-user span { font-size: 0.74rem; color: #b9f0cf; display: flex; align-items: center; gap: 0.3rem; }
.wa-chat-user span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.wa-chat-close { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; background: rgba(255,255,255,0.12); }
.wa-chat-close:hover { background: rgba(255,255,255,0.26); }
.wa-chat-body { background: #efeae2; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; max-height: 46vh; overflow-y: auto; }
.wa-bubble { background: #fff; padding: 0.75rem 0.95rem; border-radius: 0 12px 12px 12px; font-size: 0.86rem; line-height: 1.5; color: #1f2937; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.wa-bubble strong { color: var(--navy-900); }
.wa-quick { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; background: #fff; border: 1px solid #d8dfe6; border-radius: var(--radius-md); padding: 0.65rem 0.85rem; font-size: 0.84rem; font-weight: 600; color: #1f2937; transition: border-color var(--dur) var(--ease); }
.wa-quick:hover { border-color: var(--whatsapp); color: var(--whatsapp-dark); }
.wa-quick span { display: inline-flex; align-items: center; gap: 0.5rem; }
.wa-chat-foot { display: flex; gap: 0.55rem; padding: 0.8rem 1rem; background: #f3f5f7; }
.wa-chat-foot input { flex: 1; padding: 0.65rem 0.95rem; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 0.88rem; background: #fff; }
.wa-chat-send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--whatsapp-dark); color: #fff; }

/* Mobile sticky action bar */
.mobile-actions {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1150;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px -10px rgba(16, 34, 46, 0.18);
}
.mobile-actions .btn { padding: 0.8rem 1rem; font-size: 0.92rem; }

/* ==========================================================================
   Doctor grid empty state
   ========================================================================== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: #fff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty-state i { font-size: 2.5rem; color: var(--faint); margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.empty-state p { color: var(--muted); margin: 0 auto 1.25rem; }

/* ==========================================================================
   Appointment page stepper
   ========================================================================== */
.apt-step-title {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 1.15rem; color: var(--navy-900);
  margin-bottom: 1rem;
}
.apt-step {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 800; color: #fff;
  background: var(--navy-900);
}
.specialty-pills { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.5rem; }
.specialty-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.05rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.88rem; font-weight: 700; color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.specialty-pill i { opacity: 0.8; }
.specialty-pill:hover { border-color: var(--accent-600); color: var(--accent-700); }
.specialty-pill.is-selected { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.specialty-pill.is-selected i { color: #9fe8bd; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .primary-nav > ul { gap: 0.1rem; }
  .nav-link-item { padding: 0.5rem 0.7rem; font-size: 0.9rem; }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .utility-inner { justify-content: center; gap: 1rem; }
  .utility-spacer, .utility-loc, .utility-hours { display: none; }

  .header-inner { gap: 1rem; }
  .primary-nav, .header-actions .btn-book { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: none; }
  .mobile-menu.is-open { display: block; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }

  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(n) { border-bottom: 1px solid var(--border); }
  .trust-item:nth-child(3), .trust-item:nth-child(4) { border-bottom: none; }
  .trust-details { grid-template-columns: 1fr; }
  .patient-info-grid { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-actions { display: grid; }
  .wa-float { bottom: 92px; }
  .wa-chat { bottom: 160px; }

  body { padding-bottom: 0; }
  body.has-mobile-actions { padding-bottom: 74px; }
}

@media (max-width: 640px) {
  .service-row { grid-template-columns: 46px minmax(0, 1fr); }
  .service-row .svc-link { grid-column: 2; margin-top: -0.4rem; }
  .service-block .feat-list { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: 1fr; }
  .schedule-card-head { flex-direction: column; align-items: flex-start; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .hero-metric { padding: 1rem 0.85rem; }
  .quick-actions { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; align-items: flex-start; }
  .profile-body { padding: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand-urdu { display: none; }
  .brand-name { font-size: 1.08rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.15rem; }
  .header-inner { height: 60px; }
  :root { --header-inner-h: 60px; }
}

/* ==========================================================================
   Accessibility: reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}