/* Maryland RBT — Calvert black & gold, corridor angle.
   Display: Archivo (expanded, heavy). Body: Public Sans. */

:root {
  --paper: #FAF7EF;
  --ink: #17130E;
  --black: #1B1610;
  --gold: #E5A812;
  --gold-deep: #B98407;
  --red: #C8102E;
  --line: #E4DCC9;
  --muted: #6B6353;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Public Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
}

h1, h2, h3, .wordmark, .btn, .step-k, .fact-k {
  font-family: "Archivo", "Public Sans", sans-serif;
  font-stretch: 125%;
}

/* The signature: a Calvert checker ribbon */
.calvert-band {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      var(--gold) 0 28px, var(--black) 28px 56px);
}
.calvert-band + .calvert-band { display: none; }

/* ---- header ---- */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.wordmark {
  font-weight: 900; font-size: 22px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.wm-accent { color: var(--gold-deep); }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-weight: 800; font-size: 15.5px; letter-spacing: 0.01em;
  padding: 13px 22px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary {
  background: var(--black); color: var(--gold);
  box-shadow: 0 2px 0 var(--gold-deep);
  width: 100%;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--gold-deep); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { transform: translateY(-1px); background: #F0B722; }
.btn-ghost {
  padding: 9px 18px; background: transparent; color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--gold); }

/* ---- hero ---- */
.hero { padding: clamp(40px, 7vw, 84px) clamp(20px, 5vw, 56px) clamp(44px, 6vw, 72px); }
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.eyebrow {
  font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px); font-weight: 900;
  line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal; color: var(--gold-deep);
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 6px; text-underline-offset: 6px;
}
.lede { font-size: 18px; color: #3E3729; max-width: 54ch; margin-bottom: 26px; }
.proof { list-style: none; display: grid; gap: 10px; }
.proof li { padding-left: 26px; position: relative; color: #3E3729; }
.proof li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px;
  background: conic-gradient(var(--gold) 0 25%, var(--black) 25% 50%, var(--gold) 50% 75%, var(--black) 75%);
}
.proof strong { color: var(--ink); }

/* ---- apply card ---- */
.apply-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 24px 60px rgba(27, 22, 16, 0.10);
  border-top: 6px solid var(--gold);
  position: sticky; top: 24px;
}
.card-head h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; }
.card-head p { color: var(--muted); font-size: 14.5px; margin: 6px 0 18px; }
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.progress-bar {
  flex: 1; height: 8px; border-radius: 99px; background: var(--paper);
  border: 1px solid var(--line); overflow: hidden;
}
#progress-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transition: width 0.35s ease;
}
.progress-label { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%; padding: 13px 14px; font-size: 16px;
  font-family: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
  transition: border-color 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--gold-deep); background: #fff; }
.field input.invalid { border-color: var(--red); }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }
.form-note.note-error { color: var(--red); }
.success { text-align: center; padding: 26px 6px; }
.success-check {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  font-size: 26px; font-weight: 900; line-height: 54px;
}
.success h2 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.success p { color: var(--muted); font-size: 15px; }

/* ---- sections ---- */
.section { padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 56px); }
.section-title {
  font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.section-sub { color: var(--muted); max-width: 60ch; margin-bottom: 34px; }

/* counties */
.counties-section { background: #fff; border-block: 1px solid var(--line); }
.counties-section .section-title, .counties-section .section-sub { max-width: 1120px; margin-inline: auto; }
.counties-section .section-title { margin-bottom: 10px; }
.county-grid {
  list-style: none; max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.county-grid li {
  border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 16px 18px; background: var(--paper);
}
.county-name { display: block; font-weight: 700; margin-bottom: 3px; }
.county-towns { font-size: 13.5px; color: var(--muted); }

/* steps */
.steps-section { max-width: 1120px; margin: 0 auto; }
.steps {
  list-style: none; counter-reset: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px;
}
.steps li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
}
.step-k {
  display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--black);
  background: var(--gold); padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.steps h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* pay */
.pay-section { background: var(--black); color: var(--paper); }
.pay-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.pay-section .section-title { color: #fff; }
.pay-copy p { color: #CBC3B2; margin-bottom: 24px; }
.pay-copy strong { color: var(--gold); }
.pay-section .btn-primary {
  width: auto; background: var(--gold); color: var(--black); box-shadow: none;
}
.pay-section .btn-primary:hover { background: #F0B722; }
.disclaimer { font-size: 12px; color: #857C68; margin-top: 20px; max-width: 52ch; }
.pay-facts { list-style: none; display: grid; gap: 12px; }
.pay-facts li {
  border: 1px solid #383226; border-radius: 10px; padding: 14px 16px;
  color: #CBC3B2; font-size: 15px;
  display: flex; align-items: center; gap: 14px;
}
.fact-k {
  flex: 0 0 auto; font-weight: 800; font-size: 13px; color: var(--gold);
  min-width: 72px;
}

/* faq */
.faq-section { max-width: 820px; margin: 0 auto; }
.faq-list { display: grid; gap: 10px; margin-top: 26px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 18px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 800; color: var(--gold-deep); font-size: 20px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 0 16px; color: #3E3729; font-size: 15.5px; }

/* cta band */
.cta-band {
  background: var(--gold); text-align: center;
  padding: 0 20px clamp(48px, 6vw, 72px); position: relative;
}
.cta-band .calvert-band { margin: 0 -20px clamp(40px, 5vw, 60px); display: block; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -0.015em; color: var(--black); }
.cta-band p { color: #5C4708; margin: 10px 0 26px; }
.cta-band .btn-gold { background: var(--black); color: var(--gold); }
.cta-band .btn-gold:hover { background: #2A241B; }

/* footer */
.site-footer {
  text-align: center; padding: 40px 20px 48px;
  border-top: 1px solid var(--line); background: var(--paper);
}
.footer-brand { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 900; font-size: 18px; margin-bottom: 10px; }
.footer-legal { font-size: 13px; color: var(--muted); }
.footer-copy { font-size: 13px; color: var(--muted); margin-top: 4px; }
.footer-copy a { color: var(--gold-deep); }

/* ---- header nav + footer links ---- */
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-link {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.header-link:hover { color: var(--gold-deep); }
.counties-more { max-width: 1120px; margin: 22px auto 0; }
.counties-more a { color: var(--gold-deep); font-weight: 700; text-decoration: none; }
.counties-more a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
.footer-links a { color: var(--ink); font-size: 14px; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--gold-deep); }

/* ---- locations page ---- */
.loc-hero { padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 48px); max-width: 1120px; margin: 0 auto; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--gold-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.loc-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 14px; }
.loc-hero .lede { margin-bottom: 0; }
.regions { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px) clamp(48px, 6vw, 80px); display: grid; gap: 16px; }
.region {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 20px; border-left: 6px solid var(--gold);
}
.region h2 { font-size: 21px; font-weight: 900; margin-bottom: 8px; }
.region > p { color: #3E3729; font-size: 15.5px; max-width: 78ch; margin-bottom: 14px; }
.region-towns { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.region-towns li {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 99px; padding: 5px 13px;
}
.loc-cta { text-align: center; padding-bottom: clamp(48px, 6vw, 80px); }
.loc-cta .btn { width: auto; }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .hero-inner, .pay-inner { grid-template-columns: 1fr; }
  .apply-card { position: static; }
  .steps { grid-template-columns: 1fr; }
}
