/* Mahastar Medical Billing LLC — site styles */

:root {
  --brand: #23306b;
  --brand-700: #1a2450;
  --brand-300: #4d5a9c;
  --accent: #14b5c9;
  --accent-600: #0e93a5;
  --ink: #1b2130;
  --body: #4a5468;
  --muted: #6b7587;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-tint: #eef2fb;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(27, 33, 48, .06);
  --shadow: 0 12px 34px rgba(27, 33, 48, .10);
  --shadow-lg: 0 24px 60px rgba(27, 33, 48, .16);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--accent-600); }
ul { margin: 0; }

.container { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }
.center { text-align: center; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 16px; height: 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .97rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, background .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #05262c !important; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff !important; }
.btn-primary { background: var(--brand); color: #fff !important; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.section .btn-ghost, .section-alt .btn-ghost { color: var(--brand) !important; border-color: var(--line); }
.section .btn-ghost:hover, .section-alt .btn-ghost:hover { background: var(--bg-tint); border-color: var(--brand-300); }
.btn-block { width: 100%; }

.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand-700); color: #c7cfe8; font-size: .86rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar-note { margin: 0; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar-links a:hover { color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; font-weight: 800; color: var(--brand); font-size: 1.22rem; line-height: 1.05; letter-spacing: -.02em; }
.brand-text small { font-size: .63rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-text small { color: #9fb0d8; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav > ul { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; }
.primary-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.primary-nav a:hover, .primary-nav a.active { color: var(--accent-600); }
.has-sub { position: relative; }
.caret { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub-toggle { display: none; }
.sub {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .16s ease;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { display: block; padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.sub a:hover { background: var(--bg-tint); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(20,181,201,.30), transparent 62%),
    linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 58%, #141c3e 100%);
  color: #d5dcf1; padding: 74px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .hl { color: var(--accent); }
.eyebrow { color: var(--accent-600); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0 0 12px; }
.eyebrow.light { color: var(--accent); }
.lead { font-size: 1.1rem; }
.hero .lead { color: #c3cdea; }
.hero-points { list-style: none; padding: 0; display: grid; gap: 10px; margin: 26px 0 30px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #e4e9f7; }
.hero-points .icon { color: var(--accent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.center-actions { justify-content: center; }

.page-hero {
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #c3cdea; padding: 62px 0;
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #c3cdea; max-width: 62ch; }
.page-hero .btn { margin-top: 20px; }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: #93a2cd; }
.crumbs a { color: #c3cdea; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 6px; }

/* ---------- Forms ---------- */
.lead-form {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg); display: grid; gap: 14px;
}
.lead-form-title { margin: 0 0 4px; font-size: 1.22rem; font-weight: 800; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .87rem; color: var(--ink); }
.field label span { color: #d64545; }
.field input, .field textarea {
  font: inherit; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(20,181,201,.18); }
.field.invalid input, .field.invalid textarea { border-color: #d64545; }
.field-error { color: #c23434; font-size: .82rem; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 700; font-size: .9rem; }
.form-status.ok { color: #157a5b; }
.form-status.err { color: #c23434; }

/* ---------- Stat band ---------- */
.stat-band { background: var(--bg-tint); padding: 34px 0; border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; text-align: center; }
.stat-value { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--brand); margin: 0; letter-spacing: -.03em; }
.stat-label { margin: 0; font-weight: 600; color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(140deg, var(--brand) 0%, #141c3e 100%); color: #c3cdea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head.center .section-intro { margin-inline: auto; }
.section-head.left { margin-bottom: 26px; }
.section-intro { color: var(--muted); max-width: 66ch; font-size: 1.04rem; margin-bottom: 0; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--brand); margin-bottom: 4px;
}
.service-card p { color: var(--muted); flex: 1; margin: 0; }
.service-card h3 { font-size: 1.14rem; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-reverse .split-copy { order: 2; }
.split-copy p { color: inherit; }
.section .split-copy p, .section-alt .split-copy p { color: var(--body); }
.split-copy .btn { margin-top: 12px; }

.feature-list { display: grid; gap: 22px; }
.feature-list.wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-check {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(20,181,201,.16); color: var(--accent-600);
}
.feature h3 { margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.section-dark .feature p { color: #a9b6dc; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: step;
}
.steps li {
  counter-increment: step; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 24px; position: relative;
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff;
  font-weight: 800; margin-bottom: 14px;
}
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Specialties ---------- */
.specialty-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.specialty-chips li {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: #dfe6f8;
}
.specialty-chips .more { background: var(--accent); border-color: var(--accent); }
.specialty-chips .more a { color: #05262c; text-decoration: none; font-weight: 800; }

.specialty-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.specialty-grid li {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; color: var(--ink);
}
.specialty-grid .icon { color: var(--accent-600); }

/* ---------- Audit / pain list ---------- */
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pain-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.pain-list li {
  display: flex; gap: 12px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-weight: 600; color: var(--ink);
}
.pain-list .icon { color: var(--accent-600); margin-top: 4px; }

/* ---------- Pricing ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.compare-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.compare-card.highlight { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.badge {
  position: absolute; top: -13px; left: 30px; background: var(--accent); color: #05262c;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
.compare-list { list-style: none; padding: 0; margin: 0 0 20px; }
.compare-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.compare-list li:last-child { border-bottom: 0; }
.compare-list strong { color: var(--ink); white-space: nowrap; }

.price-card { background: #fff; border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); text-align: center; }
.price-label { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin: 0; }
.price-value { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; color: var(--brand); margin: 6px 0; letter-spacing: -.03em; }
.price-value span { font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price-note { font-size: .82rem; color: #b06a00; background: #fff6e5; border-radius: 8px; padding: 8px 12px; display: inline-block; }
.price-includes { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; text-align: left; }
.price-includes li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); font-size: .95rem; }
.price-includes .icon { color: var(--accent-600); }
.price-notes { margin-top: 44px; }
.price-notes h3 { margin-top: 24px; }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; }
.accordion details[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.accordion summary {
  font-weight: 700; color: var(--ink); cursor: pointer; padding: 16px 30px 16px 0;
  position: relative; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent-600); line-height: 1;
}
.accordion details[open] summary::after { content: "−"; }
.accordion-body { padding-bottom: 16px; }
.accordion-body p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent-600) 160%);
  color: #d5dcf1; padding: 58px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 62ch; color: #c3cdea; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-details { list-style: none; padding: 0; display: grid; gap: 20px; margin-bottom: 30px; }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; }
.contact-details .icon { color: var(--accent-600); margin-top: 4px; }
.contact-details h3 { margin: 0 0 2px; font-size: .96rem; }
.contact-details a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-details a:hover { color: var(--accent-600); }
.contact-note { background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 18px 22px; }
.contact-note h3 { margin: 0 0 6px; }
.contact-note p { margin: 0; font-size: .93rem; color: var(--muted); }

.sticky-form { position: sticky; top: 100px; }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.callout { background: #fff6e5; border-left: 3px solid #e0a020; padding: 16px 20px; border-radius: 0 12px 12px 0; }

.error-page { padding: 110px 0; }

/* ---------- Footer ---------- */
.site-footer { background: #121a38; color: #97a4c9; padding: 62px 0 0; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 42px; padding-bottom: 42px; }
.footer-brand p { margin: 18px 0; max-width: 42ch; }
.footer-col h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #97a4c9; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-contact { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--accent); }
.footer-cta-text { margin-bottom: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .87rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Floating call button ---------- */
.call-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; display: none;
  place-items: center; background: var(--accent); color: #05262c;
  box-shadow: var(--shadow); text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .audit-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-copy { order: 0; }
  .sticky-form { position: static; }
  .section { padding: 60px 0; }
  .hero { padding: 54px 0 62px; }
  .call-fab { display: grid; }
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }

  .nav-toggle { display: flex; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 22px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); max-height: calc(100vh - 116px); overflow-y: auto;
  }
  .primary-nav.open { display: flex; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line); }
  .primary-nav > ul > li > a { display: block; padding: 14px 4px; }
  .caret { display: none; }
  .has-sub { display: grid; grid-template-columns: 1fr auto; }
  .sub-toggle {
    display: block; width: 44px; background: none; border: 0; cursor: pointer;
    position: relative; color: var(--ink);
  }
  .sub-toggle::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
  }
  .sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; min-width: 0;
    grid-column: 1 / -1; padding: 0 0 10px 12px; display: none;
  }
  .sub.open { display: block; }
  .nav-cta { margin-top: 18px; }
}

@media (max-width: 560px) {
  .container { width: min(var(--maxw), 100% - 32px); }
  .lead-form { padding: 22px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .topbar-links { flex-direction: column; gap: 2px; align-items: center; padding: 6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
