/* ============================================================
   SUDAR HOSPITAL & RESEARCH INSTITUTE — Design System
   Multispeciality Surgical Centre · Thanjavur
   Brand: Medical Blue · Values: Safety · Speedy · Simplicity
   ============================================================ */

:root {
  --c-primary: #0a4d9c;
  --c-primary-dark: #082f5e;
  --c-primary-darker: #061f3f;
  --c-accent: #1c8ed6;
  --c-accent-soft: #eaf3fb;
  --c-accent-soft2: #d8e9f8;
  --c-teal: #12a89c;
  --c-gold: #d99a2b;
  --c-ink: #112536;
  --c-body: #4a5b6b;
  --c-muted: #7587963b;
  --c-line: #e6eef6;
  --c-bg: #ffffff;
  --c-bg-soft: #f3f8fd;
  --c-bg-soft2: #eaf2fa;
  --shadow-sm: 0 4px 18px rgba(10, 77, 156, .07);
  --shadow-md: 0 14px 40px rgba(10, 77, 156, .10);
  --shadow-lg: 0 26px 60px rgba(8, 47, 94, .16);
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --ff-head: "Plus Jakarta Sans", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* the header is sticky — keep in-page anchors from landing underneath it */
  scroll-padding-top: 110px;
  /* stop iOS inflating text after a rotate */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--c-body);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grid and flex children default to min-width:auto, so a long word or a wide
   image refuses to shrink and punches out of the track. Every overflow on this
   site traced back to that; opt the whole layout out of it. */
.sd-container > *,
[class*="sd-grid-"] > *,
.sd-stats__grid > *, .sd-footer__grid > *, .sd-why__grid > *, .sd-accred > *,
.sd-insurance > *, .sd-certs > *, .sd-gallery > *, .sd-awards > *,
.sd-hero__grid > *, .sd-about__grid > *,
.sd-profile > *, .sd-graph > *, .sd-faq-grid > *, .sd-list-cols > * { min-width: 0; }

/* Addresses, emails and Tamil compounds are long unbreakable runs — let them
   wrap rather than force their container wider than the screen. */
.sd-footer__contact, .sd-info-card, .sd-drawer__contact,
.sd-timing__row, .sd-quote, .sd-faq__a { overflow-wrap: anywhere; }
[lang="ta"] { overflow-wrap: break-word; word-break: normal; line-break: normal; }
/* Tamil glyphs carry more detail per em — nudge them up so they stay legible
   at the sizes the Latin copy uses */
p[lang="ta"], span[lang="ta"], .sd-faq__q-ta { font-size: 1.02em; line-height: 1.85; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  color: var(--c-ink);
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

a { color: var(--c-primary); text-decoration: none; transition: color .25s, background .25s, box-shadow .25s, transform .25s; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1rem; }
ul { margin: 0; }

.sd-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sd-section { padding: 92px 0; position: relative; }
.sd-section--soft { background: var(--c-bg-soft); }
/* dark brand band — same gradient as the hero, with light heading variants */
.sd-section--dark { background: linear-gradient(120deg, #06203f 0%, #0a4d9c 60%, #1467b8 100%); color: #fff; overflow: hidden; }
.sd-section--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 12%, rgba(28,142,214,.38), transparent 45%), radial-gradient(circle at 8% 95%, rgba(18,168,156,.22), transparent 40%); }
.sd-section--dark > .sd-container { position: relative; }
.sd-section--dark .sd-eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.sd-section--dark .sd-eyebrow i { color: #7fc4ff; }
.sd-section--dark .sd-title { color: #fff; }
.sd-section--dark .sd-title .hl { color: #7fc4ff; }
.sd-section--dark .sd-lead { color: #cfe0f3; }
/* key phrase inside lead copy — brand colour, no background */
.sd-mark { font-weight: 700; color: var(--c-primary); }
.sd-section--tight { padding: 70px 0; }
.sd-narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Section headings ---------- */
.sd-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-accent-soft);
  padding: 7px 16px; border-radius: 30px; margin-bottom: 18px;
}
.sd-eyebrow i { color: var(--c-accent); }
.sd-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.sd-title .hl { color: var(--c-primary); }
.sd-lead { font-size: 17px; color: var(--c-body); max-width: 640px; }
.sd-head-center { text-align: center; }
.sd-head-center .sd-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.sd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-head); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; line-height: 1; text-align: center;
}
.sd-btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 10px 24px rgba(10,77,156,.28); }
.sd-btn--primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(10,77,156,.34); }
.sd-btn--wa { background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.32); }
.sd-btn--wa:hover { background: #1eb858; color: #fff; transform: translateY(-2px); }
.sd-btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-accent-soft2); }
.sd-btn--ghost:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.sd-btn--light { background: #fff; color: var(--c-primary); }
.sd-btn--light:hover { background: var(--c-accent-soft); color: var(--c-primary-dark); transform: translateY(-2px); }
.sd-btn--lg { padding: 17px 34px; font-size: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.sd-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 18px rgba(8,47,94,.07); transition: box-shadow .3s; }
.sd-header.is-stuck { box-shadow: 0 6px 26px rgba(8,47,94,.13); }
.sd-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0; }

.sd-brand { display: inline-flex; align-items: center; gap: 13px; }
.sd-brand__mark { width: 88px; height: 88px; flex: 0 0 auto; object-fit: contain; }
.sd-brand__tx { display: flex; flex-direction: column; line-height: 1.12; }
.sd-brand__tx b { font-family: var(--ff-head); font-size: 28px; font-weight: 800; color: var(--c-primary-dark); letter-spacing: -.015em; white-space: nowrap; }
.sd-brand__tx span { font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--c-accent); white-space: nowrap; }

.sd-nav { display: flex; align-items: center; gap: 1px; }
.sd-nav a {
  font-family: var(--ff-head); font-weight: 600; font-size: 14.5px; color: var(--c-ink);
  padding: 9px 11px; border-radius: 10px; position: relative; white-space: nowrap;
}
.sd-nav a:hover, .sd-nav a.active { color: var(--c-primary); background: var(--c-accent-soft); }

.sd-header__cta { display: flex; align-items: center; gap: 12px; }
/* larger brand (client req. #1) leaves less room for the nav — keep the CTA on one line */
.sd-header__cta .sd-btn { white-space: nowrap; flex: 0 0 auto; padding: 13px 22px; }
@media (min-width: 1191px) and (max-width: 1460px) {
  .sd-header__in { gap: 12px; }
  .sd-nav a { padding: 9px 8px; font-size: 14px; }
  .sd-header__cta .sd-btn { padding: 12px 18px; font-size: 14px; }
}
.sd-burger { display: none; width: 46px; height: 46px; border: none; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-primary); font-size: 20px; cursor: pointer; }

/* mobile drawer — wrapped in a fixed, viewport-sized clip layer so the
   off-canvas panel never extends the page width (prevents horizontal scroll) */
.sd-offcanvas { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1100; }
.sd-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 86vw); background: #fff; z-index: 2; transform: translateX(100%); transition: transform .35s ease; box-shadow: -20px 0 60px rgba(8,47,94,.2); display: flex; flex-direction: column; padding: 22px; overflow-y: auto; pointer-events: auto; }
.sd-drawer.is-open { transform: translateX(0); }
.sd-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sd-drawer__close { width: 42px; height: 42px; border: none; background: var(--c-bg-soft); border-radius: 10px; font-size: 18px; color: var(--c-ink); cursor: pointer; }
.sd-drawer nav { display: flex; flex-direction: column; }
.sd-drawer nav a { font-family: var(--ff-head); font-weight: 600; color: var(--c-ink); padding: 13px 8px; border-bottom: 1px solid var(--c-line); }
.sd-drawer nav a:hover, .sd-drawer nav a.active { color: var(--c-primary); }
.sd-drawer__cta { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.sd-drawer__contact { margin-top: 22px; font-size: 14px; display: flex; flex-direction: column; gap: 12px; }
.sd-drawer__contact a { display: flex; gap: 12px; align-items: flex-start; color: var(--c-body); }
.sd-drawer__contact i { color: var(--c-accent); margin-top: 3px; }
.sd-overlay { position: absolute; inset: 0; background: rgba(6,31,63,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 1; pointer-events: auto; }
.sd-overlay.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   HERO (home)
   ============================================================ */
.sd-hero { position: relative; background: linear-gradient(120deg, #06203f 0%, #0a4d9c 55%, #1467b8 100%); color: #fff; overflow: hidden; }
.sd-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(28,142,214,.4), transparent 45%), radial-gradient(circle at 12% 90%, rgba(18,168,156,.25), transparent 40%); }
/* Hospital logo watermark behind the hero copy (client req.). Anchored inside
   .sd-hero__content so it stays centred on the text block at every width;
   z-index:-1 keeps it behind the words. */
.sd-hero__content { position: relative; }
.sd-hero__mark {
  position: absolute; inset: 0; margin: auto; z-index: -1; pointer-events: none;
  width: 430px; height: 430px;
  /* pre-rendered white silhouette at 1536px — the 362px colour logo went soft when
     the browser scaled it up to this size */
  background: url("../img/sudar/logo/sudar-mark-white.webp") no-repeat center / contain;
  opacity: .22;
}
.sd-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 70px 0 84px; }
.sd-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin: 22px 0 18px; }
.sd-hero h1 .hl { color: #7fc4ff; }
.sd-hero__sub { color: #d4e4f5; font-size: 18px; max-width: 560px; margin-bottom: 26px; }
.sd-hero__trust { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 12px 22px; }
.sd-hero__trust li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; color: #eaf3fb; }
.sd-hero__trust i { color: #6cdbb0; font-size: 16px; }
.sd-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sd-hero__call { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.sd-hero__call .ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 17px; }
.sd-hero__call small { display: block; font-size: 12.5px; color: #b9d2ea; }
.sd-hero__call strong { font-family: var(--ff-head); font-size: 18px; }

.sd-hero__visual { position: relative; }
.sd-hero__photo { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.4); border: 5px solid rgba(255,255,255,.12); object-fit: cover; aspect-ratio: 4/3.4; }
.sd-hero__badge { position: absolute; bottom: -22px; left: -22px; background: #fff; color: var(--c-ink); border-radius: 18px; padding: 16px 22px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; }
.sd-hero__badge .n { font-family: var(--ff-head); font-size: 34px; font-weight: 800; color: var(--c-primary); line-height: 1; }
.sd-hero__badge .t { font-size: 13px; font-weight: 600; color: var(--c-body); }
.sd-hero__badge2 { position: absolute; top: -18px; right: -10px; background: var(--c-gold); color: #3a2a05; border-radius: 14px; padding: 10px 16px; font-family: var(--ff-head); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-md); display: inline-flex; gap: 8px; align-items: center; }
.sd-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.sd-hero__wave svg { width: 100%; height: 60px; display: block; }

/* ---------- Stat strip ---------- */
.sd-stats { background: #fff; margin-top: -1px; }
.sd-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 46px 0; }
.sd-stat { text-align: center; padding: 10px; position: relative; }
.sd-stat:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 14%; height: 72%; width: 1px; background: var(--c-line); }
/* the figure has to survive a 2-up grid on a 320px phone — scale it to the track */
.sd-stat .n { font-family: var(--ff-head); font-size: clamp(26px, 8vw, 40px); font-weight: 800; color: var(--c-primary); line-height: 1; white-space: nowrap; }
.sd-stat .n .plus { color: var(--c-accent); }
.sd-stat .l { font-weight: 600; color: var(--c-ink); margin-top: 8px; font-size: 15px; }
.sd-stat .ic { color: var(--c-accent); font-size: 22px; margin-bottom: 10px; }

/* ============================================================
   ABOUT
   ============================================================ */
.sd-about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.sd-about__media { position: relative; }
.sd-about__media img.main { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; aspect-ratio: 4/4.4; }
.sd-about__media .accent-img { position: absolute; bottom: -28px; right: -22px; width: 46%; border-radius: 16px; border: 6px solid #fff; box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 4/3; }
.sd-about__media .estab { position: absolute; top: 22px; left: -22px; background: var(--c-primary); color: #fff; border-radius: 16px; padding: 14px 20px; box-shadow: var(--shadow-md); text-align: center; }
.sd-about__media .estab b { font-family: var(--ff-head); font-size: 26px; display: block; line-height: 1; }
.sd-about__media .estab span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.sd-feat-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 14px; }
.sd-feat-list li { display: flex; gap: 13px; align-items: flex-start; }
.sd-feat-list i { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-primary); display: grid; place-items: center; font-size: 12px; margin-top: 3px; }
.sd-feat-list b { color: var(--c-ink); }

/* values pills */
.sd-values { display: flex; flex-wrap: wrap; gap: 14px; }
.sd-value { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--c-line); border-radius: 50px; padding: 10px 20px; font-family: var(--ff-head); font-weight: 700; color: var(--c-primary-dark); box-shadow: var(--shadow-sm); }
.sd-value i { color: var(--c-teal); }

/* ============================================================
   DIVISIONS / FEATURE CARDS
   ============================================================ */
.sd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sd-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.sd-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sd-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }

/* multi-column checklists (day-care / surgical procedure lists) — reflows on its
   own instead of being pinned to three tracks by an inline style */
.sd-list-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 30px; }

.sd-division {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.sd-division:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--c-accent-soft2); }
.sd-division__img { height: 210px; overflow: hidden; position: relative; }
.sd-division__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sd-division:hover .sd-division__img img { transform: scale(1.07); }
.sd-division__tag { position: absolute; top: 14px; left: 14px; background: rgba(10,77,156,.92); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 30px; font-family: var(--ff-head); }
.sd-division__body { padding: 26px 24px 28px; flex: 1 1 auto; display: flex; flex-direction: column; }
.sd-division__ic { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--c-accent), var(--c-primary)); color: #fff; display: grid; place-items: center; font-size: 22px; margin: -52px 0 16px; box-shadow: var(--shadow-md); position: relative; z-index: 2; border: 3px solid #fff; }
.sd-division h3 { font-size: 21px; margin-bottom: 10px; }
.sd-division p { font-size: 15px; margin-bottom: 18px; }
.sd-division__link { margin-top: auto; font-family: var(--ff-head); font-weight: 600; font-size: 14.5px; color: var(--c-primary); display: inline-flex; align-items: center; gap: 8px; }
.sd-division__link i { transition: transform .3s; }
/* secondary "use my own mail app" link — the primary opens Gmail web compose, which is
   the only route that reliably lands on a compose window with the address prefilled */
.sd-mail-alt { margin-top: 8px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--c-body); opacity: .85; }
.sd-mail-alt:hover { color: var(--c-primary); opacity: 1; }
.sd-mail-alt i { font-size: 12px; }
.sd-division:hover .sd-division__link i { transform: translateX(5px); }

/* compact service card */
.sd-service {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.sd-service::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--c-accent), var(--c-primary)); transition: width .35s; }
.sd-service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.sd-service:hover::after { width: 100%; }
.sd-service__ic { width: 56px; height: 56px; border-radius: 16px; background: var(--c-accent-soft); color: var(--c-primary); display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; transition: .3s; }
.sd-service:hover .sd-service__ic { background: var(--c-primary); color: #fff; }
.sd-service h3 { font-size: 19px; margin-bottom: 9px; }
.sd-service p { font-size: 14.5px; margin: 0; }

/* ============================================================
   WHY US / FEATURE STRIP
   ============================================================ */
.sd-why { background: linear-gradient(120deg, #082f5e, #0a4d9c); color: #fff; position: relative; overflow: hidden; }
.sd-why::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(28,142,214,.35), transparent 40%); }
.sd-why .sd-title, .sd-why h3 { color: #fff; }
.sd-why .sd-eyebrow { background: rgba(255,255,255,.12); color: #cfe6fb; }
.sd-why__grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 14px; }
.sd-why__item { display: flex; gap: 16px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px; transition: background .3s; }
.sd-why__item:hover { background: rgba(255,255,255,.11); }
.sd-why__item .ic { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.12); color: #8fd0ff; display: grid; place-items: center; font-size: 21px; }
.sd-why__item h4 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.sd-why__item p { color: #c8dcf0; font-size: 14.5px; margin: 0; }

/* ============================================================
   DOCTORS / TEAM
   ============================================================ */
/* circular doctor card (photos cropped from team row) */
.sd-docc { text-align: center; padding: 8px; }
/* never wider than its grid track — a fixed 178px was blowing out the 2-up phone grid */
.sd-docc__img { width: min(178px, 100%); aspect-ratio: 1; height: auto; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 2px dashed var(--c-accent); padding: 7px; box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: transform .3s, box-shadow .3s; }
.sd-docc:hover .sd-docc__img { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.sd-docc__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sd-docc h3 { font-size: 19px; margin-bottom: 5px; }
.sd-docc__role, .sd-doc__role { color: var(--c-primary); font-weight: 600; font-size: 14px; font-family: var(--ff-head); }
.sd-docc__qual { font-size: 13px; color: var(--c-body); margin: 6px 0 0; }

/* community / join CTA button (teal) */
.sd-btn--community { background: linear-gradient(120deg, #1c8ed6, #0a4d9c); color: #fff; box-shadow: 0 10px 24px rgba(28,142,214,.3); }
.sd-btn--community:hover { background: linear-gradient(120deg, #2a9ee6, #0c59b0); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(28,142,214,.42); }
.sd-footer__community { margin-top: 22px; }
.sd-footer__community .sd-btn { width: 100%; }

/* doctor profile (about page) */
.sd-profile { display: grid; grid-template-columns: .85fr 1.15fr; gap: 46px; align-items: start; }
.sd-profile__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.sd-profile__media .card, .sd-profile__card-wide { margin-top: 18px; background: var(--c-primary); color: #fff; border-radius: var(--radius); padding: 22px; }
.sd-profile__media .card h4, .sd-profile__card-wide h4 { color: #fff; font-size: 16px; }
.sd-profile__media .card ul, .sd-profile__card-wide ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.sd-profile__media .card li, .sd-profile__card-wide li { display: flex; gap: 10px; padding: 6px 0; color: #d6e6f6; }
.sd-profile__media .card i, .sd-profile__card-wide i { color: #8fd0ff; margin-top: 4px; }
.sd-profile__card-wide { padding: 26px 28px; }
.sd-chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.sd-profile__card-wide { margin-top: 32px; }
.sd-profile__card-wide ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 36px; }
.sd-chip { background: var(--c-accent-soft); color: var(--c-primary-dark); border-radius: 40px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; }

/* ============================================================
   GALLERY
   ============================================================ */
.sd-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sd-gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); display: block; }
.sd-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sd-gallery__item:hover img { transform: scale(1.08); }
.sd-gallery__item::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 26px; background: linear-gradient(180deg, rgba(8,47,94,0), rgba(8,47,94,.65)); opacity: 0; transition: opacity .35s; }
.sd-gallery__item:hover::after { opacity: 1; }
.sd-gallery__cap { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.5); opacity: 0; transform: translateY(8px); transition: .35s; }
.sd-gallery__item:hover .sd-gallery__cap { opacity: 1; transform: translateY(0); }

/* ============================================================
   ACCREDITATION
   ============================================================ */
.sd-accred { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sd-accred__card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.sd-accred__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.sd-accred__badge { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--c-gold), #b5791a); color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 12px 26px rgba(217,154,43,.34); }
.sd-accred__card h3 { font-size: 18px; margin-bottom: 8px; }
.sd-accred__card p { font-size: 14px; margin: 0; }
.sd-accred__year { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--c-primary); background: var(--c-accent-soft); padding: 4px 12px; border-radius: 20px; }
.sd-certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.sd-cert { display: block; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.sd-cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-accent-soft2); }
.sd-cert img { width: 100%; height: clamp(190px, 38vw, 250px); object-fit: contain; background: #f6fafe; border-radius: 8px; }
.sd-cert b { display: block; text-align: center; margin-top: 12px; font-family: var(--ff-head); font-weight: 600; font-size: 14.5px; color: var(--c-ink); }
.sd-cert small { display: block; text-align: center; color: var(--c-body); font-size: 12.5px; margin-top: 2px; }
.sd-cert .zoom { display: block; text-align: center; color: var(--c-primary); font-size: 12px; font-weight: 600; margin-top: 6px; }

/* ============================================================
   PATIENT CARE
   ============================================================ */
/* Vision | emblem | Mission — the crest is the centrepiece, vertically centred between the two cards.
   The Our Values card sits beneath them. */
.sd-principles { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: stretch; }
.sd-principles__mark {
  align-self: center; width: 230px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.sd-principles__mark img {
  width: 212px; height: 212px; object-fit: contain; padding: 10px;
  /* a soft halo stops the mark reading as a cut-out floating between the cards */
  background: radial-gradient(circle at 50% 46%, var(--c-accent-soft) 0%, rgba(232,242,251,.55) 52%, rgba(255,255,255,0) 72%);
  border-radius: 50%;
}
/* Our Values: crest, statement and the three value pills, centred beneath Vision | Mission */
.sd-values-card {
  margin-top: 30px; text-align: center;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 34px 26px; box-shadow: var(--shadow-sm);
}
/* desktop already shows the crest between Vision | Mission; the card's own logo appears only once that crest is hidden (≤991px) */
.sd-values-card img { display: none; width: 110px; height: 110px; object-fit: contain; margin: 0 auto 12px; }
.sd-values-card h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; margin-bottom: 10px; }
.sd-values-card h3 i { color: var(--c-accent); }
.sd-values-card p { max-width: none; margin: 0 auto 20px; color: var(--c-body); }
.sd-values-card .sd-values { justify-content: center; gap: 14px; }
.sd-pc-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); height: 100%; }
.sd-pc-card h3 { font-size: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.sd-pc-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--c-accent), var(--c-primary)); color: #fff; display: grid; place-items: center; font-size: 19px; }
.sd-pc-lang { font-family: var(--ff-head); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primary); background: var(--c-accent-soft); display: inline-block; padding: 4px 13px; border-radius: 20px; margin: 16px 0 10px; }
.sd-pc-card .sd-feat-list { margin: 0; }
/* the Tamil paragraph used to sit under a "தமிழ்" pill; keep the same breathing room without it */
.sd-pc-card p[lang="ta"] { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.sd-pc-ta span { line-height: 1.7; }
.sd-pc-promo { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; background: linear-gradient(120deg, var(--c-accent-soft), #fff); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.sd-pc-promo__ic { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--c-accent), var(--c-primary)); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: var(--shadow-md); }
.sd-pc-promo__body { flex: 1 1 320px; }
.sd-pc-promo__body h3 { font-size: 22px; margin-bottom: 8px; }
.sd-pc-promo__body p { margin: 0; font-size: 15px; }
.sd-pc-promo .sd-btn { flex: 0 0 auto; }

/* ============================================================
   INSURANCE PARTNERS
   ============================================================ */
.sd-insurance { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.sd-ins-card { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 22px 14px 16px; box-shadow: var(--shadow-sm); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; transition: transform .3s, box-shadow .3s; }
.sd-ins-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-accent-soft2); }
.sd-ins-card__logo { height: 52px; display: grid; place-items: center; }
.sd-ins-card__logo img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; }
.sd-ins-card span { font-size: 12.5px; color: var(--c-body); font-weight: 500; line-height: 1.35; margin-top: auto; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.sd-quote { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; position: relative; }
.sd-quote::before { content: "\201C"; font-family: Georgia, serif; position: absolute; top: 6px; right: 24px; font-size: 90px; line-height: 1; color: var(--c-accent-soft2); }
.sd-quote__stars { color: var(--c-gold); margin-bottom: 14px; font-size: 14px; }
.sd-quote p { font-size: 15.5px; color: var(--c-ink); font-style: italic; flex: 1 1 auto; }
.sd-quote__by { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.sd-quote__by b { display: block; color: var(--c-ink); font-family: var(--ff-head); font-size: 15px; }
.sd-quote__by span { font-size: 13px; color: var(--c-body); }

/* ============================================================
   FAQ
   ============================================================ */
.sd-faq { max-width: 860px; margin: 0 auto; }
.sd-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.sd-faq-grid .sd-faq { max-width: none; margin: 0; }
.sd-faq__item { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.sd-faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 56px 20px 22px; font-family: var(--ff-head); font-weight: 600; font-size: 16.5px; color: var(--c-ink); position: relative; }
.sd-faq__q::after { content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-primary); display: grid; place-items: center; font-size: 12px; transition: .3s; }
.sd-faq__item.is-open .sd-faq__q { color: var(--c-primary); }
.sd-faq__item.is-open .sd-faq__q::after { content: "\f068"; background: var(--c-primary); color: #fff; }
.sd-faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.sd-faq__a p { padding: 0 22px; margin: 0; font-size: 15px; }
.sd-faq__a p:last-child { padding-bottom: 22px; }
.sd-faq__a p[lang="ta"] { line-height: 1.85; }
.sd-faq__a .sd-pc-lang { margin: 14px 22px 9px; }

/* ============================================================
   CONTACT
   ============================================================ */
.sd-info-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; box-shadow: var(--shadow-sm); margin-bottom: 16px; transition: transform .3s, box-shadow .3s; }
.sd-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sd-info-card .ic { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px; background: var(--c-accent-soft); color: var(--c-primary); display: grid; place-items: center; font-size: 20px; }
.sd-info-card h4 { font-size: 16px; margin-bottom: 4px; }
.sd-info-card p, .sd-info-card a { font-size: 14.5px; margin: 0; color: var(--c-body); display: block; }
.sd-info-card a:hover { color: var(--c-primary); }
.sd-form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.sd-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sd-field { margin-bottom: 16px; }
.sd-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-ink); margin-bottom: 7px; font-family: var(--ff-head); }
/* 16px is the floor — anything smaller makes iOS Safari zoom the page on focus */
.sd-field input, .sd-field select, .sd-field textarea { width: 100%; max-width: 100%; padding: 13px 16px; border: 1px solid var(--c-line); border-radius: 12px; font-family: var(--ff-body); font-size: 16px; color: var(--c-ink); background: var(--c-bg-soft); transition: border-color .25s, box-shadow .25s; }
.sd-field input:focus, .sd-field select:focus, .sd-field textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(28,142,214,.15); background: #fff; }
.sd-field textarea { resize: vertical; min-height: 120px; }

/* Contact page — dark call panel beside a tall map, then a row of desk tiles */
.sd-reach { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.sd-reach > * { min-width: 0; }
.sd-reach__call {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, var(--c-primary) 0%, var(--c-primary-dark) 62%, var(--c-primary-darker) 100%);
  border-radius: var(--radius-lg); padding: 38px 36px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
/* soft glow in the corner so the panel doesn't read as a flat slab */
.sd-reach__call::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(28,142,214,.45) 0%, rgba(28,142,214,0) 70%); pointer-events: none;
}
.sd-reach__call > * { position: relative; }
.sd-reach__kicker {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #bfe0f7; background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 30px;
}
.sd-reach__call h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 16px 0 8px; }
.sd-reach__lead { color: rgba(255,255,255,.78); margin: 0 0 26px; }
.sd-reach__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.sd-reach__group {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 18px;
}
.sd-reach__label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9fd0f3;
}
.sd-reach__group a {
  display: block; font-family: var(--ff-head); font-weight: 700; font-size: 18px; color: #fff;
  padding: 3px 0; white-space: nowrap; transition: color .2s;
}
.sd-reach__group a:hover { color: #9fd0f3; }
.sd-reach__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.sd-reach__hours {
  margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.sd-reach__hours > i {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #9fd0f3; font-size: 17px;
}
.sd-reach__hours b { display: block; font-family: var(--ff-head); font-size: 15px; }
.sd-reach__hours span { font-size: 14px; color: rgba(255,255,255,.78); }

.sd-reach__visit {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.sd-reach__map { flex: 1 1 auto; min-height: 300px; }
.sd-reach__map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }
.sd-reach__addr { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-top: 1px solid var(--c-line); }
.sd-reach__addr .ic {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c-accent-soft); color: var(--c-primary); font-size: 20px;
}
.sd-reach__addr-text { flex: 1 1 auto; min-width: 0; }
.sd-reach__addr h4 { font-size: 16px; margin-bottom: 4px; }
.sd-reach__addr p { font-size: 14.5px; margin: 0; }
.sd-reach__addr small { display: block; margin-top: 2px; font-size: 13px; color: var(--c-accent); font-weight: 600; }
.sd-reach__addr .sd-btn { flex: 0 0 auto; }

.sd-desks { margin-top: 56px; }
.sd-desks__head { text-align: center; margin-bottom: 26px; }
.sd-desks__head h3 { font-size: clamp(20px, 2.4vw, 24px); margin-bottom: 6px; }
.sd-desks__head p { margin: 0; }
.sd-desks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sd-desks__grid > * { min-width: 0; }
.sd-desk {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; color: var(--c-body);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.sd-desk:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-accent-soft2); color: var(--c-body); }
.sd-desk__ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--c-accent-soft); color: var(--c-primary); font-size: 19px; transition: background .3s, color .3s;
}
.sd-desk:hover .sd-desk__ic { background: var(--c-primary); color: #fff; }
.sd-desk h4 { font-size: 16px; margin: 0; }
.sd-desk__val { font-size: 14px; overflow-wrap: anywhere; }
.sd-desk__go {
  margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--c-primary);
}
.sd-desk__go i { transition: transform .25s; }
.sd-desk:hover .sd-desk__go i { transform: translateX(4px); }
@media (max-width: 1100px) {
  .sd-desks__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .sd-reach { grid-template-columns: 1fr; }
  .sd-reach__map, .sd-reach__map iframe { min-height: 320px; }
}
@media (max-width: 640px) {
  .sd-reach__call { padding: 30px 22px; }
  .sd-reach__nums { grid-template-columns: 1fr; }
  .sd-reach__actions .sd-btn { flex: 1 1 100%; justify-content: center; }
  .sd-reach__addr { flex-wrap: wrap; padding: 20px; }
  .sd-reach__addr .sd-btn { flex: 1 1 100%; justify-content: center; }
  .sd-reach__map, .sd-reach__map iframe { min-height: 260px; }
  .sd-desks { margin-top: 44px; }
  .sd-desks__grid { grid-template-columns: 1fr; gap: 14px; }
  .sd-desk { padding: 20px 18px; }
}
@media (hover: none) {
  .sd-desk:hover { transform: none; }
}

/* timings table */
.sd-timing { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.sd-timing__head { background: var(--c-primary); color: #fff; padding: 16px 22px; font-family: var(--ff-head); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sd-timing__row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--c-line); font-size: 14.5px; }
.sd-timing__row:last-child { border-bottom: none; }
.sd-timing__row span:first-child { color: var(--c-ink); font-weight: 600; }
.sd-timing__row span:last-child { color: var(--c-body); }

/* ============================================================
   PAGE HERO (inner pages) + breadcrumb
   ============================================================ */
.sd-pagehero { background: linear-gradient(120deg, #06203f, #0a4d9c 70%); color: #fff; position: relative; overflow: hidden; padding: 64px 0 70px; text-align: center; }
.sd-pagehero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(28,142,214,.4), transparent 45%); }
.sd-pagehero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 46px); position: relative; }
.sd-crumb { position: relative; display: inline-flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 14.5px; color: #cfe2f5; }
.sd-crumb a { color: #fff; }
.sd-crumb i { font-size: 9px; color: #8fd0ff; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.sd-cta { background: linear-gradient(120deg, #0a4d9c, #1c8ed6); border-radius: var(--radius-lg); padding: 50px; color: #fff; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.sd-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 35%); }
.sd-cta h2 { color: #fff; font-size: clamp(26px, 3.5vw, 38px); position: relative; }
.sd-cta p { color: #e2eefb; max-width: 600px; margin: 0 auto 26px; position: relative; }

/* --- Video tour --- */
.sd-video {
  position: relative; max-width: 960px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden; background: #041a33;
  box-shadow: 0 30px 70px rgba(2,20,45,.55), 0 0 0 1px rgba(255,255,255,.08);
}
/* width/height attrs + aspect-ratio reserve the box before the poster arrives — no layout shift */
.sd-video__media { display: block; width: 100%; height: auto; aspect-ratio: 832 / 354; }
/* soft scrim so the play button and caption read over any poster */
.sd-video::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .3s; background: linear-gradient(180deg, rgba(4,26,51,.04) 45%, rgba(4,26,51,.58)); }
.sd-video__play {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.96); color: var(--c-primary); display: grid; place-items: center;
  box-shadow: 0 18px 40px rgba(2,20,45,.45), 0 0 0 14px rgba(255,255,255,.14);
  transition: transform .25s, box-shadow .25s, opacity .3s;
}
.sd-video__play svg { width: 38px; height: 38px; fill: currentColor; margin-left: 4px; } /* optical centre */
.sd-video__play:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 22px 48px rgba(2,20,45,.5), 0 0 0 20px rgba(255,255,255,.18); }
.sd-video__play:focus-visible { outline: 3px solid #7fc4ff; outline-offset: 4px; }
.sd-video__cap {
  position: absolute; z-index: 2; left: 20px; bottom: 16px; margin: 0;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #e2eefb; transition: opacity .3s;
}
.sd-video__cap i { color: #7fc4ff; }
/* once playing, hand the frame over to the native controls */
.sd-video.is-playing::after, .sd-video.is-playing .sd-video__play, .sd-video.is-playing .sd-video__cap { opacity: 0; pointer-events: none; }
.sd-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.sd-footer { background: var(--c-primary-darker); color: #aac3de; padding: 70px 0 0; }
.sd-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 38px; padding-bottom: 46px; }
.sd-footer h4 { color: #fff; font-size: 17px; margin-bottom: 20px; }
.sd-footer .sd-brand__mark { background: #fff; border-radius: 14px; padding: 7px; width: 90px; height: 90px; }
.sd-footer .sd-brand__tx b { color: #fff; }
.sd-footer .sd-brand__tx span { color: #8fd0ff; }
.sd-footer__about p { font-size: 14.5px; margin: 18px 0; color: #9fb8d2; }
.sd-footer__links { list-style: none; padding: 0; display: grid; gap: 11px; }
.sd-footer__links a { color: #aac3de; font-size: 14.5px; display: inline-flex; align-items: center; gap: 9px; }
.sd-footer__links a i { font-size: 10px; color: var(--c-accent); }
.sd-footer__links a:hover { color: #fff; padding-left: 4px; }
.sd-footer__contact { list-style: none; padding: 0; display: grid; gap: 15px; }
.sd-footer__contact li { display: flex; gap: 12px; font-size: 14.5px; color: #aac3de; align-items: flex-start; }
.sd-footer__contact i { color: var(--c-accent); margin-top: 4px; }
.sd-footer__contact a { color: #aac3de; }
.sd-footer__contact a:hover { color: #fff; }
.sd-footer__social { display: flex; gap: 10px; margin-top: 20px; }
.sd-footer__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: #cfe2f5; display: grid; place-items: center; font-size: 15px; }
.sd-footer__social a:hover { background: var(--c-accent); color: #fff; transform: translateY(-3px); }
.sd-footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: #8aa5c2; }
.sd-footer__bar a { color: #cfe2f5; }
/* keep the floating WhatsApp button from sitting on top of the bottom bar text */
@media (min-width: 641px) { .sd-footer__bar { padding-bottom: 84px; } }

/* ============================================================
   FLOATING WHATSAPP + scroll top
   ============================================================ */
/* Both floats share one right edge and one safe-area-aware baseline, so they
   stack cleanly instead of drifting apart on notched phones. */
:root { --sd-float-right: 22px; --sd-float-bottom: 24px; }
.sd-wa {
  position: fixed; z-index: 900;
  right: calc(var(--sd-float-right) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--sd-float-bottom) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff;
  padding: 12px 20px 12px 16px; border-radius: 50px; box-shadow: 0 14px 30px rgba(37,211,102,.4);
  font-family: var(--ff-head); font-weight: 600; font-size: 15px;
  max-width: calc(100vw - 32px);
}
.sd-wa i { font-size: 22px; }
.sd-wa:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 36px rgba(37,211,102,.5); }
.sd-wa__pulse { position: absolute; left: 8px; width: 38px; height: 38px; border-radius: 50%; background: #25d366; opacity: .55; animation: sdpulse 1.8s infinite; z-index: -1; }
@keyframes sdpulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.2); opacity: 0; } }
.sd-top {
  position: fixed; z-index: 899;
  right: calc(var(--sd-float-right) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--sd-float-bottom) + 62px + env(safe-area-inset-bottom, 0px));
  width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: #fff;
  border: none; display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transition: .3s; box-shadow: var(--shadow-md);
}
.sd-top.is-show { opacity: 1; visibility: visible; }
.sd-top:hover { background: var(--c-primary-dark); }

/* ============================================================
   AUG-2026 CLIENT REVISION — new components
   ============================================================ */

/* --- NABH mark inside the hero accreditation badge --- */
.sd-hero__badge2 { display: inline-flex; align-items: center; gap: 9px; }
.sd-hero__badge2 img { width: 40px; height: auto; flex: 0 0 auto; background: #fff; border-radius: 5px; padding: 2px; }

/* --- Tamil label beside a card heading --- */
.sd-ta-label { font-size: 17px; font-weight: 700; color: var(--c-accent); font-family: var(--ff-body); }

/* --- Top surgeries graph --- */
.sd-graph { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.sd-graph__fig { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md); }
.sd-graph__fig img { width: 100%; border-radius: 10px; }
.sd-graph__fig figcaption { margin-top: 12px; font-size: 13px; color: var(--c-body); text-align: center; }
.sd-graph__list { display: grid; gap: 10px; margin-top: 22px; }
.sd-graph__row { display: flex; align-items: center; gap: 14px; }
.sd-graph__row .nm { flex: 0 0 auto; width: 46%; font-size: 14px; font-weight: 600; color: var(--c-ink); font-family: var(--ff-head); }
.sd-graph__row .bar { flex: 1; height: 12px; border-radius: 20px; background: var(--c-accent-soft); overflow: hidden; }
.sd-graph__row .bar i { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--c-accent), var(--c-primary)); }

/* --- Awards / recognition list --- */
.sd-awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sd-award {
  background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent);
  border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.sd-award:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sd-award i { color: #f7b731; font-size: 19px; margin-top: 2px; flex: 0 0 auto; }
.sd-award span { font-size: 14.5px; color: var(--c-ink); font-weight: 600; font-family: var(--ff-head); line-height: 1.45; }
.sd-award small { display: block; font-weight: 500; color: var(--c-body); font-family: var(--ff-body); font-size: 13px; margin-top: 3px; }

/* --- Insurance grid: denser now that 18 partners are listed --- */
.sd-insurance { grid-template-columns: repeat(6, 1fr); }

/* --- Certificates: four across --- */
.sd-certs { grid-template-columns: repeat(4, 1fr); }

/* --- Job openings list (careers) --- */
.sd-job {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.sd-job:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sd-job__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--c-accent-soft); color: var(--c-primary); display: grid; place-items: center; font-size: 21px; margin-bottom: 15px; }
.sd-job h3 { font-size: 17.5px; margin-bottom: 7px; }
.sd-job p { font-size: 14.5px; color: var(--c-body); margin: 0; }

/* --- Bio panel (doctor long-form) --- */
.sd-bio { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); margin-top: 26px; }
.sd-bio h4 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 16px; color: var(--c-primary-dark); }
.sd-bio h4 i { color: var(--c-accent); }
.sd-bio ul { list-style: none; display: grid; gap: 11px; }
.sd-bio li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.8px; color: var(--c-body); line-height: 1.6; }
.sd-bio li i { color: var(--c-teal); margin-top: 4px; flex: 0 0 auto; }


/* ---------- FAQ: two-column, bilingual ---------- */
.sd-faq__coltitle {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--c-line); color: var(--c-primary-dark);
}
.sd-faq__coltitle i { color: var(--c-accent); font-size: 16px; }
.sd-faq__q { display: block; line-height: 1.4; }
.sd-faq__q-ta {
  display: block; margin-top: 5px; font-size: 13.5px; font-weight: 500;
  color: var(--c-body); font-family: var(--ff-body); line-height: 1.5;
}
.sd-faq__item.is-open .sd-faq__q-ta { color: var(--c-accent); }

/* Large circular portrait on the About page profile cards. Needs to outrank
   `.sd-profile__media img`, which sets a full-width rounded-rectangle. */
img.sd-docp__img {
  width: min(190px, 62vw); aspect-ratio: 1; height: auto;
  border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block;
  border: 2px dashed var(--c-accent); padding: 7px; background: #fff;
  box-shadow: none;
}

/* ============================================================
   RESPONSIVE — single consolidated cascade
   Ordered widest → narrowest. Every breakpoint lives here so there is
   one place to reason about what a given screen size gets.
   Ladder: 1190 (nav→drawer) · 1100 · 1000 · 991 (tablet) · 900
           · 768 · 640 (phone) · 560 · 480 · 400 · 360
   ============================================================ */

/* ---------- ≤1190 — nav collapses into the drawer ---------- */
@media (max-width: 1190px) {
  .sd-nav, .sd-header__cta .sd-btn { display: none; }
  .sd-burger { display: grid; place-items: center; }
  .sd-brand__mark { width: 76px; height: 76px; }
  .sd-brand__tx b { font-size: 25px; }
}

/* ---------- ≤1100 ---------- */
@media (max-width: 1100px) {
  .sd-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 36px; }
  .sd-insurance { grid-template-columns: repeat(4, 1fr); }
  .sd-accred { grid-template-columns: repeat(2, 1fr); }
  /* the badge hangs 22px outside the photo, but the gutter here is only 20px */
  .sd-about__media .estab { left: -12px; }
}

/* ---------- ≤1000 ---------- */
@media (max-width: 1000px) {
  .sd-certs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ≤991 — tablet ---------- */
@media (max-width: 991px) {
  html { scroll-padding-top: 96px; }
  .sd-principles { grid-template-columns: 1fr; gap: 22px; }
  /* stacked: the crest only works as a centrepiece between the two cards; the values card carries the logo */
  .sd-principles__mark { display: none; }
  .sd-values-card { margin-top: 22px; padding: 30px 22px; }
  .sd-values-card img { display: block; width: 96px; height: 96px; }
  .sd-values-card h3 { font-size: 20px; }
  .sd-section { padding: 64px 0; }
  .sd-section--tight { padding: 52px 0; }

  .sd-hero__grid { grid-template-columns: 1fr; gap: 30px; padding: 50px 0 70px; }
  .sd-hero__mark { width: 340px; height: 340px; }
  .sd-hero__visual { max-width: min(460px, 100%); margin: 0 auto; }
  /* decorative badges hang outside the photo on desktop — tuck them back in
     once the column is centred, or they push the layout wider than the screen */
  .sd-hero__badge { left: 0; bottom: -16px; }
  .sd-hero__badge2 { right: 0; top: -14px; }

  .sd-about__grid, .sd-profile { grid-template-columns: 1fr; gap: 34px; }
  .sd-about__media { max-width: min(460px, 100%); margin: 0 auto 34px; }
  .sd-about__media .accent-img { right: 0; bottom: -22px; }
  .sd-about__media .estab { left: 0; }

  .sd-grid-3, .sd-grid-4, .sd-why__grid, .sd-accred { grid-template-columns: repeat(2, 1fr); }
  .sd-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .sd-insurance { grid-template-columns: repeat(3, 1fr); }
  .sd-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .sd-stat:nth-child(2)::after { display: none; }
  .sd-gallery { grid-template-columns: repeat(2, 1fr); }
  .sd-list-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ≤900 ---------- */
@media (max-width: 900px) {
  .sd-graph { grid-template-columns: 1fr; gap: 30px; }
  .sd-graph__row .nm { width: 52%; font-size: 13px; }
  .sd-faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .sd-faq-grid .sd-faq { max-width: 860px; margin: 0 auto; }
  .sd-faq__coltitle { max-width: 860px; margin-left: auto; margin-right: auto; }
}

/* ---------- ≤768 ---------- */
@media (max-width: 768px) {
  .sd-header__in { padding: 10px 0; }
  .sd-division__img { height: clamp(180px, 44vw, 210px); }
  .sd-cta { padding: 42px 28px; }
  .sd-form { padding: 26px 22px; }
  .sd-pagehero { padding: 52px 0 58px; }
}

/* ---------- ≤700 ---------- */
@media (max-width: 700px) {
  .sd-certs { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
}

/* ---------- ≤640 — phone ---------- */
@media (max-width: 640px) {
  html { scroll-padding-top: 86px; }
  .sd-video__play { width: 68px; height: 68px; box-shadow: 0 14px 30px rgba(2,20,45,.45), 0 0 0 10px rgba(255,255,255,.14); }
  .sd-video__play svg { width: 28px; height: 28px; }
  .sd-video__cap { left: 14px; bottom: 12px; font-size: 12px; }
  .sd-hero__mark { width: 250px; height: 250px; opacity: .18; }
  body { font-size: 15px; }
  .sd-section { padding: 52px 0; }
  .sd-section--tight { padding: 44px 0; }
  .sd-container { padding: 0 16px; }

  /* header: the brand mark is deliberately large on desktop — step it down so
     logo, name and burger all fit a phone header without overflowing */
  .sd-brand__mark { width: 64px; height: 64px; }
  .sd-brand__tx b { font-size: 21px; }
  .sd-brand__tx span { font-size: 10px; letter-spacing: .1em; }

  /* one column for anything that was still doubled up */
  .sd-grid-3, .sd-grid-2, .sd-grid-4, .sd-why__grid, .sd-accred,
  .sd-form .row2, .sd-profile__card-wide ul, .sd-list-cols { grid-template-columns: 1fr; }
  .sd-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .sd-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; padding: 36px 0; }
  .sd-stat { padding: 6px 2px; }
  .sd-stat::after { display: none !important; }
  .sd-stat .l { font-size: 13.5px; margin-top: 6px; line-height: 1.45; }
  .sd-stat .ic { font-size: 20px; margin-bottom: 8px; }

  .sd-hero__sub { font-size: 16.5px; }
  .sd-hero__trust { gap: 10px 18px; margin-bottom: 24px; }
  .sd-hero__trust li { font-size: 14px; }
  .sd-hero__cta { gap: 12px; }

  .sd-title { margin-bottom: 12px; }
  .sd-lead { font-size: 16px; }
  .sd-eyebrow { font-size: 12px; padding: 6px 14px; margin-bottom: 14px; }

  .sd-division__body { padding: 22px 20px 24px; }
  .sd-service { padding: 24px 20px; }
  .sd-why__item { padding: 18px; gap: 14px; }
  .sd-why__item .ic { width: 44px; height: 44px; font-size: 18px; }
  .sd-pc-card { padding: 24px 20px; }
  .sd-quote { padding: 26px 22px; }
  .sd-bio { padding: 24px 20px; }
  .sd-job { padding: 20px 18px; }
  .sd-info-card { padding: 18px; gap: 14px; }
  .sd-cta { padding: 36px 22px; }
  .sd-form { padding: 22px 18px; }
  .sd-pagehero { padding: 44px 0 50px; }

  .sd-faq__q { padding: 17px 50px 17px 16px; font-size: 15.5px; }
  .sd-faq__q::after { right: 14px; }
  .sd-faq__a p { padding: 0 16px; font-size: 14.5px; }
  .sd-faq__a p:last-child { padding-bottom: 18px; }
  .sd-faq__a .sd-pc-lang { margin: 12px 16px 8px; }

  /* footer stacks — this was the single biggest source of clipped content */
  .sd-footer { padding: 52px 0 0; }
  .sd-footer__grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
  .sd-footer h4 { margin-bottom: 14px; }
  .sd-footer__about p { margin: 14px 0; }
  .sd-footer__links a, .sd-footer__contact a { padding: 3px 0; }
  .sd-footer__bar { text-align: center; }
  .sd-footer__bar .sd-container { justify-content: center !important; }
  /* the WhatsApp + back-to-top floats live over this strip once the page is
     scrolled to the end — reserve the space so they never cover the copy */
  .sd-footer__bar { padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }

  .sd-timing__row { flex-direction: column; gap: 2px; padding: 12px 18px; }
  .sd-timing__head { padding: 14px 18px; }

  .sd-wa__label { display: none; }
  .sd-wa { padding: 14px; }
  .sd-wa i { font-size: 24px; }
}

/* ---------- ≤560 ---------- */
@media (max-width: 560px) {
  .sd-insurance { grid-template-columns: repeat(2, 1fr); }
  .sd-pc-promo { padding: 24px 20px; gap: 18px; }
  .sd-pc-promo .sd-btn { width: 100%; }
}

/* ---------- ≤480 ---------- */
@media (max-width: 480px) {
  .sd-section { padding: 44px 0; }
  .sd-gallery { grid-template-columns: 1fr; }
  .sd-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sd-docc { padding: 4px 0; }
  .sd-docc h3 { font-size: 17px; }
  .sd-docc__role { font-size: 13px; }
  .sd-docc__qual { font-size: 12.5px; }

  /* long procedure names need the full row, so drop the bar to its own line */
  .sd-graph__row { flex-wrap: wrap; gap: 6px 12px; }
  .sd-graph__row .nm { width: 100%; }
  .sd-graph__fig { padding: 14px; }

  .sd-hero__badge { padding: 12px 16px; gap: 10px; }
  .sd-hero__badge .n { font-size: 28px; }
  .sd-hero__call .ic { width: 42px; height: 42px; font-size: 15px; }
  .sd-cta__btns { flex-direction: column; align-items: stretch; }
  .sd-cta__btns .sd-btn { width: 100%; }
}

/* ---------- ≤400 ---------- */
@media (max-width: 400px) {
  .sd-container { padding: 0 14px; }
  .sd-brand { gap: 9px; }
  .sd-brand__mark { width: 56px; height: 56px; }
  .sd-brand__tx b { font-size: 19px; }
  .sd-brand__tx span { font-size: 10px; letter-spacing: .06em; }
  .sd-burger { width: 42px; height: 42px; }

  .sd-btn { padding: 13px 20px; font-size: 14.5px; }
  .sd-btn--lg { padding: 15px 22px; font-size: 15px; }
  .sd-hero__cta { flex-direction: column; align-items: stretch; }
  .sd-hero__cta .sd-btn { width: 100%; }
  .sd-hero__call { justify-content: center; }
  .sd-stat .l { font-size: 12.5px; }
  .sd-cta { padding: 30px 18px; }
  .sd-form { padding: 20px 16px; }
}

/* ---------- ≤360 — smallest phones still in service ---------- */
@media (max-width: 360px) {
  .sd-grid-5 { grid-template-columns: 1fr; }
  .sd-docc__img { width: min(160px, 76vw); }
  .sd-stats__grid { gap: 22px 8px; }
}

/* ============================================================
   TOUCH / POINTER — hover is not available on a phone
   ============================================================ */
@media (hover: none), (pointer: coarse) {
  /* captions and the zoom cue are hover-revealed on desktop; on touch they
     would never appear at all, so pin them open */
  .sd-gallery__item::after { opacity: .28; }
  .sd-gallery__cap { opacity: 1; transform: none; }
  .sd-service::after { width: 100%; }

  /* nothing should lift or scale on tap — it reads as a rendering glitch */
  .sd-division:hover, .sd-service:hover, .sd-accred__card:hover,
  .sd-cert:hover, .sd-ins-card:hover, .sd-job:hover, .sd-award:hover,
  .sd-info-card:hover, .sd-btn:hover, .sd-wa:hover, .sd-docc:hover .sd-docc__img,
  .sd-footer__social a:hover { transform: none; }
  .sd-division:hover .sd-division__img img,
  .sd-gallery__item:hover img { transform: none; }
  .sd-footer__links a:hover { padding-left: 0; }

  /* comfortable tap targets (WCAG 2.5.8) — the row gap is traded for target
     height, so the lists stay the same overall height */
  .sd-drawer nav a { padding: 15px 8px; }
  .sd-footer__links { gap: 4px; }
  .sd-footer__links a, .sd-footer__contact a, .sd-crumb a { min-height: 36px; }
  .sd-footer__contact a, .sd-info-card a, .sd-drawer__contact a {
    display: inline-block; padding: 5px 0; min-height: 34px;
  }
  .sd-footer__social a { width: 44px; height: 44px; }
  .sd-division__link, .sd-cert .zoom { padding: 6px 0; min-height: 40px; align-items: center; }
  .sd-faq__q { min-height: 52px; }
}

/* ============================================================
   MOBILE DRAWER hardening
   ============================================================ */
.sd-drawer {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}
.sd-drawer__contact a { overflow-wrap: anywhere; }

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

/* ============================================================
   SCROLL REVEAL — replaces the AOS plugin
   Scoped under .sd-reveal, which sudar.js adds only on ≥640px screens
   with motion allowed; without it every [data-aos] element just shows.
   ============================================================ */
.sd-reveal [data-aos]:not(.is-in) { opacity: 0; }
.sd-reveal [data-aos="fade-up"]:not(.is-in) { transform: translate3d(0, 100px, 0); }
.sd-reveal [data-aos="fade-right"]:not(.is-in) { transform: translate3d(-100px, 0, 0); }
.sd-reveal [data-aos="fade-left"]:not(.is-in) { transform: translate3d(100px, 0, 0); }
.sd-reveal [data-aos="zoom-in"]:not(.is-in) { transform: scale(.6); }
.sd-reveal [data-aos].is-anim { transition: opacity .7s ease, transform .7s ease; }

/* ============================================================
   GALLERY LIGHTBOX — replaces jQuery + Magnific Popup
   ============================================================ */
.sd-lb {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center;
  padding: 64px 76px; background: rgba(4,18,36,.93);
  opacity: 0; transition: opacity .25s ease;
}
.sd-lb[hidden] { display: none; }
.sd-lb.is-open { opacity: 1; }
.sd-lb__fig { margin: 0; min-width: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.sd-lb__img {
  max-width: 100%; width: auto; height: auto;
  max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px);
  border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.5); background: #0b2340;
}
.sd-lb__cap { margin-top: 14px; color: #e2eefb; font-family: var(--ff-head); font-weight: 600; font-size: 15px; text-align: center; }
.sd-lb__count { position: absolute; top: 22px; left: 24px; color: #cfe0f3; font-size: 14px; font-weight: 600; }
.sd-lb__btn {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.sd-lb__btn:hover { background: rgba(255,255,255,.26); }
.sd-lb__btn:focus-visible { outline: 3px solid #7fc4ff; outline-offset: 2px; }
.sd-lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sd-lb__close { top: 12px; right: 14px; }
.sd-lb__prev, .sd-lb__next { top: 50%; transform: translateY(-50%); }
.sd-lb__prev { left: 14px; }
.sd-lb__next { right: 14px; }
.sd-lb.is-single .sd-lb__prev, .sd-lb.is-single .sd-lb__next, .sd-lb.is-single .sd-lb__count { display: none; }
/* phone: the photo gets the full width, arrows move to a thumb-reachable bar at the bottom */
@media (max-width: 640px) {
  .sd-lb { padding: 64px 10px calc(92px + env(safe-area-inset-bottom, 0px)); }
  .sd-lb__img { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
  .sd-lb__prev, .sd-lb__next { top: auto; transform: none; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .sd-lb__prev { left: calc(50% - 64px); }
  .sd-lb__next { right: calc(50% - 64px); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .sd-header, .sd-offcanvas, .sd-wa, .sd-top, .sd-lb, .sd-hero__wave, #tour { display: none !important; }
  .sd-section { padding: 18px 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; word-break: break-all; }
}

/* ===== PATIENT FEEDBACK FORM =====
   Self-contained: the fields are composed into an e-mail or a WhatsApp message on
   submit, so the patient is never handed off to another site. Two states: form -> thanks. */
.sd-formembed { max-width: 880px; margin: 0 auto 34px; }
.sd-formembed [hidden] { display: none !important; }

.sd-formembed__thanks {
  text-align: center; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 46px 28px;
}
.sd-formembed__ic {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent-soft); color: var(--c-primary); font-size: 26px;
}
.sd-formembed__ic--ok { background: #e4f6f2; color: var(--c-teal); }
.sd-formembed__thanks h3 { font-family: var(--ff-head); font-size: 24px; color: var(--c-ink); margin-bottom: 10px; }
.sd-formembed__thanks p { color: var(--c-body); max-width: 520px; margin: 0 auto 22px; }

.sd-field label .req { color: #d64545; }
.sd-field label em { font-weight: 500; color: var(--c-body); font-style: normal; }

.sd-check {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 18px;
  font-size: 14.5px; color: var(--c-ink); cursor: pointer;
}
.sd-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--c-primary); cursor: pointer; }

.sd-form__err {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 12px;
  background: #fdecec; border: 1px solid #f5c2c2; color: #a12626;
  font-size: 14.5px; font-weight: 600;
}
.sd-form__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sd-form__actions .sd-btn { flex: 1 1 220px; justify-content: center; }
.sd-form__note {
  margin: 18px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--c-body);
  padding-top: 16px; border-top: 1px solid var(--c-line);
}
.sd-form__note i { color: var(--c-accent); margin-right: 6px; }

@media (max-width: 767px) {
  .sd-formembed__thanks { padding: 36px 20px; }
  .sd-form__actions .sd-btn { flex: 1 1 100%; }
}
