/* =========================================================
   Medical Management RCM — Design System
   Built on Bootstrap 5.2 — variables below override/extend it
   ========================================================= */

:root {
  /* Color system */
  --navy: #0b1f3d;
  --navy-steel: #14315c;
  --white: #ffffff;
  --mist: #f4f6f9;
  --charcoal: #1a1f2b;
  --slate: #64748b;
  --emerald: #0f9d6e;
  --emerald-dark: #0c7e58;
  --emerald-mist: #e6f7f1;
  --gold: #d4a82a;

  /* Typography */
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Bootstrap overrides */
  --bs-primary: var(--navy);
  --bs-success: var(--emerald);
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--charcoal);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 40px rgba(11, 31, 61, 0.08);
  --shadow-card: 0 4px 24px rgba(11, 31, 61, 0.06);
}

/* =========================================================
   Base
   ========================================================= */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-dark);
}

.text-mono { font-family: var(--font-mono); }
.text-slate { color: var(--slate); }
.bg-mist { background-color: var(--mist); }
.bg-navy { background-color: var(--navy); }
.bg-navy-gradient {
  background: radial-gradient(120% 140% at 80% 0%, var(--navy-steel) 0%, var(--navy) 55%, #081730 100%);
}
.text-emerald { color: var(--emerald); }

a { color: var(--navy); }
a:hover { color: var(--emerald-dark); }

section { padding: 5.5rem 0; }
@media (max-width: 767.98px) {
  section { padding: 3.25rem 0; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-emerald {
  background-color: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(15, 157, 110, 0.25);
}
.btn-emerald:hover, .btn-emerald:focus {
  background-color: var(--emerald-dark);
  border-color: var(--emerald-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 157, 110, 0.32);
}

.btn-outline-navy {
  background: transparent;
  border: 1.5px solid rgba(11, 31, 61, 0.25);
  color: var(--navy);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.btn-outline-navy:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.btn-outline-light-custom {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* =========================================================
   Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--navy);
  transition: box-shadow 0.2s ease, padding 0.2s ease;
  padding: 0.85rem 0;
}
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  padding: 0.55rem 0;
}
.navbar-brand-rcm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand-rcm .brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--emerald), #0a6b4c);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}
.nav-link-rcm {
  color: rgba(255,255,255,0.78) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
}
.nav-link-rcm:hover, .nav-link-rcm.active { color: #fff !important; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  color: #fff;
  padding-top: 5rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
}
.hero .lead-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  max-width: 540px;
}
.hero-microcopy {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

/* Hero dashboard mock (signature element) */
.dash-mock {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(6px);
  position: relative;
  box-shadow: var(--shadow-soft);
}
.dash-mock .dash-bar { background: rgba(255,255,255,0.08); border-radius: 999px; height: 8px; overflow: hidden; }
.dash-mock .dash-bar span { display:block; height:100%; background: var(--emerald); border-radius: 999px; }
.dash-mock .dash-row { display:flex; align-items:center; justify-content:space-between; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-family: var(--font-mono); font-size: 0.8rem; color: rgba(255,255,255,0.85); }
.dash-mock .dash-row:last-child { border-bottom: none; }
.dash-callout {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.dash-callout small { display:block; font-family: var(--font-body); font-weight: 500; color: var(--slate); font-size: 0.7rem; }

/* Trust bar */
.trust-bar { background: var(--navy-steel); color: rgba(255,255,255,0.8); padding: 1rem 0; font-size: 0.9rem; }
.badge-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* =========================================================
   Value Proposition Cards
   ========================================================= */
.pillar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(11,31,61,0.06);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--emerald-mist);
  color: var(--emerald-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.pillar-card h3 { font-size: 1.1rem; }
.pillar-card p { color: var(--slate); font-size: 0.95rem; margin-bottom: 0; }

/* =========================================================
   Problem / Solution rows
   ========================================================= */
.ps-row {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
}
.ps-problem {
  background: var(--mist);
  padding: 1.6rem 1.75rem;
  flex: 0 0 34%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--slate);
}
.ps-problem .ps-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.ps-solution {
  background: var(--white);
  padding: 1.6rem 1.75rem;
  flex: 1;
  border-left: 4px solid var(--emerald);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ps-solution .ps-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald-dark); }
@media (max-width: 767.98px) {
  .ps-row { flex-direction: column; }
  .ps-problem { flex: none; border-left: 4px solid var(--slate); }
}

/* =========================================================
   Metrics banner
   ========================================================= */
.metrics-banner { color: #fff; }
.metric-figure {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--emerald);
  line-height: 1;
}
.metric-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================================
   Services strip + tabs
   ========================================================= */
.service-step-card {
  border: 1px solid rgba(11,31,61,0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.4rem;
  height: 100%;
  background: var(--white);
  position: relative;
}
.service-step-number {
  font-family: var(--font-mono);
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.85rem;
}
.service-step-arrow {
  display: none;
}
@media (min-width: 992px) {
  .service-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(11,31,61,0.25);
    font-size: 1.4rem;
  }
}

.rcm-tabs .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  border: 1px solid rgba(11,31,61,0.12);
  border-radius: var(--radius-sm);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--white);
}
.rcm-tabs .nav-link.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.rcm-tab-pane {
  background: var(--mist);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
@media (max-width: 767.98px) {
  .rcm-tab-pane { padding: 1.5rem; }
}
.rcm-tab-pane .outcome-box {
  background: var(--emerald-mist);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--navy);
}
.checklist-rcm { list-style: none; padding-left: 0; }
.checklist-rcm li { padding-left: 1.6rem; position: relative; margin-bottom: 0.6rem; color: var(--charcoal); }
.checklist-rcm li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem;
  width: 18px; height: 18px;
  background: var(--emerald);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.485 1.929a1 1 0 0 1 0 1.414L6.414 10.414 2.515 6.515a1 1 0 1 1 1.414-1.414l2.485 2.485 5.657-5.657a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.485 1.929a1 1 0 0 1 0 1.414L6.414 10.414 2.515 6.515a1 1 0 1 1 1.414-1.414l2.485 2.485 5.657-5.657a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* =========================================================
   Testimonial
   ========================================================= */
.testimonial-block { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--emerald);
  line-height: 1;
}
.testimonial-block blockquote { font-size: 1.3rem; color: var(--navy); font-weight: 500; line-height: 1.55; }
.testimonial-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-steel);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 auto 0.75rem;
}

/* =========================================================
   Compliance grid
   ========================================================= */
.compliance-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.4rem;
  height: 100%;
  color: rgba(255,255,255,0.85);
}
.compliance-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(15,157,110,0.18);
  color: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.compliance-card h3 { color: #fff; font-size: 1.05rem; }
.compliance-card p { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-bottom: 0; }

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(15,157,110,0.35) 0%, rgba(15,157,110,0) 65%);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #081730; color: rgba(255,255,255,0.65); padding: 4rem 0 1.5rem; }
.site-footer h6 { color: #fff; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--emerald); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.82rem; }

/* =========================================================
   Reveal-on-scroll utility (driven by jQuery in script.js)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Form / Modal (Free RCM Audit request)
   ========================================================= */
.modal-audit .modal-content { border-radius: var(--radius-lg); border: none; }
.modal-audit .modal-header { background: var(--navy); color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: none; }
.modal-audit .form-label { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.modal-audit .form-control, .modal-audit .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(11,31,61,0.15);
  padding: 0.65rem 0.9rem;
}
.modal-audit .form-control:focus, .modal-audit .form-select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 0.2rem rgba(15,157,110,0.15);
}
#auditFormAlert { display: none; }

/* Generic page hero (services/about/etc.) */
.page-hero { color: #fff; padding: 4.5rem 0 3.5rem; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 640px; }
