/* =========================================================================
   Calderwell Health — Multispecialty Clinic, Mumbai
   Design world: "The Directory" — calm institutional wayfinding.
   Deep teal ink + warm paper, mint accent used with restraint,
   department wing-codes as meaningful structure.
   Hand-written, no framework.
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --ink:        #0E2A33;   /* deep teal, near-black ground + body text     */
  --ink-2:      #163a45;   /* raised teal surfaces                          */
  --ink-3:      #0a2027;   /* deepest teal (footer)                         */
  --mint:       #37B5A6;   /* brand accent, used sparingly                  */
  --mint-deep:  #1f8577;   /* accent text on light (AA on paper)            */
  --mint-soft:  #d7ece7;   /* faint mint wash                               */
  --paper:      #F7F5EF;   /* warm off-white — human, not clinical          */
  --paper-2:    #FFFFFF;   /* cards                                          */
  --linen:      #EEE9DD;   /* warm neutral band                             */
  --sand:       #E4DCCB;   /* warm hairline / chip on paper                 */

  --line:       rgba(14, 42, 51, 0.12);
  --line-soft:  rgba(14, 42, 51, 0.07);
  --line-onink: rgba(215, 236, 231, 0.16);

  --ink-70:     rgba(14, 42, 51, 0.70);
  --ink-55:     rgba(14, 42, 51, 0.55);
  --paper-70:   rgba(247, 245, 239, 0.72);
  --paper-55:   rgba(247, 245, 239, 0.55);

  --shadow-sm:  0 1px 0 var(--line), 0 2px 8px rgba(14,42,51,.05);
  --shadow-md:  0 18px 44px -22px rgba(14,42,51,.35), 0 2px 8px rgba(14,42,51,.06);
  --shadow-lg:  0 40px 80px -36px rgba(10,32,39,.55);

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(16px, 0.5vw + 15px, 18px);
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Utilities --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 10px; z-index: 200;
  transition: top .18s var(--ease);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-deep);
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6;
}
.eyebrow.is-plain::before { display: none; }

.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { max-width: 62ch; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 0.5em;
  text-wrap: balance;
}
.section-head p { margin-top: 1rem; color: var(--ink-70); font-size: 1.06rem; max-width: 54ch; }

.code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  --bg: var(--mint); --fg: var(--ink); --bd: var(--mint);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd);
  padding: 0.82em 1.4em;
  border-radius: 999px;
  font-weight: 640;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(14,42,51,.5); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { --bd: var(--ink); background: rgba(14,42,51,.04); }
.btn--dark  { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--onink { --bg: var(--mint); --fg: var(--ink); --bd: var(--mint); }
.btn--onink-ghost { --bg: transparent; --fg: var(--paper); --bd: var(--line-onink); }
.btn--onink-ghost:hover { --bd: var(--paper); background: rgba(247,245,239,.06); }
.btn--sm { padding: 0.62em 1.05em; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck {
  border-color: var(--line);
  box-shadow: 0 1px 20px -8px rgba(14,42,51,.2);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  height: 74px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.66rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); display: grid; place-items: center;
  flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.brand .mark svg { width: 20px; height: 20px; display: block; }
.brand .sub {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-55); font-weight: 500;
  display: block; margin-top: 2px;
}
.brand b { display: block; line-height: 1; }

.nav-links {
  display: flex; align-items: center; gap: 1.6rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.96rem; font-weight: 520; color: var(--ink-70);
  position: relative; padding: 4px 0;
  transition: color .18s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--mint); border-radius: 2px;
  transition: right .28s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 0.85rem; margin-left: 1.7rem; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500;
  color: var(--ink); letter-spacing: 0.01em;
}
.nav-phone svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper-2);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .28s var(--ease), opacity .2s var(--ease);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 52px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
  padding-block: clamp(30px, 5vw, 64px);
}
.hero-copy { max-width: 40ch; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  margin-top: 1.1rem;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--mint-deep); }
.hero-lede {
  margin-top: 1.35rem; font-size: 1.12rem; color: var(--ink-70);
  max-width: 42ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem; }

.hero-strip {
  display: flex; flex-wrap: wrap; gap: 0 1.9rem; margin-top: 2.1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.hero-strip .stat { display: flex; flex-direction: column; gap: 2px; }
.hero-strip .stat b {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em;
}
.hero-strip .stat span {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-55);
}

/* hero visual + directory board (signature) */
.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 4.4;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,42,51,0) 40%, rgba(14,42,51,.28) 100%);
}

.directory {
  position: absolute; left: -18px; bottom: -22px; z-index: 3;
  width: min(340px, 82%);
  background: var(--ink); color: var(--paper);
  border-radius: 16px; padding: 16px 18px 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
}
.directory-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line-onink);
}
.directory-top .lbl {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper-55);
}
.status-pill {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  font-weight: 600; text-transform: uppercase;
  background: rgba(55,181,166,.16); color: var(--mint);
  padding: 5px 9px; border-radius: 999px;
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(55,181,166,.6);
  animation: pulse 2.4s var(--ease) infinite;
}
.status-pill.is-closed { background: rgba(228,220,203,.14); color: var(--sand); }
.status-pill.is-closed .dot { background: var(--sand); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(55,181,166,.55); }
  70% { box-shadow: 0 0 0 8px rgba(55,181,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(55,181,166,0); }
}
@media (prefers-reduced-motion: reduce) { .status-pill .dot { animation: none; } }

.directory-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  gap: 10px; padding: 5px 0;
  font-size: 0.82rem;
}
.directory-row .rc {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.05em;
  color: var(--mint); font-weight: 600; width: 40px;
}
.directory-row .rn { color: var(--paper); font-weight: 500; }
.directory-row .rw {
  font-family: var(--font-mono); font-size: 0.64rem; color: var(--paper-55);
  letter-spacing: 0.03em; white-space: nowrap;
}

/* ---- Promise strip ----------------------------------------------------- */
.promise { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.promise .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding-block: 0;
}
.promise-item {
  padding: clamp(26px, 3vw, 40px) clamp(18px, 2vw, 30px);
  border-right: 1px solid var(--line-soft);
}
.promise-item:last-child { border-right: none; }
.promise-item .code { color: var(--mint-deep); display: block; margin-bottom: 0.7rem; }
.promise-item h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.16rem;
  letter-spacing: -0.01em; margin-bottom: 0.35rem;
}
.promise-item p { font-size: 0.92rem; color: var(--ink-70); line-height: 1.5; }

/* ---- Specialties directory --------------------------------------------- */
.specialties { background: var(--paper); }
.dir-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 2.6rem;
}
.dir-legend {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-55);
  letter-spacing: 0.04em; display: flex; gap: 1.2rem; flex-wrap: wrap;
  padding-bottom: 6px;
}
.dir-legend b { color: var(--mint-deep); font-weight: 600; }

.dept-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dept {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 20px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  overflow: hidden;
}
.dept::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--mint); transform: scaleY(0); transform-origin: top;
  transition: transform .34s var(--ease);
}
.dept:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.dept:hover::before { transform: scaleY(1); }
.dept-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.05rem; }
.dept-code {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--mint-deep); background: var(--mint-soft);
  padding: 5px 9px; border-radius: 7px;
}
.dept-wing {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-55);
  letter-spacing: 0.04em; text-align: right;
}
.dept-icon { width: 26px; height: 26px; color: var(--ink); opacity: .85; }
.dept h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.24rem;
  letter-spacing: -0.015em; margin-bottom: 0.4rem;
}
.dept p { font-size: 0.92rem; color: var(--ink-70); line-height: 1.5; }
.dept-foot {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--ink-55);
  display: flex; align-items: center; gap: 0.5em;
}

.dir-note {
  margin-top: 2rem; font-size: 0.92rem; color: var(--ink-70);
  display: flex; align-items: center; gap: 0.6em; flex-wrap: wrap;
}
.dir-note .code { color: var(--mint-deep); }

/* ---- Doctors ----------------------------------------------------------- */
.doctors { background: var(--linen); border-top: 1px solid var(--line); }
.doc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 2.8rem;
}
.doc {
  background: var(--paper-2); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc-photo { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--ink-2); }
.doc-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  filter: saturate(.92) contrast(1.02);
  transition: transform .6s var(--ease);
}
.doc:hover .doc-photo img { transform: scale(1.04); }
.doc-photo .tag {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: var(--mint); padding: 5px 9px; border-radius: 7px;
  backdrop-filter: blur(4px);
}
.doc-body { padding: 18px 20px 22px; }
.doc-body h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  letter-spacing: -0.015em;
}
.doc-body .role { font-size: 0.9rem; color: var(--mint-deep); font-weight: 600; margin-top: 2px; }
.doc-body p { font-size: 0.9rem; color: var(--ink-70); margin-top: 0.7rem; line-height: 1.5; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.doc-tags span {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.03em;
  color: var(--ink-70); border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 7px;
}
.doc-disclaimer {
  margin-top: 2rem; font-size: 0.82rem; color: var(--ink-55);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}

/* ---- Care band --------------------------------------------------------- */
.care { position: relative; color: var(--paper); overflow: hidden; background: var(--ink); }
.care-media { position: absolute; inset: 0; }
.care-media img { width: 100%; height: 100%; object-fit: cover; }
.care-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,32,39,.94) 0%, rgba(10,32,39,.82) 42%, rgba(10,32,39,.35) 100%);
}
.care .wrap { position: relative; z-index: 2; }
.care-inner { max-width: 46ch; padding-block: clamp(72px, 10vw, 132px); }
.care blockquote {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.55rem, 3.2vw, 2.5rem); line-height: 1.16;
  letter-spacing: -0.02em; margin: 1.2rem 0 0; text-wrap: balance;
}
.care blockquote span { color: var(--mint); }
.care cite {
  display: block; margin-top: 1.6rem; font-style: normal;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--paper-70);
}
.care .eyebrow { color: var(--mint); }

/* ---- Patient info ------------------------------------------------------ */
.patient { background: var(--paper); }
.info-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px);
  margin-top: 2.8rem; align-items: start;
}
.panel {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
}
.panel + .panel { margin-top: 20px; }
.panel h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  letter-spacing: -0.015em; margin-bottom: 0.3rem;
  display: flex; align-items: center; gap: 0.55em;
}
.panel h3 .code { color: var(--mint-deep); font-weight: 600; }
.panel > p.sub { color: var(--ink-70); font-size: 0.94rem; margin-bottom: 1.3rem; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.hours th { font-weight: 600; color: var(--ink); }
.hours td { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink-70); text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: none; }
.hours tr.is-today th { color: var(--mint-deep); }
.hours tr.is-today td { color: var(--mint-deep); font-weight: 600; }

.checklist { display: grid; gap: 0.7rem; }
.checklist li {
  display: flex; gap: 0.7em; align-items: flex-start;
  font-size: 0.95rem; color: var(--ink-70);
}
.checklist li svg { width: 18px; height: 18px; flex: none; color: var(--mint-deep); margin-top: 3px; }
.checklist li b { color: var(--ink); font-weight: 600; }

.find address { font-style: normal; color: var(--ink-70); line-height: 1.7; font-size: 0.98rem; }
.find address b { color: var(--ink); font-weight: 600; }
.find-map {
  margin-top: 1.2rem; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); position: relative; aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 62% 42%, rgba(55,181,166,.28), transparent 42%),
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 34px),
    var(--mint-soft);
}
.find-map .pin {
  position: absolute; left: 62%; top: 42%; transform: translate(-50%, -100%);
  color: var(--ink); display: grid; place-items: center;
}
.find-map .pin svg { width: 30px; height: 30px; filter: drop-shadow(0 4px 6px rgba(14,42,51,.3)); }
.find-map .road {
  position: absolute; left: 0; right: 0; top: 58%; height: 12px;
  background: rgba(14,42,51,.10); transform: rotate(-4deg);
}
.find-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }

.emergency {
  margin-top: 20px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: 22px 24px;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.emergency .ico {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: rgba(55,181,166,.18); color: var(--mint);
  display: grid; place-items: center;
}
.emergency .ico svg { width: 22px; height: 22px; }
.emergency .txt { flex: 1 1 200px; }
.emergency .txt b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.emergency .txt span { font-size: 0.86rem; color: var(--paper-70); }
.emergency a.line {
  font-family: var(--font-mono); font-weight: 600; color: var(--mint);
  font-size: 1.05rem; letter-spacing: 0.02em; white-space: nowrap;
}

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(55,181,166,.20), transparent 70%),
    repeating-linear-gradient(90deg, rgba(215,236,231,.05) 0 1px, transparent 1px 46px);
  opacity: .9;
}
.cta-band .wrap { position: relative; z-index: 2; text-align: center; }
.cta-band h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.025em;
  max-width: 18ch; margin-inline: auto; text-wrap: balance;
}
.cta-band p { color: var(--paper-70); margin-top: 1.1rem; max-width: 48ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 2rem; }
.cta-meta {
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-onink);
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; justify-content: center;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--paper-70);
}
.cta-meta b { color: var(--paper); }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink-3); color: var(--paper-70); }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem;
  padding-block: clamp(48px, 6vw, 76px);
}
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand .mark { background: rgba(55,181,166,.16); }
.footer-brand p { margin-top: 1.1rem; font-size: 0.92rem; max-width: 34ch; line-height: 1.6; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-onink); color: var(--paper-70);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { color: var(--mint); border-color: var(--mint); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper-55); margin-bottom: 1.1rem; font-weight: 500;
}
.footer-col ul { display: grid; gap: 0.66rem; }
.footer-col a, .footer-col li { font-size: 0.92rem; }
.footer-col a { color: var(--paper-70); transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--paper); }
.footer-col .mono { font-family: var(--font-mono); font-size: 0.82rem; }

.footer-bottom {
  border-top: 1px solid var(--line-onink);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between;
  font-size: 0.84rem; color: var(--paper-55);
}
.footer-bottom a { color: var(--paper-70); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-onink); }
.footer-bottom a:hover { color: var(--mint); text-decoration-color: var(--mint); }
.footer-credit { display: flex; align-items: center; gap: 0.4em; flex-wrap: wrap; }

/* ---- Reveal animation -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .12s; }
.reveal[data-d="3"] { transition-delay: .18s; }
.reveal[data-d="4"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .dept, .doc, .doc-photo img { transition: none !important; }
}

/* =========================================================================
   Contact / appointment page
   ========================================================================= */
.page-hero {
  background: var(--ink); color: var(--paper); position: relative; overflow: hidden;
  padding-block: clamp(60px, 8vw, 104px) clamp(48px, 6vw, 80px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 340px at 88% -20%, rgba(55,181,166,.22), transparent 68%),
    repeating-linear-gradient(90deg, rgba(215,236,231,.05) 0 1px, transparent 1px 46px);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.0; letter-spacing: -0.03em;
  margin-top: 1rem; max-width: 20ch; text-wrap: balance;
}
.page-hero p { margin-top: 1.1rem; color: var(--paper-70); max-width: 52ch; font-size: 1.06rem; }
.page-hero .eyebrow { color: var(--mint); }
.crumbs { font-family: var(--font-mono); font-size: 0.74rem; color: var(--paper-55); letter-spacing: 0.04em; }
.crumbs a { color: var(--paper-70); } .crumbs a:hover { color: var(--mint); }

.contact-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.form-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-md);
}
.form-card h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em;
}
.form-card > p { color: var(--ink-70); font-size: 0.96rem; margin-top: 0.35rem; margin-bottom: 1.7rem; }

.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label.lbl {
  display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 0.42rem;
  letter-spacing: -0.005em;
}
label.lbl .req { color: var(--mint-deep); }
label.lbl .opt { font-weight: 400; color: var(--ink-55); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; }

.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 11px; padding: 0.78em 0.9em;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-55); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(14,42,51,.28); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(55,181,166,.18); background: var(--paper-2);
}
.textarea { resize: vertical; min-height: 122px; line-height: 1.55; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230E2A33' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95em center;
  padding-right: 2.6em;
}
.hint { font-size: 0.8rem; color: var(--ink-55); margin-top: 0.4rem; }
.form-submit { margin-top: 0.4rem; }
.form-foot { margin-top: 1rem; font-size: 0.82rem; color: var(--ink-55); display: flex; gap: 0.5em; align-items: flex-start; }
.form-foot svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--mint-deep); }

/* contact aside */
.aside-card {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 30px);
}
.aside-card + .aside-card { margin-top: 18px; }
.aside-card.light { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.aside-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.015em;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5em;
}
.contact-line {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-onink);
}
.aside-card.light .contact-line { border-color: var(--line-soft); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ci {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: rgba(55,181,166,.16); color: var(--mint);
}
.aside-card.light .contact-line .ci { background: var(--mint-soft); color: var(--mint-deep); }
.contact-line .ci svg { width: 19px; height: 19px; }
.contact-line .cc small {
  display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--paper-55);
}
.aside-card.light .contact-line .cc small { color: var(--ink-55); }
.contact-line .cc a, .contact-line .cc b { font-weight: 600; font-size: 1rem; }
.contact-line .cc .mono { font-family: var(--font-mono); font-size: 0.92rem; }

.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.55em;
  width: 100%; margin-top: 0.4rem;
  background: #1FAF5C; color: #fff; border: none;
  padding: 0.85em 1.2em; border-radius: 12px; font-weight: 640; font-size: 0.98rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(31,175,92,.6); filter: brightness(1.04); }
.wa-btn svg { width: 20px; height: 20px; }

.hours-mini { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hours-mini th, .hours-mini td { padding: 8px 0; border-bottom: 1px solid var(--line-onink); text-align: left; }
.aside-card.light .hours-mini th, .aside-card.light .hours-mini td { border-color: var(--line-soft); }
.hours-mini td { text-align: right; font-family: var(--font-mono); font-size: 0.82rem; color: var(--paper-70); }
.aside-card.light .hours-mini td { color: var(--ink-70); }
.hours-mini tr:last-child th, .hours-mini tr:last-child td { border-bottom: none; }
.hours-mini tr.is-today th { color: var(--mint); }
.aside-card.light .hours-mini tr.is-today th { color: var(--mint-deep); }
.hours-mini tr.is-today td { color: var(--mint); font-weight: 600; }
.aside-card.light .hours-mini tr.is-today td { color: var(--mint-deep); }

/* =========================================================================
   Thank-you page
   ========================================================================= */
.ty { min-height: 78vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.ty::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 320px at 50% -8%, rgba(55,181,166,.14), transparent 70%),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 52px);
  opacity: .7;
}
.ty .wrap { position: relative; z-index: 2; max-width: 620px; }
.ty-badge {
  width: 78px; height: 78px; border-radius: 22px; margin: 0 auto 1.6rem;
  background: var(--ink); display: grid; place-items: center; color: var(--mint);
  box-shadow: var(--shadow-md);
}
.ty-badge svg { width: 40px; height: 40px; }
.ty-check { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .7s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ty-check { animation: none; stroke-dashoffset: 0; } }
.ty h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -0.03em; line-height: 1.02;
}
.ty p { color: var(--ink-70); font-size: 1.1rem; margin-top: 1.1rem; }
.ty-panel {
  margin-top: 2rem; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; text-align: left;
  display: grid; gap: 0.9rem; box-shadow: var(--shadow-sm);
}
.ty-panel .row { display: flex; align-items: center; gap: 0.8rem; font-size: 0.94rem; color: var(--ink-70); }
.ty-panel .row svg { width: 18px; height: 18px; color: var(--mint-deep); flex: none; }
.ty-panel .row b { color: var(--ink); }
.ty-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }
.ty-urgent { margin-top: 1.8rem; font-size: 0.9rem; color: var(--ink-70); }
.ty-urgent a { color: var(--mint-deep); font-weight: 600; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; }
  .directory { width: min(320px, 74%); }
  .promise .wrap { grid-template-columns: 1fr 1fr; }
  .promise-item:nth-child(2) { border-right: none; }
  .promise-item:nth-child(1), .promise-item:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav[data-open="true"] + .mobile-menu { display: block; }

  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero-strip { gap: 1.2rem 1.6rem; }
  .promise .wrap { grid-template-columns: 1fr; }
  .promise-item { border-right: none !important; border-bottom: 1px solid var(--line-soft); }
  .promise-item:last-child { border-bottom: none; }
  .dept-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; max-width: 420px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .directory { position: relative; left: 0; bottom: 0; width: 100%; margin-top: 14px; }
  .hero-frame { aspect-ratio: 4/3.4; }
  .care-media::after { background: linear-gradient(180deg, rgba(10,32,39,.78), rgba(10,32,39,.9)); }
}

/* ---- Mobile menu ------------------------------------------------------- */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line); background: var(--paper);
  padding: 12px var(--gutter) 22px;
}
.mobile-menu ul { display: grid; gap: 2px; }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-size: 1.05rem; font-weight: 560;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a .code { color: var(--mint-deep); }
.mobile-menu .m-actions { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
@media (min-width: 641px) { .mobile-menu { display: none !important; } }
