/* ============================================================
   Matt Schertz — Healthcare IT Leadership site
   Modern design system: Sora (display) + Inter (body)
   Palette: deep slate/navy + teal accent
   ============================================================ */

:root {
  --ink: #0b1220;
  --ink-soft: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --accent-soft: #e6fbf7;
  --navy: #0f172a;
  --navy-2: #16213e;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-700);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: "Sora", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; display: block; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand-name {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active {
  background: var(--slate-100);
  color: var(--ink);
}
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15,23,42,0.06);
  padding: 8px;
  display: none;
}
.nav-links .dropdown:hover .dropdown-menu,
.nav-links .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.dropdown-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-bottom: 1px solid rgba(15,23,42,0.08);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .dropdown-menu { position: static; box-shadow: none; display: block; margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 15% -10%, #0f2a3d 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: #fff;
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.12), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent-light); display: inline-block; }
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  max-width: 780px;
  margin-bottom: 20px;
}
.hero .lead {
  color: rgba(255,255,255,0.78);
  font-size: 19px;
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero layout with portrait */
.hero-flex {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-flex { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; margin: 0 auto 12px; }
}
.hero-portrait {
  position: relative;
  width: 260px;
  height: 260px;
  margin-left: auto;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), transparent 60%);
  opacity: 0.5;
  filter: blur(2px);
}
.hero-portrait img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

/* About page portrait */
.about-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15,23,42,0.08);
  max-width: 340px;
  margin: 0 auto 24px;
}
.about-portrait img { width: 100%; display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(13,148,136,0.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.stat-num { font-family: "Sora", sans-serif; font-size: 30px; font-weight: 700; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; }
@media (max-width: 800px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section.block { padding: 84px 0; }
section.block.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head p { color: var(--slate-500); font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card .icon-wrap svg { width: 24px; height: 24px; }
.card h4 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--slate-500); font-size: 15px; margin-bottom: 14px; }
.card a.card-link { font-weight: 600; font-size: 14px; }

/* Timeline (experience) */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--slate-300); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item .role { font-size: 18px; font-weight: 700; color: var(--ink); }
.timeline-item .org { color: var(--accent); font-weight: 600; font-size: 14px; }
.timeline-item .when { color: var(--slate-500); font-size: 13px; margin-bottom: 8px; display:block; }
.timeline-item ul { margin: 10px 0 0; padding-left: 20px; color: var(--slate-500); font-size: 15px; }
.timeline-item li { margin-bottom: 6px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--ink-soft);
}

/* Pull quote / about */
.pull-quote {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 22px;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  color: var(--ink);
  margin: 32px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.side-card {
  background: var(--bg-alt);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: var(--radius);
  padding: 26px;
}
.side-card h5 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 14px; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(15,23,42,0.06); font-size: 14.5px; }
.side-card li:last-child { border-bottom: none; }
.side-card li span:first-child { color: var(--slate-500); }
.side-card li span:last-child { color: var(--ink); font-weight: 600; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  margin: 0 auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 24px; }

/* Forms */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--slate-300);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 140px; resize: vertical; }
.error-text { color: #dc2626; font-size: 13px; margin-top: 6px; display: none; }

/* Modal (contact confirmation) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-box .modal-head { padding: 20px 24px; background: var(--bg-alt); display:flex; align-items:center; justify-content: space-between; }
.modal-box .modal-head h4 { margin: 0; font-size: 16px; }
.modal-box .modal-body { padding: 24px; color: var(--slate-700); }
.modal-box .modal-foot { padding: 16px 24px; text-align: right; border-top: 1px solid rgba(15,23,42,0.06); }
.close-x { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--slate-500); }

.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.d-none { display: none !important; }

/* Prose pages (privacy) */
.prose h1, .prose h2, .prose h3 { margin-top: 1.6em; }
.prose h1:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose { color: var(--slate-700); font-size: 15.5px; }

/* Footer */
footer.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 60px 0 28px; }
footer.site-footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 10px; }
footer.site-footer a { color: rgba(255,255,255,0.65); font-size: 14.5px; }
footer.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px; }

/* Page hero (non-home pages) */
.page-hero { background: var(--bg-alt); padding: 64px 0 48px; border-bottom: 1px solid rgba(15,23,42,0.06); }
.page-hero .kicker { display:block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.page-hero p { color: var(--slate-500); font-size: 17px; max-width: 640px; }

.iframe-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid rgba(15,23,42,0.08); }
