/* =========================================================
   Dr. Barakath Badusha – Konsultan Kardiologi, Penang
   Single stylesheet · mobile-first · no framework
   Visual system follows the tanchiangsoo.com reference:
   royal blue on navy, light-blue sections, pill labels, 20px cards.
   ========================================================= */

/* Self-hosted Google Font (SIL Open Font License), variable weight, latin subset */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --text: #0d1b3e;
  --text-mid: #4a5568;
  --text-light: #5a687d;
  --blue: #1a5cff;
  --blue-dark: #1244cc;
  --blue-mid: #c5d5ff;
  --blue-light: #e8efff;
  --bg: #f0f4ff;
  --white: #ffffff;
  --border: #e2e8f0;
  --gold: #f5a623;
  --gold-soft: #fff4e0;
  --green: #22c55e;
  --wa: #25d366;
  --wa-hover: #1fbd5a;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: clamp(.8125rem, .8rem + .06vw, .875rem);
  --step-0: clamp(.9375rem, .92rem + .1vw, 1rem);
  --step-1: clamp(1.0625rem, 1.02rem + .2vw, 1.1875rem);
  --step-2: clamp(1.25rem, 1.15rem + .45vw, 1.55rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.55rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem;
  --s-8: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --r-card: 20px;
  --r-sm: 12px;
  --shadow-card: 0 10px 30px -12px rgb(26 92 255 / .18);
  --shadow-float: 0 18px 40px -16px rgb(13 27 62 / .22);
  --wrap: 1200px;
  --gutter: clamp(1rem, .6rem + 2vw, 2rem);
  --header-h: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { overflow-anchor: none; margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: var(--step-0); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 var(--s-4); color: var(--text); text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -.01em; }
.hl { color: var(--blue); }
p { margin: 0 0 var(--s-4); }
ul, ol { padding-left: 1.2em; margin: 0 0 var(--s-4); }
li { margin-bottom: .35em; }
strong, b { font-weight: 700; }
img, svg { display: block; max-width: 100%; height: auto; }
picture { display: block; }
address { font-style: normal; }
a { color: var(--blue-dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.muted { color: var(--text-light); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: .75em 1.75em; border: 1.5px solid transparent; border-radius: 50px; font: 700 var(--step-0)/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-wa { background: var(--wa); color: var(--text); box-shadow: 0 8px 22px -8px rgb(37 211 102 / .75); }
.btn-wa:hover { background: var(--wa-hover); color: var(--text); box-shadow: 0 10px 26px -8px rgb(37 211 102 / .9); }
.btn-ghost { background: var(--white); border-color: var(--blue-mid); color: var(--blue-dark); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }
.btn-ghost::after { content: "→"; }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -10px rgb(26 92 255 / .7); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-sm { min-height: 46px; padding: .55em 1.5em; }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-2px); } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.more { margin: var(--s-6) 0 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { position: relative; display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); text-decoration: none; margin-right: auto; min-width: 0; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-text { display: grid; line-height: 1.2; }
.brand-name { font: 800 1.0625rem/1.2 var(--font); letter-spacing: -.015em; }
.brand-sub { font-size: .75rem; color: var(--text-light); }
.brand:hover { color: var(--text); }

.nav-toggle { touch-action: manipulation; -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 1em; border: 0; border-radius: 50px; background: var(--blue-light); color: var(--blue-dark); font: 700 var(--step--1) var(--font); cursor: pointer; }
.nav-toggle svg { width: 1.15em; height: 1.15em; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a:not(.btn) { display: block; color: var(--text); text-decoration: none; font-weight: 600; font-size: .8125rem; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--blue); }

@media (max-width: 959.98px) {
  :root { --header-h: 4.25rem; }
  .brand-sub { display: none; }
  .brand svg { width: 42px; height: 42px; }
  .nav { position: absolute; inset: calc(100% + .5rem) 0 auto 0; margin-inline: var(--gutter); background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-float); padding: var(--s-2) var(--s-5) var(--s-5); }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .no-js .nav-toggle { display: none; }
  .no-js .nav { position: static; margin: 0; box-shadow: none; border: 0; padding: 0 0 var(--s-3); }
  .nav li + li { border-top: 1px solid var(--border); }
  .nav a:not(.btn) { padding: .85em 0; font-size: var(--step-0); }
  .nav .btn { width: 100%; margin-top: var(--s-3); }
}
@media (max-width: 479.98px) { .nav-toggle { padding: 0; width: 44px; justify-content: center; } .nav-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: var(--s-5); }
  .nav ul { display: flex; gap: clamp(.9rem, .2rem + 1vw, 1.6rem); }
  .nav a:not(.btn) { padding: .5em 0; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
}

/* ---------- Labels ---------- */
.eyebrow { display: inline-block; margin: 0 0 var(--s-4); padding: .4em 1.1em; border-radius: 50px; background: var(--blue-light); color: var(--blue-dark); font-size: .75rem; font-weight: 700; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; }
.eyebrow--dot { display: inline-flex; align-items: center; gap: .55em; margin-bottom: var(--s-5); padding: .45em 1.1em .45em .95em; background: var(--white); box-shadow: 0 4px 14px -6px rgb(26 92 255 / .25); font-size: var(--step--1); font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.35; }
.eyebrow--dot::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(34 197 94 / .2); }
.pill { display: inline-block; padding: .35em 1em; border-radius: 50px; background: var(--blue-light); color: var(--blue-dark); font-size: var(--step--1); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-8); }
.section--alt { background: var(--bg); }
.section-head { max-width: 44rem; margin-bottom: var(--s-7); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head p:not(.eyebrow) { color: var(--text-mid); line-height: 1.75; }
.section-head p:last-child { margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
@media (min-width: 900px) {
  .section-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-8); align-items: end; }
  .section-head--split .eyebrow { grid-column: 1; justify-self: start; }
  .section-head--split h2 { grid-column: 1; margin-bottom: 0; }
  .section-head--split p:not(.eyebrow) { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(3rem, 1.5rem + 5vw, 5.5rem); background: radial-gradient(40% 50% at 85% 20%, rgb(197 213 255 / .55), transparent 70%), radial-gradient(30% 40% at 20% 95%, rgb(197 213 255 / .4), transparent 70%), linear-gradient(135deg, #f0f4ff 0%, #e8efff 60%, #f8faff 100%); }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.hero-copy { max-width: 38rem; }
.hero h1 { margin-bottom: var(--s-4); line-height: 1.08; }
.h1-name { display: block; }
.h1-role { display: block; margin-top: .25em; font-size: .62em; line-height: 1.2; letter-spacing: -.02em; color: var(--blue); }
.credentials { font-size: var(--step--1); color: var(--text-light); margin-bottom: var(--s-5); }
.lead { font-size: var(--step-1); line-height: 1.7; color: var(--text-mid); }
.hero-figure { position: relative; justify-self: center; width: min(78vw, 420px); margin: 0; isolation: isolate; }
.hero-figure::after { content: ""; position: absolute; left: 50%; top: 46%; z-index: -2; width: 112%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgb(26 92 255 / .12); outline: 1px dashed rgb(26 92 255 / .12); outline-offset: 2.5rem; }
.hero-photo { padding: 12px; border-radius: 999px 999px 32px 32px; background: linear-gradient(180deg, var(--blue-mid) 0%, #dbe5ff 55%, var(--blue-light) 100%); }
.hero-photo img { width: 100%; border-radius: 999px 999px 24px 24px; background: #dbe5ff; }
.hero-badges { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.badge { position: absolute; margin: 0; display: flex; align-items: center; gap: .75em; padding: .85em 1.1em; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-float); font-size: .75rem; line-height: 1.35; color: var(--text-light); white-space: nowrap; }
.badge b { display: block; color: var(--text); font-size: .8125rem; }
.badge svg { width: 2.25rem; height: 2.25rem; padding: .45rem; border-radius: 10px; background: var(--gold-soft); color: #b77400; flex: none; }
.badge--2 svg { background: var(--blue-light); color: var(--blue); }
.badge--1 { top: 34%; right: -14%; }
.badge--2 { bottom: 16%; right: -16%; }
.badge--3 { left: -18%; bottom: 4%; display: block; padding: 1em 1.3em; border-radius: 14px; background: var(--blue); color: var(--white); text-align: center; box-shadow: 0 18px 36px -14px rgb(26 92 255 / .65); }
.badge--3 b { color: var(--white); font-size: 1.15rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin-bottom: .2em; }
@media (max-width: 899.98px) {
  .badge { font-size: .6875rem; padding: .6em .8em; }
  .badge svg { width: 1.9rem; height: 1.9rem; }
  .badge--1 { right: -4%; top: 30%; }
  .badge--2 { right: -4%; bottom: 10%; }
  .badge--3 { left: -4%; bottom: 34%; }
  .badge--3 b { font-size: 1rem; }
}
@media (max-width: 379.98px) { .badge--2 { display: none; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-6); }
  .hero-figure { justify-self: end; margin-right: 5%; }
}
@media (min-width: 900px) and (max-width: 1299.98px) { .badge--1 { right: -4%; } .badge--2 { right: -2%; } .badge--3 { left: -6%; } }

/* Stats strip */
.stats { background: var(--white); border-block: 1px solid var(--border); }
.stats dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); margin: 0; }
.stats dl > div { padding: var(--s-5); border-left: 1px solid var(--border); }
.stats dl > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font: 800 var(--step-2)/1.15 var(--font); letter-spacing: -.03em; color: var(--blue-dark); }
.stats dd { margin: var(--s-1) 0 0; color: var(--text-light); font-size: var(--step--1); line-height: 1.4; }
@media (max-width: 599.98px) {
  .stats dl { grid-template-columns: 1fr 1fr; }
  .stats dl > div, .stats dl > div:first-child { border-left: 0; border-top: 1px solid var(--border); padding: var(--s-4); }
  .stats dl > div:nth-child(-n+2) { border-top: 0; }
  .stats dl > div:nth-child(even) { border-left: 1px solid var(--border); }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem); background: radial-gradient(40% 60% at 90% 10%, rgb(197 213 255 / .55), transparent 70%), linear-gradient(135deg, #f0f4ff 0%, #e8efff 60%, #f8faff 100%); }
.page-hero-copy { max-width: 46rem; }
.page-hero .lead { margin-bottom: 0; }
.page-hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.page-hero-grid .hero-figure { width: min(70vw, 340px); }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.3fr .7fr; } }

.breadcrumb { margin-bottom: var(--s-5); font-size: var(--step--1); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0; color: var(--text-light); }
.breadcrumb li + li::before { content: "/"; color: var(--blue-mid); }
.breadcrumb a { color: var(--blue-dark); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text-mid); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--s-7); }
.about-figure { margin: 0; justify-self: center; width: min(100%, 320px); position: relative; padding: var(--s-4) var(--s-4) var(--s-7); border-radius: 24px; background: linear-gradient(180deg, var(--blue-light) 0%, #dbe5ff 100%); }
.about-figure img { width: 100%; border-radius: 16px; }
.about-figure figcaption { position: absolute; left: 50%; bottom: var(--s-4); transform: translateX(-50%); width: max-content; max-width: 92%; padding: .45em 1em; border-radius: 50px; background: var(--white); box-shadow: var(--shadow-float); font-size: .8125rem; font-weight: 700; text-align: center; }
.about-body { max-width: 44rem; }
.about-body > p { color: var(--text-mid); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: start; }
  .about-figure { width: 100%; max-width: 420px; position: sticky; top: calc(var(--header-h) + 2rem); }
}
.note { display: flex; gap: var(--s-3); margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--blue-light); }
.note svg { width: 1.25em; height: 1.25em; flex: none; color: var(--blue); margin-top: .25em; }
.note p { margin: 0; }
.note--warn { background: #fff5f5; border-color: #fde2e2; }
.note--warn svg { color: #c8102e; }

/* ---------- Cards ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card { position: relative; display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6) var(--s-5); border-radius: var(--r-card); background: var(--white); border: 1px solid var(--border); }
.card h3 { font-size: var(--step-1); margin: 0; }
.card p, .card ul { margin: 0; color: var(--text-mid); font-size: var(--step--1); line-height: 1.7; }
.card ul { padding-left: 1.1em; }
.card-icon svg { width: 3rem; height: 3rem; padding: .7rem; border-radius: 14px; background: var(--blue-light); color: var(--blue); }
.card-icon, .card-num { order: -1; }
.card-num { font: 800 .8125rem var(--font); color: var(--blue); margin: 0; }
.card--link { transition: border-color .2s, box-shadow .2s; }
.card--link:hover { border-color: var(--blue-mid); box-shadow: var(--shadow-card); }
.card--link h3 a { color: var(--text); text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link:hover h3 a { color: var(--blue-dark); }
.card--link:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.card--link a:focus-visible { outline: none; }
.card .card-more { margin-top: var(--s-2); font-size: var(--step--1); font-weight: 700; color: var(--blue-dark); }
.card .card-more::after { content: " →"; }

/* ---------- Long-form content ---------- */
.prose { max-width: 52rem; }
.prose > p, .prose li { color: var(--text-mid); }
.prose h3 { font-size: var(--step-1); margin-top: var(--s-6); }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 1.6em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65em; height: .65em; border-radius: 50%; background: var(--blue-light); border: 2px solid var(--blue); }

.timeline { list-style: none; margin: var(--s-4) 0 var(--s-5); padding: 0; border-bottom: 1px solid var(--border); }
.timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s-4); margin: 0; padding: var(--s-4) 0; border-top: 1px solid var(--border); font-weight: 700; color: var(--text); }
.timeline .year { font: 700 var(--step--1)/1.6 var(--font); color: var(--blue-dark); font-variant-numeric: tabular-nums; }

.steps { list-style: none; margin: 0; padding: 0; max-width: 52rem; border-bottom: 1px solid var(--border); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-4); margin: 0; padding: var(--s-4) 0; border-top: 1px solid var(--border); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 700 var(--step--1)/1.9 var(--font); color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--step-0); margin: 0 0 .15em; }
.steps p { margin: 0; color: var(--text-light); font-size: var(--step--1); }
.steps li > div { min-width: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 var(--s-5); border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg); color: var(--blue-dark); font-weight: 700; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; display: grid; gap: var(--s-3); }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--white); padding-inline: var(--s-5); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--blue-mid); box-shadow: var(--shadow-card); }
.faq summary { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; cursor: pointer; list-style: none; font-weight: 700; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(var(--blue), var(--blue)) center / 11px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 11px no-repeat, var(--blue-light); transition: transform .25s; }
.faq summary:hover { color: var(--blue-dark); }
.faq details[open] > summary::after { transform: rotate(45deg); background: linear-gradient(#fff, #fff) center / 11px 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 11px no-repeat, var(--blue); }
.faq-answer { padding: 0 0 var(--s-5); color: var(--text-mid); }
.faq-answer p:last-child { margin-bottom: 0; }
@media (min-width: 1000px) {
  .faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}

/* ---------- Appointment ---------- */
.appt-grid { display: grid; gap: var(--s-6); }
.appt-card { padding: var(--s-6); border-radius: 24px; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-card); text-align: center; }
.appt-card img { width: 112px; height: 112px; margin: 0 auto var(--s-4); border-radius: 50%; border: 1px solid var(--border); object-fit: cover; }
.appt-card h3 { font-size: var(--step-2); margin-bottom: var(--s-1); }
.appt-card .role { color: var(--blue-dark); font-weight: 700; margin-bottom: var(--s-4); }
.appt-card .creds { font-size: var(--step--1); color: var(--text-light); }
.appt-card .reg { font-size: var(--step--1); color: var(--text-mid); padding-top: var(--s-4); border-top: 1px solid var(--border); margin: var(--s-4) 0 0; }
.appt-card .btn { width: 100%; margin-top: var(--s-3); }
.info-list { margin: 0; display: grid; }
.info-list > div { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.info-list > div:first-child { padding-top: 0; }
.info-list dt { display: flex; align-items: center; gap: var(--s-3); color: var(--text-light); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.info-list dt svg { width: 2.25rem; height: 2.25rem; padding: .5rem; border-radius: 10px; background: var(--white); border: 1px solid var(--border); color: var(--blue); flex: none; }
.info-list dd { margin: var(--s-2) 0 0 calc(2.25rem + var(--s-3)); color: var(--text); font-weight: 600; }
.info-list dd small { display: block; margin-top: var(--s-1); color: var(--text-light); font-size: var(--step--1); font-weight: 400; }
.info-list dd p { margin: 0 0 var(--s-2); }
.hours { border-collapse: collapse; width: auto; font-size: var(--step-0); }
.hours th, .hours td { padding: .1rem 1.25rem .1rem 0; border: 0; text-align: left; }
.hours td { font-weight: 600; }
.hours .closed td { color: #b3001b; }
.hospital-logo { margin-top: var(--s-3); width: 150px; height: auto; }
@media (min-width: 900px) {
  .appt-grid { grid-template-columns: 1fr 400px; gap: var(--s-8); align-items: start; }
  .appt-card { order: 2; position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: clip; isolation: isolate; padding-block: var(--s-8); text-align: center; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgb(255 255 255 / .07); }
.cta-band::before { width: 26rem; height: 26rem; left: -9rem; top: -10rem; }
.cta-band::after { width: 20rem; height: 20rem; right: -6rem; bottom: -9rem; }
.cta-band h2 { font-size: var(--step-4); max-width: 20ch; margin-inline: auto; letter-spacing: -.03em; color: var(--white); }
.cta-band p { color: rgb(255 255 255 / .9); max-width: 36rem; margin-inline: auto; margin-bottom: var(--s-6); }
.cta-band a:not(.btn) { color: var(--white); }
.cta-band .btn-row { justify-content: center; margin-top: 0; }
.cta-band .btn-wa { font-size: var(--step-1); min-height: 56px; padding-inline: 2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #a8b4cc; font-size: var(--step--1); padding: var(--s-7) 0 calc(var(--s-7) + 4rem); }
.site-footer a { color: #b9cbff; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: var(--s-6); }
.footer-name { display: block; font: 800 var(--step-1)/1.2 var(--font); color: var(--white); margin-bottom: var(--s-2); }
.footer-brand p, .footer-brand address { margin-bottom: var(--s-3); }
.footer-title { font: 700 var(--step-0)/1.4 var(--font); color: var(--white); margin: 0 0 var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.site-footer li { margin: 0; }
.disclaimer { border-top: 1px solid rgb(255 255 255 / .1); margin: var(--s-6) 0 0; padding-top: var(--s-5); font-size: .8125rem; line-height: 1.6; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); font-size: .8125rem; }
.footer-legal p { margin: 0; color: var(--white); }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: start; } }

/* ---------- Floating WhatsApp (mobile) ---------- */
.wa-float { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: .5em; min-height: 56px; padding: 0 1.15em 0 1em; border-radius: 50px; background: var(--wa); color: var(--text); font-weight: 700; text-decoration: none; box-shadow: 0 12px 28px -8px rgb(37 211 102 / .8); }
.wa-float svg { width: 1.6em; height: 1.6em; }
.wa-float:hover { background: var(--wa-hover); color: var(--text); }
@media (min-width: 960px) { .wa-float { display: none; } .site-footer { padding-bottom: var(--s-6); } }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--s-8); background: var(--bg); }
.error-code { font: 800 clamp(4rem, 2rem + 10vw, 9rem)/1 var(--font); letter-spacing: -.05em; color: var(--blue); margin: 0 0 var(--s-4); }
.error-page .btn-row { justify-content: center; }
.plain-list { list-style: none; padding: 0; }

@media print { .site-header, .wa-float, .hero-badges { display: none !important; } body, .hero, .cta-band { background: #fff; color: #000; } }
@media (forced-colors: active) { .btn { border-color: ButtonText; } }
