/* Phone-first: every rule below is written for a ~375px phone; the
   @media (min-width) blocks at the end only widen things for tablets/PCs. */
:root {
  --brown: #3b2416;
  --brown-2: #54361f;
  --gold: #b8862a;
  --gold-soft: #ecd9b0;
  --paper: #fbf8f1;
  --ivory: #f4ecdc;
  --ink: #2a1a10;
  --muted: #6b5645;
  --line: #e6dac4;
  --green: #1d5b40;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ml: "Noto Sans Malayalam", "Nirmala UI", sans-serif;
  --dock: 72px;
  --r: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--sans); /* 18px base — easy to read on a phone */
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}
a { color: var(--brown); }
svg { width: 24px; height: 24px; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Language switch: show only the active language */
html[data-lang="en"] [lang="ml"],
html[data-lang="ml"] [lang="en"]:not(html) { display: none !important; }
html[data-lang="ml"] body { font-family: var(--ml); font-size: 1.0625rem; }
html[data-lang="ml"] h1, html[data-lang="ml"] h2, html[data-lang="ml"] h3,
html[data-lang="ml"] .brand-name, html[data-lang="ml"] .tile-label { font-family: var(--ml); font-weight: 600; letter-spacing: 0; }
html[data-lang="ml"] h1 { font-size: 2rem; line-height: 1.35; }
html[data-lang="ml"] em { font-style: normal; }
html[data-lang="ml"] .brand-sub { letter-spacing: 0; text-transform: none; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem;
  padding-top: calc(.6rem + env(safe-area-inset-top));
  background: rgb(251 248 241 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-name { font: 700 1.5rem/1 var(--serif); color: var(--brown); }
.brand-sub { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: .15rem; }
.links { display: none; }
.lang {
  flex: none; min-height: 44px; padding: 0 1rem;
  border: 1.5px solid var(--brown); border-radius: 999px;
  background: #fff; color: var(--brown);
  font: 600 .95rem var(--sans); cursor: pointer;
}
.lang [lang="en"] { font-family: var(--ml); }

/* ---------- Hero ---------- */
.hero { padding: 1.5rem 1rem 1.75rem; position: relative; }
.hero::before {
  content: ""; position: absolute; top: -6rem; right: -8rem; width: 22rem; height: 22rem; z-index: -1;
  background: radial-gradient(circle, rgb(184 134 42 / .18), transparent 65%);
}
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: 0 0 1rem; padding: .35rem .8rem .35rem .6rem;
  border-radius: 999px; background: #eaf3ee; color: var(--green);
  font-size: .9rem; font-weight: 600;
}
.pill svg { width: 18px; height: 18px; }
h1, h2, h3 { margin: 0; color: var(--brown); line-height: 1.1; }
h1 { font: 700 2.55rem/1.05 var(--serif); letter-spacing: -.01em; }
h1 em { color: var(--gold); font-style: italic; }
.lead { margin: .9rem 0 1.4rem; color: var(--muted); font-size: 1.05rem; }

/* Action tiles: a 2×2 grid of big, thumb-friendly buttons */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.tile {
  display: flex; flex-direction: column; gap: .15rem;
  min-height: 112px; padding: .95rem;
  border-radius: var(--r);
  background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--brown);
  box-shadow: 0 1px 2px rgb(59 36 22 / .05);
  transition: transform .12s ease;
}
.tile:active { transform: scale(.97); }
.tile svg { width: 28px; height: 28px; margin-bottom: auto; color: var(--gold); }
.tile-label { font: 600 1.1rem/1.2 var(--sans); margin-top: .6rem; }
.tile-sub { font-size: .85rem; color: var(--muted); }
.tile-main { background: var(--brown); border-color: var(--brown); color: #fff; }
.tile-main svg { color: var(--gold-soft); }
.tile-main .tile-sub { color: var(--gold-soft); }
.tile-wa { background: var(--green); border-color: var(--green); color: #fff; }
.tile-wa svg { color: #fff; }
.tile-wa .tile-sub { color: #cfe7da; }

/* ---------- Sections ---------- */
.sec { padding: 2rem 0; }
.band { background: var(--ivory); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 1rem; margin-bottom: 1rem; }
h2 { font: 700 2rem/1.1 var(--serif); }
html[data-lang="ml"] h2 { font-size: 1.55rem; }
.swipe-hint { margin: 0; font-size: .85rem; color: var(--muted); }

/* Doctors: horizontal swipe cards */
.cards {
  list-style: none; margin: 0; padding: .25rem 1rem 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.cards::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.2rem; display: flex; flex-direction: column;
}

.card h3 { font: 600 1.25rem/1.25 var(--sans); }
.card p { margin: .25rem 0 0; color: var(--muted); font-size: .98rem; }
.card .tag {
  margin-top: .8rem; align-self: flex-start;
  padding: .2rem .65rem; border-radius: 999px;
  background: var(--ivory); color: var(--brown-2); font-size: .85rem; font-weight: 500;
}

/* Treatments: 2-column icon tiles */
.treat { list-style: none; margin: 0; padding: 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.treat li {
  display: flex; flex-direction: column; gap: .55rem;
  min-height: 104px; padding: .95rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  font-weight: 600; line-height: 1.3; color: var(--brown);
}
.treat svg { color: var(--gold); width: 28px; height: 28px; }
.ask {
  margin: 1rem 1rem 0; min-height: 60px; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-radius: var(--r); background: var(--brown); color: #fff;
  text-decoration: none; font-weight: 500;
}

/* Visit */
.visit { padding: 0 1rem; display: grid; gap: 1rem; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--ivory); height: 220px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.rows { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.rows li { display: flex; gap: .85rem; padding: 1rem; line-height: 1.45; }
.rows li + li { border-top: 1px solid var(--line); }
.rows svg { color: var(--gold); margin-top: .1rem; }
.rows strong { color: var(--brown); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 58px; border-radius: 999px;
  background: var(--brown); color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem;
}

/* FAQ */
.faq { padding: 0 1rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .6rem; }
.faq summary {
  list-style: none; cursor: pointer; min-height: 60px; padding: .85rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; color: var(--brown);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); }

/* Footer */
.foot { background: var(--brown); color: var(--gold-soft); text-align: center; padding: 2rem 1rem; }
.foot p { margin: .2rem 0; }
.foot-name { font: 700 1.5rem var(--serif); color: #fff; }
.foot .small { margin-top: 1rem; font-size: .8rem; opacity: .75; }

/* Bottom dock (phones) */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1.25fr 1fr;
  height: calc(var(--dock) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgb(255 255 255 / .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgb(59 36 22 / .08);
}
.dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  text-decoration: none; color: var(--brown); font-size: .85rem; font-weight: 600;
}
.dock svg { color: var(--gold); }
.dock .wa { background: var(--green); color: #fff; margin: .45rem 0; border-radius: 16px; }
.dock .wa svg { color: #fff; }

/* ---------- Bigger screens ---------- */
@media (min-width: 640px) {
  .hero { padding: 3rem 2rem; max-width: 60rem; margin: 0 auto; }
  h1 { font-size: 3.6rem; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .sec-head, .treat, .visit, .faq { padding-inline: 2rem; }
  .cards { padding-inline: 2rem; scroll-padding-inline: 2rem; grid-auto-columns: 46%; }
  .treat { grid-template-columns: repeat(3, 1fr); }
  .ask { margin-inline: 2rem; }
  .swipe-hint { display: none; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .top { padding-inline: 2rem; }
  .links { display: flex; gap: 1.75rem; margin-right: 1rem; }
  .links a { text-decoration: none; font-weight: 500; }
  .links a:hover { color: var(--gold); }
  .sec { max-width: 72rem; margin: 0 auto; padding: 3.5rem 0; }
  .band { max-width: none; }
  .band > * { max-width: 72rem; margin-inline: auto; }
  .cards { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .visit { grid-template-columns: 1.3fr 1fr; }
  .visit .map { grid-row: span 2; height: auto; min-height: 340px; }
}

/* Heritage */
.heritage { padding: 0 1rem; display: grid; gap: 1.25rem; }
.her-photo { margin: 0; }
.her-photo img { width: 100%; height: auto; display: block; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
.her-photo figcaption { margin-top: .55rem; font-size: .95rem; color: var(--muted); }
.her-photo small { display: block; margin-top: .2rem; font-size: .72rem; opacity: .8; }
.story { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1rem; }
.story li { counter-increment: s; position: relative; padding-left: 2.6rem; }
.story li::before {
  content: counter(s); position: absolute; left: 0; top: .1rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brown); color: var(--gold-soft); font: 700 1rem var(--serif);
}
.story h3 { font: 600 1.2rem/1.3 var(--sans); }
.story p { margin: .3rem 0 0; color: var(--muted); }

/* Full therapy list (tap to open) */
.all { margin: 1rem 1rem 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.all summary {
  list-style: none; cursor: pointer; min-height: 60px; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; color: var(--brown);
}
.all summary::-webkit-details-marker { display: none; }
.all summary svg { color: var(--gold); transition: transform .2s ease; }
.all[open] summary svg { transform: rotate(90deg); }
.therapy-photo-note { margin: 0; padding: .85rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; line-height: 1.45; }
.therapies { list-style: none; margin: 0; padding: 0 1rem 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.therapies li { flex: 0 0 calc((100% - .75rem) / 2); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgb(59 36 22 / .07); }
.therapies img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #edf3ef; }
.therapies li > div { display: flex; flex-direction: column; padding: .72rem .75rem .8rem; }
.therapies strong { color: var(--brown); font-size: .98rem; line-height: 1.25; }
.therapies span { color: var(--muted); font-size: .82rem; line-height: 1.4; }

/* Branches */
.branches { padding: 0 1rem; display: grid; gap: 1rem; }
.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; display: grid; gap: .7rem; }
.branch h3 { font: 700 1.6rem/1.15 var(--serif); }
html[data-lang="ml"] .branch h3 { font-size: 1.3rem; }
.branch .addr { margin: 0; color: var(--muted); }
.branch .hours { list-style: none; margin: 0; padding: .6rem .8rem; border-radius: 12px; background: #eaf3ee; display: grid; gap: .35rem; }
.branch .hours li { display: flex; align-items: center; gap: .5rem; color: var(--green); font-size: .98rem; }
.branch .hours li > span { flex: 1; }
.branch .hours strong { font-weight: 600; white-space: nowrap; }
.branch .hours svg { width: 18px; height: 18px; }
.branch .hours .closed { color: #9a3b2e; }
.branch-actions { display: grid; gap: .6rem; }
.btn-light { background: var(--ivory); color: var(--brown); border: 1px solid var(--line); }
.branch .map { height: 200px; margin-top: .3rem; }

@media (min-width: 640px) {
  .heritage, .branches { padding-inline: 2rem; }
  .all { margin-inline: 2rem; }
  .branch-actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .heritage { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2.5rem; }
  .branches { grid-template-columns: 1fr 1fr; align-items: start; }
  .therapies li { flex-basis: calc((100% - 2.25rem) / 4); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- 2026 premium clinic refinement ---------- */
:root {
  --brown: #3b2416;
  --brown-2: #5a3922;
  --gold: #c8962e;
  --gold-dark: #9c6c16;
  --gold-soft: #f0dfb6;
  --paper: #fcfaf5;
  --ivory: #f7f1e3;
  --ink: #25170f;
  --muted: #6a5749;
  --line: #dfd1b7;
  --green: #1f4d3a;
  --green-soft: #e6f0ea;
  --shadow: 0 18px 55px rgb(59 36 22 / .10);
  --shadow-soft: 0 8px 28px rgb(59 36 22 / .07);
  --r: 22px;
}

body { background: var(--paper); }
main { overflow: hidden; }

.top {
  min-height: 70px;
  padding-block: .45rem;
  background: rgb(252 250 245 / .94);
  box-shadow: 0 8px 30px rgb(59 36 22 / .04);
}
.brand { flex-direction: row; align-items: center; gap: .6rem; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-logo {
  width: 54px; height: 46px; object-fit: contain; flex: none;
  mix-blend-mode: multiply;
}
.brand-name { font-size: 1.25rem; }
.brand-sub { font-size: .58rem; }
.lang { min-height: 48px; background: var(--ivory); }

.hero {
  display: grid;
  padding-top: 1.25rem;
  background:
    linear-gradient(180deg, rgb(247 241 227 / .85), transparent 72%),
    radial-gradient(circle at 85% 14%, rgb(200 150 46 / .18), transparent 30%);
}
.hero::before { display: none; }

.pill { width: fit-content; background: var(--green-soft); }
h1 { text-wrap: balance; }
.lead { max-width: 42rem; }
.tile { box-shadow: var(--shadow-soft); border-color: rgb(223 209 183 / .8); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.sec { padding-block: 2.75rem; }
.sec-head { margin-bottom: 1.25rem; }
.band { background: var(--ivory); }
.her-photo img { box-shadow: var(--shadow); }
.story { gap: 1.35rem; }
.story li { padding: 1.1rem 1rem 1.1rem 3.9rem; background: rgb(255 255 255 / .56); border: 1px solid var(--line); border-radius: 18px; }
.story li::before { left: 1rem; top: 1.05rem; }

.card { min-height: 260px; box-shadow: var(--shadow-soft); border-color: rgb(223 209 183 / .85); }

.treat li { box-shadow: var(--shadow-soft); }
.all { box-shadow: var(--shadow-soft); }
.ask { min-height: 64px; box-shadow: var(--shadow); }

.branch { padding: 1.35rem; box-shadow: var(--shadow-soft); }
.branch-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.status {
  flex: none; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 32px; padding: .3rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { color: #145c3d; background: #e2f3e9; }
.status.is-closed { color: #8b3028; background: #f8e6e2; }
.branch .hours { background: #f0f5f1; }
.btn { min-height: 54px; transition: transform .12s ease, background-color .12s ease; }
.btn:hover { transform: translateY(-1px); }

.booking-section { max-width: none; background: var(--brown); color: #fff; }
.booking-wrap { padding: 0 1rem; display: grid; gap: 1.4rem; }
.booking-copy h2 { color: #fff; font-size: 2.25rem; }
.booking-copy > p:not(.eyebrow) { color: var(--gold-soft); max-width: 34rem; }
.eyebrow {
  margin: 0 0 .5rem; color: #f0c76d; font-size: .82rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
html[data-lang="ml"] .eyebrow { letter-spacing: 0; text-transform: none; }
.booking {
  display: grid; gap: 1rem; padding: 1rem;
  background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: 0 24px 70px rgb(0 0 0 / .22);
}
.booking label { display: grid; gap: .4rem; color: var(--brown); font-weight: 600; font-size: .95rem; }
.booking input, .booking select, .booking textarea {
  width: 100%; min-height: 52px; padding: .75rem .85rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink); font: inherit;
}
.booking textarea { min-height: 116px; resize: vertical; }
.booking input:focus, .booking select:focus, .booking textarea:focus { border-color: var(--gold); outline: 3px solid rgb(200 150 46 / .22); }
.submit-booking {
  min-height: 58px; border: 0; border-radius: 999px; padding: .75rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  background: var(--green); color: #fff; font: 700 1rem var(--sans); cursor: pointer;
}
html[data-lang="ml"] .submit-booking { font-family: var(--ml); }
.form-note { margin: -.35rem 0 0; text-align: center; color: var(--muted); font-size: .82rem; }

.foot { padding-top: 2.5rem; }
.foot a { color: #fff; }
.foot-logo { width: min(300px, 76vw); height: auto; max-height: 190px; object-fit: contain; margin-bottom: .5rem; border-radius: 18px; }

@media (max-width: 420px) {
  .brand-copy { max-width: 12rem; }
  .brand-name { font-size: 1.1rem; }

  .branch-title { display: grid; }
  .status { justify-self: start; }
}

@media (min-width: 640px) {

  .booking-wrap { padding-inline: 2rem; }
  .booking { padding: 1.5rem; grid-template-columns: 1fr 1fr; }
  .booking label:last-of-type, .submit-booking, .form-note { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .top { padding-inline: max(2rem, calc((100vw - 76rem) / 2)); }
  .brand-logo { width: 64px; height: 54px; }
  .hero {
    max-width: 76rem; min-height: 660px; padding: 4.5rem 2rem;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
    grid-template-areas:
      "pill logo"
      "title logo"
      "lead logo"
      "tiles tiles";
    align-items: center; column-gap: 3.5rem;
  }

  .hero .pill { grid-area: pill; align-self: end; }
  .hero h1 { grid-area: title; font-size: 4.6rem; }
  .hero .lead { grid-area: lead; align-self: start; font-size: 1.18rem; }
  .hero .tiles { grid-area: tiles; margin-top: 2.2rem; }
  .tile { min-height: 132px; }
  .sec { max-width: 76rem; padding-block: 5rem; }
  .band { max-width: none; }
  .band > * { max-width: 76rem; }
  .booking-section { max-width: none; }
  .booking-wrap { max-width: 76rem; margin: 0 auto; grid-template-columns: .82fr 1.18fr; gap: 4rem; align-items: center; padding-inline: 2rem; }
  .booking-copy h2 { font-size: 3.4rem; }
  .booking { padding: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tile:hover, .btn:hover { transform: none; }
}

/* Hero uses the header mark; avoid repeating the full logo above the message. */
@media (min-width: 960px) {
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "pill"
      "title"
      "lead"
      "tiles";
    max-width: 76rem;
    padding-block: 5rem 4.5rem;
  }
  .hero h1 { max-width: 16ch; }
  .hero .lead { max-width: 46rem; }
}

/* Final interaction and brand refinements */
.brand-logo {
  width: 52px;
  height: 52px;
  padding: 2px;
  object-fit: contain;
  mix-blend-mode: normal;
}

button.tile {
  width: 100%;
  border: 1px solid var(--line);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
button.tile.tile-main { border-color: var(--brown); }
button.tile .tile-label,
button.tile .tile-sub { display: block; }

.card {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--gold);
}
.card:nth-child(even) { border-top-color: var(--green); }
.card::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -34px;
  top: -34px;
  border: 1px solid rgb(200 150 46 / .25);
  border-radius: 50%;
}

.treat li {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid rgb(200 150 46 / .45);
}
.treat li svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 12px;
  background: var(--ivory);
}
.treat li:nth-child(3n + 2) svg { color: var(--green); background: var(--green-soft); }

.branch-dialog {
  width: min(92vw, 620px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgb(20 10 4 / .34);
}
.branch-dialog::backdrop {
  background: rgb(37 23 15 / .62);
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 1.65rem; text-wrap: balance; }
.dialog-head .eyebrow { color: var(--gold-dark); }
.dialog-close {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brown);
  font: 400 2rem/1 var(--sans);
  cursor: pointer;
}
.choice-panel { display: grid; gap: .75rem; padding: 1.1rem 1.4rem 1.4rem; }
.choice-link {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--brown);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.choice-link span { display: grid; gap: .15rem; }
.choice-link strong { line-height: 1.25; }
.choice-link small { color: var(--muted); font-size: .88rem; }
.choice-link svg { color: var(--gold); }
.choice-link:hover { border-color: var(--gold); transform: translateY(-1px); }

.dock button {
  border: 0;
  background: transparent;
  color: var(--brown);
  font: 600 .85rem var(--sans);
  cursor: pointer;
}
.dock a,
.dock button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
}
.dock button svg { color: var(--gold); }
html[data-lang="ml"] .dock button { font-family: var(--ml); }

@media (min-width: 960px) {
  .brand-logo { width: 58px; height: 58px; }
}

.branch-dialog [hidden] { display: none !important; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.not-found {
  min-height: 100svh;
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding-block: 4rem;
}
.not-found h1 { font-size: clamp(2.25rem, 8vw, 4.5rem); }
.not-found p { max-width: 52ch; }

/* ---------- Lightweight visual depth (no image downloads or animation loops) ---------- */
body {
  background:
    radial-gradient(circle at 100% 8%, rgb(200 150 46 / .055), transparent 18rem),
    radial-gradient(circle at 0 42%, rgb(31 77 58 / .035), transparent 22rem),
    var(--paper);
}

/* Keep mobile compositing cheap: solid sticky surfaces instead of live blur. */
.top,
.dock {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero {
  isolation: isolate;
  border-bottom: 1px solid rgb(200 150 46 / .28);
  background:
    linear-gradient(135deg, rgb(247 241 227 / .98), rgb(252 250 245 / .92) 58%, rgb(230 240 234 / .62)),
    var(--paper);
}
.hero::before {
  display: block;
  z-index: -1;
  top: -5rem;
  right: -8rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgb(200 150 46 / .23);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 28%, rgb(200 150 46 / .13) 28.4% 29.2%, transparent 29.6% 48%, rgb(59 36 22 / .08) 48.4% 49.1%, transparent 49.5%),
    radial-gradient(circle at center, rgb(200 150 46 / .12) 0 4px, transparent 5px);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 1rem;
  bottom: 1.1rem;
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  box-shadow: 5rem 0 0 rgb(200 150 46 / .38), 10rem 0 0 rgb(200 150 46 / .18);
}

.sec-head h2 {
  position: relative;
  padding-left: 1rem;
}
.sec-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  bottom: .12em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(var(--gold), var(--green));
}

.band {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgb(200 150 46 / .055) 50%, transparent 50.2%) 0 0 / 56px 56px,
    linear-gradient(0deg, transparent 0 49.8%, rgb(200 150 46 / .055) 50%, transparent 50.2%) 0 0 / 56px 56px,
    var(--ivory);
}
.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--ivory), transparent 22%, transparent 78%, var(--ivory));
}

.her-photo {
  position: relative;
  padding: .45rem;
  border: 1px solid rgb(200 150 46 / .48);
  border-radius: calc(var(--r) + 5px);
  background: rgb(255 255 255 / .7);
  box-shadow: var(--shadow-soft);
}
.her-photo::before,
.her-photo::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}
.her-photo::before {
  left: -.22rem;
  top: -.22rem;
  border-left: 3px solid var(--gold);
  border-top: 3px solid var(--gold);
  border-radius: 12px 0 0;
}
.her-photo::after {
  right: -.22rem;
  bottom: -.22rem;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  border-radius: 0 0 12px;
}
.her-photo figcaption { padding-inline: .35rem; }

.card,
.treat li,
.branch,
.faq details,
.all {
  background: linear-gradient(145deg, #fff, rgb(252 250 245 / .94));
}
.card::after,
.branch::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgb(200 150 46 / .12);
  border-radius: calc(var(--r) - 7px);
  pointer-events: none;
}
.card > *,
.branch > * { position: relative; z-index: 1; }

.treat li::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 74px;
  height: 74px;
  border: 1px solid rgb(200 150 46 / .16);
  border-radius: 50%;
}

.branch {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--gold);
}
.branch:nth-child(2) { border-top-color: var(--green); }
.branch-title::after {
  content: "";
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgb(200 150 46 / .18);
  border-radius: 50%;
  pointer-events: none;
}

.booking-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 20%, rgb(200 150 46 / .20), transparent 18rem),
    radial-gradient(circle at 94% 80%, rgb(31 77 58 / .34), transparent 22rem),
    var(--brown);
}
.booking-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .16;
  background:
    linear-gradient(45deg, transparent 48.8%, rgb(240 223 182 / .5) 49.4% 50.6%, transparent 51.2%) 0 0 / 72px 72px,
    linear-gradient(-45deg, transparent 48.8%, rgb(240 223 182 / .32) 49.4% 50.6%, transparent 51.2%) 0 0 / 72px 72px;
}
.booking { border: 1px solid rgb(240 223 182 / .72); }

.foot {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -5rem, rgb(200 150 46 / .24), transparent 18rem),
    var(--brown);
}

@media (min-width: 640px) {
  .hero::before { right: -4rem; width: 26rem; height: 26rem; }
  .hero::after { left: 2rem; }
}

@media (min-width: 960px) {
  .top {
    background: rgb(252 250 245 / .94);
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
    backdrop-filter: saturate(1.2) blur(8px);
  }
  .hero::before { right: 2rem; top: -7rem; width: 34rem; height: 34rem; }
  .hero::after { left: 2rem; bottom: 2rem; }
  .card:hover,
  .treat li:hover,
  .branch:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .card,
  .treat li,
  .branch { transition: transform .16s ease, box-shadow .16s ease; }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .treat li,
  .branch { transition: none; }
}

/* ---------- Premium clinic hero artwork ---------- */
.clinic-visual {
  position: relative;
  isolation: isolate;
  width: min(100%, 34rem);
  margin: .15rem auto 1.25rem;
  padding: .6rem;
  display: grid;
  place-items: center;
}
.clinic-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7% 5% 4%;
  border: 1px solid rgb(200 150 46 / .32);
  border-radius: 50% 50% 44% 56% / 56% 44% 56% 44%;
  background: radial-gradient(circle at 50% 45%, rgb(255 255 255 / .95), rgb(247 241 227 / .84) 58%, rgb(230 240 234 / .55));
  box-shadow: 0 24px 55px rgb(59 36 22 / .10);
}
.clinic-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgb(31 77 58 / .18);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgb(200 150 46 / .05), 0 0 0 28px rgb(31 77 58 / .035);
}
.clinic-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 15px 18px rgb(59 36 22 / .14));
}

@media (max-width: 420px) {
  .clinic-visual { width: 94%; margin-top: -.3rem; padding: .25rem; }
  .clinic-visual img { max-height: 210px; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.07fr) minmax(360px, .93fr);
    grid-template-areas:
      "pill visual"
      "title visual"
      "lead visual"
      "tiles tiles";
    column-gap: 3.5rem;
    align-items: center;
  }
  .hero .pill { grid-area: pill; align-self: end; }
  .hero h1 { grid-area: title; }
  .hero .lead { grid-area: lead; align-self: start; }
  .clinic-visual { grid-area: visual; width: 100%; max-width: 31rem; margin: 0; justify-self: end; }
  .clinic-visual img { max-height: 390px; }
  .hero .tiles { grid-area: tiles; }
}

@media (prefers-reduced-motion: reduce) {
  .clinic-visual img { filter: none; }
}

/* Launch readiness: legal, privacy and resilient forms */
.hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.form-error { min-height: 1.3em; margin: 0; color: #8a251f; font-weight: 600; font-size: .9rem; }
.booking input:user-invalid,
.booking textarea:user-invalid,
.booking select:user-invalid { border-color: #9f3b33; box-shadow: 0 0 0 3px rgb(159 59 51 / .12); }
.legal-links { display: flex; justify-content: center; gap: 1rem; margin: .8rem 0; }
.legal-links a { color: #f7f1e3; text-underline-offset: 4px; }
.legal-page { min-height: 100vh; background: var(--ivory); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 900px; margin: auto; padding: 1rem; }
.legal-header a { color: var(--brown); font-weight: 700; text-decoration: none; }
.legal-header img { width: 52px; height: 52px; object-fit: contain; }
.legal-main { max-width: 780px; margin: 0 auto; padding: 2rem 1rem 6rem; }
.legal-main h1 { margin: 0 0 .5rem; font: 700 clamp(2.25rem,8vw,4rem)/.98 var(--serif); color: var(--brown); }
.legal-main h2 { margin: 2rem 0 .5rem; color: var(--green); font: 700 1.45rem/1.2 var(--serif); }
.legal-main p, .legal-main li { color: var(--muted); line-height: 1.75; }
.legal-main .updated { color: var(--gold-dark); font-weight: 600; }
.legal-main .ml-copy { padding-top: 2rem; margin-top: 2.5rem; border-top: 1px solid var(--line); font-family: 'Noto Sans Malayalam', sans-serif; }
.legal-main .ml-copy h1, .legal-main .ml-copy h2 { font-family: 'Noto Sans Malayalam', sans-serif; letter-spacing: 0; }
/* Google review prompt */
.review-card { margin: 0 1rem; padding: 1.5rem 1.2rem; border: 1px solid var(--gold-soft); border-radius: var(--r); background: #fff; text-align: center; box-shadow: 0 10px 24px rgb(59 36 22 / .07); }
.review-card h2 { font-size: 1.75rem; }
.review-card p { margin: .6rem auto 1.1rem; max-width: 34rem; color: var(--muted); }
.stars { display: flex; justify-content: center; gap: .2rem; margin-bottom: .5rem; color: var(--gold); }
.btn-review { max-width: 26rem; margin: 0 auto; background: var(--green); }
.btn-review svg { color: #f4cf6b; }

@media (min-width: 640px) {
  .review-card { max-width: 760px; margin: 0 auto; }
}

/* Doctor portraits (replace the letter avatars) */
.card .doc-photo {
  display: block; width: calc(100% + 2.4rem); height: auto; max-width: none;
  margin: -1.2rem -1.2rem 1rem; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  background: var(--ivory);
}

/* ---------- Gallery: "Inside our clinic" (photos come from /admin) ---------- */
.gallery-sec { padding-block: 2.4rem; }
.gallery-head { padding: 0 1rem; margin: 0 auto 1.3rem; max-width: 1100px; }
.gallery-head .eyebrow { margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.gallery-head h2 { margin: 0; }
.gallery-sub { margin: .5rem 0 0; color: var(--muted); max-width: 34rem; }

/* Masonry columns keep mixed ratios tidy without gaps or crowding. */
.gallery { columns: 2; column-gap: .75rem; padding: 0 1rem; max-width: 1100px; margin: 0 auto; }
.g-item { break-inside: avoid; margin: 0 0 .75rem; }
.g-item button {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 16px; overflow: hidden; background: var(--ivory);
  box-shadow: 0 10px 26px rgb(59 36 22 / .10);
}
.g-item img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.g-item button:hover img, .g-item button:focus-visible img { transform: scale(1.04); }
.g-item[data-ratio="landscape"] img { aspect-ratio: 4 / 3; }
.g-item[data-ratio="square"] img { aspect-ratio: 1; }
.g-item[data-ratio="portrait"] img { aspect-ratio: 3 / 4; }
.g-item[data-ratio="wide"] img { aspect-ratio: 16 / 9; }
.g-item[data-focus="top"] img { object-position: 50% 15%; }
.g-item[data-focus="center"] img { object-position: 50% 50%; }
.g-item[data-focus="bottom"] img { object-position: 50% 85%; }
.g-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem .8rem .7rem;
  background: linear-gradient(to top, rgb(25 14 7 / .78), rgb(25 14 7 / 0));
  color: #fff8ec; font-size: .9rem; font-weight: 600; line-height: 1.3; text-align: left;
}

/* Photo viewer */
.viewer { width: min(100vw - 1rem, 1040px); max-height: calc(100dvh - 1rem); padding: 0; border: 0; border-radius: 18px; background: #140c07; color: #fff8ec; }
.viewer::backdrop { background: rgb(15 9 5 / .9); }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: .6rem .6rem .6rem 1rem; }
.viewer-count { font-size: .85rem; color: #d9c4a3; font-variant-numeric: tabular-nums; }
.viewer-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.viewer-stage { position: relative; display: grid; place-items: center; }
.viewer-stage img { display: block; max-width: 100%; max-height: calc(100dvh - 12rem); object-fit: contain; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgb(0 0 0 / .45); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.viewer-nav.prev { left: .5rem; }
.viewer-nav.next { right: .5rem; }
.viewer-nav[hidden] { display: none; }
.viewer-text { padding: .9rem 1.1rem 1.2rem; }
.viewer-text h3 { margin: 0; font: 600 1.1rem/1.3 var(--sans); }
.viewer-text p { margin: .35rem 0 0; color: #d9c4a3; font-size: .95rem; line-height: 1.5; }
.viewer-text h3:empty, .viewer-text p:empty { display: none; }

@media (min-width: 760px) { .gallery { columns: 3; column-gap: 1rem; } .g-item { margin-bottom: 1rem; } }
@media (prefers-reduced-motion: reduce) { .g-item img { transition: none; } }

/* ---------- Home gallery: a swipeable slider (2 photos on a phone) ---------- */
.gallery-sec .gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.g-arrows { display: none; gap: .5rem; }
.g-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--brown); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.g-arrow:hover { border-color: var(--gold); }
.g-slider {
  display: flex; gap: .7rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; padding: .2rem 1rem .6rem;
  scrollbar-width: none; max-width: 1100px; margin: 0 auto;
}
.g-slider::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 44%; scroll-snap-align: start; }
.g-slide a {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  background: var(--ivory); box-shadow: 0 10px 24px rgb(59 36 22 / .12);
}
.g-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-slide[data-focus="top"] img { object-position: 50% 15%; }
.g-slide[data-focus="bottom"] img { object-position: 50% 85%; }
.g-slide .g-cap { font-size: .82rem; padding: 2rem .7rem .6rem; }
.g-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .6rem; }
.g-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: width .25s ease, background .25s ease; }
.g-dots span.on { width: 20px; background: var(--gold); }
.g-all {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: calc(100% - 2rem); max-width: 26rem; min-height: 54px; margin: 1.1rem auto 0;
  border-radius: 999px; background: var(--brown); color: #fff; text-decoration: none; font-weight: 600;
}
.g-all-count { opacity: .75; font-weight: 400; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .g-slide { flex-basis: 31%; } }
@media (min-width: 960px) {
  .g-slide { flex-basis: calc((100% - 2.1rem) / 4); }
  .g-arrows { display: flex; }
  .gallery-sec .gallery-head { max-width: 1100px; }
}

/* ---------- Full gallery page (/gallery/) ---------- */
.gallery-page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.gp-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem;
  padding: .6rem 1rem; background: rgb(251 248 241 / .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.gp-back { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--brown); font-weight: 600; text-decoration: none; }
.gp-brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--brown); text-decoration: none; font: 700 1.15rem var(--serif); }
.gp-brand img { border-radius: 50%; }
.gp-lang { justify-self: end; min-height: 40px; padding: 0 .9rem; border: 1px solid var(--brown); border-radius: 999px; background: transparent; color: var(--brown); font: 600 .9rem var(--sans); cursor: pointer; }
html[data-lang="ml"] .gp-lang { font-family: var(--sans); }
.gp-hero { max-width: 1100px; margin: 0 auto; padding: 1.6rem 1rem 1.1rem; }
.gp-hero .eyebrow { margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.gp-hero h1 { margin: 0; font: 700 2.2rem/1.1 var(--serif); }
.gp-count { margin: .6rem 0 0; font-size: .9rem; font-weight: 600; color: var(--gold); }
.gp-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.gallery-page .gallery { padding-bottom: 1rem; }
.gp-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1.3fr; gap: .6rem;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgb(251 248 241 / .96);
  border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.gp-dock a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.gp-dock-home { border: 1px solid var(--line); color: var(--brown); background: #fff; }
.gp-dock-wa { background: var(--green); color: #fff; }
@media (min-width: 760px) {
  .gp-hero h1 { font-size: 3rem; }
  .gp-dock { max-width: 560px; margin: 0 auto; left: 50%; transform: translateX(-50%); right: auto; width: 100%; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; }
}

/* ---------- Trust & clarity (first screen, treatments, first visit) ---------- */
.therapies .t-name { margin: 0; color: var(--brown); font: 600 .98rem/1.25 var(--sans); }
html[data-lang="ml"] .therapies .t-name { font-family: var(--ml); }
.trust {
  display: flex; align-items: center; gap: .8rem; margin: .2rem 0 .7rem; padding: .65rem .9rem .65rem .65rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brown); text-decoration: none;
  box-shadow: 0 8px 20px rgb(59 36 22 / .06); width: fit-content; max-width: 100%;
}
.trust-faces { display: flex; flex: none; }
.trust-faces img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  border: 2px solid #fff; background: var(--ivory); margin-left: -10px;
}
.trust-faces img:first-child { margin-left: 0; }
.trust-text { display: grid; line-height: 1.25; min-width: 0; }
.trust-text strong { font-size: 1rem; }
.trust-text > span { font-size: .8rem; color: var(--muted); }
.assure { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.assure li {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px;
  background: #eaf3ee; color: var(--green); font-size: .85rem; font-weight: 600;
}
.assure li::before { content: "✓"; font-weight: 700; }
.sec-intro { max-width: 40rem; margin: -.3rem 0 1rem; padding: 0 1rem; color: var(--muted); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0 1rem; display: grid; gap: .8rem; }
.steps li {
  counter-increment: step; position: relative; padding: 1rem 1rem 1rem 3.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--brown); color: var(--gold-soft); font-weight: 700;
}
.steps h3 { margin: 0; font: 600 1.05rem/1.3 var(--sans); color: var(--brown); }
html[data-lang="ml"] .steps h3 { font-family: var(--ml); }
.steps p { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 0 auto; }
  .sec-intro { margin-inline: auto; max-width: 1100px; }
}

/* Desktop hero: credentials and reassurances sit under the intro, beside the illustration. */
@media (min-width: 960px) {
  .hero {
    grid-template-areas:
      "pill visual"
      "title visual"
      "lead visual"
      "trust visual"
      "assure visual"
      "tiles tiles";
  }
  .hero .trust { grid-area: trust; margin-top: .6rem; }
  .hero .assure { grid-area: assure; margin-bottom: 0; }
}

/* ---------- Treatment & branch pages (/services/*, /kadungathukundu/, /thirunavaya/) ---------- */
.subpage { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.subpage .gp-lang { display: inline-flex; align-items: center; text-decoration: none; }
.sp { max-width: 820px; margin: 0 auto; padding: 0 1rem 1rem; }
.sp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: .9rem 0 0; font-size: .85rem; color: var(--muted); }
.sp-crumbs li + li::before { content: "›"; margin-right: .3rem; }
.sp-crumbs a { color: var(--muted); }
.sp-hero { padding: 1.1rem 0 .4rem; }
.sp-hero .eyebrow { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.sp-hero h1 { margin: 0; font: 700 2.3rem/1.08 var(--serif); text-wrap: balance; }
.sp-lead { margin: .8rem 0 0; font-size: 1.05rem; }
.sp-ml { margin: .6rem 0 0; color: var(--muted); font-family: var(--ml); font-size: .98rem; }
.sp-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 .9rem; }
.sp-cta .btn, .sp-actions .btn, .sp-visit .btn { flex: 1 1 12rem; min-height: 52px; padding: 0 1.1rem; }
.btn-wa { background: var(--green); }
.sp-sec { padding: 1.3rem 0 .4rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.sp-sec h2 { margin: 0 0 .8rem; font: 700 1.6rem/1.15 var(--serif); }
.sp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.sp-list li { position: relative; padding-left: 1.7rem; }
.sp-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.sp-steps { padding: 0; }
.sp-steps li { padding-top: .85rem; padding-bottom: .85rem; }
.sp-steps li::before { top: .8rem; }
.sp-steps p { margin: .2rem 0 0; color: var(--ink); }
.sp-safety { margin: .9rem 0 0; padding: .8rem 1rem; border-left: 4px solid #b3452f; border-radius: 10px; background: #fbeeea; font-size: .95rem; }
.sp-therapies { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.sp-therapies li { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sp-therapies img { width: 100%; height: 100%; min-height: 84px; aspect-ratio: 3 / 2; object-fit: cover; }
.sp-therapies h3 { margin: 0; font: 600 1rem/1.25 var(--sans); }
.sp-therapies p { margin: .2rem .8rem .3rem 0; font-size: .88rem; color: var(--muted); }
.sp-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.sp-docs li { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sp-docs img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.sp-docs div { padding: .6rem .7rem .7rem; }
.sp-docs strong { display: block; font-size: .95rem; line-height: 1.25; }
.sp-docs span { display: block; margin-top: .2rem; font-size: .8rem; color: var(--muted); }
.sp-faq { padding: 0; }
.sp-branches { display: grid; gap: .8rem; }
.sp-branch { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; }
.sp-branch h3 { margin: 0; font: 700 1.3rem var(--serif); }
.sp-branch h3 a { color: var(--brown); }
.sp-branch > p { margin: .3rem 0 .6rem; color: var(--muted); }
.sp-hours { list-style: none; margin: 0; padding: .6rem .8rem; border-radius: 12px; background: #eef4f0; display: grid; gap: .3rem; }
.sp-hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.sp-hours strong { color: var(--green); font-variant-numeric: tabular-nums; }
.sp-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.sp-others { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sp-others a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--brown); font-weight: 600; text-decoration: none; }
.sp-note { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.sp-visit { display: grid; gap: 1.2rem; }
.sp-addr { margin: 0 0 .8rem; line-height: 1.6; }
.sp-map { margin-top: 1rem; }
.sp-foot { margin-top: 2rem; padding: 1.6rem 1rem 1.2rem; background: var(--brown); color: var(--gold-soft); }
.sp-foot-cols { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sp-foot h2 { margin: 0 0 .5rem; font: 700 1.1rem var(--serif); color: #fff; }
.sp-foot nav { display: grid; gap: .35rem; }
.sp-foot a { color: #f7f1e3; font-size: .92rem; }
.sp-foot > p { max-width: 820px; margin: 1.2rem auto 0; font-size: .82rem; }
@media (min-width: 760px) {
  .sp-hero h1 { font-size: 3.2rem; }
  .sp-therapies { grid-template-columns: 1fr 1fr; }
  .sp-branches, .sp-visit, .sp-others { grid-template-columns: 1fr 1fr; }
}

/* Home: treatment tiles and branch names link to their own pages */
.treat li { position: relative; }
.treat-go { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.treat-go:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.branch-link { color: inherit; text-decoration: none; }
.branch-link::after { content: " →"; color: var(--gold); font-size: .85em; }

/* ---------- Live clinic info: notices, doctor days ---------- */
.notices { display: grid; gap: .4rem; padding: .7rem 1rem 0; max-width: 1100px; margin: 0 auto; }
.notice {
  margin: 0; padding: .7rem .9rem; border-radius: 14px; font-size: .95rem; line-height: 1.45;
  background: #fbf3df; border: 1px solid #ecd9b0; color: var(--brown);
}
.notice strong { font-weight: 700; }
.notice-closed { background: #fbeeea; border-color: #efc9bf; color: #7d2b1c; }
.notice-doctor { background: #eaf3ee; border-color: #c7ddd0; color: var(--green); }
.here-today {
  position: relative; z-index: 1; align-self: flex-start; margin: -.4rem 0 .6rem; padding: .2rem .6rem;
  border-radius: 999px; background: var(--green); color: #fff; font-size: .78rem; font-weight: 600;
}
.card .avail { margin-top: .7rem; font-size: .85rem; line-height: 1.45; color: var(--green); font-weight: 500; }

/* ---------- Score fixes: clear services, credentials, real doctors, main action ---------- */
.treat-desc { display: block; font-size: .82rem; font-weight: 400; line-height: 1.4; color: var(--muted); }
.treat-more { margin-top: auto; font-size: .8rem; font-weight: 600; color: var(--green); }
html[data-lang="ml"] .treat-desc, html[data-lang="ml"] .treat-more { font-family: var(--ml); }
.creds { list-style: none; margin: -.2rem 0 1rem; padding: 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.creds li { padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.creds strong { display: block; font-size: .95rem; color: var(--brown); letter-spacing: .03em; }
.doc-mosaic .mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.doc-mosaic img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 10px 22px rgb(59 36 22 / .14); filter: none; }
.doc-mosaic figcaption { margin-top: .5rem; font-size: .82rem; color: var(--muted); text-align: center; }
.clinic-visual.doc-mosaic img { max-height: none; }
.book-main {
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 58px; margin: 0 0 .8rem;
  border-radius: 999px; background: linear-gradient(180deg, #2a6b4d, var(--green)); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.08rem; box-shadow: 0 12px 26px -12px rgb(29 91 64 / .8);
}
.book-main svg { color: #fff; }
@media (min-width: 760px) {
  .creds { grid-template-columns: repeat(4, 1fr); max-width: 1100px; margin-inline: auto; }
}
@media (min-width: 960px) {
  .hero { grid-template-areas: "pill visual" "title visual" "lead visual" "trust visual" "assure visual" "book visual" "tiles tiles"; }
  .hero .book-main { grid-area: book; max-width: 26rem; margin: .8rem 0 0; }
  .doc-mosaic .mosaic { grid-template-columns: 1fr 1fr; }
}
.sp-notices { padding-inline: 0; }

/* ---------- Reviews: header button + /reviews/ page ---------- */
.top-reviews {
  flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .95rem 0 .8rem;
  border-radius: 999px; background: linear-gradient(180deg, #2a6b4d, var(--green)); color: #fff; text-decoration: none;
  font: 600 .95rem var(--sans); box-shadow: 0 8px 18px -10px rgb(29 91 64 / .9);
}
.top-reviews b { color: #f3c969; font-size: 1.05rem; line-height: 1; }
html[data-lang="ml"] .top-reviews { font-family: var(--ml); font-size: .88rem; }
/* Phones: logo, name, Reviews and language all fit on one line. */
/* Phones: Reviews and language buttons are the same compact size, and the
   name shrinks with the screen so nothing can overlap. */
@media (max-width: 440px) {
  .top { gap: .4rem; padding-inline: .65rem; }
  .top .brand { gap: .45rem; }
  .top .brand-logo { width: 36px; height: 36px; }
  .top .brand-copy { min-width: 0; overflow: hidden; }
  .top .brand-name { display: block; font-size: clamp(.95rem, 4.6vw, 1.2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top .brand-sub { display: block; font-size: .52rem; letter-spacing: .12em; white-space: nowrap; overflow: hidden; }
  .top-reviews, .lang {
    min-width: 5.4rem; min-height: 36px; padding: 0 .55rem; justify-content: center;
    font-size: .8rem; border-width: 1.5px;
  }
  .top-reviews { gap: .2rem; border: 1.5px solid var(--green); box-shadow: 0 6px 14px -10px rgb(29 91 64 / .9); }
  .top-reviews b { font-size: .9rem; }
  html[data-lang="ml"] .top-reviews { font-size: .78rem; }
}
@media (max-width: 340px) {
  .top .brand-sub { display: none; }
  .top-reviews, .lang { min-width: 0; }
}
.review-card .rv-more { display: inline-block; margin-top: .9rem; font-weight: 600; color: var(--green); }

.rv-google {
  margin-top: 1.1rem; padding: 1rem 1.1rem 1.1rem; border-radius: var(--r);
  background: linear-gradient(160deg, var(--brown), #2a170c); color: #f6ead3;
}
.rv-g-stars { color: #f3c969; letter-spacing: .12em; font-size: 1.1rem; }
.rv-google p { margin: .2rem 0 .8rem; font-size: .98rem; }
.rv-g-actions { display: grid; gap: .5rem; }
.rv-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.rv-btn-gold { background: linear-gradient(180deg, #d9ab4f, var(--gold)); color: #2a170c; }
.rv-btn-line { border: 1px solid rgb(236 217 176 / .45); color: #f6ead3; }
.rv-filter { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.1rem; }
.rv-filter button {
  min-height: 40px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--muted); font: 500 .9rem var(--sans); cursor: pointer;
}
html[data-lang="ml"] .rv-filter button { font-family: var(--ml); }
.rv-filter button[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: #fff; }
.rv-filter button[hidden], .rv-card[hidden] { display: none; }

.rv-grid { columns: 1; column-gap: 1rem; padding: 0 1rem 1rem; max-width: 1100px; margin: 0 auto; }
.rv-card {
  break-inside: avoid; margin: 0 0 1rem; overflow: hidden; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 28px -20px rgb(59 36 22 / .45);
}
.rv-media { display: block; width: 100%; padding: 0; border: 0; background: #140c07; }
.rv-media video, .rv-media img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #140c07; }
.rv-photo { cursor: zoom-in; }
.rv-photo img { object-fit: cover; }
.rv-body { padding: 1rem 1.1rem 1.1rem; }
.rv-stars { margin: 0 0 .35rem; color: var(--gold); letter-spacing: .1em; font-size: 1.05rem; }
.rv-text { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink); white-space: pre-line; }
.rv-text::before { content: "“"; display: block; height: 1.6rem; font: 700 3rem/1 var(--serif); color: var(--gold-soft); }
.rv-media + .rv-body .rv-text::before { display: none; }
.rv-who { margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; font-size: .9rem; }
.rv-who strong { color: var(--brown); }
.rv-who span { color: var(--muted); }
.rv-empty { max-width: 34rem; margin: 1rem auto; padding: 2rem 1.2rem; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--r); }
.rv-empty p { margin: .2rem 0; }
@media (min-width: 640px) {
  .rv-grid { columns: 2; }
  .rv-g-actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) { .rv-grid { columns: 3; } }
