/* Municipal Collection Agency — site styles
   Layout: one centered column (max 1120px); navy bands echo the logo's gradient block;
   Jost (geometric, like the logo lettering) for display, Source Sans 3 for reading. */
:root {
  --navy: #11112E;
  --navy-2: #2A2C4C;
  --silver: #C9C9CF;
  --bg: #F9F8FD;
  --surface: #FFFFFF;
  --mist: #ECECF3;
  --line: #D6D7E4;
  --ink: #1B1B2B;
  --muted: #4A4D68;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C4C6D8;
  --focus: #3B5BDB;
  --display: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--navy); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--display); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: var(--radius);
  font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: 0.04em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-2); color: var(--on-navy); }
.btn-light { background: var(--surface); color: var(--navy); }
.btn-light:hover { background: var(--mist); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--on-navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--on-navy); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: var(--on-navy); }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.1rem; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 64px; height: auto; }
.brand-name { font-family: var(--display); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; line-height: 1.35; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display); font-size: 0.95rem; color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: var(--radius); min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary[aria-current="page"] { color: var(--on-navy); padding: 10px 18px; border-radius: var(--radius); box-shadow: none; }
.nav a.btn-primary:hover { background: var(--navy-2); color: var(--on-navy); }

/* Hero: navy block with the oversized, cropped MCA letters from the logo */
.hero {
  position: relative; overflow: hidden; color: var(--on-navy);
  background: linear-gradient(180deg, #5A5C78 0%, #2A2C4C 38%, var(--navy) 72%);
}
.hero::after {
  content: "MCA"; position: absolute; right: -0.12em; top: 50%; transform: translateY(-52%);
  font-family: var(--display); font-weight: 400; font-size: clamp(9rem, 26vw, 22rem);
  letter-spacing: 0.32em; line-height: 1; color: var(--silver); opacity: 0.13; pointer-events: none; white-space: nowrap;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 96px); display: flex; flex-direction: column; gap: 22px; }
.hero h1 { color: var(--on-navy); max-width: 18ch; }
.hero .lede { color: var(--on-navy-muted); }
.hero .eyebrow { color: var(--silver); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero { background: linear-gradient(180deg, #3A3C5C 0%, var(--navy) 85%); color: var(--on-navy); }
.page-hero .wrap { padding-block: clamp(36px, 6vw, 64px); display: flex; flex-direction: column; gap: 12px; }
.page-hero h1 { color: var(--on-navy); }
.page-hero .lede { color: var(--on-navy-muted); }
.page-hero .eyebrow { color: var(--silver); }

/* Fact strip */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.fact { padding: 22px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { font-family: var(--display); font-weight: 500; font-size: 1.75rem; color: var(--navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.95rem; color: var(--muted); }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 80px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2, .section-navy h3 { color: var(--on-navy); }
.section-navy p, .section-navy li { color: var(--on-navy-muted); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 68ch; }

/* Two-path split on home */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.path p { color: var(--muted); }
.path .btn { align-self: flex-start; margin-top: auto; }

/* Service grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.svc { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--navy); min-width: 0; }
.svc p { color: var(--muted); font-size: 1rem; }
.svc .who { font-size: 0.9rem; color: var(--muted); }
.svc .who b { color: var(--ink); font-weight: 600; }

/* Feature (Curia) */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.flow { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.flow li { position: relative; padding: 0 0 22px 52px; counter-increment: step; }
.flow li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--silver); color: var(--on-navy); font-family: var(--display); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.flow li::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 2px; width: 1px; background: rgba(201,201,207,.35); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow b { color: var(--on-navy); font-family: var(--display); font-weight: 500; display: block; }
.section-alt .flow li::before, .section .flow.on-light li::before { color: var(--navy); border-color: var(--navy); }
.flow.on-light li::after { background: var(--line); }
.flow.on-light b { color: var(--navy); }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tier .eyebrow { color: var(--muted); }
.tier p { font-size: 1rem; color: var(--muted); }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.client-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.client-row dt { font-family: var(--display); font-weight: 500; color: var(--navy); }
.client-row dd { margin: 0; color: var(--muted); }

/* Check list */
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.section-navy .checks li::before { border-color: var(--silver); }

/* Data table / company data */
.datalist { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.datalist dt { color: var(--muted); }
.datalist dd { margin: 0; font-weight: 600; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel-mist { background: var(--mist); border-color: transparent; }

/* Leadership */
.leader { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.leader-mark { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* Pay page */
.pay-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pay-online { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.pay-online h2 { color: var(--on-navy); }
.pay-online p, .pay-online li { color: var(--on-navy-muted); }
.pay-online .small { font-size: 0.92rem; }
.notice { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px 18px; font-size: 0.98rem; }
.notice strong { color: var(--navy); }

/* FAQ */
.faq-group { display: flex; flex-direction: column; gap: 12px; }
.faq-group + .faq-group { margin-top: 44px; }
details.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.q summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 600; color: var(--navy); min-height: 44px;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
details.q[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.q .a { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.callout { background: var(--mist); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.callout strong { font-family: var(--display); font-weight: 500; color: var(--navy); letter-spacing: 0.06em; }
.links-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.links-table th, .links-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.links-table th { font-family: var(--display); font-weight: 500; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
.tnum { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.big-line { font-family: var(--display); font-size: 1.4rem; color: var(--navy); font-variant-numeric: tabular-nums; }

/* CTA band */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta .stack-sm { max-width: 60ch; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
.footer-grid h3 { color: var(--on-navy); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer a { color: var(--on-navy); }
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-brand { font-family: var(--display); color: var(--on-navy); letter-spacing: 0.26em; text-transform: uppercase; font-size: 0.85rem; line-height: 1.5; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding-block: 18px 26px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 0.86rem; }

/* Responsive */
@media (max-width: 960px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-3, .tiers, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .pay-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .clients { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .header-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { margin-inline: -12px; }
  .nav .btn { margin-left: 0; }
  .paths, .grid-3, .grid-2, .tiers, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .client-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .leader { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .leader-mark { max-width: 180px; }
  .hero::after { font-size: 9rem; top: auto; bottom: -0.1em; transform: none; }
}
@media (max-width: 460px) {
  .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .fact { border-left: 0; padding-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-header .nav, .hero::after { display: none; }
  .hero, .page-hero, .site-footer, .section-navy { background: none; color: #000; }
}
