/* ===== MBSPM — Medical Billing Solutions ===== */
/* Design tokens */
:root {
  --navy-900: #0A1F44;
  --navy-800: #0F2A5C;
  --navy-700: #163A7D;
  --teal-500: #00A99D;
  --teal-400: #1FBFB3;
  --teal-50:  #E6F7F5;
  --gold-500: #C9A24B;
  --ink:      #1A2540;
  --slate-700:#3F4B66;
  --slate-500:#6B7794;
  --slate-300:#C9D1E0;
  --slate-100:#EEF2F8;
  --slate-50: #F7F9FC;
  --white:    #FFFFFF;
  --success:  #2BB673;
  --shadow-sm: 0 1px 2px rgba(10,31,68,.06), 0 1px 3px rgba(10,31,68,.06);
  --shadow-md: 0 6px 20px rgba(10,31,68,.08);
  --shadow-lg: 0 20px 50px rgba(10,31,68,.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --transition: 200ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-500); }
h1,h2,h3,h4 { font-family: 'Manrope', 'Inter', sans-serif; color: var(--navy-900); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--slate-700); }

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

/* ===== Top bar ===== */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--teal-400); }
.topbar .badges { display: flex; gap: 14px; align-items: center; }
.topbar .badge-pill {
  background: rgba(255,255,255,.08); padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
}

/* Social icons — base (footer-sized) */
.socials { display: inline-flex; gap: 8px; align-items: center; }
.socials a {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
  transition: all var(--transition);
  text-decoration: none;
}
.socials a:hover { background: var(--teal-500); border-color: var(--teal-500); color: white; transform: translateY(-2px); }
.socials a svg { width: 18px; height: 18px; display: block; flex-shrink: 0; }

/* Topbar variant — smaller */
.topbar .socials a { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 6px; }
.topbar .socials a svg { width: 13px; height: 13px; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy-900); font-family: 'Manrope', sans-serif; font-size: 1.15rem; line-height: 1.1; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; overflow: hidden; flex: 0 0 44px;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-500));
  color: white; font-weight: 800; font-size: 1rem; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.brand-mark::before { content: 'M'; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; }
.brand-mark:has(img) { background: transparent; box-shadow: none; }
.brand-mark:has(img)::before { content: none; }
.brand small { display: block; font-size: .7rem; color: var(--slate-500); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
/* Footer variant: white logo on dark bg */
footer.site-footer .brand-mark { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 4px; }

.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  padding: 10px 14px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .95rem;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); background: var(--slate-50); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy-900); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn-primary { background: var(--teal-500); color: white; box-shadow: 0 8px 20px rgba(0,169,157,.25); }
.btn-primary:hover { background: var(--teal-400); color: white; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,169,157,.35); }
.btn-dark { background: var(--navy-900); color: white; }
.btn-dark:hover { background: var(--navy-800); color: white; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--slate-300); }
.btn-ghost:hover { background: var(--slate-50); color: var(--navy-900); }
.btn-link { background: transparent; padding: 0; color: var(--teal-500); font-weight: 600; }
.btn-link:hover { color: var(--navy-900); }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0,169,157,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(22,58,125,.18), transparent 60%),
    linear-gradient(180deg, #061634 0%, #0A1F44 100%);
  color: white;
  padding: 100px 0 120px;
}
.hero h1 { color: white; max-width: 18ch; }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.82); max-width: 56ch; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92); padding: 6px 14px; border-radius: 999px;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 22px;
}
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(31,191,179,.25); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.hero .trust { margin-top: 44px; display: flex; gap: 30px; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: .9rem; }
.hero .trust strong { color: white; display: block; font-size: 1.6rem; font-weight: 800; font-family: 'Manrope', sans-serif; }

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: white; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.kpi {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md); padding: 18px; color: white;
}
.kpi .num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.9rem; color: white; line-height: 1; margin-bottom: 6px; }
.kpi .num span { color: var(--teal-400); }
.kpi .label { color: rgba(255,255,255,.7); font-size: .85rem; }

/* ===== Section foundations ===== */
section { padding: 90px 0; }
.section-eyebrow {
  display: inline-block; color: var(--teal-500); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 12px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.section-head p { font-size: 1.1rem; color: var(--slate-500); }

.bg-soft { background: var(--slate-50); }
.bg-navy {
  background:
    radial-gradient(900px 500px at 90% -20%, rgba(0,169,157,.18), transparent 60%),
    linear-gradient(180deg, #0A1F44, #061634);
  color: white;
}
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: white; }
.bg-navy p { color: rgba(255,255,255,.78); }

/* ===== Logo strip / trust ===== */
.trust-strip {
  padding: 36px 0;
  border-bottom: 1px solid var(--slate-100);
  background: var(--white);
}
.trust-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-strip .label { color: var(--slate-500); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.trust-strip ul { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--slate-700); font-weight: 600; }
.trust-strip li { display: flex; align-items: center; gap: 8px; }
.trust-strip li .ic { width: 18px; height: 18px; color: var(--teal-500); }

/* ===== Cards / Services grid ===== */
.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: 20px; }
.card {
  background: white;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-50); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-50); color: var(--teal-500);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { color: var(--navy-900); margin-bottom: 8px; }
.card p { font-size: .98rem; }
.card a.more { font-weight: 600; color: var(--teal-500); display: inline-flex; align-items: center; gap: 6px; }
.card a.more:hover { color: var(--navy-900); }

/* ===== Stat band ===== */
.stat-band { padding: 70px 0; }
.stat-band .grid-4 { gap: 20px; }
.stat {
  text-align: center; padding: 28px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat:last-child { border-right: 0; }
.stat .num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--teal-400); line-height: 1; }
.stat .label { color: rgba(255,255,255,.78); margin-top: 6px; font-size: .95rem; }

/* ===== Two-column feature ===== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
.feature .visual {
  border-radius: var(--radius-lg); aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, rgba(0,169,157,.12), rgba(22,58,125,.12)),
    radial-gradient(400px 200px at 30% 20%, rgba(0,169,157,.18), transparent 60%);
  border: 1px solid var(--slate-100);
  position: relative; overflow: hidden;
}
.feature .visual .checklist {
  position: absolute; inset: 24px;
  background: white; border-radius: var(--radius-md); padding: 22px;
  box-shadow: var(--shadow-md); border: 1px solid var(--slate-100);
}
.checklist h4 { margin: 0 0 12px; font-size: 1rem; color: var(--navy-900); font-weight: 700; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--slate-100); font-size: .92rem; color: var(--slate-700); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ck {
  width: 20px; height: 20px; border-radius: 50%; background: var(--teal-50); color: var(--teal-500);
  display: grid; place-items: center; flex: 0 0 20px; margin-top: 1px;
}
.checklist .ck svg { width: 12px; height: 12px; }

/* ===== Process steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: white; border: 1px solid var(--slate-100); border-radius: var(--radius-md);
  padding: 26px; position: relative;
}
.step .num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-900); color: white; font-weight: 800; margin-bottom: 14px;
}
.step h4 { margin: 6px 0; color: var(--navy-900); }
.step p { font-size: .95rem; }

/* ===== Specialty cards ===== */
.specialty {
  background: white; border-radius: var(--radius-md); padding: 22px; border: 1px solid var(--slate-100);
  display: flex; gap: 14px; align-items: flex-start;
  transition: all var(--transition);
}
.specialty:hover { border-color: var(--teal-50); box-shadow: var(--shadow-md); }
.specialty .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-50); color: var(--teal-500); display: grid; place-items: center; flex: 0 0 40px; }
.specialty .ic svg { width: 20px; height: 20px; }
.specialty h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy-900); }
.specialty p { font-size: .9rem; margin: 0; }

/* ===== Comparison table ===== */
.compare {
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--slate-100);
}
.compare table { width: 100%; border-collapse: collapse; background: white; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--slate-100); font-size: .95rem; }
.compare th { background: var(--slate-50); color: var(--navy-900); font-weight: 700; }
.compare td.us { background: rgba(0,169,157,.06); font-weight: 600; color: var(--navy-900); }
.compare td.them { color: var(--slate-500); }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no  { color: #C44; font-weight: 700; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--slate-100); border-radius: var(--radius-md); padding: 4px 22px; margin-bottom: 12px;
  background: white; transition: all var(--transition);
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--teal-50); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-weight: 600; color: var(--navy-900); font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.5rem; color: var(--teal-500); font-weight: 400; line-height: 1;
  transition: transform var(--transition);
}
.faq details[open] summary::after { content: '–'; transform: rotate(0); }
.faq details p { padding: 0 0 18px; margin: 0; color: var(--slate-700); }

/* ===== Testimonial ===== */
.quote {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: white; border-radius: var(--radius-lg); padding: 56px;
  position: relative;
}
.quote::before { content: '“'; position: absolute; top: 8px; left: 32px; font-size: 8rem; line-height: 1; color: rgba(0,169,157,.25); font-family: Georgia, serif; }
.quote blockquote { margin: 0; font-size: 1.4rem; font-weight: 500; color: white; line-height: 1.5; max-width: 60ch; }
.quote .who { margin-top: 20px; color: rgba(255,255,255,.7); font-size: .95rem; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-lg);
  padding: 60px;
  color: white;
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,169,157,.25), transparent 70%); pointer-events: none;
}
.cta-band h2 { color: white; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background:
    radial-gradient(800px 400px at 80% -20%, rgba(0,169,157,.15), transparent 60%),
    linear-gradient(180deg, #0A1F44, #0F2A5C);
  color: white; padding: 80px 0 90px;
}
.page-hero h1 { color: white; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 60ch; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; letter-spacing: .04em; }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs a:hover { color: var(--teal-400); }

/* ===== Service detail row ===== */
.svc {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: flex-start;
  padding: 60px 0; border-bottom: 1px solid var(--slate-100);
}
.svc:last-child { border-bottom: 0; }
.svc.reverse { grid-template-columns: 1.4fr 1fr; }
.svc h3 { font-size: 1.7rem; margin-bottom: 14px; }
.svc .lead-icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--teal-50); color: var(--teal-500);
  display: grid; place-items: center; margin-bottom: 18px;
}
.svc .lead-icon svg { width: 32px; height: 32px; }
.svc ul.bullets { list-style: none; padding: 0; margin: 18px 0 0; }
.svc ul.bullets li {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; color: var(--slate-700);
  border-bottom: 1px dashed var(--slate-100); font-size: .98rem;
}
.svc ul.bullets li:last-child { border-bottom: 0; }
.svc ul.bullets .b {
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal-50); color: var(--teal-500);
  display: grid; place-items: center; flex: 0 0 22px; margin-top: 2px;
}
.svc ul.bullets .b svg { width: 12px; height: 12px; }

.svc-card {
  background: linear-gradient(180deg, white, var(--slate-50));
  border: 1px solid var(--slate-100); border-radius: var(--radius-lg);
  padding: 30px;
}
.svc-card h4 { margin-top: 0; color: var(--navy-900); font-size: 1.1rem; }
.svc-card .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--slate-100); font-size: .92rem; }
.svc-card .row:last-child { border-bottom: 0; }
.svc-card .row span:first-child { color: var(--slate-500); }
.svc-card .row span:last-child { color: var(--navy-900); font-weight: 600; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.contact-grid .info-card {
  background: white; border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--slate-100);
  margin-bottom: 14px; display: flex; gap: 14px; align-items: flex-start;
}
.contact-grid .info-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-50); color: var(--teal-500); display: grid; place-items: center; flex: 0 0 40px; }
.contact-grid .info-card .ic svg { width: 20px; height: 20px; }
.contact-grid .info-card h4 { margin: 0 0 4px; color: var(--navy-900); font-size: 1rem; }
.contact-grid .info-card p { margin: 0; font-size: .95rem; }

form.lead-form { background: white; border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--slate-100); box-shadow: var(--shadow-sm); }
form.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.lead-form label { display: block; font-size: .85rem; color: var(--slate-700); font-weight: 600; margin: 12px 0 6px; }
form.lead-form input, form.lead-form select, form.lead-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--slate-300); border-radius: 10px;
  font: inherit; color: var(--ink); background: white; transition: border-color var(--transition), box-shadow var(--transition);
}
form.lead-form input:focus, form.lead-form select:focus, form.lead-form textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(0,169,157,.12);
}
form.lead-form textarea { min-height: 120px; resize: vertical; }
form.lead-form .submit { margin-top: 20px; width: 100%; justify-content: center; }
.fine { font-size: .8rem; color: var(--slate-500); margin-top: 12px; }

/* ===== Footer ===== */
footer.site-footer {
  background: #061634; color: rgba(255,255,255,.78); padding: 70px 0 30px; margin-top: 0;
}
footer.site-footer h5 { color: white; font-family: 'Manrope', sans-serif; margin: 0 0 16px; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
footer.site-footer .grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer ul li { padding: 5px 0; }
footer.site-footer a { color: rgba(255,255,255,.7); }
footer.site-footer a:hover { color: var(--teal-400); }
footer.site-footer .brand-block p { color: rgba(255,255,255,.65); font-size: .92rem; }
footer.site-footer .brand-block .brand { color: white; }
footer.site-footer .brand-block .brand small { color: rgba(255,255,255,.55); }
footer.site-footer .badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
footer.site-footer .badges span {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: 6px 12px; border-radius: 999px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
footer.site-footer .legal {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ===== Animations ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { padding: 60px 0 80px; }
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.reverse { direction: ltr; }
  .svc, .svc.reverse { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px; }
  .cta-band .actions { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  footer.site-footer .grid { grid-template-columns: 1fr 1fr; }
  .quote { padding: 40px 28px; }
  .quote blockquote { font-size: 1.15rem; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--slate-100); flex-direction: column; padding: 12px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 14px; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .grid-3, .grid-4, .grid-2, .steps { grid-template-columns: 1fr; }
  footer.site-footer .grid { grid-template-columns: 1fr; }
  form.lead-form .row2 { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 18px; }
  .stat:last-child { border-bottom: 0; }
  .topbar .badges { display: none; }
}
