/* Dr Sudha Vasanth, Vasanth Clinic, KGF.
 *
 * The one strong fact she owns: MD in Internal Medicine. In KGF most of the
 * high street is MBBS or BAMS, so an MD physician is a different thing
 * entirely — and a patient has no way of knowing that. So the page does not
 * display the letters, it EXPLAINS them. That is the signature, and it is the
 * only genuinely useful thing this page can do for someone deciding.
 *
 * Split screen: left fixed with her name, the letters and the call, because
 * call-or-don't is the only decision here and it must never scroll away.
 * On a phone the left becomes a card at the top and the call becomes a
 * sticky bar, which is the honest version of the same idea.
 *
 * Slate blue-grey rather than clinical blue-and-white, which would make her
 * look like every other clinic page. One coral, used only on the call, so
 * the eye has exactly one place to land.
 *
 * No photographs. Her Instagram is medical comedy featuring colleagues and
 * juniors; other people's faces do not belong on her clinic page.
 */

:root {
  --slate:   #2b3a45;
  --slate-d: #1c272f;
  --paper:   #f7f5f1;
  --paper-2: #eeeae3;
  --coral:   #b03d27;   /* the action, and nothing else. darkened: #c0472f measured 4.19 on the treats band */
  --muted:   #66757f;
  --line:    #dcd6cc;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Noto Serif", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto,
           "Noto Sans", "Noto Sans Kannada", sans-serif;

  --pad:  clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font: 400 clamp(1rem, .95rem + .3vw, 1.1rem)/1.6 var(--sans);
  padding-bottom: 4.4rem;              /* clears the sticky bar */
}

body [lang="kn"] { display: none; }
:root[data-lang="kn"] body [lang="en"] { display: none; }
:root[data-lang="kn"] body [lang="kn"] { display: inline; }
.lang button[lang="kn"] { display: inline; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--slate); color: var(--paper); padding: .7rem 1rem; }

/* ── the split ──────────────────────────────────────────────────────── */

.split { display: block; }
@media (min-width: 56rem) {
  body { padding-bottom: 0; }
  .split { display: grid; grid-template-columns: 24rem 1fr; align-items: start; }
  .card { position: sticky; top: 0; height: 100svh; }
}

/* ── left: who she is, and the call ─────────────────────────────────── */

.card {
  background: var(--slate); color: var(--paper);
  padding: clamp(2rem, 6vw, 3rem) var(--pad);
  display: flex; flex-direction: column;
  /* faint depth so it reads as a surface, not a colour swatch */
  background-image: radial-gradient(90% 60% at 15% 0%, rgb(255 255 255 / .07), transparent 60%);
}

.place {
  margin: 0 0 1.4rem; color: #9fb0ba;
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
}
.card h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 7vw, 2.9rem); line-height: 1.02; letter-spacing: -.025em;
}

/* The letters, sized so they read as the credential and not as a caption. */
.quals { display: flex; gap: .55rem; margin: 1.3rem 0 0; }
.quals span {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .06em;
  padding: .2rem .6rem; border: 1px solid rgb(247 245 241 / .3); color: var(--paper);
}
.role { margin: 1rem 0 0; color: #b6c4cc; max-width: 22ch; }

/* The one saturated thing on the page. */
.ring {
  display: block; margin-top: auto; padding-top: 2.2rem;
  text-decoration: none; color: inherit;
}
.ring__l {
  display: block; color: #9fb0ba;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.ring__n {
  display: block; margin-top: .5rem;
  background: var(--coral); color: #fff;
  padding: .85rem 1.1rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em;
  transition: background .25s ease;
}
.ring:hover .ring__n { background: #d4553c; }

.lang { display: flex; align-items: center; gap: .5rem; margin-top: 1.6rem; font-size: .76rem; color: #8fa1ab; }
.lang button {
  background: none; border: 0; font: inherit; color: #8fa1ab; cursor: pointer;
  padding: .25rem .15rem; border-bottom: 2px solid transparent;
}
.lang button[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--coral); }

/* ── right: the flow ────────────────────────────────────────────────── */

.flow { padding: 0 var(--pad); }
@media (min-width: 56rem) { .flow { padding: 0 clamp(2rem, 5vw, 5rem); } }

[data-reveal] { opacity: 0; transform: translateY(12px); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.eyebrow {
  margin: 0 0 1.6rem; color: var(--coral);
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700;
}

/* ── THE SIGNATURE: the letters, unpacked ───────────────────────────── */

.letters { padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem); }

.l { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.l:first-of-type { border-top: 0; padding-top: 0; }
.letters.is-in .l {
  animation: settle .6s var(--ease) backwards;
  animation-delay: calc(.14s * var(--i));
}
@keyframes settle { from { opacity: 0; transform: translateY(10px); } }

.l__k {
  margin: 0 0 .5rem; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1; letter-spacing: -.03em;
}
/* the specialism sits smaller and italic, the way it is written after the MD */
.l__k em { font-style: italic; font-size: .45em; color: var(--muted); letter-spacing: 0; }
.l__v { margin: 0; max-width: 40ch; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.12rem); }

/* ── what she treats ────────────────────────────────────────────────── */

.treats {
  padding: clamp(2.5rem, 7vw, 4rem) var(--pad);
  margin-inline: calc(var(--pad) * -1);
  background: var(--paper-2);
}
@media (min-width: 56rem) {
  .treats { margin-inline: calc(clamp(2rem, 5vw, 5rem) * -1); padding-inline: clamp(2rem, 5vw, 5rem); }
}
.treats ul { list-style: none; margin: 0; padding: 0; }
.treats li {
  padding: .7rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(1.25rem, 4vw, 1.7rem); letter-spacing: -.02em;
}
.treats li:last-child { border-bottom: 0; }

.note { margin: 1.4rem 0 0; color: var(--muted); font-size: .85rem; max-width: 34ch; }
.note::after {
  content: attr(data-slot); display: block; margin-top: .3rem;
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
}

/* ── where and when ─────────────────────────────────────────────────── */

.when { padding: clamp(2.5rem, 7vw, 4rem) 0; }
.when__a, .when__t { margin: 0 0 1rem; font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 34ch; }
.when__a::after, .when__t::after {
  content: attr(data-slot); display: block; margin-top: .3rem;
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ── instagram ──────────────────────────────────────────────────────── */

.ig { padding: 0 0 clamp(2.5rem, 7vw, 4rem); }
.ig a {
  display: flex; align-items: baseline; gap: .8rem;
  text-decoration: none; color: inherit;
  padding: 1.2rem 0; border-block: 1px solid var(--line);
  transition: color .25s ease;
}
.ig a:hover { color: var(--coral); }
.ig b {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.6rem); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.ig span { color: var(--muted); font-size: .95rem; }

footer { padding: 0 0 3rem; color: var(--muted); font-size: .84rem; }
footer p { margin: 0 0 .3rem; }
.fine { font-size: .74rem; }

/* ── sticky call, phone only ────────────────────────────────────────── */

.bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  display: block; text-align: center; text-decoration: none;
  background: var(--coral); color: #fff;
  padding: 1.05rem 1rem; font-weight: 700; font-size: 1.02rem;
  padding-bottom: calc(1.05rem + env(safe-area-inset-bottom));
}
@media (min-width: 56rem) { .bar { display: none; } }

/* ── floor ──────────────────────────────────────────────────────────── */

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print { .bar, .lang, .skip { display: none; } body { padding-bottom: 0; } }

/* ═══ THE TOOL ═══════════════════════════════════════════════════════
   The point of the page. A patient in KGF gets a lab slip with a number on
   it and nobody explains it. This is her expertise made usable, and the
   reading travels into the booking so she sees it before they sit down. */

.tool { padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.tool__h {
  margin: 0 0 2rem; max-width: 20ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem); line-height: 1.12; letter-spacing: -.025em;
}

.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.tabs button {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: .55rem 1rem; border: 1px solid var(--line);
  background: transparent; color: var(--muted);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tabs button[aria-selected="true"] { background: var(--slate); color: var(--paper); border-color: var(--slate); }
.tabs button:hover { border-color: var(--slate); }

.entry label { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.entry__row { display: flex; align-items: baseline; gap: .6rem; margin-top: .5rem; }
.entry input {
  font: inherit; font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 3.6rem); letter-spacing: -.03em;
  width: 5.5ch; padding: 0; border: 0; border-bottom: 3px solid var(--slate);
  background: transparent; color: var(--slate); border-radius: 0;
}
.entry input:focus { outline: none; border-bottom-color: var(--coral); }
.unit { font-size: 1.05rem; color: var(--muted); font-weight: 600; }

/* the axis. ticks sit at the real thresholds. */
.scale { position: relative; margin: 2.6rem 0 1.2rem; }
.scale__bar { display: flex; height: 10px; overflow: hidden; }
.scale__bar i { display: block; }
.b1 { flex: 0 0 50%;   background: #4b7f68; }
.b2 { flex: 0 0 13%;   background: #c98a2e; }
.b3 { flex: 1;         background: var(--coral); }

.scale__pin {
  position: absolute; top: -1.9rem; transform: translateX(-50%);
  opacity: 0; transition: left .45s var(--ease), opacity .3s ease;
  white-space: nowrap;
}
.scale__pin span {
  display: block; background: var(--slate); color: var(--paper);
  font-size: .78rem; font-weight: 700; padding: .25rem .5rem;
  font-variant-numeric: tabular-nums;
}
.scale__pin::after {
  content: ""; display: block; width: 2px; height: 12px; margin: 0 auto;
  background: var(--slate);
}
.scale__ticks { position: relative; height: 1.2rem; }
.scale__ticks span {
  position: absolute; top: .3rem; transform: translateX(-50%);
  font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums;
}

.verdict {
  margin: 0 0 1.4rem; padding-left: .9rem; border-left: 3px solid var(--line);
  font-size: clamp(1.02rem, 2.4vw, 1.15rem); color: var(--muted); min-height: 3em;
}
.verdict.is-normal     { border-left-color: #4b7f68; color: var(--slate); }
.verdict.is-borderline { border-left-color: #a8721f; color: var(--slate); }
.verdict.is-high       { border-left-color: var(--coral); color: var(--slate); }

.take {
  display: inline-block; text-decoration: none;
  padding: .85rem 1.4rem; font-weight: 700;
  border: 2px solid var(--line); color: var(--muted);
  pointer-events: none;
  transition: all .25s ease;
}
.take.is-live {
  border-color: var(--coral); background: var(--coral); color: #fff;
  pointer-events: auto;
}
.disclaim { margin: 1.2rem 0 0; font-size: .8rem; color: var(--muted); max-width: 42ch; }

/* ═══ BOOKING THAT ARRIVES WITH SOMETHING IN IT ═════════════════════ */

.book {
  padding: clamp(2.5rem, 7vw, 4rem) var(--pad);
  margin-inline: calc(var(--pad) * -1);
  background: var(--paper-2);
}
@media (min-width: 56rem) {
  .book { margin-inline: calc(clamp(2rem, 5vw, 5rem) * -1); padding-inline: clamp(2rem, 5vw, 5rem); }
}
.fields { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr; margin-bottom: 1.6rem; }
.fields label { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fields input {
  display: block; width: 100%; margin-top: .4rem; font: inherit; font-size: 1.05rem;
  padding: .6rem .7rem; border: 1px solid var(--line); background: var(--paper);
  color: var(--slate); border-radius: 0;
}
.fields input:focus { outline: none; border-color: var(--coral); }

.pick { margin: 0 0 .7rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.8rem; }
.chips button {
  font: inherit; font-size: .9rem; cursor: pointer;
  padding: .5rem .9rem; border: 1px solid var(--line);
  background: var(--paper); color: var(--muted);
  transition: all .2s ease;
}
.chips button[aria-pressed="true"] { background: var(--slate); color: var(--paper); border-color: var(--slate); }

/* Showing the message before it is sent removes the whole fear of a form. */
.preview { margin-bottom: 1.4rem; }
.preview__k { margin: 0 0 .6rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bubble {
  margin: 0; white-space: pre-line;
  background: #dcf5c6; color: #10331a;      /* the green a WhatsApp bubble is */
  padding: .85rem 1rem; border-radius: 10px 10px 10px 2px;
  font-size: .95rem; line-height: 1.5; max-width: 34ch;
  box-shadow: 0 1px 2px rgb(0 0 0 / .12);
}

.wa {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: #128c4a; color: #fff; padding: .8rem 1.2rem;
  transition: background .25s ease;
}
.wa:hover { background: #0f7a40; }
.wa--big { padding: 1rem 1.6rem; font-size: 1.05rem; }

.acts { margin-top: auto; padding-top: 2rem; display: grid; gap: .55rem; }
.tel {
  display: block; text-align: center; text-decoration: none;
  border: 1px solid rgb(247 245 241 / .35); color: var(--paper);
  padding: .7rem 1rem; font-weight: 700; letter-spacing: .02em;
}
.tel:hover { background: rgb(247 245 241 / .1); }

.bar { background: #128c4a; }

@media (prefers-reduced-motion: reduce) {
  .scale__pin { transition: none; }
}
