/* ============================================================
   THERAPEUTIC APHERESIS — Global Stylesheet
   Design: Clinical & Trustworthy
   ============================================================ */

/* --- FONTS & RESET --- */
/* Self-hosted fonts — GDPR compliant, no Google Fonts CDN */
@font-face { font-family: 'Inter'; src: url('fonts/inter-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Merriweather'; src: url('fonts/merriweather-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Merriweather'; src: url('fonts/merriweather-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

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

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #102843;
  --navy-mid:   #254e78;
  --blue-light: #e8f0f8;
  --blue-muted: #b8cfe4;
  --accent:     #2c72b8;
  --accent-hover:#1e5a96;
  --teal:       #0e7490;
  --gold:       #c5820a;
  --white:      #ffffff;
  --off-white:  #f7f9fc;
  --gray-50:    #f4f6f9;
  --gray-100:   #e9edf2;
  --gray-300:   #b0bccc;
  --gray-500:   #6b7a8d;
  --gray-700:   #3d4e60;
  --gray-900:   #1a2533;
  --text:       #1f2d3d;
  --text-muted: #556678;
  --cat-I:      #155e24;
  --cat-I-bg:   #dcfce7;
  --cat-II:     #1d4ed8;
  --cat-II-bg:  #dbeafe;
  --cat-III:    #92400e;
  --cat-III-bg: #fef3c7;
  --cat-IV:     #991b1b;
  --cat-IV-bg:  #fee2e2;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.10);
  --shadow:     0 4px 14px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.13);
  --transition: 0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--text-muted); line-height: 1.75; }
a  { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
strong { color: var(--text); font-weight: 600; }

/* --- LAYOUT --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: var(--blue-muted); }
.section-light { background: var(--off-white); }
.section-blue { background: var(--blue-light); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.flex { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* --- TOP HEADER --- */
.site-header {
  background: var(--navy-dark);
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0; padding-bottom: 0; height: 68px; }
/* ── NAV LOGO ── */
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-badge { display: flex; align-items: center; flex-shrink: 0; }
.logo-badge svg { display: block; }
.logo-wordmark { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.logo-name {
  display: block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.logo-sub {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--blue-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 3px;
}
/* Divider line between badge and wordmark */
.logo-wordmark::before {
  content: '';
  display: none; /* shown via border on parent if needed */
}

/* ── FOOTER LOGO ── */
.footer-logo-link { display: inline-block; text-decoration: none; margin-bottom: 14px; }
.footer-logo-inline { display: flex; align-items: center; gap: 12px; }
.footer-logo-inline svg { display: block; flex-shrink: 0; }
.footer-logo-text { display: flex; flex-direction: column; justify-content: center; }
.footer-logo-name {
  display: block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.footer-logo-sub {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--blue-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 3px;
}
/* Legacy SVG logo classes — kept for any remaining references */
.logo-full-img  { height: 42px; width: auto; display: block; }
.logo-icon-only { display: none; height: 40px; width: 40px; }
.footer-logo    { height: 50px; width: auto; display: block; margin-bottom: 14px; }

nav.main-nav { display: flex; align-items: center; gap: 4px; }
nav.main-nav a {
  color: var(--blue-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { color: white; background: rgba(255,255,255,0.1); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: white; }

/* --- AUDIENCE BADGE --- */
.audience-bar {
  background: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.audience-bar .container { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.audience-bar p { font-size: 0.8rem; color: var(--blue-muted); margin: 0; }
.btn-audience {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-clinician { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-clinician:hover, .btn-clinician.selected { background: var(--accent); color: white; }
.btn-patient { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-patient:hover, .btn-patient.selected { background: var(--teal); color: white; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer; border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: white; }
.btn-white { background: white; color: var(--navy); }
.btn-white:hover { background: var(--blue-light); color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: #0c6080; color: white; }

/* --- CARDS --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--blue-muted); transform: translateY(-2px); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; }

/* --- STAT BLOCKS --- */
.stat-block { text-align: center; padding: 24px 16px; }
.stat-number { font-size: 2.8rem; font-weight: 700; font-family: 'Inter', sans-serif; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.stat-block.on-dark .stat-number { color: var(--blue-muted); }
.stat-block.on-dark .stat-label { color: rgba(255,255,255,0.5); }

/* --- ASFA CATEGORY BADGES --- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; line-height: 1.4; }
.badge-I   { background: var(--cat-I-bg);   color: var(--cat-I);   }
.badge-II  { background: var(--cat-II-bg);  color: var(--cat-II);  }
.badge-III { background: var(--cat-III-bg); color: var(--cat-III); }
.badge-IV  { background: var(--cat-IV-bg);  color: var(--cat-IV);  }

.grade-pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; background: var(--gray-100); color: var(--gray-700); font-family: 'Inter', sans-serif; }

/* --- PROCEDURE TAG --- */
.proc-tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; background: var(--navy); color: white; margin: 2px; }

/* --- DISEASE CARDS --- */
.disease-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 10px;
}
.disease-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.disease-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
/* Prevent title from pushing badge outside card */
.disease-card-header h4 { flex: 1; min-width: 0; font-size: 1rem; margin: 0; color: var(--navy); overflow-wrap: break-word; word-break: break-word; }
.disease-card-header .badge { flex-shrink: 0; align-self: flex-start; white-space: nowrap; }
.disease-card h4 { font-size: 1rem; margin: 0; color: var(--navy); }
.disease-card p { font-size: 0.85rem; margin: 0; line-height: 1.55; }
.disease-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.proc-tag { white-space: nowrap; }

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
  padding: 88px 0 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; }
.hero-eyebrow { font-size: 0.8rem; font-weight: 700; color: var(--blue-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.hero h1 { color: white; margin-bottom: 20px; }
.hero h1 em { color: var(--blue-muted); font-style: normal; }
.hero p { color: var(--blue-muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.1); border-radius: var(--radius-lg); overflow: hidden; margin-top: 56px; }
.hero-stat { background: rgba(255,255,255,0.06); padding: 20px; text-align: center; }
.hero-stat-n { font-size: 2rem; font-weight: 700; color: white; }
.hero-stat-l { font-size: 0.78rem; color: var(--blue-muted); margin-top: 4px; }

/* --- PAGE HERO (inner pages) --- */
.page-hero { background: var(--navy); padding: 52px 0 44px; }
.page-hero h1 { color: white; }
.page-hero p { color: var(--blue-muted); margin-top: 10px; max-width: 640px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.breadcrumb a { font-size: 0.8rem; color: var(--blue-muted); }
.breadcrumb span { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.breadcrumb .current { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* --- FILTERS / SEARCH --- */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 20px 24px;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.filter-bar input[type="search"] {
  flex: 1; min-width: 200px;
  padding: 10px 16px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}
.filter-bar input[type="search"]:focus { border-color: var(--accent); }
.filter-select {
  padding: 10px 14px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--accent); }
.results-count { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

/* --- SECTION LABELS --- */
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.section-label span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--gray-100); }

/* --- TABLE --- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { text-align: left; padding: 12px 16px; background: var(--navy); color: white; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.data-table th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--off-white); }

/* --- ACCORDION --- */
.accordion-item { border: 1px solid var(--gray-100); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  background: white;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--off-white); }
.accordion-header h4 { margin: 0; color: var(--navy); }
.accordion-header .chevron { transition: transform var(--transition); color: var(--gray-500); }
.accordion-header.open .chevron { transform: rotate(180deg); }
.accordion-body { padding: 0 22px 20px; display: none; }
.accordion-body.open { display: block; }

/* --- CALLOUT BOXES --- */
.callout { border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; display: flex; gap: 14px; }
.callout-info { background: var(--blue-light); border-left: 4px solid var(--accent); }
.callout-warn { background: #fef3c7; border-left: 4px solid var(--gold); }
.callout-success { background: var(--cat-I-bg); border-left: 4px solid var(--cat-I); }
.callout-icon { flex-shrink: 0; margin-top: 2px; }
.callout-icon svg { width: 20px; height: 20px; }
.callout p { font-size: 0.9rem; margin: 0; }
.callout p strong { color: var(--text); }

/* --- FOOTER --- */
.site-footer { background: var(--navy-dark); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h5 { color: white; font-size: 0.9rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--blue-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: white; }
.footer-desc { color: var(--blue-muted); font-size: 0.875rem; line-height: 1.7; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.disclaimer-badge { background: rgba(255,255,255,0.08); border-radius: 4px; padding: 3px 10px; font-size: 0.72rem; color: rgba(255,255,255,0.4); }

/* --- PROCESS STEPS --- */
.step-list { counter-reset: steps; display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  counter-increment: steps;
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent);
  color: white; font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-num::after { content: counter(steps); }
.step-content h4 { margin-bottom: 4px; }
.step-content p { font-size: 0.9rem; }

/* --- TABS --- */
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--gray-100); margin-bottom: 28px; }
.tab-btn {
  padding: 12px 22px;
  border: none; background: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- SPECIALTY SECTION HEADERS --- */
.specialty-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0 10px;
  border-bottom: 2px solid var(--blue-light);
  margin-bottom: 18px; margin-top: 36px;
}
.specialty-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.specialty-icon svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 1.8; }
.specialty-header h3 { font-size: 1.1rem; margin: 0; }
.specialty-header .count { font-size: 0.8rem; color: var(--text-muted); background: var(--gray-50); border-radius: 20px; padding: 2px 10px; }

/* ============================================================
   RESPONSIVE — Mobile First Overrides
   ============================================================ */

/* --- Tablet (≤ 900px) --- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {
  /* Layout */
  .container { padding: 0 16px; }
  .section   { padding: 52px 0; }
  .section-sm { padding: 36px 0; }

  /* Navigation */
  nav.main-nav { display: none; }
  .nav-toggle  { display: block; }

  /* Logo: hide wordmark text on mobile, keep badge */
  .logo-wordmark  { display: none; }
  .logo-full-img  { display: none; }
  .logo-icon-only { display: block; }

  /* Hero */
  .hero { padding: 56px 0 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  /* Page hero */
  .page-hero { padding: 36px 0 32px; }

  /* Grids → 2 or 1 column */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Disease cards */
  .disease-card { padding: 16px; }
  .disease-card-header { flex-wrap: nowrap; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .filter-bar input[type="search"] { min-width: unset; }
  .filter-bar select { width: 100%; }

  /* Data tables: horizontal scroll */
  .table-wrap, .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 560px; }

  /* Accordion */
  .accordion-header { font-size: 0.9rem; padding: 14px 16px; }

  /* Tabs */
  .tab-list { flex-wrap: wrap; gap: 6px; }
  .tab-btn  { padding: 7px 14px; font-size: 0.82rem; }

  /* Two-column inline grids (patients page) → single column */
  .two-col-basic { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Category cards (guidelines page) */
  .cat-grid, [class*="cat-row"], .grade-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-logo  { height: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .disclaimer-badge { text-align: center; }

  /* Disease modal — override inline styles */
  #modalContent { margin: 16px !important; max-width: calc(100% - 32px) !important; border-radius: var(--radius) !important; }
  #modalHeader  { padding: 20px 18px 16px !important; }
  #modalBody    { padding: 20px 18px !important; }
  .modal-inner  { margin: 12px; width: calc(100% - 24px); max-height: calc(100vh - 24px); padding: 22px 18px; }
  .modal-header { flex-direction: column; gap: 10px; }
}

/* --- Small phones (≤ 480px) --- */
@media (max-width: 480px) {
  /* Typography */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-stat-num { font-size: 1.8rem; }

  /* Stacked grids */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Disease card: tighter padding */
  .disease-card { padding: 14px; }
  .disease-card h4 { font-size: 0.92rem; }
  .disease-card p  { font-size: 0.8rem; }
  .badge { font-size: 0.72rem; padding: 2px 7px; }

  /* Footer: single column */
  .footer-grid { grid-template-columns: 1fr; }

  /* Section padding */
  .section   { padding: 40px 0; }
  .section-sm { padding: 28px 0; }
  .page-hero  { padding: 28px 0 24px; }
}

/* --- UTILITY --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--gray-100); margin: 32px 0; }
