/* Meridian Medical Billing — bmb1 sampler */

:root {
  --navy: #0A2540;
  --navy-70: rgba(10, 37, 64, 0.72);
  --navy-50: rgba(10, 37, 64, 0.55);
  --navy-15: rgba(10, 37, 64, 0.15);
  --navy-08: rgba(10, 37, 64, 0.08);
  --sky: #4F86F7;
  --sky-hover: #3d70e0;
  --gray: #F5F7FA;
  --white: #FFFFFF;
  --radius-btn: 10px;
  --radius-card: 2px;
  --shadow-card: 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-card-hover: 0 6px 20px rgba(10, 37, 64, 0.08);
  --max: 1160px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--navy);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 20px;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--navy-70);
  max-width: 640px;
  margin: 0 0 40px;
}

.section-sub {
  font-size: 18px;
  color: var(--navy-70);
  max-width: 620px;
  margin: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 13px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(79, 134, 247, 0.24);
}

.btn-primary:hover {
  background: var(--sky-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(79, 134, 247, 0.28);
}

.btn-lg {
  font-size: 17px;
  padding: 17px 28px;
}

.quiet-link {
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.quiet-link:hover {
  border-bottom-color: var(--navy);
}

/* ---------- brand mark ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--sky) 0%, var(--sky) 50%, var(--navy) 50%, var(--navy) 100%);
}

.brand-word { line-height: 1; }

.brand-large { font-size: 22px; }
.brand-large .brand-mark { width: 26px; height: 26px; border-radius: 5px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--navy-08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.nav-links {
  display: flex;
  gap: 34px;
  margin-left: auto;
  margin-right: 24px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-70);
  transition: color 140ms ease;
}

.nav-links a:hover { color: var(--navy); }

.nav-cta { padding: 10px 18px; font-size: 14px; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(72px, 12vw, 148px) 0 clamp(80px, 10vw, 128px);
  background:
    radial-gradient(circle at 88% 10%, rgba(79, 134, 247, 0.10), transparent 45%),
    radial-gradient(circle at 8% 80%, rgba(79, 134, 247, 0.06), transparent 50%),
    var(--white);
  position: relative;
  overflow: hidden;
}

.hero-inner { max-width: 880px; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ---------- sections ---------- */

.alt { background: var(--gray); }

.services,
.insights {
  padding: clamp(80px, 10vw, 128px) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 0 64px;
}

/* ---------- service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--navy-08);
  border-radius: var(--radius-card);
  padding: 32px 28px 36px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--navy-15);
}

.card-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sky);
  margin: 0 0 24px;
}

.card h3 { margin-bottom: 12px; }

.card p {
  color: var(--navy-70);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- quote ---------- */

.quote {
  padding: clamp(96px, 12vw, 148px) 0;
  background: var(--white);
}

.quote-inner {
  max-width: 880px;
  text-align: center;
}

.quote .eyebrow { text-align: center; }

blockquote {
  margin: 0;
  padding: 0;
}

blockquote p {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 36px;
}

blockquote footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  font-size: 14px;
}

.quote-name {
  font-weight: 600;
  color: var(--navy);
}

.quote-role {
  color: var(--navy-50);
  letter-spacing: 0.01em;
}

/* ---------- insights ---------- */

.insight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insight-list li {
  background: var(--white);
  border: 1px solid var(--navy-08);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: border-color 200ms ease, transform 200ms ease;
}

.insight-list li:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
}

.insight-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-50);
  margin: 0 0 20px;
}

.insight-list h3 { margin-bottom: 10px; }

.insight-list p {
  color: var(--navy-70);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- footer CTA ---------- */

.footer-cta {
  padding: clamp(100px, 12vw, 148px) 0 clamp(72px, 8vw, 96px);
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.footer-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-cta .brand { color: var(--white); }
.footer-cta .brand-mark {
  background:
    linear-gradient(135deg, var(--sky) 0%, var(--sky) 50%, var(--white) 50%, var(--white) 100%);
}

.footer-lede {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0;
}

.meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  margin: 12px 0 0;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .insight-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 22px; }
  .nav-links { display: none; }
  .nav-cta { display: inline-flex; }
  .cards { grid-template-columns: 1fr; }
  .cta-row { gap: 14px; }
  .btn { width: 100%; }
  .quiet-link { width: 100%; text-align: center; }
  .btn-lg { width: auto; }
  .section-head { margin-bottom: 44px; }
}

@media (max-width: 420px) {
  h1 { font-size: 40px; }
  .lede { font-size: 18px; }
  .card { padding: 26px 22px 30px; }
}
