/* Krishna Heart Care Clinic
   The page is built from the consulting room itself: white lacquer panelling,
   teak-framed recessed niches, and a warm downlight that only ever means "lit". */

@font-face {
  font-family: "Gloock";
  src: url("../assets/fonts/gloock-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Materials */
  --lacquer: #f4f4f1;
  --lacquer-well: #e9e7e2;
  --lacquer-shade: #dedbd4;
  --seam: rgba(58, 35, 22, 0.07);
  --teak: #9b5a2c;
  --teak-deep: #6e3b1c;
  --wenge: #2e1c12;
  --wenge-soft: #46301f;
  --light: #f2c46f;
  --light-glow: rgba(255, 214, 140, 0.9);

  /* Text */
  --ink: #2a1a10;
  --ink-2: #5e4a3b;
  --on-dark: #f4f1ea;
  --on-dark-2: #efe3d3;

  /* Type */
  --font-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lede: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --step-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --step-title: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem);
  --step-display: clamp(2.35rem, 1.5rem + 3.6vw, 4.75rem);

  /* Space */
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --frame: clamp(9px, 0.5rem + 0.35vw, 14px);
  --radius: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--teak) var(--lacquer-well);
}

body {
  margin: 0;
  background: var(--lacquer);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teak); color: var(--lacquer); }

img, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure, address { margin: 0; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }

a {
  color: var(--teak-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--wenge); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--teak);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--wenge); color: var(--on-dark);
  padding: 0.75rem 1rem;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Type ---------- */

.display,
.title,
.wordmark__name,
.fact__big,
.status__state,
.cert__year,
.steps h3,
.tests dt,
.address__name,
.emergency__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.display {
  font-size: var(--step-display);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* The hero headline is a full phrase, so it runs a step smaller than the old two-word line */
.hero .display { font-size: clamp(2.35rem, 1.4rem + 2.6vw, 3.9rem); }

.title {
  font-size: var(--step-title);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.lede {
  font-size: var(--step-lede);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.small { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Materials ---------- */

/* White lacquer wall: panel seams like the clinic's wall panelling */
.wall {
  --seam-x: calc(50% - min(50%, 680px) + var(--gutter) / 2);
  background-color: var(--lacquer);
  background-image:
    linear-gradient(90deg, var(--seam), rgba(255, 255, 255, 0.9)),
    linear-gradient(90deg, var(--seam), rgba(255, 255, 255, 0.9));
  background-size: 2px 100%;
  background-repeat: no-repeat;
  background-position: var(--seam-x) 0, calc(100% - (50% - min(50%, 680px) + var(--gutter) / 2)) 0;
}
@media (min-width: 1101px) {
  .wall--split {
    background-image:
      linear-gradient(90deg, var(--seam), rgba(255, 255, 255, 0.9)),
      linear-gradient(90deg, var(--seam), rgba(255, 255, 255, 0.9)),
      linear-gradient(90deg, var(--seam), rgba(255, 255, 255, 0.9));
    background-position: var(--seam-x) 0, calc(100% - (50% - min(50%, 680px) + var(--gutter) / 2)) 0, 50% 0;
  }
}

/* Teak veneer, taken from the clinic's own door */
.veneer {
  background-color: #6c4528;
  background-image: url("../assets/img/teak.webp");
  background-size: 232px auto;
  color: var(--on-dark);
  text-shadow: 0 1px 2px rgba(40, 20, 6, 0.35);
}
.veneer .mat { text-shadow: none; }

/* A niche: a teak frame around a recessed lacquer well, with a downlight */
.niche {
  position: relative;
  display: block;
  padding: var(--frame);
  background: var(--teak) url("../assets/img/teak.webp") center / 232px auto;
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 28px -16px rgba(46, 28, 18, 0.45),
    0 2px 4px rgba(46, 28, 18, 0.12);
  color: var(--ink);
  text-decoration: none;
}

.niche__well {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--lacquer-well);
  box-shadow:
    inset 0 16px 18px -12px rgba(46, 28, 18, 0.45),
    inset 12px 0 14px -14px rgba(46, 28, 18, 0.4),
    inset -12px 0 14px -14px rgba(46, 28, 18, 0.4),
    inset 0 -2px 3px rgba(46, 28, 18, 0.12);
  transition: background-color 1.2s var(--ease-out);
}

/* The downlight's pool of light, and the light fitting itself */
.niche__well::before,
.niche__well::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 180ms);
}
.niche__well::before {
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% -6%, rgba(255, 226, 168, 0.95), rgba(242, 196, 111, 0.42) 42%, rgba(242, 196, 111, 0) 78%);
  mix-blend-mode: soft-light;
}
.niche__well::after {
  top: 0; left: 50%;
  width: 34px; height: 4px;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  background: #fff4dc;
  box-shadow: 0 0 14px 4px var(--light-glow), 0 0 40px 10px rgba(242, 196, 111, 0.45);
}

/* Text niches get a warmer well when lit, not just an overlay */
.niche.is-lit .niche__well::before,
.niche.is-lit .niche__well::after { opacity: 1; }

.niche--fact.is-lit .niche__well,
.niche--status.is-lit .niche__well,
.niche--cert.is-lit .niche__well { background-color: #f1e3c9; }
.niche--fact .niche__well::before,
.niche--status .niche__well::before,
.niche--cert .niche__well::before { mix-blend-mode: normal; opacity: 0; }
.niche--fact.is-lit .niche__well::before,
.niche--status.is-lit .niche__well::before,
.niche--cert.is-lit .niche__well::before { opacity: 0.55; }

/* On photographs the light needs to add, not just tint */
.niche--portrait .niche__well::before,
.niche--photo .niche__well::before,
.niche--sign .niche__well::before {
  mix-blend-mode: screen;
  background: radial-gradient(55% 50% at 50% -4%, rgba(255, 210, 140, 0.62), rgba(242, 180, 90, 0.2) 50%, rgba(242, 180, 90, 0) 80%);
}

.niche img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No JS: every niche is lit, nothing waits on a script */
html:not(.js) .niche .niche__well::before,
html:not(.js) .niche .niche__well::after { opacity: 1; }

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn--call {
  background: var(--wenge);
  color: var(--on-dark);
  box-shadow: 0 10px 20px -12px rgba(46, 28, 18, 0.8);
}
.btn--call .icon { color: #e8dccb; }
.btn--call:hover { background: var(--teak-deep); color: #fff; }

.btn--quiet {
  background: transparent;
  color: var(--wenge);
  box-shadow: inset 0 0 0 1.5px rgba(46, 28, 18, 0.35);
}
.btn--quiet:hover { color: var(--wenge); box-shadow: inset 0 0 0 1.5px var(--wenge); background: rgba(255, 255, 255, 0.6); }

.btn--whatsapp {
  background: #0b7a4f; /* white on this green is 5.4:1 */
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(11, 122, 79, 0.8);
}
.btn--whatsapp .icon { color: #fff; }
.btn--whatsapp:hover { background: #086341; color: #fff; }
.btn--whatsapp:active { background: #065233; }

.btn--light { background: var(--lacquer); color: var(--wenge); }
.btn--light:hover { background: #fff; color: var(--wenge); }
.btn--outline-light { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(244, 241, 234, 0.5); }
.btn--outline-light:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--on-dark); }

.btn--small { min-height: 2.75rem; padding: 0.55rem 1rem; font-size: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 241, 0.96);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(244, 244, 241, 0.88); backdrop-filter: saturate(1.2) blur(12px); }
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* The crown moulding along the top of the clinic's walls */
.cornice {
  height: 9px;
  background:
    linear-gradient(#fff, #fff) top / 100% 2px no-repeat,
    linear-gradient(rgba(46, 28, 18, 0.12), rgba(46, 28, 18, 0.12)) 0 3px / 100% 1px no-repeat,
    linear-gradient(#fbfbf9, #e7e4de);
  box-shadow: 0 6px 12px -8px rgba(46, 28, 18, 0.35);
}

.wordmark {
  display: flex;
  flex-direction: column;
  color: var(--wenge);
  text-decoration: none;
  line-height: 1.1;
  margin-right: auto;
}
.wordmark:hover { color: var(--wenge); }
.wordmark__name { font-size: 1.5rem; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark__sub { font-size: 0.875rem; color: var(--ink-2); margin-top: 0.15rem; }

.site-nav ul {
  display: flex;
  gap: clamp(0.9rem, 1.8vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  padding-block: 0.5rem;
  background: linear-gradient(var(--teak), var(--teak)) left calc(100% - 2px) / 0 1.5px no-repeat;
  transition: background-size 0.35s var(--ease-out);
}
.site-nav a:hover { background-size: 100% 1.5px; color: var(--wenge); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--wenge);
  box-shadow: inset 0 0 0 1.5px rgba(46, 28, 18, 0.3);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 1rem + 5vw, 6rem) clamp(4rem, 2rem + 6vw, 8rem); }

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.hero__copy { grid-column: 1 / span 6; display: grid; gap: 1.75rem; padding-right: clamp(0rem, 2vw, 2rem); }
.nowrap { white-space: nowrap; }
.hero__doctor {
  margin-top: -0.75rem;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--teak-deep);
  text-wrap: balance;
  width: fit-content;
  padding: 0.2em 0.6em;
  background: linear-gradient(transparent 0, rgba(230, 180, 70, 0.38) 0);
  border-left: 3px solid var(--teak-deep);
  border-radius: 2px;
}
.hero__note { font-size: 0.9375rem; color: var(--ink-2); }
.hero__note-link {
  color: var(--teak-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.hero__note-link:hover { color: var(--wenge); text-decoration-thickness: 2px; }

.niche-wall {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}
.niche-wall .niche--portrait { grid-column: 1; grid-row: 1 / span 2; min-height: 19rem; }
.niche--portrait img { position: absolute; inset: 0; object-position: 50% 35%; }
.niche-wall .niche--fact { grid-column: 2; grid-row: 1; }
.niche-wall .niche--status { grid-column: 2; grid-row: 2; }
.niche-wall .niche--photo { grid-column: 1 / -1; grid-row: 3; aspect-ratio: 2.6 / 1; }
.niche-wall .niche--photo img { object-position: 50% 60%; }

.fact, .status {
  display: grid;
  gap: 0.4rem;
  padding: clamp(1.1rem, 1.6vw, 1.5rem);
  padding-top: clamp(1.4rem, 2vw, 1.9rem);
}
.fact__big { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.1; color: var(--wenge); }
.fact__small { font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }

.status__state {
  white-space: nowrap;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.05;
  color: var(--wenge);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.status__state::before {
  content: "";
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: #b9ada0;
  flex: none;
  transition: background-color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.niche--status.is-open .status__state::before {
  background: #e3a33b;
  box-shadow: 0 0 0 4px rgba(242, 196, 111, 0.35);
}
.status__detail { font-size: 0.9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
a.niche--status:hover .status__detail { color: var(--wenge); text-decoration: underline; text-underline-offset: 0.2em; }

/* A closed clinic is a niche with its light off */
.niche--status.is-closed .niche__well { background-color: var(--lacquer-shade); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }

/* Doctor */
.doctor { border-top: 1px solid rgba(46, 28, 18, 0.08); }
.doctor__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.doctor__copy { grid-column: 1 / span 5; display: grid; gap: 1.25rem; max-width: 36em; }
.doctor__copy .title { margin-bottom: 0.75rem; }
.degrees {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(46, 28, 18, 0.15);
  font-weight: 600;
  color: var(--teak-deep);
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.degrees__fellow {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  overflow-wrap: break-word;
}
.doctor__reg { font-size: 0.9375rem; color: var(--ink-2); }
.doctor__reg strong { color: var(--wenge); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.certificates {
  grid-column: 7 / -1;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
  margin-top: clamp(0rem, 3vw, 3.5rem);
}
.niche--cert { aspect-ratio: 3 / 3.6; }
.niche--cert .niche__well { container-type: inline-size; }
.niche--cert-wide { grid-column: 1 / -1; aspect-ratio: auto; }

/* A certificate: paper in a thin frame, standing in the niche */
.cert {
  position: absolute;
  inset: 16% 13% 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(0.75rem, 1.2vw, 1.1rem);
  background: #fbfaf7;
  border: 1px solid rgba(46, 28, 18, 0.12);
  box-shadow:
    0 0 0 4px #3b2a20,
    0 10px 16px -6px rgba(46, 28, 18, 0.45);
}
.cert__year {
  font-size: min(3rem, 25cqi);
  line-height: 0.9;
  color: var(--wenge);
  font-variant-numeric: lining-nums;
}
.cert__what { font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1rem); font-weight: 600; line-height: 1.3; color: var(--ink); }
.cert--wide {
  position: relative;
  inset: auto;
  margin: clamp(1.5rem, 2.4vw, 2.25rem) clamp(1rem, 4vw, 3rem) clamp(1rem, 1.6vw, 1.5rem);
  gap: 0.35rem;
}
.cert--wide .cert__what { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); line-height: 1.15; color: var(--wenge); }
.cert__where { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }

/* Clinic + tests, on the veneer */
.clinic__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.clinic__head .title { grid-column: 1 / span 6; color: #fff8ee; }
.clinic__head p { grid-column: 8 / -1; color: var(--on-dark-2); font-size: var(--step-lede); line-height: 1.55; }

.clinic__photos {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: end;
}

/* Lacquer mats cut into the veneer, like the niche wells in reverse */
.mat {
  padding: clamp(8px, 0.9vw, 14px);
  background: var(--lacquer);
  border-radius: var(--radius);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.7);
}
.mat img { width: 100%; height: auto; }
.mat figcaption {
  padding: 0.85rem 0.25rem 0.2rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.mat--small { margin-bottom: clamp(0rem, 6vw, 5rem); }

.tests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3.5rem, 6vw, 6rem);
  border-top: 1px solid rgba(244, 241, 234, 0.28);
}
.test {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.28);
}
.tests dt { font-size: var(--step-h3); line-height: 1.15; color: #fff8ee; }
.tests dd { color: var(--on-dark-2); }
.clinic__note { margin-top: 2rem; color: var(--on-dark-2); font-size: 0.9375rem; }

/* Conditions: each symptom stands in its own lit niche on the wall */
.conditions__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem clamp(1.5rem, 3vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 4rem);
}
.conditions__head .title { grid-column: 1 / -1; }
.conditions__intro { grid-column: 1 / -1; font-size: var(--step-lede); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
@media (min-width: 900px) {
  .conditions__head .title { grid-column: 1 / span 6; }
  .conditions__intro { grid-column: 8 / -1; }
}

.symptoms {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 1.8vw, 1.75rem);
}
@media (min-width: 640px) { .symptoms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .symptoms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.niche--symptom.is-lit .niche__well { background-color: #f1e3c9; }
.niche--symptom .niche__well::before { mix-blend-mode: normal; opacity: 0; }
.niche--symptom.is-lit .niche__well::before { opacity: 0.55; }

.symptom {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: clamp(1.75rem, 2.4vw, 2.25rem) clamp(1.25rem, 2vw, 1.75rem) clamp(1.35rem, 2vw, 1.75rem);
}
.symptom__icon {
  width: 2.75rem; height: 2.75rem;
  margin-bottom: 0.4rem;
  stroke-width: 1.5;
  color: var(--teak-deep);
}
.symptom h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3125rem, 1.15rem + 0.5vw, 1.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--wenge);
  text-wrap: balance;
}
.symptom p { font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); }

/* The safety note: a dark lacquer plaque, like the clinic's signage */
.conditions__alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
  padding: 1.25rem clamp(1.25rem, 2.5vw, 2rem);
  background: var(--wenge);
  color: var(--on-dark-2);
  border-radius: var(--radius);
  box-shadow: 0 14px 28px -16px rgba(46, 28, 18, 0.55), 0 2px 4px rgba(46, 28, 18, 0.12);
  font-size: var(--step-body);
  line-height: 1.5;
}
.conditions__alert-icon { width: 2rem; height: 2rem; stroke-width: 1.6; color: var(--light); }
.conditions__alert strong { color: #fff8ee; font-weight: 650; }
.conditions__alert a { color: var(--light); font-weight: 600; }
.conditions__alert a:hover { color: #fff8ee; }
.conditions__alert a:focus-visible { outline-color: var(--light); }

/* Visit */
.visit__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.visit__grid > div { grid-column: 1 / span 7; }
.visit .title { margin-bottom: clamp(2rem, 3vw, 3rem); }

.steps { list-style: none; padding: 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  column-gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgba(46, 28, 18, 0.14);
}
.step:last-child { border-bottom: 1px solid rgba(46, 28, 18, 0.14); }
.step::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 0.9;
  color: var(--teak);
}
.steps h3 { font-size: var(--step-h3); line-height: 1.2; margin-bottom: 0.5rem; color: var(--wenge); }
.steps p, .steps ul { color: var(--ink-2); max-width: 36em; }

.ticks { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.ticks li { position: relative; padding-left: 1.4rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.72em;
  width: 0.6rem; height: 1.5px;
  background: var(--teak);
}

.niche--sign {
  grid-column: 9 / -1;
  position: sticky;
  top: calc(var(--header-h) + 3rem);
  margin-top: clamp(0rem, 8vw, 8rem);
}
.niche--sign .niche__well { aspect-ratio: 600 / 655; }
.niche--sign figcaption {
  padding: 0.85rem 0.15rem 0.1rem;
  font-size: 0.9375rem;
  color: var(--on-dark);
}

/* Emergency */
.emergency {
  background: var(--wenge);
  color: var(--on-dark-2);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.emergency__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.emergency__title {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  line-height: 1.1;
  color: #fff8ee;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
.emergency p { max-width: 40em; }
.emergency__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hours + location */
.hours__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.hours__time { grid-column: 1 / span 5; display: grid; gap: 1.75rem; }
.hours__place { grid-column: 7 / -1; display: grid; gap: 1.25rem; padding-top: clamp(0rem, 1vw, 1rem); }

.niche--status-large .status { padding: clamp(1.4rem, 2.4vw, 2.25rem); padding-top: clamp(1.8rem, 3vw, 2.75rem); }
.niche--status-large .status__state { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
.niche--status-large .status__detail { font-size: 1rem; }

.timetable {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.timetable th, .timetable td {
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid rgba(46, 28, 18, 0.12);
  text-align: left;
  font-weight: 400;
}
.timetable td { text-align: right; color: var(--ink-2); }
.timetable tr.is-today th,
.timetable tr.is-today td { color: var(--wenge); font-weight: 650; }
.timetable tr.is-today th::after {
  content: "Today";
  margin-left: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius);
  background: rgba(242, 196, 111, 0.45);
  font-size: 0.8125rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

.address { font-size: var(--step-lede); line-height: 1.5; color: var(--ink); }
.address__name { display: block; font-size: var(--step-h3); color: var(--wenge); margin-bottom: 0.4rem; }

.niche--map { margin-top: 1rem; }
.niche--map .niche__well { aspect-ratio: 16 / 10; }
.niche--map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.75) contrast(1.02); }
.niche--map .niche__well::before { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--wenge);
  color: var(--on-dark-2);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(2rem, 3vw, 3rem);
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  font-size: 1rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.footer__brand .wordmark__name { color: #fff8ee; font-size: 1.75rem; margin-bottom: 0.5rem; }
.footer__h {
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  color: #fff8ee;
  margin-bottom: 0.5rem;
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.footer__legal {
  grid-column: 1 / -1;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 241, 234, 0.14);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #bfae9c;
}
.footer__legal p { max-width: 70em; }

/* ---------- Mobile action bar ---------- */

.action-bar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero__copy { grid-column: 1 / -1; max-width: 40rem; }
  .niche-wall { grid-column: 1 / -1; }
  .doctor__copy, .certificates { grid-column: 1 / -1; }
  .certificates { margin-top: 0; }
  .clinic__head .title, .clinic__head p { grid-column: 1 / -1; }
  .hours__time, .hours__place { grid-column: 1 / -1; }
  .visit__grid > div { grid-column: 1 / span 7; }
  .niche--sign { grid-column: 8 / -1; }
}

/* Five nav items: collapse to the menu button before they can crowd the bar */
@media (min-width: 1021px) and (max-width: 1239px) {
  .site-nav a { font-size: 0.9375rem; }
  .site-header__bar { gap: 1rem; }
  .site-header__call .call-num { display: none; }
}
@media (max-width: 1020px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--lacquer);
    border-bottom: 1px solid rgba(46, 28, 18, 0.12);
    box-shadow: 0 18px 30px -20px rgba(46, 28, 18, 0.5);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; }
  .site-nav a { display: block; padding: 0.95rem 0; font-size: 1.125rem; white-space: normal; border-bottom: 1px solid rgba(46, 28, 18, 0.08); background: none; }
  .menu-btn { display: inline-flex; }
  .site-header__bar { gap: 0.75rem; }
  .site-header__call .call-num { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .hero__grid, .doctor__grid, .clinic__head, .visit__grid, .hours__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid > *, .doctor__grid > *, .clinic__head > *, .visit__grid > *, .hours__grid > * { grid-column: 1 / -1 !important; }
  .niche-wall { margin-top: 1rem; }

  .clinic__photos { grid-template-columns: 1fr; }
  .mat--small { margin-bottom: 0; width: 88%; margin-left: auto; }
  .tests { grid-template-columns: 1fr; }
  .visit__grid > div, .niche--sign { grid-column: 1 / -1; }
  .niche--sign { position: relative; top: auto; margin-top: 0; max-width: 26rem; }
  .emergency__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .action-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(244, 244, 241, 0.96);
    border-top: 1px solid rgba(46, 28, 18, 0.12);
    box-shadow: 0 -10px 24px -16px rgba(46, 28, 18, 0.45);
  }
  /* Three buttons: icon above a short label so nothing overflows at 320px */
  .action-bar .btn {
    flex-direction: column;
    gap: 0.2rem;
    min-height: 3.5rem;
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
    line-height: 1.15;
    text-align: center;
    min-width: 0;
  }
  .action-bar .btn span { overflow-wrap: anywhere; }
  .action-bar .btn--quiet { background: var(--lacquer); }
  .site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }

  /* The fixed action bar carries Call and Directions, so they appear once */
  .site-header__call, .hero .actions { display: none; }
  .hero__copy { display: contents; }
  .hero .display { order: 1; }
  .hero .hero__doctor { order: 1; margin-top: 0; }
  .hero .niche-wall { order: 2; margin-top: 0; }
  .hero .lede { order: 3; }
  .hero__note { order: 4; }
  .hero__grid { gap: 1.5rem; }
}

@media (min-width: 480px) and (max-width: 900px) {
  .action-bar .btn { flex-direction: row; gap: 0.5rem; font-size: 1rem; padding-inline: 0.75rem; }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .wordmark__name { font-size: 1.3rem; }
  .wordmark__sub { font-size: 0.8125rem; }
  .site-header__bar { gap: 0.6rem; }
  .site-header__call { padding-inline: 0.9rem; }

  .niche-wall { grid-template-columns: 1fr 1fr; }
  .niche-wall .niche--portrait { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 4 / 5; }
  .niche-wall .niche--status { grid-column: 2; grid-row: 1; }
  .niche-wall .niche--status .niche__well { display: flex; align-items: center; }
  .niche-wall .niche--photo { aspect-ratio: 2.2 / 1; }
  .niche-wall .niche--fact { grid-column: 1 / -1; grid-row: 2; }
  .niche-wall .niche--photo { grid-column: 1 / -1; grid-row: 3; }
  .fact, .status { padding: 0.9rem 0.8rem; padding-top: 1.2rem; }
  .fact__big { font-size: 1.1875rem; }
  .fact__small, .status__detail { font-size: 0.8125rem; line-height: 1.4; }
  .status__state { font-size: 1.1875rem; gap: 0.4rem; }

  .actions .btn { flex: 1 1 100%; }
  .certificates { gap: 0.6rem; }
  .niche--cert:not(.niche--cert-wide) { aspect-ratio: 3 / 4; }
  .cert { inset: 13% 6% 6%; padding: 0.5rem 0.45rem; }
  .cert__what { font-size: 0.75rem; }
  .cert--wide { inset: auto; margin: 1.4rem 0.6rem 0.6rem; }

  .test { grid-template-columns: 1fr; gap: 0.5rem; padding-block: 1.4rem; }
  .step { grid-template-columns: 3rem 1fr; }
  .step::before { font-size: 2.25rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .timetable tr.is-today th::after { margin-left: 0.4rem; }
}

@media (max-width: 380px) {
  .wordmark__name { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation: none !important;
  }
}

@media print {
  .site-header, .action-bar, .niche--map, .emergency__actions { display: none; }
  .veneer, .emergency, .site-footer { background: none; color: #000; }
}
