/* =====================================================================
   Bill The Max — shared stylesheet
   Premium medical billing / RCM. Brooklyn, NY.
   Palette: deep navy + teal accent + warm gold highlight on light ground.
   ===================================================================== */

:root {
  --navy:        #0d2440;
  --navy-700:    #14365e;
  --navy-600:    #1c4a7e;
  --teal:        #19a3a3;
  --teal-600:    #0f8585;
  --teal-050:    #e6f6f6;
  --gold:        #f0a83c;
  --ink:         #1b2733;
  --slate:       #4d5b6b;
  --slate-300:   #8a99a8;
  --line:        #e3e9ef;
  --mist:        #f4f7fa;
  --mist-2:      #eef3f8;
  --white:       #ffffff;
  --ok:          #1f9d6b;
  --warn:        #d8743a;

  --maxw:        1180px;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow-sm:   0 1px 3px rgba(13,36,64,.06), 0 1px 2px rgba(13,36,64,.08);
  --shadow:      0 10px 30px rgba(13,36,64,.10);
  --shadow-lg:   0 24px 60px rgba(13,36,64,.16);

  --ff-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.012em;
}
h1 { font-size: clamp(2.05rem, 4.4vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.15rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.05rem; }

a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

strong { color: var(--navy-700); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #cdd9e6; }
.section-navy h1,
.section-navy h2,
.section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: .7rem;
}
.section-navy .eyebrow { color: var(--gold); }

.lead { font-size: 1.18rem; color: var(--slate); }
.muted { color: var(--slate); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-prose { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(25,163,163,.30); }
.btn-primary:hover { background: var(--teal-600); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(240,168,60,.32); }
.btn-gold:hover { background: #e89a25; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-600); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--navy);
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-600) 100%);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: var(--shadow-sm);
}
.brand-mark span { transform: translateY(-1px); }
.brand b { color: var(--teal-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .96rem;
  color: var(--slate);
  padding: 9px 14px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--navy); background: var(--mist); text-decoration: none; }
.nav-links a.active { color: var(--navy); background: var(--teal-050); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px; height: 42px;
  cursor: pointer;
  color: var(--navy);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links,
  .nav-cta .btn { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 14px; font-size: 1.02rem; }
  .nav-links.open .btn { display: inline-flex; margin-top: 8px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #aebed0;
  padding: 64px 0 28px;
  font-size: .96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand b { color: var(--teal); }
.site-footer p { color: #93a6bb; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #aebed0; }
.footer-links a:hover { color: #fff; }
/* Alias used by some pages — same styling as .footer-links */
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-list a { color: #aebed0; }
.footer-list a:hover { color: #fff; }
.footer-about { color: #93a6bb; margin: 14px 0 0; max-width: 320px; font-size: .95rem; }
.footer-contact { font-style: normal; color: #aebed0; line-height: 1.85; }
.footer-contact a { color: #aebed0; }
.footer-contact a:hover { color: #fff; }
.footer-legal a { color: #aebed0; }
.footer-legal a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #7e91a6;
  font-size: .88rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Generic cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  color: #fff;
  border-radius: 22px;
  padding: 54px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 280px at 88% -10%, rgba(25,163,163,.40), transparent 60%),
    radial-gradient(360px 240px at 4% 120%, rgba(240,168,60,.22), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #c8d6e6; max-width: 580px; margin: 0 auto 1.6rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   Blog / article
   ===================================================================== */
.article-hero {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
}
.crumbs { font-size: .9rem; color: var(--slate); margin-bottom: 18px; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--teal-600); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: .9rem;
  color: var(--slate);
}
.pill {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-050);
  padding: 5px 12px;
  border-radius: 999px;
}
.dot { color: var(--slate-300); }

.article-title { max-width: 16ch; }
.article-hero .lead { max-width: 60ch; margin-top: 10px; }

.hero-figure {
  margin: 30px 0 0;
}
.hero-figure img {
  width: 100%;
  height: clamp(260px, 42vw, 460px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
figcaption { font-size: .85rem; color: var(--slate-300); margin-top: 8px; text-align: center; }

/* prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose > h2 {
  margin-top: 2.4em;
  scroll-margin-top: 100px;
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.8em; color: var(--navy-700); }
.prose p { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.25rem; color: var(--ink); }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 2px; }

.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* stage list (numbered steps) */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  position: relative;
  padding: 20px 20px 20px 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px; top: 18px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: .92rem;
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-600) 100%);
  border-radius: 10px;
}
.steps li h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.steps li p { margin: 0; color: var(--slate); font-size: .98rem; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 12px 0 12px 38px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 16px;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--warn);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.checklist li::after {
  content: "!";
  position: absolute;
  left: 9px; top: 13px;
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
}

/* compare grid (in-house vs outsourced) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.compare .card h3 { display: flex; align-items: center; gap: 8px; }
.compare ul { list-style: none; margin: 8px 0 0; padding: 0; }
.compare li { position: relative; padding: 7px 0 7px 26px; color: var(--slate); font-size: .98rem; border-bottom: 1px dashed var(--line); }
.compare li:last-child { border-bottom: 0; }
.compare li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 14px; height: 14px; border-radius: 50%;
}
.compare li.pro::before  { background: var(--ok); }
.compare li.con::before  { background: #d24b4b; }
.compare li.neu::before  { background: var(--slate-300); }

/* takeaways callout */
.callout {
  background: var(--teal-050);
  border: 1px solid #c8eaea;
  border-left: 5px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
}
.callout h3 { margin-top: 0; }
.callout ul { margin: 0; padding-left: 1.1rem; }
.callout li { margin-bottom: .5rem; color: var(--ink); }

/* feature row (how Bill The Max approaches RCM) */
.feature-row { display: grid; gap: 16px; }
.feature-row .feat {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.feat-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--teal-050);
  color: var(--teal-600);
  display: grid; place-items: center;
}
.feat-icon svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.feat p { margin: 0; color: var(--slate); font-size: .98rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 600;
  margin-top: 8px;
}
.back-link svg { width: 18px; height: 18px; }

/* stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
@media (max-width: 640px) { .stat-strip { grid-template-columns: 1fr; gap: 14px; } }
.stat .num { font-family: var(--ff-head); font-weight: 800; font-size: 2.1rem; color: var(--navy); line-height: 1; }
.stat .lbl { color: var(--slate); font-size: .96rem; margin-top: 6px; }

/* utility spacing */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
