/* ==============================================
   DR. MATTHEW MORGAN, DVM, DACVS-SA
   Board-Certified Veterinary Surgeon
   
   Design: Mayo Clinic / HSS inspired
   Palette: Navy · White · Surgical Teal
   ============================================== */

/* ── DESIGN TOKENS ─────────────────────────── */
:root {
  --navy:          #0b1f3a;
  --navy-mid:      #102a4c;
  --navy-light:    #163a64;
  --blue:          #1d5fa8;
  --blue-light:    #2d7dd2;
  --teal:          #0d7a6e;
  --teal-light:    #12a090;
  --gold:          #c9a53e;
  --gold-light:    #e0b94a;
  --red:           #b91c1c;
  --amber:         #d97706;

  --white:         #ffffff;
  --off-white:     #f8fafc;
  --gray-50:       #f1f5f9;
  --gray-100:      #e2e8f0;
  --gray-200:      #cbd5e1;
  --gray-400:      #94a3b8;
  --gray-600:      #475569;
  --gray-800:      #1e293b;
  --text:          #1e293b;
  --text-body:     #334155;
  --text-muted:    #64748b;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.07);
  --shadow:        0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.11);
  --shadow-hover:  0 20px 56px rgba(11,31,58,.14);
  --shadow-card:   0 2px 8px rgba(0,0,0,.06);

  --r:             10px;
  --r-sm:          6px;
  --r-lg:          16px;
  --r-xl:          24px;

  --ease:          cubic-bezier(.4,0,.2,1);
  --t:             all .22s var(--ease);

  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:    'Georgia', 'Times New Roman', serif;
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; display: block; }
a    { color: var(--blue-light); text-decoration: none; transition: var(--t); }
a:hover { color: var(--blue); }
ul   { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.18; letter-spacing: -.03em; color: var(--text); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; color: var(--text); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; line-height: 1.3; color: var(--text); }
h4 { font-size: 1rem; font-weight: 700; color: var(--text); }
p  { color: var(--text-muted); }

/* ── LAYOUT ────────────────────────────────── */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 28px; }
.section      { padding: 96px 0; }
.section-md   { padding: 64px 0; }
.section-sm   { padding: 48px 0; }
.section-alt  { background: var(--off-white); }
.section-dark { background: var(--navy); }
.section-navy { background: var(--navy-mid); }

.section-hdr {
  text-align: center;
  margin-bottom: 56px;
}
.section-hdr p {
  font-size: 1.05rem;
  max-width: 580px;
  margin: 14px auto 0;
}

/* ── EYEBROW LABELS ────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.eyebrow-blue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(29,95,168,.08);
  color: var(--blue);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.divider { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0 auto 18px; }
.divider-left { margin-left: 0; }

/* ── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--t);
  text-decoration: none;
  white-space: nowrap;
}
.btn-navy {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11,31,58,.35);
}
.btn-blue {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--navy-light);
  color: white;
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29,95,168,.3);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: translateY(-2px);
}
.btn-teal {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn-teal:hover {
  background: #0a6860;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,122,110,.3);
}
.btn-lg { padding: 15px 32px; font-size: .95rem; }
.btn-sm { padding: 9px 18px; font-size: .82rem; }

/* ── BADGES ────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-navy   { background: rgba(11,31,58,.08); color: var(--navy); }
.badge-blue   { background: rgba(29,95,168,.1); color: var(--blue); }
.badge-teal   { background: rgba(13,122,110,.1); color: var(--teal); }
.badge-gold   { background: rgba(201,165,62,.15); color: #8a6f1f; }
.badge-red    { background: rgba(185,28,28,.08); color: var(--red); }

/* ── NAVIGATION ────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--t);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-brand-mark {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .95rem;
  flex-shrink: 0;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-text .nb-name {
  font-size: .86rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.nav-brand-text .nb-cred {
  font-size: .62rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--t);
}
.nav-links a:hover,
.nav-links a.active { background: var(--gray-50); color: var(--navy); }
.nav-links a.active { font-weight: 600; }
.nav-links .nav-instagram-btn {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af) !important;
  color: white !important;
  font-size: 1.05rem !important;
  padding: 7px 11px !important;
  border-radius: var(--r-sm) !important;
  margin-left: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
}
.nav-links .nav-instagram-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(221,42,123,.35);
}
.nav-links .nav-contact-btn {
  background: var(--navy) !important;
  color: white !important;
  font-weight: 600 !important;
  margin-left: 6px !important;
  padding: 8px 16px !important;
}
.nav-links .nav-contact-btn:hover {
  background: var(--blue) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11,31,58,.28);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text);
  padding: 8px;
}

/* ── HERO ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: 72px;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-light) 60%, #1a4a7a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* subtle grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
/* glow circle */
.hero::after {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,125,210,.14) 0%, transparent 70%);
  top: -200px; right: -180px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0 88px;
}

/* credential badge pill */
.dacvs-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,165,62,.14);
  border: 1px solid rgba(201,165,62,.32);
  color: var(--gold-light);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.dacvs-pill i { font-size: .85rem; color: var(--gold); }

.hero-name {
  color: white;
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: rgba(255,255,255,.72);
  margin-bottom: 22px;
  line-height: 1.55;
  max-width: 560px;
}
.hero-title strong { color: white; font-weight: 600; }

.hero-hospital-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.82);
  font-size: .83rem;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 34px;
}
.live-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: livepulse 2.2s ease-in-out infinite;
}
@keyframes livepulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.55; transform:scale(1.35); }
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero right — photo card */
.hero-photo-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
.hero-photo-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,.05);
}
.hero-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,.35);
  font-size: .84rem;
  background: rgba(255,255,255,.04);
}
.hero-photo-placeholder i { font-size: 4rem; color: rgba(255,255,255,.15); }
.hero-photo-caption {
  padding: 18px 22px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-photo-caption .cap-name {
  font-size: .9rem;
  font-weight: 700;
  color: white;
}
.hero-photo-caption .cap-cred {
  font-size: .73rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 2px;
}

/* ── PAGE HERO (sub-pages) ─────────────────── */
.page-hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 128px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin: 14px 0 16px; }
.page-hero .page-hero-sub { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 600px; line-height: 1.7; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: rgba(255,255,255,.9); }
.breadcrumb i { font-size: .6rem; }

/* ── DACVS EXPLAIN SECTION ─────────────────── */
.dacvs-section {
  background: var(--off-white);
  border-top: 4px solid var(--gold);
}
.dacvs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.dacvs-icon-block {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 40px;
  text-align: center;
  color: white;
}
.dacvs-seal {
  width: 100px; height: 100px;
  background: rgba(201,165,62,.15);
  border: 3px solid rgba(201,165,62,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--gold);
  margin: 0 auto 20px;
}
.dacvs-icon-block h3 { color: var(--gold); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.dacvs-icon-block .dacvs-abbr {
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  letter-spacing: .04em;
  line-height: 1;
  margin: 10px 0 4px;
}
.dacvs-icon-block .dacvs-full {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}
.dacvs-steps { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.dacvs-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.step-num {
  width: 28px; height: 28px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.dacvs-step h4 { font-size: .9rem; margin-bottom: 3px; }
.dacvs-step p  { font-size: .84rem; }

/* ── PROCEDURE TILES ───────────────────────── */
.proc-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proc-tile {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--r);
  padding: 28px 24px;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.proc-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.proc-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); border-color: var(--gray-200); }
.proc-tile:hover::after { transform: scaleX(1); }

.proc-tile-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  background: var(--navy);
}
.proc-tile-icon.teal   { background: var(--teal); }
.proc-tile-icon.blue   { background: var(--blue); }
.proc-tile-icon.purple { background: #6b3fa0; }
.proc-tile-icon.red    { background: var(--red); }
.proc-tile-icon.amber  { background: var(--amber); }

.proc-tile h3 { font-size: .97rem; color: var(--text); line-height: 1.35; }
.proc-tile p  { font-size: .84rem; color: var(--text-muted); flex: 1; line-height: 1.6; }
.proc-tile-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-top: 4px;
}

/* ── PROCEDURE CARDS (library page) ───────── */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.proc-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--t);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.proc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--gray-200); }
.proc-card-hdr {
  padding: 18px 20px 14px;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.proc-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.proc-icon.soft    { background: var(--teal); }
.proc-icon.neuro   { background: #6b3fa0; }
.proc-icon.onco    { background: #8b1a1a; }
.proc-icon.mi      { background: #0e6698; }
.proc-icon.emerg   { background: var(--red); }

.proc-card-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.proc-card-body { padding: 16px 20px; flex: 1; }
.proc-card-body p { font-size: .86rem; line-height: 1.62; }
.proc-card-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.recovery-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .74rem;
  color: var(--text-muted);
  font-weight: 500;
}
.recovery-label i { color: var(--teal); }
.more-link {
  font-size: .77rem;
  font-weight: 700;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── ARTICLE CARDS ─────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.article-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.article-card-top {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
}
.article-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.article-card-body h3 { font-size: .97rem; line-height: 1.38; }
.article-card-body p  { font-size: .84rem; flex: 1; }
.article-read-time { font-size: .72rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.read-arrow { font-size: .79rem; font-weight: 700; color: var(--blue-light); display: flex; align-items: center; gap: 3px; margin-top: 4px; }

/* ── CASE STUDY CARDS ──────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.case-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: var(--t);
}
.case-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.case-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 3rem;
}
.case-body { padding: 20px 22px; }
.case-body h3 { font-size: .97rem; margin-bottom: 6px; }
.case-body p  { font-size: .84rem; margin-bottom: 14px; }
.case-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── RESOURCE CARDS ────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}
.resource-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--r);
  padding: 24px;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.resource-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.resource-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: rgba(29,95,168,.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.resource-icon.emerg  { background: rgba(185,28,28,.08); color: var(--red); }
.resource-icon.rehab  { background: rgba(13,122,110,.08); color: var(--teal); }
.resource-icon.faq    { background: rgba(107,63,160,.08); color: #6b3fa0; }
.resource-card h3 { font-size: .96rem; }
.resource-card p  { font-size: .84rem; line-height: 1.6; flex: 1; }
.resource-arrow { font-size: .79rem; font-weight: 700; color: var(--blue-light); display: flex; align-items: center; gap: 3px; }

/* ── SEARCH & FILTERS ──────────────────────── */
.search-wrap { position: relative; max-width: 580px; margin: 0 auto 28px; }
.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--gray-100);
  border-radius: 50px;
  font-size: .94rem;
  font-family: var(--font);
  outline: none;
  transition: var(--t);
  background: white;
  color: var(--text);
}
.search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,95,168,.07); }
.search-ico { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.filter-btn {
  padding: 7px 16px;
  border-radius: 50px;
  border: 2px solid var(--gray-100);
  background: white;
  color: var(--text-muted);
  font-size: .79rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  font-family: var(--font);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--blue); background: var(--blue); color: white; }

/* ── MODAL ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 20px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), visibility .22s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: white;
  border-radius: var(--r-xl);
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(11,31,58,.3);
  transform: translateY(18px);
  transition: transform .25s var(--ease);
  margin: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-hdr {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 28px 32px;
  position: relative;
}
.modal-hdr h2 { color: white; font-size: 1.4rem; margin-bottom: 8px; }
.modal-hdr .modal-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.12);
  border: none; color: white;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: var(--t);
}
.modal-close:hover { background: rgba(255,255,255,.22); }
.modal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 24px;
}
.modal-tab {
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  font-family: var(--font);
  transition: var(--t);
}
.modal-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }
.modal-body {
  padding: 28px 32px;
  max-height: 68vh;
  overflow-y: auto;
}
.modal-body h3 { color: var(--blue); margin: 18px 0 8px; font-size: 1.02rem; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p  { font-size: .91rem; margin-bottom: 11px; color: var(--text-body); }
.modal-body ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.modal-body ul li { font-size: .91rem; color: var(--text-muted); margin-bottom: 5px; }
.modal-body h4 { color: var(--text); font-size: .93rem; margin: 14px 0 5px; }
.modal-body strong { color: var(--text); }

.recovery-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(13,122,110,.07);
  border: 1px solid rgba(13,122,110,.2);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin-top: 18px;
  color: var(--teal);
  font-weight: 600;
  font-size: .88rem;
}

/* ── CONTACT / FORMS ───────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-card-hdr {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 24px 26px;
}
.contact-card-hdr h3 { color: white; margin-bottom: 3px; font-size: 1.05rem; }
.contact-card-hdr p  { color: rgba(255,255,255,.6); font-size: .84rem; }
.contact-card-body   { padding: 20px 26px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: .88rem;
}
.contact-row:last-child { border-bottom: none; }
.contact-row i { color: var(--blue-light); width: 15px; flex-shrink: 0; margin-top: 2px; }
.contact-lbl { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: 1px; }
.contact-val { color: var(--text); font-weight: 500; }

.form-card { background: white; border: 1px solid var(--gray-100); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.05rem; margin-bottom: 18px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .79rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 2px solid var(--gray-100);
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: var(--t);
  background: white;
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,168,.07); }
.form-note { font-size: .74rem; color: var(--gray-400); margin-bottom: 13px; line-height: 1.6; }
.form-success {
  display: none;
  text-align: center;
  padding: 22px;
  background: rgba(13,122,110,.07);
  border-radius: var(--r-sm);
  color: var(--teal);
  font-weight: 600;
}
.form-success i { font-size: 1.8rem; display: block; margin-bottom: 8px; }

/* ── ABOUT / BIO PAGE ──────────────────────── */
.bio-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.bio-sticky { position: sticky; top: 92px; }
.bio-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  background: var(--gray-50);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-400);
  font-size: .82rem;
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  border: 2px dashed var(--gray-200);
  border-radius: var(--r-lg);
  min-height: 360px;
}
.bio-photo-placeholder i { font-size: 3rem; color: var(--gray-200); }
.dacvs-block {
  background: var(--navy);
  color: white;
  border-radius: var(--r);
  padding: 20px;
  margin-top: 14px;
  text-align: center;
}
.dacvs-block .dab { font-size: 1.4rem; font-weight: 900; color: var(--gold); letter-spacing: .04em; }
.dacvs-block p { color: rgba(255,255,255,.65); font-size: .76rem; line-height: 1.5; margin-top: 6px; }

/* Timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ''; position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--gray-100);
}
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -26px; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--blue);
}
.tl-dot.gold  { background: var(--gold);  box-shadow: 0 0 0 2px var(--gold); }
.tl-dot.teal  { background: var(--teal);  box-shadow: 0 0 0 2px var(--teal); }
.tl-dot.army  { background: #3a5a2a; box-shadow: 0 0 0 2px #3a5a2a; }
.tl-year  { font-size: .67rem; font-weight: 700; color: var(--blue-light); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1px; }
.tl-inst  { font-weight: 700; color: var(--text); font-size: .91rem; }
.tl-detail { font-size: .83rem; color: var(--text-muted); }

/* Cred list */
.cred-list { display: flex; flex-direction: column; gap: 9px; }
.cred-item  { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text-body); }
.cred-item i { color: var(--teal); flex-shrink: 0; margin-top: 3px; width: 16px; }

/* Publications */
.pub-list { display: flex; flex-direction: column; gap: 16px; }
.pub-item {
  border-left: 3px solid var(--blue-light);
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.pub-title { font-weight: 600; font-size: .89rem; color: var(--text); line-height: 1.5; }
.pub-meta  { font-size: .79rem; color: var(--text-muted); margin-top: 4px; }
.pub-journal { color: var(--blue-light); font-style: italic; }

/* Army card */
.army-card {
  background: linear-gradient(135deg, #1a2e1a, #2d4a2d);
  border-radius: var(--r);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.army-icon {
  width: 50px; height: 50px;
  background: rgba(201,165,62,.15);
  border: 1px solid rgba(201,165,62,.3);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.3rem; flex-shrink: 0;
}
.army-card h4 { color: white; margin-bottom: 5px; }
.army-card p  { color: rgba(255,255,255,.68); font-size: .86rem; line-height: 1.65; }

/* ── REFERRAL PAGE ─────────────────────────── */
.referral-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.ref-info-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.ref-info-card h3 { font-size: 1rem; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.ref-info-card h3 i { color: var(--blue-light); }
.case-list { display: flex; flex-direction: column; gap: 7px; }
.case-item  { display: flex; align-items: flex-start; gap: 9px; font-size: .87rem; color: var(--text-body); }
.case-item i { color: var(--teal); flex-shrink: 0; margin-top: 3px; font-size: .78rem; }

.philosophy-card {
  background: var(--navy);
  border-radius: var(--r);
  padding: 30px;
  position: relative;
}
.philosophy-card::before {
  content: '"';
  position: absolute;
  top: 8px; left: 18px;
  font-size: 6rem;
  color: rgba(201,165,62,.18);
  line-height: 1;
  font-family: var(--font-serif);
}
.philosophy-card p { color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.78; position: relative; }
.philosophy-card cite { color: var(--gold); font-size: .81rem; font-weight: 600; display: block; margin-top: 12px; font-style: normal; }

/* ── STATS ROW ─────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--gray-100);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-cell { background: white; padding: 28px 16px; text-align: center; }
.stat-cell .sn { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-cell .sl { font-size: .74rem; color: var(--text-muted); font-weight: 500; margin-top: 5px; }

/* ── CALLOUT BOXES ─────────────────────────── */
.callout {
  border-radius: var(--r-sm);
  padding: 14px 18px;
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  line-height: 1.6;
}
.callout i { flex-shrink: 0; margin-top: 2px; }
.callout-blue  { background: rgba(29,95,168,.07); border-left: 3px solid var(--blue); }
.callout-blue  i { color: var(--blue); }
.callout-teal  { background: rgba(13,122,110,.07); border-left: 3px solid var(--teal); }
.callout-teal  i { color: var(--teal); }
.callout-red   { background: rgba(185,28,28,.07); border-left: 3px solid var(--red); }
.callout-red   i { color: var(--red); }
.callout-gold  { background: rgba(201,165,62,.08); border-left: 3px solid var(--gold); }
.callout-gold  i { color: var(--gold); }
.callout p     { margin: 0; color: var(--text-body); }

/* ── EMERGENCY BAR ─────────────────────────── */
.emerg-bar { background: var(--red); padding: 11px 0; }
.emerg-bar p { color: white; font-size: .87rem; font-weight: 600; text-align: center; }
.emerg-bar a  { color: white; text-decoration: underline; }

/* ── DISCLAIMER ────────────────────────────── */
.disclaimer { background: rgba(217,119,6,.05); border-top: 2px solid rgba(217,119,6,.25); padding: 11px 0; }
.disclaimer p { font-size: .75rem; color: var(--text-muted); text-align: center; }
.disclaimer strong { color: var(--amber); }

/* ── FOOTER ────────────────────────────────── */
.footer { background: var(--navy); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-logo {
  display: flex; align-items: center; gap: 11px; margin-bottom: 14px;
}
.fbm { width: 38px; height: 38px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: .9rem; }
.fbn { display: flex; flex-direction: column; line-height: 1.15; }
.fbn .fn { font-size: .85rem; font-weight: 800; color: white; }
.fbn .fc { font-size: .62rem; font-weight: 600; color: var(--gold-light); letter-spacing: .04em; text-transform: uppercase; }
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,.4); line-height: 1.7; margin-bottom: 14px; }
.footer-col h4 { font-size: .79rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: white; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col ul li a { font-size: .84rem; color: rgba(255,255,255,.42); transition: var(--t); }
.footer-col ul li a:hover { color: white; }
.footer-verg-logo { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-verg-logo a { display: inline-block; transition: opacity .2s; }
.footer-verg-logo a:hover { opacity: .75; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; font-size: .79rem; color: rgba(255,255,255,.35); }
.portable-tag { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 7px; padding: 5px 11px; font-size: .72rem; color: rgba(255,255,255,.28); }
.portable-tag code { font-size: .7rem; }

/* ── SCROLL TOP ────────────────────────────── */
.scroll-top { position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px; background: var(--navy); color: white; border: none; border-radius: 50%; font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(11,31,58,.4); opacity: 0; visibility: hidden; transition: var(--t); z-index: 997; }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--blue); transform: translateY(-2px); }

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.au { animation: fadeUp .55s var(--ease) both; }
.d1 { animation-delay:.1s; } .d2 { animation-delay:.2s; }
.d3 { animation-delay:.3s; } .d4 { animation-delay:.4s; }
.d5 { animation-delay:.5s; } .d6 { animation-delay:.6s; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width:1024px) {
  .bio-grid { grid-template-columns: 260px 1fr; gap: 44px; }
  .bio-sticky { position: static; }
}
@media (max-width:880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-btns, .hero-credentials, .dacvs-pill { justify-content: center; }
  .hero-hospital-line { display: inline-flex; }
  .hero-title { max-width: none; }
  .dacvs-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .referral-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 280px; margin: 0 auto; }
  .proc-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width:640px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: white; padding: 14px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg); z-index: 999; gap: 3px;
  }
  .nav-links.mobile-open a { padding: 11px 14px; border-radius: var(--r-sm); }
  .proc-tiles { grid-template-columns: 1fr; }
  .proc-grid, .article-grid, .case-grid, .resource-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .modal-overlay { padding: 14px; }
  .modal-body { padding: 20px 18px; }
  .modal-hdr  { padding: 22px 20px; }
}
