﻿/* =========================================================================
   Doctore â€” design system
   -------------------------------------------------------------------------
   1. Tokens          6. Buttons
   2. Reset & base    7. Cards & sections
   3. Typography      8. Header & footer
   4. Layout          9. Forms & wizard
   5. Utilities      10. Motion & print
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  /* ink + neutrals: warm-tinted, so the page feels paper-like not clinical */
  --ink:            #0B1E27;
  --ink-2:          #35505B;
  --ink-3:          #6B808A;
  --line:           #E4DFD4;
  --line-soft:      #EFEBE2;
  --paper:          #FBFAF7;
  --paper-2:        #F4F1EA;
  --white:          #FFFFFF;

  /* primary: deep teal reads clinical without feeling cold */
  --teal-900:       #062430;
  --teal-800:       #0A3341;
  --teal-700:       #0D4756;
  --teal-600:       #106074;
  --teal-500:       #157E94;
  --teal-300:       #8FBECB;
  --teal-100:       #E2EEF1;
  --teal-050:       #F0F7F8;

  /* accent: warm brass against the teal, used only for actions */
  --brass-700:      #9A5F22;
  --brass-600:      #B4762F;
  --brass-500:      #C98B3E;
  --brass-300:      #E6BE8C;
  --brass-100:      #F7EADB;

  /* semantic */
  --danger:         #A6362F;
  --danger-soft:    #FBEDEC;
  --success:        #2E6B4F;
  --success-soft:   #EAF3EE;

  /* type scale â€” modular, 1.25 at small sizes opening to 1.333 */
  /* type: Fraunces for display (34 KB), DM Sans for text (62 KB variable).
     Both self-hosted, latin subset, no render-blocking CDN request. */
  --font-body:      "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display:   "Fraunces", ui-serif, Georgia, "Times New Roman", serif;

  --step--1:        clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:         clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --step-1:         clamp(1.20rem, 1.14rem + 0.28vw, 1.35rem);
  --step-2:         clamp(1.44rem, 1.32rem + 0.55vw, 1.75rem);
  --step-3:         clamp(1.73rem, 1.51rem + 1.00vw, 2.28rem);
  --step-4:         clamp(2.07rem, 1.71rem + 1.70vw, 2.97rem);
  --step-5:         clamp(2.49rem, 1.90rem + 2.75vw, 3.86rem);

  /* spacing: 4px base, fluid section rhythm */
  --gap-1:          0.25rem;
  --gap-2:          0.5rem;
  --gap-3:          0.75rem;
  --gap-4:          1rem;
  --gap-5:          1.5rem;
  --gap-6:          2rem;
  --gap-7:          3rem;
  --gap-8:          4rem;
  --section-y:      clamp(3.5rem, 2.2rem + 5.2vw, 7rem);

  /* shape */
  --r-sm:           6px;
  --r-md:           10px;
  --r-lg:           16px;
  --r-xl:           24px;
  --r-pill:         999px;

  /* elevation: soft, low-contrast, tinted with the ink */
  --sh-1:           0 1px 2px rgba(11, 30, 39, 0.05);
  --sh-2:           0 2px 8px rgba(11, 30, 39, 0.06), 0 1px 2px rgba(11, 30, 39, 0.04);
  --sh-3:           0 12px 28px rgba(11, 30, 39, 0.09), 0 2px 6px rgba(11, 30, 39, 0.04);
  --sh-4:           0 24px 60px rgba(11, 30, 39, 0.13);

  --container:      1200px;
  --measure:        68ch;

  --ease:           cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:            220ms;

  --header-h:       68px;
}

/* --------------------------------------------------------- reset & base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--paper-2); }

a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-600); }

:focus-visible {
  outline: 2.5px solid var(--brass-600);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--teal-100); color: var(--teal-900); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap-7) 0; }

/* ---------------------------------------------------------- typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--teal-900);
  margin: 0 0 var(--gap-4);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--gap-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin: 0 0 var(--gap-3);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}

.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }

/* ------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.6rem + 1.8vw, 2rem);
}

.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--teal-900); color: var(--teal-100); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .eyebrow { color: var(--teal-300); }

.section-head { margin-bottom: var(--gap-7); }
.section-head__title { margin-bottom: var(--gap-4); }
.section-head__aside { color: var(--ink-3); max-width: 46ch; }
.section--ink .section-head__aside { color: var(--teal-300); }

@media (min-width: 62rem) {
  .section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--gap-7);
    align-items: end;
  }
  .section-head--split .section-head__aside { padding-bottom: 0.4rem; }
}

.grid { display: grid; gap: var(--gap-5); }
@media (min-width: 48rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62rem) {
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* ----------------------------------------------------------- utilities */
/* NOTE: .hide-sm / .only-sm are re-declared at the very end of this file.
   They must win over .btn's display:inline-flex, and single-class selectors
   are decided by source order. */

.center { text-align: center; }
.center .lede, .center p { margin-inline: auto; }
.measure { max-width: var(--measure); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gap-4); top: -100px;
  background: var(--teal-900); color: var(--white);
  padding: 0.7rem 1.1rem; border-radius: var(--r-sm); z-index: 200;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--gap-4); color: var(--white); }

/* ------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--teal-700);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
  box-shadow: var(--sh-2);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--sh-3); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-1); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn--accent { --btn-bg: var(--brass-600); }
.btn--accent:hover { --btn-bg: var(--brass-700); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--teal-700); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--white); border-color: var(--teal-300); }
.btn--onink { --btn-bg: var(--white); --btn-fg: var(--teal-900); }
.btn--onink:hover { --btn-bg: var(--teal-050); }
.btn--sm { padding: 0.55rem 1rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--gap-3); }

/* --------------------------------------------------- tags and pills */
.tag {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--teal-050);
  color: var(--teal-700);
  font-size: clamp(0.73rem, 0.70rem + 0.15vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}
.tag--brass { background: var(--brass-100); color: var(--brass-700); }
.tag--outline { background: transparent; border: 1px solid var(--teal-300); color: var(--teal-600); }

/* -------------------------------------------------------------- cards */
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--gap-5);
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card--link:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }

.card__title { font-size: var(--step-1); margin-bottom: var(--gap-2); }
.card__text { color: var(--ink-2); margin: 0; }

.card--photo { padding: 0; overflow: hidden; }
.card--photo .card__body { padding: var(--gap-5); }
.card__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* numbered / feature cards */
.feature { display: grid; gap: var(--gap-3); }
.feature__num {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--brass-500);
  line-height: 1;
}

/* condition card: photo, tag, title, summary */
.cond-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cond-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); color: inherit; }
.cond-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--teal-050); }
.cond-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.cond-card:hover .cond-card__media img { transform: scale(1.04); }
.cond-card__tag { position: absolute; top: 0.7rem; left: 0.7rem; }
.cond-card__body { padding: var(--gap-4) var(--gap-5) var(--gap-5); display: grid; gap: var(--gap-2); align-content: start; }
.cond-card__title { font-size: var(--step-1); margin: 0; }
.cond-card__text { color: var(--ink-2); margin: 0; font-size: var(--step--1); line-height: 1.55; }
.cond-card__more {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 44px;                 /* comfortable tap target */
  font-size: var(--step--1); font-weight: 600; color: var(--teal-600);
  text-decoration: none;
}
.cond-card__more:hover { text-decoration: underline; }

/* dot list used for symptoms and risk factors */
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.dot-list li { position: relative; padding-left: 1.5rem; color: var(--ink-2); }
.dot-list li::before {
  content: "";
  position: absolute; left: 0.15rem; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-500);
}

/* ------------------------------------------------------------- header */
.topbar {
  background: var(--teal-900);
  color: var(--teal-100);
  font-size: var(--step--1);
}
.topbar__inner {
  display: flex; flex-wrap: wrap; gap: var(--gap-3) var(--gap-6);
  align-items: center; justify-content: space-between;
  padding-block: 0.5rem;
}
.topbar__list { display: flex; flex-wrap: wrap; gap: var(--gap-3) var(--gap-5); margin: 0; padding: 0; list-style: none; }
/* One line per item: the list wraps between items, never inside one.
   If the text wraps, the icon sits above the second line instead of beside it. */
.topbar__item { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.topbar a { color: var(--teal-100); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-4);
  min-height: var(--header-h);
}
.site-header .container { max-width: 1360px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; min-width: 0; padding-block: 0.35rem; }
.brand__logo { display: block; width: auto; height: 44px; flex: none; }
.footer__brand .brand__logo { height: 46px; }
.brand__text { display: grid; line-height: 1.2; min-width: 0; }
.brand__name { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--teal-900); white-space: nowrap; }
.brand__role { font-size: clamp(0.72rem, 0.66rem + 0.2vw, 0.78rem); letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal-500); }

.nav { display: none; }
@media (min-width: 62rem) {
  .nav { display: block; margin-left: auto; }
  .nav ul { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
  .nav a {
    position: relative;
    display: block;
    white-space: nowrap;
    color: var(--ink); text-decoration: none;
    font-size: clamp(0.82rem, 0.95vw, 0.92rem); font-weight: 500;
    padding-block: 0.4rem;
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--brass-500);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }
  .nav a:hover::after, .nav .current-menu-item > a::after,
  .nav a:focus-visible::after { transform: scaleX(1); }
  .nav .current-menu-item > a { color: var(--teal-700); }
}

.header__actions { display: flex; align-items: center; gap: var(--gap-3); }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); cursor: pointer;
}
@media (min-width: 62rem) { .burger { display: none; } }
.burger__box { width: 18px; height: 12px; position: relative; }
.burger__box span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--teal-800);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 5px; }
.burger__box span:nth-child(3) { top: 10px; }
[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0 auto;
  width: min(320px, 88vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: var(--gap-5);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  z-index: 99;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer ul { list-style: none; margin: 0 0 var(--gap-5); padding: 0; display: grid; }
.drawer li + li { border-top: 1px solid var(--line-soft); }
.drawer a { display: block; padding: 0.85rem 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.scrim {
  position: fixed; inset: 0; background: rgba(11, 30, 39, 0.42);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); z-index: 98;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------- footer */
.site-footer {
  background: var(--teal-900);
  color: var(--teal-300);
  padding-block: var(--gap-8) var(--gap-5);
  font-size: var(--step--1);
}
.site-footer h2, .site-footer h3 { color: var(--white); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--gap-3); }
.site-footer a { color: var(--teal-100); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; gap: var(--gap-6); }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__bottom {
  margin-top: var(--gap-7); padding-top: var(--gap-5);
  border-top: 1px solid rgba(143, 190, 203, 0.22);
  display: flex; flex-wrap: wrap; gap: var(--gap-3) var(--gap-5);
  justify-content: space-between; color: var(--teal-300); font-size: 0.8rem;
}
.footer__brand { display: grid; gap: var(--gap-3); max-width: 34ch; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; padding-block: clamp(2.5rem, 1.6rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(21, 126, 148, 0.14), transparent 70%),
    radial-gradient(45% 45% at 8% 92%, rgba(201, 139, 62, 0.10), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: var(--gap-6); align-items: center; }
@media (min-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: var(--gap-7);
  }
}
@media (min-width: 90rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}
.hero__copy { min-width: 0; }

/* doctor's photograph, with the appointment card floating over it */
.hero__aside { position: relative; }
.hero__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-4);
  aspect-ratio: 4 / 5;          /* portrait, so the face sits clear of the card */
  background: var(--teal-050);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

@media (min-width: 62rem) {
  /* overlap the card onto the photograph's lower-left corner, below the face */
  .slotcard--float {
    position: absolute;
    left: clamp(-4.5rem, -4.2vw, -1.75rem);
    bottom: clamp(0.45rem, 1vw, 1rem);
    width: min(316px, 92%);
    z-index: 2;
    padding: var(--gap-4) var(--gap-5) var(--gap-5);
    box-shadow: 0 18px 44px rgba(11, 30, 39, 0.18), 0 2px 8px rgba(11, 30, 39, 0.08);
  }
  .slotcard--float .slotcard__chips { margin: var(--gap-3) 0; }
  .slotcard--float .btn { padding-block: 0.7rem; }
}
.hero h1 { max-width: 17ch; }
.hero__points { display: flex; flex-wrap: wrap; gap: var(--gap-3); list-style: none; margin: var(--gap-5) 0; padding: 0; }
.hero__points li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--step--1); font-weight: 500; color: var(--ink-2);
}
.hero__points svg { flex: none; color: var(--teal-500); }

/* next-available slot card */
.slotcard {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: var(--gap-5);
  box-shadow: var(--sh-3);
}
.slotcard__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-500); font-weight: 700; margin: 0; }
.slotcard__time { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: var(--teal-900); margin: var(--gap-2) 0 var(--gap-1); }
.slotcard__when { color: var(--ink-3); font-size: var(--step--1); }

/* floating variant: one compact line instead of a stacked date + time */
.slotcard__when--lead {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem;
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--teal-900);
}
.slotcard__date { font-weight: 600; }
.slotcard__when--lead .dot { color: var(--ink-3); }
.slotcard__when--lead .slotcard__time { font-size: inherit; margin: 0; }
.slotcard__note { margin: var(--gap-3) 0 0; text-align: center; }
.slotcard__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: var(--gap-4) 0; padding: 0; list-style: none; }
.slotcard__chips a {
  padding: 0.4rem 0.7rem; border-radius: var(--r-sm);
  background: var(--teal-050); color: var(--teal-700);
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
}
.slotcard__chips a:hover { background: var(--teal-100); }

/* symptom guide */
.symptoms { background: var(--paper-2); }
.chip-set { display: flex; flex-wrap: wrap; gap: var(--gap-2); margin: 0; padding: 0; list-style: none; }
.chip {
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font: inherit; font-size: var(--step--1); font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--teal-300); background: var(--teal-050); }
.chip[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); }

.suggest {
  margin-top: var(--gap-5);
  padding: var(--gap-5);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px dashed var(--teal-300);
}
.suggest__visit { font-size: var(--step-0); font-weight: 600; color: var(--teal-700); margin-bottom: var(--gap-2); }

/* video band */
.video-band { display: grid; gap: var(--gap-6); align-items: center; }
@media (min-width: 62rem) { .video-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.video-band__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 4 / 3; }
.video-band__media img { width: 100%; height: 100%; object-fit: cover; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--gap-4); }
.steps li { position: relative; padding-left: 2.6rem; color: var(--ink-2); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.05rem;
  width: 1.85rem; height: 1.85rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-700); color: var(--white);
  font-size: 0.85rem; font-weight: 700;
}

/* clinic panel */
.clinic-panel {
  display: grid; gap: 0;
  border: 1px solid var(--line-soft); border-radius: var(--r-xl);
  overflow: hidden; background: var(--white);
  box-shadow: var(--sh-2);
}
@media (min-width: 62rem) { .clinic-panel { grid-template-columns: 1fr 1.15fr; } }
.clinic-panel__map { min-height: 280px; background: var(--teal-050); }
.clinic-panel__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* map facade: the real embed is ~1.4 MB of JS, so it waits for a click */
.mapfacade {
  position: relative; display: block; width: 100%; height: 100%;
  min-height: 280px; padding: 0; border: 0; cursor: pointer;
  background: var(--teal-050); overflow: hidden;
}
.mapfacade img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.mapfacade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,36,48,0) 40%, rgba(6,36,48,0.45));
}
.mapfacade__btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.2rem; border-radius: var(--r-pill);
  background: var(--white); color: var(--teal-900);
  font-size: var(--step--1); font-weight: 600;
  box-shadow: var(--sh-3);
}
.mapfacade:hover .mapfacade__btn { background: var(--teal-050); }
.mapfacade:focus-visible { outline: 3px solid var(--brass-500); outline-offset: -3px; }
.clinic-panel__body { padding: var(--gap-6); display: grid; gap: var(--gap-4); align-content: start; }
.info-row { display: grid; grid-template-columns: 20px 1fr; gap: 0.75rem; align-items: start; }
.info-row svg { color: var(--teal-500); margin-top: 0.2rem; }
.info-row__label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.info-row__value { color: var(--ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-4); padding: var(--gap-5) 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  color: var(--teal-900); text-align: left;
}
.faq__q:hover { color: var(--teal-600); }
.faq__icon { flex: none; width: 20px; height: 20px; transition: transform var(--dur) var(--ease); color: var(--teal-500); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 var(--gap-6) var(--gap-5) 0; color: var(--ink-2); }
.faq__a[hidden] { display: none; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-900));
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  color: var(--white);
  display: grid; gap: var(--gap-5); align-items: center;
  box-shadow: var(--sh-3);
}
@media (min-width: 56rem) { .cta-band { grid-template-columns: minmax(0,1fr) auto; } }
.cta-band h2 { color: var(--white); margin-bottom: var(--gap-2); }
.cta-band p { color: var(--teal-100); }

/* ------------------------------------------------------ condition page */
.page-hero { background: var(--teal-050); padding-block: var(--gap-7) var(--gap-8); }
.page-hero__inner { display: grid; gap: var(--gap-6); }
@media (min-width: 62rem) {
  .page-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
}
.page-hero__media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 4 / 3; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumb { font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--gap-4); }
.breadcrumb a { color: var(--teal-600); }

.cond-layout { display: grid; gap: var(--gap-7); }
@media (min-width: 68rem) { .cond-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.cond-body h2 { margin-top: var(--gap-7); }
.cond-body h2:first-child { margin-top: 0; }
.cond-body ul { padding-left: 1.1rem; }

/* quick facts under the page title */
.factlist {
  list-style: none; margin: var(--gap-5) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--gap-3);
}
.factlist__item {
  display: grid; gap: 0.15rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--white);
  min-width: 150px;
}
.factlist__label { font-size: 0.78rem; font-weight: 700; color: var(--teal-700); }
.factlist__text { font-size: 0.8rem; color: var(--ink-3); line-height: 1.4; }

.dx-grid { display: grid; gap: var(--gap-4); }
@media (min-width: 48rem) { .dx-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.dx-card {
  padding: var(--gap-5);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--white);
}
.dx-card h3 { font-size: var(--step-1); margin-bottom: var(--gap-2); }
.dx-card p { color: var(--ink-2); font-size: var(--step--1); margin: 0; }

.side-card {
  background: var(--teal-800); color: var(--teal-100);
  border-radius: var(--r-lg); padding: var(--gap-5);
  box-shadow: var(--sh-3);
}
.side-card h2 { color: var(--white); font-size: var(--step-2); margin-bottom: var(--gap-3); }
.side-card__next { font-size: var(--step--1); color: var(--teal-300); margin: var(--gap-3) 0 0; }
.related { margin-top: var(--gap-5); }
.related__label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--gap-2); }
.related__link { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--teal-700); font-weight: 500; }
.related__link:hover { color: var(--teal-500); }

/* ------------------------------------------------------- forms & wizard */
.form-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--gap-5); box-shadow: var(--sh-2); }

.field { display: grid; gap: 0.35rem; }
.field > span, .field label { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font: inherit; font-size: var(--step-0);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.field textarea { min-height: 110px; resize: vertical; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.8rem; font-weight: 500; }
.field__error:empty { display: none; }

.form-grid { display: grid; gap: var(--gap-4); }
@media (min-width: 40rem) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* stepper */
.stepper { display: grid; gap: var(--gap-4); margin-bottom: var(--gap-6); }
@media (min-width: 48rem) { .stepper { grid-template-columns: repeat(4, 1fr); } }
.stepper__item { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-3); }
.stepper__dot {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 700;
}
.stepper__item.is-current { color: var(--teal-900); font-weight: 600; }
.stepper__item.is-current .stepper__dot { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); }
.stepper__item.is-done .stepper__dot { background: var(--success-soft); border-color: var(--success); color: var(--success); }

/* calendar + slots */
.cal { border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--gap-4); background: var(--white); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--gap-4); }
.cal__title { font-family: var(--font-display); font-size: var(--step-1); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding-bottom: var(--gap-2); }
.cal__day {
  aspect-ratio: 1; border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; font: inherit; font-size: var(--step--1);
  cursor: pointer; color: var(--ink);
}
.cal__day:hover:not(:disabled) { background: var(--teal-050); border-color: var(--teal-300); }
.cal__day[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); font-weight: 700; }
.cal__day:disabled { color: var(--ink-3); opacity: 0.35; cursor: not-allowed; }
.cal__day.is-empty { visibility: hidden; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--gap-2); }
.slot {
  padding: 0.7rem 0.4rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); font: inherit; font-size: var(--step--1); font-weight: 600;
  cursor: pointer; transition: all var(--dur) var(--ease);
}
.slot:hover:not(:disabled) { border-color: var(--teal-500); background: var(--teal-050); }
.slot[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); }
.slot:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* summary + confirmation */
.summary { background: var(--teal-050); border-radius: var(--r-lg); padding: var(--gap-5); }
.summary__row { display: flex; justify-content: space-between; gap: var(--gap-4); padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.summary__row:last-child { border-bottom: 0; }
.summary__label { color: var(--ink-3); font-size: var(--step--1); }
.summary__value { font-weight: 600; text-align: right; }

.confirm { text-align: center; }
.confirm__icon {
  width: 64px; height: 64px; margin: 0 auto var(--gap-4);
  border-radius: 50%; display: grid; place-items: center;
  background: var(--success-soft); color: var(--success);
}
.confirm__ref {
  display: inline-block; margin-top: var(--gap-4);
  padding: 0.5rem 1rem; border-radius: var(--r-sm);
  background: var(--teal-900); color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

/* notice */
.notice { padding: var(--gap-4); border-radius: var(--r-md); font-size: var(--step--1); }
.notice--success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(46, 107, 79, 0.22); }
.notice--error { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(166, 54, 47, 0.22); }

/* ------------------------------------------------ floating WhatsApp CTA */
.whatsapp-fab {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.6rem);
  bottom: clamp(0.9rem, 2vw, 1.6rem);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-pill);
  background: #1F8A4C;
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(11, 30, 39, 0.22);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.whatsapp-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 30, 39, 0.28); }
@media (max-width: 40rem) {
  .whatsapp-fab { padding: 0.8rem; }
  .whatsapp-fab__label { display: none; }
}

/* --------------------------------------------- responsive visibility --- */
/* These helpers only ever HIDE, and only below the breakpoint.
   Restoring with `display: revert` is a trap: revert rolls back to the
   browser's default for that element - `list-item` for an <li> - rather
   than to the component's own display, which silently stacks icons above
   their text. There is no show rule on purpose: above the breakpoint these
   selectors simply do not apply, so each component keeps its own display. */
@media (max-width: 47.99rem) {
  .hide-sm { display: none; }
}
.only-sm { display: revert; }
@media (min-width: 48rem) {
  .only-sm { display: none; }
}

/* ------------------------------------------- small screen adjustments --- */
@media (max-width: 30rem) {
  .brand { gap: 0.45rem; padding-block: 0.25rem; }
  .brand__name { font-size: 0.76rem; }
  .brand__role { letter-spacing: 0.04em; }   /* never shrink below 11px */
  .btn { padding: 0.8rem 1.2rem; }
}

/* The topbar links are tap targets, so give them a real hit area. */
.topbar__item { min-height: 40px; padding-block: 0.25rem; }

/* ---------------------------------------------------- motion & print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .cond-card:hover, .card--link:hover { transform: none; }
}

@media print {
  .topbar, .site-header, .drawer, .scrim, .cta-band, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
}