:root {
  --primary: #0b4f6c;
  --primary-dark: #073a50;
  --accent: #e4572e;
  --accent-dark: #c4421d;
  --teal: #20a39e;
  --ink: #1d2a33;
  --muted: #5b6b76;
  --line: #e2e8ec;
  --soft: #f3f8fa;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 79, 108, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; }
h1, h2, h3 { font-family: Poppins, Inter, system-ui, sans-serif; line-height: 1.25; margin: 0 0 .5em; color: var(--primary-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
a { color: var(--primary); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; background: #fff; padding: 8px 12px; z-index: 100; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .4em; padding: .65em 1.2em; border-radius: 999px; font-weight: 600;
       text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary-dark); flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 1.5rem; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: Poppins, sans-serif; font-size: 1.08rem; }
.brand-text small { color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: .5em .62em; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--primary); background: var(--soft); }
.nav a.nav-cta { color: #fff; background: var(--accent); margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 1.4rem; width: 48px; height: 44px; cursor: pointer; }
.emergency-strip { background: var(--accent); color: #fff; text-align: center; font-weight: 600; padding: 6px 0; }
.emergency-strip a { color: #fff; }

/* hero */
.hero { position: relative; color: #fff; padding: clamp(64px, 10vw, 120px) 0;
        background: linear-gradient(120deg, rgba(7, 58, 80, .94), rgba(11, 79, 108, .82) 55%, rgba(32, 163, 158, .7)), var(--hero, none) center/cover no-repeat, var(--primary); }
.hero h1 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; opacity: .85; margin: 0 0 .6em; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 40ch; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; opacity: .92; }

/* quick tiles */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -40px; position: relative; }
.quick-tile { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-decoration: none; color: var(--ink);
              display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.quick-tile:hover { transform: translateY(-3px); border-color: var(--teal); }
.quick-tile span { font-size: 1.8rem; }
.quick-tile small { color: var(--muted); }

/* sections */
.section { padding: 56px 16px; }
.band { background: var(--soft); padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head a { font-weight: 600; text-decoration: none; }
.section-lead { color: var(--muted); max-width: 65ch; font-size: 1.08rem; }
.page-head { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 48px 0 40px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { margin: 0; opacity: .9; }
.grid { display: grid; gap: 18px; margin-top: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.dept-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--soft); font-size: 1.7rem; margin-bottom: 12px; }
.dept p { color: var(--muted); margin: 0; }
.dept .more { margin-top: .6em; }
.doctor { display: flex; gap: 18px; align-items: flex-start; }
.doc-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; }
.doc-initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--teal)); color: #fff; font: 600 1.6rem Poppins, sans-serif; }
.doctor p { margin: 0 0 .25em; }
.qual { color: var(--muted); font-size: .95rem; }
.spec { color: var(--teal); font-weight: 600; }
.time { font-size: .95rem; }
.bio { margin-top: .6em !important; color: var(--muted); }
.why-item span { font-size: 2rem; }
.why-item p { color: var(--muted); margin: 0; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 48px; margin-top: 40px; text-align: center; }
.stats strong { display: block; font: 700 2.4rem Poppins, sans-serif; color: var(--primary); }
.stats span { color: var(--muted); }
.cta { background: linear-gradient(120deg, var(--primary), var(--teal)); color: #fff; padding: 48px 0; }
.cta h2 { color: #fff; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.center { text-align: center; margin-top: 32px; }
.prose { max-width: 820px; }
.steps li { margin-bottom: .7em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.contact-info p { margin: 0 0 1.1em; }
.contact-form label { display: block; font-weight: 600; margin: 12px 0 4px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9d4da; border-radius: 10px; font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.contact-form .btn { margin-top: 16px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.err { color: #b42318; margin: 4px 0 0; font-size: .92rem; }
.note { color: var(--muted); font-size: .9rem; }
.flash { background: #e7f6ec; border: 1px solid #a6dcb6; color: #14532d; padding: 12px 16px; border-radius: 10px; margin-top: 16px; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); margin-bottom: 56px; }

/* footer */
.footer { background: #0a2633; color: #c9d7de; padding: 48px 0 0; }
.footer h3 { color: #fff; }
.footer a { color: #fff; }
.footer p { margin: 0 0 .5em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.muted-link a { color: #8ba4b0; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding: 16px; font-size: .9rem; color: #8ba4b0; text-align: center; }
.footer-credit { padding: 0 16px 18px; font-size: .82rem; color: #8ba4b0; text-align: center; }
.footer-credit p { margin: 0 0 .25em; }
.footer-credit a { color: #c9d7de; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366;
            display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); z-index: 60; }

/* With the full menu showing, the hospital name takes two lines so the menu fits beside it. */
@media (min-width: 1161px) { .brand-text strong { max-width: 9.2em; } }
/* The full menu needs about 1160px; below that it folds into the ☰ button. */
@media (max-width: 1160px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
         padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.nav-cta { margin: 8px 0 0; justify-content: center; }
  .topbar-in { position: relative; }
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* contact buttons (static site) */
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-actions .btn { justify-content: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-wa { background: #25d366; color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); }

/* photos */
.hero.has-photo { background: linear-gradient(90deg, rgba(7, 58, 80, .93) 0%, rgba(7, 58, 80, .78) 42%, rgba(7, 58, 80, .2) 100%), var(--hero) center/cover no-repeat, var(--primary); }
.team-photo { display: block; width: 100%; max-height: 460px; object-fit: cover; object-position: center 20%; border-radius: var(--radius); box-shadow: var(--shadow); margin: 20px 0 8px; }
@media (max-width: 640px) {
  .hero.has-photo { background: linear-gradient(180deg, rgba(7, 58, 80, .88), rgba(7, 58, 80, .8)), var(--hero) center/cover no-repeat, var(--primary); }
  .team-photo { max-height: 260px; }
}

/* =========================================================
   Brand + motion layer: logo colours (red sun, gold rays, green tree)
   ========================================================= */
:root {
  --accent: #d7262e;
  --accent-dark: #b01e25;
  --gold: #f4b400;
  --leaf: #2e8b57;
}
.btn-accent { box-shadow: 0 8px 22px rgba(215, 38, 46, .35); }
.btn-accent:hover { box-shadow: 0 10px 28px rgba(215, 38, 46, .45); }
.nav a.nav-cta { background: var(--accent); }

/* animated logo in the header: slow sun rays behind the badge */
.logo-orb { position: relative; display: grid; place-items: center; width: 50px; height: 50px; flex: none; }
.logo-orb::before { content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(244, 180, 0, .55) 0 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%, #000 70%, transparent 71%);
          mask: radial-gradient(circle, transparent 46%, #000 47%, #000 70%, transparent 71%);
  animation: spin 18s linear infinite; }
.logo-orb .brand-logo { position: relative; height: 46px; width: 46px; border-radius: 50%; animation: logo-in 1s cubic-bezier(.2, .9, .3, 1.3) both; }
.brand:hover .logo-orb::before { animation-duration: 4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logo-in { from { transform: scale(.4) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* hero */
.hero { overflow: hidden; padding-bottom: clamp(90px, 12vw, 150px); }
.hero-in { position: relative; z-index: 1; }
.hero-glow { position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 180, 0, .35), transparent 65%); animation: float 9s ease-in-out infinite; pointer-events: none; }
@keyframes float { 50% { transform: translate(-30px, 40px) scale(1.08); } }
.hero-emblem { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 18px; }
.hero-emblem img { position: relative; width: 84px; height: 84px; border-radius: 50%; background: #fff; padding: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: logo-in 1.1s cubic-bezier(.2, .9, .3, 1.3) both, bob 5s ease-in-out 1.2s infinite; }
.hero-emblem .rays { position: absolute; inset: -18px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(244, 180, 0, .75) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 44%, #000 45%, #000 62%, transparent 70%);
          mask: radial-gradient(circle, transparent 44%, #000 45%, #000 62%, transparent 70%);
  animation: spin 24s linear infinite; }
.hero-emblem .halo { position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); animation: halo 2.8s ease-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes halo { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.load-up { animation: up .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * .12s + .2s); }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.shine { background: linear-gradient(90deg, #fff 0%, var(--gold) 40%, #fff 60%, #fff 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; animation: shine 5s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.ecg { display: block; width: min(520px, 100%); height: 46px; margin: 4px 0 14px; overflow: visible; }
.ecg path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900; filter: drop-shadow(0 0 6px rgba(244, 180, 0, .8)); animation: ecg 3.2s ease-in-out infinite; }
@keyframes ecg { 0% { stroke-dashoffset: 900; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -900; } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }
.hero-wave path { fill: #fff; }
.quick { margin-top: -70px; z-index: 2; }
.quick-tile span { display: inline-block; transition: transform .3s; }
.quick-tile:hover span { transform: scale(1.2) rotate(-6deg); }

/* pain band */
.pain-band { position: relative; margin-top: 56px; padding: 64px 0; color: #e8f3f5; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(244, 180, 0, .18), transparent 40%), linear-gradient(135deg, #072f3f, #0b4f6c 55%, #12707a); }
.pain-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.pain-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: rgba(244, 180, 0, .18);
  color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.hl { color: var(--gold); }
.pain-list { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 10px; }
.pain-list li { padding-left: 34px; position: relative; }
.pain-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--leaf); color: #fff; font-size: .8rem; font-weight: 700; }
.pain-visual { text-align: center; }
.visual-note { color: #b9d3da; font-size: .9rem; margin: 6px 0 0; }
.body-map { width: min(300px, 80%); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.body-map .body { opacity: .92; }
.pain-dots .dot { fill: #ff3b3b; cursor: pointer; }
.pain-dots .ring { fill: none; stroke: #ff3b3b; stroke-width: 2; transform-box: fill-box; transform-origin: center;
  animation: ping 2.4s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* stats */
.stats-band { background: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 34px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.stats-row strong { display: block; font: 700 clamp(1.5rem, 3vw, 2.2rem) Poppins, sans-serif;
  background: linear-gradient(90deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-row span { color: var(--muted); font-size: .95rem; }

/* cards */
.card { transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 79, 108, .14); border-color: #bfe3e6; }
.dept-icon { background: linear-gradient(135deg, #fff3d6, #e3f4f5); transition: transform .3s; }
.card:hover .dept-icon { transform: scale(1.12) rotate(-6deg); }
.doc-photo { box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(244, 180, 0, .7); }
.doctor .doc-photo { width: 104px; height: 104px; }

/* scroll reveal (only when JS is running, so content is never hidden without it) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * .12s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.grid > [data-reveal]:nth-child(2) { --i: 1; } .grid > [data-reveal]:nth-child(3) { --i: 2; } .grid > [data-reveal]:nth-child(4) { --i: 3; }
.stats-row > :nth-child(2) { --i: 1; } .stats-row > :nth-child(3) { --i: 2; } .stats-row > :nth-child(4) { --i: 3; }
.quick > :nth-child(2) { --i: 1; } .quick > :nth-child(3) { --i: 2; } .quick > :nth-child(4) { --i: 3; }

/* whatsapp pulse */
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: halo 2.2s ease-out infinite; }

/* pain page */
.pain-head { position: relative; overflow: hidden; padding: 56px 0 40px;
  background: radial-gradient(circle at 80% 30%, rgba(244, 180, 0, .2), transparent 45%), linear-gradient(135deg, #072f3f, #0b4f6c 60%, #12707a); }
.pain-head-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.pain-head .lead { color: #e6f1f4; }
.pain-visual.small .body-map { width: min(230px, 70%); }
.cond span { font-size: 2rem; display: block; margin-bottom: 8px; }
.cond p, .treat p { color: var(--muted); margin: 0; }
.prp-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.prp-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.prp-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--accent); z-index: 1; }
.prp-steps p { color: var(--muted); margin: 6px 0 0; }
.step-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; margin-bottom: 12px;
  background: linear-gradient(135deg, #ffe3e3, #fff3d6); }
.step-icon.spin { animation: spin 3s linear infinite; }
.prp-art { display: block; width: 100%; height: auto; margin-bottom: 14px; border-radius: 12px; }
.prp-art text { font-family: Inter, system-ui, sans-serif; }
.ur .prp-art text, [dir="rtl"] .prp-art text { font-family: var(--urdu); font-size: 10px; }
.prp-rotor { transform-box: fill-box; transform-origin: center; animation: spin 1.6s linear infinite; }
.prp-glow { transform-box: fill-box; transform-origin: center; animation: prp-glow 2.4s ease-in-out infinite; }
@keyframes prp-glow { 0%, 100% { opacity: .2; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--primary-dark); list-style: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.3rem; line-height: 1; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

@media (max-width: 960px) {
  .pain-grid, .pain-head-in { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .prp-steps { grid-template-columns: 1fr; }
  .prp-steps li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .hero-emblem { width: 84px; height: 84px; margin-left: 14px; }
  .hero-emblem img { width: 66px; height: 66px; }
  .pain-visual.small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ecg path { stroke-dashoffset: 0; }
}

/* visit / map */
.visit-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: stretch; }
.visit-card .kicker { color: var(--accent-dark); background: #fde8e9; }
.visit-card p { margin: 0 0 .6em; }
.visit-addr { font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); }
.visit-map { width: 100%; min-height: 340px; height: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 960px) { .visit-grid { grid-template-columns: 1fr; } }

/* appointment form */
.book-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.book-form .field { margin-bottom: 14px; }
.book-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primary-dark); }
.book-form input, .book-form select, .book-form textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: 16px;
  border: 1px solid #c9d4da; border-radius: 10px; background: #fff; }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.book-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.book-result { margin-top: 14px; padding: 14px 16px; border-radius: 12px; line-height: 1.5; }
.book-result.ok { background: #e7f6ec; border: 1px solid #a6dcb6; color: #14532d; }
.book-result.err { background: #fdecec; border: 1px solid #f3b4b4; color: #7f1d1d; }
.book-result .btn { margin-top: 10px; }
.book-side { display: grid; gap: 18px; }
.book-side p { margin: 0 0 .6em; }
.pain-list.dark li { color: var(--ink); }
@media (max-width: 960px) { .book-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Language switch, news, videos and gallery
   ========================================================= */
.lang-switch { font-weight: 600; text-decoration: none; }
/* system font for the "اردو" link on English pages, so they never download the large Urdu font */
.lang-switch[lang="ur"] { font-family: system-ui, "Segoe UI", Tahoma, sans-serif; font-size: 1.05rem; }
.lang-switch-top { display: none; padding: .35em .8em; border: 1px solid var(--line); border-radius: 999px; color: var(--primary); }
.nav a.lang-switch-nav { color: var(--primary); border: 1px solid var(--line); border-radius: 999px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
a[href^="tel:"]:not(.btn):not(.quick-tile) { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.post-card { padding: 0; overflow: hidden; }
.post-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; padding: 0 0 20px; }
.post-link > :not(.post-thumb) { margin-left: 22px; margin-right: 22px; }
.post-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 14px; background: var(--soft); }
.post-link h3 { margin-top: 8px; }
.post-link p { color: var(--muted); margin-top: 0; }
.post-link .more { margin-top: auto; font-weight: 600; color: var(--primary); }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; padding-top: 18px; }
.post-thumb + .post-meta { padding-top: 0; }
.post-meta.light { color: #d6e7ec; padding-top: 0; margin: 0 0 10px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #e3f4f5; color: var(--primary-dark); }
.tag-article { background: #fff3d6; color: #7a5600; }
.post-body h2 { margin-top: 1.4em; }
.post-body ul { padding-inline-start: 1.4em; }
.post-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; padding: .4em 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.video-card { margin: 0; }
.video-card iframe, .yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.yt { position: relative; padding: 0; cursor: pointer; overflow: hidden; box-shadow: var(--shadow); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 50px; border-radius: 14px; background: rgba(215, 38, 46, .92); }
.yt-play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; transform: translateX(3px); }
.fb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font: inherit; color: #fff; background: linear-gradient(135deg, #1877f2, #0b4f9c); }
.fb-logo { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: #1877f2; font: 700 46px/70px Arial, sans-serif; text-align: center; overflow: hidden; transition: transform .2s; }
.fb:hover .fb-logo { transform: scale(1.08); }
.fb-label { font-weight: 600; }
.fb-link { text-decoration: none; }
.fb-reel, .video-card iframe.fb-reel { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.fb-post { aspect-ratio: 4 / 3; }
.video-card iframe.fb-post { aspect-ratio: auto; height: 620px; max-width: 500px; margin-inline: auto; background: #fff; }
.video-card figcaption { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.video-card figcaption span { color: var(--muted); }
.post-body .video-card { margin: 20px 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.photo { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.photo:hover img { transform: scale(1.04); }
.photo figcaption { padding: 10px 14px; color: var(--muted); font-size: .95rem; }

@media (max-width: 1160px) {
  .lang-switch-top { display: inline-block; margin-inline-start: auto; }
  .nav a.lang-switch-nav { display: none; }
}

/* =========================================================
   Urdu pages: Nastaleeq script, right-to-left layout
   ========================================================= */
@font-face {
  font-family: "Jameel Noori Nastaleeq";
  /* Only the copy installed on the visitor's computer (common with InPage users). Everyone else gets
     Noto Nastaliq Urdu from Google Fonts, which sends only the parts a page needs; the full Jameel
     font file is 9.4 MB, too heavy for patients on mobile data. */
  src: local("Jameel Noori Nastaleeq"), local("JameelNooriNastaleeq");
  font-display: swap;
}
:root { --urdu: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif; }
[dir="rtl"] body { font-family: var(--urdu); font-size: 19px; line-height: 2; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .brand-text strong, [dir="rtl"] .btn,
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] button { font-family: var(--urdu); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.9; font-weight: 400; }
[dir="rtl"] h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
[dir="rtl"] h3 { font-size: 1.25rem; }
/* Letter-spacing and capitals break joined Urdu letters. */
[dir="rtl"] * { letter-spacing: 0 !important; text-transform: none !important; }
[dir="rtl"] .stats-row strong { font-family: var(--urdu); font-weight: 400; line-height: 1.8; }
[dir="rtl"] .doc-initials, [dir="rtl"] .ltr, [dir="rtl"] a[href^="tel:"]:not(.btn):not(.quick-tile), [dir="rtl"] a[href^="mailto:"] { font-family: Inter, system-ui, sans-serif; }
[dir="rtl"] .brand-text { line-height: 1.5; }
[dir="rtl"] .btn { padding-top: .45em; padding-bottom: .55em; }
[dir="rtl"] .lead { max-width: 46ch; }

/* mirror the side-specific bits */
[dir="rtl"] .nav a.nav-cta { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .wa-float { right: auto; left: 18px; }
[dir="rtl"] .pain-list li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .pain-list li::before { left: auto; right: 0; top: .45em; }
[dir="rtl"] .hero-glow { right: auto; left: -120px; }
[dir="rtl"] .faq summary::after { float: left; }
[dir="rtl"] .prp-steps li:not(:last-child)::after { content: "←"; right: auto; left: -18px; }
[dir="rtl"] .hero.has-photo { background: linear-gradient(270deg, rgba(7, 58, 80, .93) 0%, rgba(7, 58, 80, .78) 42%, rgba(7, 58, 80, .2) 100%), var(--hero) center/cover no-repeat, var(--primary); }
[dir="rtl"] .hero-wave { transform: scaleX(-1); }
@media (max-width: 1160px) {
  [dir="rtl"] .nav a.nav-cta { margin: 8px 0 0; }
}
@media (max-width: 960px) {
  [dir="rtl"] .prp-steps li:not(:last-child)::after { content: "↓"; left: 50%; right: auto; transform: translateX(-50%); }
}
@media (max-width: 640px) {
  [dir="rtl"] .hero-emblem { margin-left: 0; margin-right: 14px; }
  [dir="rtl"] .hero.has-photo { background: linear-gradient(180deg, rgba(7, 58, 80, .88), rgba(7, 58, 80, .8)), var(--hero) center/cover no-repeat, var(--primary); }
  [dir="rtl"] body { font-size: 18px; }
}
