/* ============================================================
   VeriMedix — Clinical Trust Design System
   Brand: blue #2561a9 · purple #4f2d88 · orange #eb9325 · ink #1c2536
   Font: Plus Jakarta Sans
   ============================================================ */

:root {
  /* Brand */
  --blue: #2561a9;
  --blue-600: #205596;
  --blue-dark: #1c4d87;
  --blue-light: #4a82c9;
  --purple: #4f2d88;
  --purple-dark: #3d2169;
  --purple-light: #6b46b3;
  --orange: #eb9325;
  --orange-dark: #cf7d12;
  --orange-light: #f4ab4f;
  --ink: #1c2536;
  --ink-soft: #3a4254;

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f6f9fd;       /* very light blue tint */
  --bg-tint: #eef4fb;       /* soft blue card bg */
  --bg-purple: #f4f1fa;     /* soft purple tint */
  --surface: #ffffff;
  --border: #e4ecf5;
  --border-soft: #eef2f7;
  --text: #1c2536;
  --text-muted: #5b6577;
  --text-faint: #8b94a4;
  --white: #ffffff;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #eef4fb 0%, #f4f1fa 55%, #fdf4e9 100%);
  --grad-brand: linear-gradient(120deg, var(--blue) 0%, var(--purple) 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(37,97,169,0.08) 0%, rgba(79,45,136,0.08) 100%);
  --grad-cta: linear-gradient(120deg, var(--purple) 0%, var(--blue) 100%);

  /* Type scale */
  --text-sm: 0.85rem;
  --text-lg: 1.12rem;
  --text-h1: clamp(2rem, 4vw, 2.9rem);
  --text-hero: clamp(2.3rem, 5vw, 3.5rem);

  /* Radius + shadow */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(28,37,54,0.08);
  --shadow-sm: 0 2px 8px rgba(28,37,54,0.05);
  --shadow-md: 0 14px 38px rgba(28,37,54,0.10);
  --shadow-lg: 0 24px 60px rgba(37,97,169,0.14);

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
h1,h2,h3,h4 { line-height: 1.18; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
p { color: var(--text-muted); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-tint { background: var(--bg-tint); }

/* ---------- Kicker / eyebrow ---------- */
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--purple); background: var(--bg-purple);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.kicker.blue { color: var(--blue); background: var(--bg-tint); }
.kicker.orange { color: var(--orange-dark); background: #fdf1e2; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: var(--text-lg); margin-top: 14px; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 0.96rem; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: none; transition: all var(--transition);
  line-height: 1.2; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(37,97,169,0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,97,169,0.36); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue-light); color: var(--blue); transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--purple); }
.btn-white:hover { transform: translateY(-2px); color: var(--purple); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.navlink { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.navlink:hover { color: var(--blue); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px; min-width: 560px; opacity: 0; visibility: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; transition: all var(--transition); z-index: 60;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(2px); }
.dropdown a { display: block; padding: 11px 14px; border-radius: 10px; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.dropdown a span { display: block; font-weight: 500; font-size: 0.8rem; color: var(--text-faint); margin-top: 2px; }
.dropdown a:hover { background: var(--bg-tint); color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.nav-phone svg { width: 17px; height: 17px; color: var(--blue); }
.nav-phone:hover { color: var(--blue); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }
.mobile-toggle svg { width: 28px; height: 28px; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-hero); position: relative; overflow: hidden; padding: 80px 0 90px; }
.hero::after { content: ''; position: absolute; top: -120px; right: -100px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(79,45,136,0.07), transparent 70%); border-radius: 50%; }
.hero::before { content: ''; position: absolute; bottom: -140px; left: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(235,147,37,0.06), transparent 70%); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: var(--text-hero); font-weight: 800; color: var(--ink); margin-bottom: 20px; }
.hero h1 .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { font-size: var(--text-lg); color: var(--text-muted); margin-bottom: 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust .num { font-size: 1.6rem; font-weight: 800; color: var(--purple); line-height: 1; }
.hero-trust .lbl { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; margin-top: 5px; }
/* Visual column. The artwork sits on the LEFT; a right-hand column
   (.hero-side) holds the stats card and the HIPAA badge stacked vertically.
   Nothing is positioned ON TOP of the image — no overlap at any width. */
.hero-visual { position: relative; padding-right: 0; }
.hero-art-row { display: flex; align-items: center; gap: 22px; }
.hero-art { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.hero-visual img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-side { flex: 0 0 196px; display: flex; flex-direction: column; gap: 14px; }

/* HIPAA badge — now a normal in-flow card BELOW the stats, fully outside the image */
.hero-badge-static {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 16px;
  display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); font-size: 0.92rem;
}
.hero-badge-static svg { width: 32px; height: 32px; flex-shrink: 0; color: var(--blue); }
.hero-badge-static small { display: block; font-weight: 500; color: var(--text-faint); font-size: 0.74rem; }

/* Hero stats card — sits in the right column beside the artwork */
.hero-stats-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px; z-index: 3;
}
.hero-stats-card .hsc-row { display: flex; flex-direction: column; gap: 2px; }
.hero-stats-card .hsc-row + .hsc-row { padding-top: 12px; border-top: 1px solid var(--border-soft); }
.hero-stats-card .hsc-num { font-size: 1.85rem; font-weight: 800; color: var(--purple); line-height: 1; }
.hero-stats-card .hsc-num small { font-size: 0.9rem; font-weight: 700; color: var(--blue); margin-left: 3px; }
.hero-stats-card .hsc-lbl { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

/* Hero EHR chips */
.hero-ehr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.hero-ehr-label { font-size: 0.78rem; font-weight: 700; color: var(--text-faint); margin-right: 2px; }
.hero-ehr-chip {
  font-size: 0.78rem; font-weight: 700; color: var(--blue);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Logo / trust strip ---------- */
.trust-strip { padding: 32px 0; border-bottom: 1px solid var(--border-soft); }
.trust-strip p { text-align: center; font-size: var(--text-sm); color: var(--text-faint); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; }
.trust-logos span { font-weight: 800; font-size: 1.05rem; color: #aeb8c7; letter-spacing: -0.01em; }

/* ---------- Grids + cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon-box {
  width: 56px; height: 56px; border-radius: 14px; background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .icon-box svg { width: 28px; height: 28px; color: var(--blue); }
.card.purple .icon-box { background: var(--bg-purple); } .card.purple .icon-box svg { color: var(--purple); }
.card.orange .icon-box { background: #fdf1e2; } .card.orange .icon-box svg { color: var(--orange-dark); }
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { font-size: 0.96rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 0.92rem; color: var(--blue); }
.card .card-link svg { width: 15px; height: 15px; transition: transform var(--transition); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--grad-brand); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats-grid .stat .n { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stats-grid .stat .l { font-size: 0.95rem; color: rgba(255,255,255,0.85); margin-top: 8px; font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .step-n { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.1rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.94rem; }

/* ---------- Split (image + copy) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-list { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.split-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-weight: 500; }
.split-list li svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }

/* ---------- Specialty grid ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.spec-tile {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 14px;
  text-align: center; transition: all var(--transition); font-size: 0.86rem; font-weight: 700; color: var(--ink);
}
.spec-tile:hover { border-color: var(--blue-light); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--blue); }
.spec-tile svg { width: 26px; height: 26px; color: var(--blue); margin: 0 auto 8px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 1.04rem; color: var(--ink); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: all var(--transition); }
.faq-item.open .faq-a { max-height: 600px; padding: 0 24px 22px; }
.faq-a p { color: var(--ink-soft); line-height: 1.7; }

/* ---------- Testimonials ---------- */
.tcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.tcard .stars { display: flex; gap: 3px; margin-bottom: 14px; }
.tcard .stars svg { width: 18px; height: 18px; color: var(--orange); }
.tcard blockquote { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 18px; }
.tcard .who { font-weight: 700; color: var(--ink); }
.tcard .who span { display: block; font-weight: 500; color: var(--text-faint); font-size: 0.86rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-cta); border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; top: -80px; right: -60px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%); border-radius: 50%; }
.cta-band h2 { color: #fff; margin-bottom: 12px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: var(--text-lg); max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-faint); padding: 18px 0; }
.breadcrumb a { color: var(--text-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin: 38px 0 16px; }
.prose h3 { font-size: 1.25rem; margin: 28px 0 12px; color: var(--ink); }
.prose p { margin-bottom: 16px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; color: var(--ink-soft); line-height: 1.7; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.95rem; }
.prose th { background: var(--bg-tint); text-align: left; padding: 12px 14px; font-weight: 700; color: var(--ink); border: 1px solid var(--border); }
.prose td { padding: 12px 14px; border: 1px solid var(--border); color: var(--ink-soft); }
.prose tr:nth-child(even) td { background: var(--bg-soft); }
.prose blockquote { border-left: 4px solid var(--orange); padding: 4px 0 4px 20px; margin: 22px 0; color: var(--ink); font-style: italic; }
.prose img { border-radius: var(--radius); margin: 22px 0; }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(37,97,169,0.3); }

/* ---------- Page hero ---------- */
.page-hero { background: var(--grad-hero); padding: 56px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; top: -100px; right: -80px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(79,45,136,0.08), transparent 70%); border-radius: 50%; }
.page-hero .kicker { margin-bottom: 14px; }
.page-hero h1 { font-size: var(--text-h1); max-width: 760px; margin-bottom: 14px; }
.page-hero p { font-size: var(--text-lg); max-width: 640px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.page-hero-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Content layout (with sidebar) ---------- */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.sidebar-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: 96px; }
.sidebar-card + .sidebar-card { margin-top: 24px; }
.sidebar-card h4 { color: var(--ink); margin-bottom: 14px; font-size: 1.05rem; }
.sidebar-card.brand-card { background: var(--grad-brand); color: #fff; }
.sidebar-card.brand-card h4 { color: #fff; }
.sidebar-card.brand-card p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 18px; }
.sidebar-links { list-style: none; display: grid; gap: 8px; }
.sidebar-links a { font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; padding: 6px 0; display: block; }
.sidebar-links a:hover { color: var(--blue); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 20px; }
.contact-info .ci-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci-item svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.contact-info .ci-item h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info .ci-item a, .contact-info .ci-item p { color: var(--text-muted); font-weight: 500; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--ink); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-family: inherit; font-size: 0.96rem; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color var(--transition);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--blue-light); }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; }
.form-msg.ok { background: #e8f6ec; color: #1d7a3a; border: 1px solid #b7e4c3; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(18,24,38,0.55); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 520px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; }
.modal-head { background: var(--grad-brand); color: #fff; padding: 26px 28px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: relative; }
.modal-head h3 { color: #fff; font-size: 1.4rem; }
.modal-head p { color: rgba(255,255,255,0.9); font-size: 0.92rem; margin-top: 6px; }
.modal-close { position: absolute; top: 16px; right: 18px; background: rgba(255,255,255,0.2); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.modal-close:hover { background: rgba(255,255,255,0.35); }
.modal-body { padding: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { height: 76px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin: 18px 0; max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: all var(--transition); }
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--blue); transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.92rem; font-weight: 500; }
.footer-col a:hover { color: #fff; }
.footer-contact div { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.92rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--orange-light); flex-shrink: 0; }
.footer-contact a, .footer-contact span { color: rgba(255,255,255,0.72); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .page-hero-grid, .content-layout, .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dropdown { display: none; }
  .sidebar-card { position: static; }
  .content-layout { gap: 36px; }
  .hero-grid { gap: 36px; }
  /* On mobile the row stacks: image on top, then the stats card and the
     HIPAA badge side-by-side below it. Nothing overlaps the image. */
  .hero-visual { padding-right: 0; margin-top: 8px; }
  .hero-art-row { display: block; }
  .hero-art { width: 100%; }
  .hero-side { flex: none; flex-direction: row; gap: 12px; margin-top: 14px; }
  .hero-stats-card { flex: 1 1 auto; padding: 14px 16px; gap: 10px; }
  .hero-stats-card .hsc-row + .hsc-row { padding-top: 9px; }
  .hero-stats-card .hsc-num { font-size: 1.5rem; }
  .hero-stats-card .hsc-lbl { font-size: 0.72rem; }
  .hero-badge-static { flex: 0 0 auto; align-self: flex-start; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-phone { display: none; }
  .mobile-toggle { display: block; }
  .mobile-menu.open {
    display: block; position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    height: calc(100vh - 76px); height: calc(100dvh - 76px);
    background: #fff; z-index: 120; padding: 24px; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu a { display: block; padding: 14px 0; font-weight: 700; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--border-soft); }
  .mobile-menu .btn { width: 100%; margin-top: 18px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .modal-body { padding: 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  /* On small phones, stack the stats card and badge vertically (full width) */
  .hero-side { flex-direction: column; gap: 10px; }
  .hero-stats-card { width: 100%; padding: 13px 15px; gap: 9px; }
  .hero-stats-card .hsc-num { font-size: 1.4rem; }
  .hero-stats-card .hsc-lbl { font-size: 0.7rem; }
  .hero-badge-static { width: 100%; }
}

/* ---------- Specialty pages ---------- */
.spec-search-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.spec-search { position: relative; flex: 1; min-width: 260px; }
.spec-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-faint); }
.spec-search input { width: 100%; padding: 14px 16px 14px 46px; border: 1px solid var(--border); border-radius: 999px; font-size: 1rem; font-family: inherit; background: #fff; }
.spec-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,97,169,0.12); }
.spec-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { border: 1px solid var(--border); background: #fff; color: var(--ink-soft); padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all var(--transition); font-family: inherit; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.spec-group { margin-bottom: 40px; }
.spec-group h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.spec-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all var(--transition); }
.spec-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.spec-card .spec-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-tint); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.spec-card .spec-ico svg { width: 24px; height: 24px; }
.spec-card b { color: var(--ink); font-size: 1rem; }
.spec-card .go { font-size: 0.82rem; color: var(--blue); font-weight: 600; display: flex; align-items: center; gap: 5px; margin-top: auto; }
.spec-card .go svg { width: 15px; height: 15px; }
.spec-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.no-results { display: none; text-align: center; padding: 40px; color: var(--text-muted); }
/* specialty detail hero stats */
.sp-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.sp-hero-stats .s b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--blue); line-height: 1; }
.sp-hero-stats .s span { font-size: 0.82rem; color: var(--text-muted); max-width: 22ch; display: block; margin-top: 4px; }
/* problem cards */
.problem-grid { display: grid; gap: 16px; margin: 18px 0; }
.problem { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 18px 20px; }
.problem .pt { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.problem .pt svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.problem p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
/* ehr tags */
.ehr-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.ehr-tag { background: var(--bg-tint); color: var(--blue-dark); padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
/* callout */
.callout { background: var(--grad-brand-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; color: var(--ink); font-size: 0.98rem; }
.callout b { color: var(--blue); }
.prose code { background: var(--bg-tint); color: var(--blue-dark); padding: 2px 7px; border-radius: 6px; font-size: 0.9em; font-weight: 600; }
.related-list { list-style: none; display: grid; gap: 8px; }
.related-list a { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.related-list a:hover { color: var(--blue); }
@media (max-width: 980px) { .spec-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .spec-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .spec-cards-grid { grid-template-columns: 1fr; } }

/* ---- Blog ---- */
.blog-hero { padding-bottom: 28px; }
.blog-lead { max-width: 760px; font-size: 1.15rem; color: var(--ink-soft); line-height: 1.7; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 0.9rem; color: var(--text-muted); align-items: center; }
.blog-meta span { display: inline-flex; align-items: center; }
.blog-meta span + span::before { content: "•"; margin-right: 20px; color: var(--border); }
.blog-cat { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--blue); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; }
.blog-prose { max-width: none; }
.blog-prose > p:first-of-type { font-size: 1.12rem; color: var(--ink); }
.blog-prose .key-takeaways { background: var(--bg-tint); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 30px; }
.blog-prose .key-takeaways h2, .blog-prose .key-takeaways h3 { margin-top: 0; font-size: 1.05rem; color: var(--purple); text-transform: uppercase; letter-spacing: .03em; }
.blog-prose .key-takeaways ul { margin-bottom: 0; }
.blog-prose blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--orange); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-style: italic; }
.blog-prose .callout { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.blog-prose .callout strong { color: var(--purple); }
.blog-sidebar { align-self: start; }
.toc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.toc-card h4 { margin: 0 0 12px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.toc-card ol { margin: 0; padding-left: 18px; }
.toc-card li { margin-bottom: 8px; font-size: 0.92rem; line-height: 1.4; }
.toc-card a { color: var(--ink-soft); text-decoration: none; }
.toc-card a:hover { color: var(--blue); }

/* Blog hub grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; text-decoration: none; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--grad-brand); }
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card .blog-cat { align-self: flex-start; margin-bottom: 12px; }
.blog-card h3 { font-size: 1.18rem; line-height: 1.32; color: var(--ink); margin: 0 0 10px; }
.blog-card p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.blog-card-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 14px; align-items: center; }
.blog-card-more { margin-top: 14px; color: var(--blue); font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.blog-card-more svg { width: 16px; height: 16px; }
.blog-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.blog-featured .blog-card-img { aspect-ratio: auto; height: 100%; min-height: 280px; }
.blog-featured .blog-card-body { padding: 36px 40px; justify-content: center; }
.blog-featured h2 { font-size: 1.7rem; line-height: 1.25; margin: 10px 0 14px; color: var(--ink); }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .blog-card-img { min-height: 200px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured .blog-card-body { padding: 26px 24px; }
}
