/* =====================================================================
   The Spine Clinic & Rehab Centre — design system
   Hand-authored CSS. No build step required.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #0a2439;
  --navy-900: #0d3556;
  --navy-800: #12456e;
  --navy-700: #185a8c;
  --brand-600: #1c6ea8;   /* primary */
  --brand-500: #2b86c4;
  --brand-100: #dcecf8;
  --brand-50:  #eef6fc;
  --teal-700:  #0c7a70;
  --teal-600:  #109387;   /* secondary accent */
  --teal-50:   #e6f5f3;
  --gold:      #b98a34;    /* fine classical detail */

  --ink:       #16232e;
  --body:      #47586a;
  --muted:     #7a8a99;
  --line:      #e4e9ef;
  --paper:     #f5f8fb;
  --white:     #ffffff;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16,35,46,.06), 0 1px 3px rgba(16,35,46,.05);
  --shadow-md: 0 10px 30px -12px rgba(13,53,86,.22);
  --shadow-lg: 0 30px 60px -20px rgba(13,53,86,.28);

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); color: #cfe0ee; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.section--navy .eyebrow { color: #7fd3ca; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.02rem; }

.lead { font-size: 1.12rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand-600); --btn-fg: #fff; --btn-bd: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn svg { width: 18px; height: 18px; }
.btn--teal { --btn-bg: var(--teal-600); --btn-bd: var(--teal-600); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--brand-500); background: var(--brand-50); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-bd: #fff; }
.btn--on-navy-ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.btn--on-navy-ghost:hover { background: rgba(255,255,255,.08); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-950); color: #b9cee0;
  font-size: .82rem; letter-spacing: .01em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.topbar__facts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__facts span { display: inline-flex; align-items: center; gap: 8px; }
.topbar__facts svg { width: 15px; height: 15px; color: var(--teal-600); }
.topbar a { color: #e7f0f8; }
.topbar a:hover { color: #fff; }
.topbar__social { display: flex; align-items: center; gap: 6px; }
.topbar__social a {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #dbe8f4;
}
.topbar__social a:hover { background: var(--brand-600); color: #fff; }
.topbar__social svg { width: 14px; height: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: 46px; height: 46px; flex: none; color: var(--brand-600); }
.brand__text { font-family: var(--serif); line-height: 1.05; }
.brand__text strong { display: block; font-size: 1.16rem; color: var(--navy-900); font-weight: 600; letter-spacing: -.01em; }
.brand__text span { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-700); font-family: var(--sans); font-weight: 600; }
.brand__logo { height: 38px; width: auto; display: block; }
@media (max-width: 480px) { .brand__logo { height: 32px; } }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  font-family: var(--sans); font-weight: 500; font-size: .92rem; color: var(--ink);
  padding: 10px 14px; border-radius: 8px; position: relative;
}
.primary-nav a:hover { background: var(--brand-50); color: var(--navy-800); }
.primary-nav a.is-active { color: var(--brand-600); }
.primary-nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.header__cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  margin-inline: auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--brand-50) 100%); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero__kicker { margin-bottom: 20px; }
.hero h1 { color: var(--navy-950); }
.hero h1 .accent { color: var(--brand-600); }
.hero__sub { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--teal-700); margin-top: 10px; font-weight: 500; }
.hero__text { margin-top: 22px; max-width: 34ch; font-size: 1.06rem; }
.hero__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { margin-top: 30px; display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--muted); }
.hero__stars { color: var(--gold); letter-spacing: 2px; }

.hero__figure { position: relative; }
.hero__panel {
  position: relative; border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% 0%, #2b86c4 0%, #185a8c 45%, #0d3556 100%);
  aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.hero__panel svg { width: 78%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hero__panel img { width: 88%; height: 92%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.hero__badge {
  position: absolute; left: -26px; bottom: 40px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 16px 20px; display: flex; align-items: center; gap: 13px;
  max-width: 260px;
}
.hero__badge svg { width: 34px; height: 34px; color: var(--teal-600); flex: none; }
.hero__badge b { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.hero__badge span { font-size: .82rem; color: var(--muted); }
.hero__floater {
  position: absolute; right: -18px; top: 34px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 12px 16px; font-size: .84rem; color: var(--ink);
  display: flex; align-items: center; gap: 10px; font-weight: 600;
}
.hero__floater svg { width: 20px; height: 20px; color: var(--brand-600); }

/* ---------- Stat strip ---------- */
.stats { background: var(--navy-900); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { padding: 30px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stats__item:last-child { border-right: 0; }
.stats__item b { display: block; font-family: var(--serif); font-size: 2rem; color: #fff; }
.stats__item span { font-size: .86rem; color: #9fbdd6; letter-spacing: .04em; }

/* ---------- Warning signs strip ---------- */
.signs { background: var(--navy-900); padding-block: 52px; }
.signs__head { text-align: center; margin-bottom: 34px; }
.signs__head .eyebrow { justify-content: center; color: #7fd3ca; }
.signs__head h2 { color: #fff; margin-top: 8px; }
.signs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; }
.signs__item {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 6px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.signs__item .ico {
  width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #6fd0c6;
}
.signs__item .ico svg { width: 19px; height: 19px; }
.signs__item p { color: #d7e6f1; font-size: .95rem; line-height: 1.4; }
.signs__note {
  margin-top: 30px; text-align: center; font-size: .88rem; color: #9fbdd6;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.signs__note svg { width: 18px; height: 18px; color: var(--gold); }
@media (max-width: 820px) { .signs__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .signs__grid { grid-template-columns: 1fr; } }

/* ---------- Service shortcuts (circular icons) ---------- */
.shortcuts__grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  max-width: 940px; margin-inline: auto;
}
.shortcut { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 4px; border-radius: var(--radius); transition: background .18s ease; }
.shortcut:hover { background: var(--brand-50); }
.shortcut__disc {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand-500), var(--navy-800));
  color: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease;
}
.shortcut:nth-child(even) .shortcut__disc { background: linear-gradient(150deg, var(--teal-600), var(--teal-700)); }
.shortcut:hover .shortcut__disc { transform: translateY(-4px); }
.shortcut__disc svg { width: 40px; height: 40px; }
.shortcut span { font-family: var(--serif); font-size: .98rem; color: var(--ink); font-weight: 600; }

/* ---------- About doctor split ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; }
.about__portrait {
  position: relative; border-radius: 22px; aspect-ratio: 3/3.6;
  background: linear-gradient(160deg, var(--teal-50), var(--brand-100));
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-md);
  display: grid; place-items: center; text-align: center; padding: 24px;
}
.about__portrait svg { width: 60%; color: var(--navy-800); opacity: .9; }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: inherit; }
.about__portrait .hint { position: absolute; bottom: 14px; left: 14px; right: 14px; font-size: .72rem; color: var(--muted); }
.about__badge {
  position: absolute; right: -22px; bottom: 28px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 16px 20px; text-align: left;
}
.about__badge b { font-family: var(--serif); color: var(--ink); font-size: 1.4rem; display: block; }
.about__badge span { font-size: .8rem; color: var(--muted); }
.about__body h2 { margin-bottom: 8px; }
.about__body .credentials { color: var(--teal-700); font-weight: 600; font-size: .95rem; margin-bottom: 18px; letter-spacing: .02em; }
.about__body p + p { margin-top: 14px; }
.about__points { margin: 22px 0 28px; display: grid; gap: 12px; }
.about__points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.about__points svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; margin-top: 3px; }

/* ---------- Cards row ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }
.card__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card__link:hover svg { transform: translateX(3px); }

/* ---------- Split feature (hours / emergency) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel {
  border-radius: var(--radius); padding: 36px 34px; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-sm);
}
.panel--accent { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #cfe0ee; border: 0; }
.panel--accent h3 { color: #fff; }
.panel h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel h3 svg { width: 24px; height: 24px; color: var(--teal-600); }
.panel--accent h3 svg { color: #6fd0c6; }
.hours-list { display: grid; gap: 10px; }
.hours-list div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hours-list div:last-child { border-bottom: 0; }
.hours-list dt { color: var(--ink); font-weight: 600; }
.panel .note { font-size: .86rem; margin-top: 16px; color: var(--muted); }
.panel--accent .note { color: #9fbdd6; }
.panel__big { font-family: var(--serif); font-size: 1.9rem; color: #fff; margin: 6px 0 14px; }

/* ---------- Testimonials ---------- */
.tstack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.tcard__stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.tcard__quote { font-size: .95rem; color: var(--body); flex: 1; }
.tcard__who { display: flex; align-items: center; gap: 12px; }
.tcard__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand-500), var(--navy-800)); color: #fff;
  font-family: var(--serif); font-weight: 600;
}
.tcard__who b { display: block; color: var(--ink); font-size: .92rem; }
.tcard__who span { font-size: .82rem; color: var(--muted); }

/* ---------- Procedures preview ---------- */
.proc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 34px; }
.proc__grid li {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); font-size: .95rem;
}
.proc__grid svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; margin-top: 4px; }

/* ---------- CTA band ---------- */
.ctaband {
  background:
    linear-gradient(180deg, rgba(10,36,57,.92), rgba(10,36,57,.92)),
    radial-gradient(90% 140% at 15% 20%, #1c6ea8 0%, transparent 60%);
  color: #cfe0ee; text-align: center;
}
.ctaband h2 { color: #fff; }
.ctaband p { max-width: 52ch; margin: 14px auto 28px; }
.ctaband .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Affiliations ---------- */
.affil__list { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.affil__list li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 24px; font-family: var(--serif); font-weight: 600; color: var(--navy-800);
  font-size: .98rem; box-shadow: var(--shadow-sm);
}

/* ---------- Contact / map ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: stretch; }
.contact__list { display: grid; gap: 22px; margin-top: 26px; }
.contact__list li { display: flex; gap: 16px; }
.contact__list .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center; flex: none;
}
.contact__list .ico svg { width: 22px; height: 22px; }
.contact__list b { display: block; color: var(--ink); font-family: var(--serif); font-size: 1rem; }
.contact__list span, .contact__list a { font-size: .95rem; color: var(--body); }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; box-shadow: var(--shadow-sm); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fbdd6; padding-block: 60px 26px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #b9cee0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer .fbrand svg { width: 40px; height: 40px; color: #6fd0c6; }
.site-footer .fbrand strong { color: #fff; font-family: var(--serif); font-size: 1.05rem; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer .fcontact { display: grid; gap: 8px; font-size: .92rem; }
.site-footer .fcontact .big { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer-social a:hover { background: var(--brand-600); }
.footer-social svg { width: 15px; height: 15px; color: #dbe8f4; }
.site-footer__bar {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #7f9cb5;
}

/* ---------- Floating WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  transition: transform .18s ease;
}
.wa-fab:hover { transform: scale(1.08); color: #fff; }
.wa-fab svg { width: 30px; height: 30px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #cfe0ee; padding-block: clamp(52px, 7vw, 88px); }
.page-hero h1 { color: #fff; }
.page-hero p { margin-top: 12px; max-width: 60ch; }
.crumbs { font-size: .82rem; color: #7fd3ca; margin-bottom: 16px; display: flex; gap: 8px; }
.crumbs a { color: #9fbdd6; }

/* ---------- Doctor profile ---------- */
.docprofile__grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.docprofile__card {
  position: sticky; top: 100px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
}
.docprofile__photo {
  aspect-ratio: 3/3.4; background: linear-gradient(160deg, var(--teal-50), var(--brand-100));
  display: grid; place-items: center; position: relative; text-align: center; padding: 20px;
}
.docprofile__photo svg { width: 55%; color: var(--navy-800); opacity: .9; }
.docprofile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.docprofile__photo .hint { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: .7rem; color: var(--muted); }
.docprofile__meta { padding: 22px 22px 24px; }
.docprofile__meta h1 { font-size: 1.5rem; }
.docprofile__meta .role { color: var(--teal-700); font-weight: 600; font-size: .9rem; margin-top: 4px; }
.docprofile__meta .btn { width: 100%; margin-top: 16px; }
.fellowships { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.fellowships li { display: flex; gap: 10px; font-size: .86rem; color: var(--ink); }
.fellowships svg { width: 16px; height: 16px; color: var(--teal-600); flex: none; margin-top: 3px; }

.prose > * + * { margin-top: 16px; }
.prose p { color: var(--body); }
.prose h2 { margin-top: 40px; margin-bottom: 4px; }
.prose .stat-line {
  font-family: var(--serif); font-size: 1.15rem; color: var(--navy-900);
  border-left: 3px solid var(--gold); padding-left: 16px;
}

.philosophy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #cfe0ee;
  border-radius: var(--radius); padding: 32px 34px; margin-top: 32px;
}
.philosophy h3 { color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.philosophy h3 svg { width: 22px; height: 22px; color: #6fd0c6; }
.prose .philosophy p, .philosophy p { color: #cfe0ee; }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pill-list li {
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--navy-800);
  border-radius: 999px; padding: 8px 16px; font-size: .86rem; font-weight: 500;
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Location cards ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px; box-shadow: var(--shadow-sm); }
.loc-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.loc-card h3 svg { width: 20px; height: 20px; color: var(--teal-600); }
.loc-card p { font-size: .9rem; margin-top: 8px; }
@media (max-width: 820px) { .loc-grid { grid-template-columns: 1fr; } }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; }
.tabs button {
  border: 0; background: none; cursor: pointer; font-family: var(--sans); font-weight: 600;
  font-size: .9rem; color: var(--navy-800); padding: 10px 22px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s ease, color .15s ease;
}
.tabs button svg { width: 16px; height: 16px; }
.tabs button[aria-selected="true"] { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.tabpanel[hidden] { display: none; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.gallery-grid figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.gallery-grid figure .frame { aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  padding: 14px 16px 16px; font-size: .84rem; line-height: 1.5; color: var(--body);
}

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.video-card .frame { aspect-ratio: 16/9; background: #000; }
.video-card .frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-card p { padding: 16px 18px; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: .98rem; }

.gallery-empty {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 48px 28px; text-align: center;
  color: var(--muted); background: var(--paper);
}
.gallery-empty svg { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--brand-500); }
.gallery-empty code { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: .85em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,36,57,.92);
  display: grid; place-items: center; padding: 30px; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox button {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.28); }

@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Condition cards ---------- */
.condition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.condition {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.condition:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.condition__head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.condition__ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600);
}
.condition:nth-child(even) .condition__ico { background: var(--teal-50); color: var(--teal-700); }
.condition__ico svg { width: 24px; height: 24px; }
.condition h3 { font-size: 1.15rem; }
.condition .sub { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.condition p { font-size: .93rem; }
.condition p + p { margin-top: 10px; }
.condition .pill-list { margin-top: 14px; }
.condition--wide { grid-column: 1 / -1; }
@media (max-width: 820px) { .condition-grid { grid-template-columns: 1fr; } }

/* ---------- Numbered steps ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 60px 1fr; gap: 22px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.5rem; color: var(--brand-600);
  border-right: 2px solid var(--gold); padding-right: 20px; line-height: 1.4;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .96rem; }
.step p + p { margin-top: 10px; }
.step .pill-list { margin-top: 14px; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .step::before { border-right: 0; border-bottom: 2px solid var(--gold); padding-right: 0; padding-bottom: 8px; }
}

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px; font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc__q:hover { color: var(--brand-600); }
.acc__q .chev { width: 20px; height: 20px; flex: none; transition: transform .2s ease; color: var(--brand-600); }
.acc__item.is-open .acc__q .chev { transform: rotate(180deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a-inner { padding: 0 24px 22px; color: var(--body); font-size: .95rem; }
.acc__a-inner ol { padding-left: 20px; display: grid; gap: 10px; }
.acc__a-inner ol li { padding-left: 4px; }
.acc__a-inner p + p { margin-top: 12px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .shortcuts__grid { grid-template-columns: repeat(4, 1fr); }
  .tstack { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .docprofile__grid { grid-template-columns: 1fr; gap: 32px; }
  .docprofile__card { position: static; max-width: 380px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__figure { max-width: 440px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__badge, .hero__badge { right: 16px; }
  .cards, .duo, .proc__grid, .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }

  .primary-nav, .header__cta .btn { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .primary-nav {
    position: fixed; inset: 120px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px 22px;
    gap: 2px; box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  body.nav-open .primary-nav { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .primary-nav a { padding: 13px 12px; border-radius: 8px; font-size: 1rem; }
  .primary-nav a.is-active::after { display: none; }
  .primary-nav a.is-active { background: var(--brand-50); }
}
@media (max-width: 620px) {
  .topbar__facts span:nth-child(2) { display: none; }
  .shortcuts__grid { grid-template-columns: repeat(2, 1fr); }
  .tstack { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .ctaband .btn { width: 100%; }
}
