/* CivicFrame Advisory — site styles
   Brand: Indigo #1E2A4A, Gold #D8BA53. Montserrat (headings), Inter (body).
   Gold is an accent only: never use it for text on white. */

@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  --indigo: #1E2A4A;
  --indigo-2: #2A3961;
  --indigo-soft: #E8EBF2;
  --gold: #D8BA53;
  --gold-soft: #FBF5E2;
  --gold-ink: #6E5A1C;
  --ink: #1C2130;
  --body: #3A4152;
  --muted: #5D6476;
  --rule: #DCDFE6;
  --tint: #F4F5F8;
  --white: #FFFFFF;
  --danger: #A12C2C;
  --ok: #1F6B45;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(30, 42, 74, .06), 0 8px 24px rgba(30, 42, 74, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--body);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--indigo); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold); }
.lede { font-size: 1.18rem; line-height: 1.55; color: var(--body); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: 14px 22px; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--indigo); }
.btn-gold:hover { background: #E3C766; color: var(--indigo); }
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo-soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 26px; list-style: none; }
.nav-list a { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--indigo); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--indigo); margin: 5px 0; }

@media (max-width: 900px) {
  .header-inner { height: 64px; }
  .brand img { height: 36px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule);
         flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 16px; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--indigo); color: #DCE1EC; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { font-size: 1.08rem; }

/* Hero */
.hero { background: var(--indigo); color: #DCE1EC; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(64px, 9vw, 108px); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #DCE1EC; max-width: 600px; margin-bottom: 30px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: #B9C1D3; }
.rule-card { background: #fff; color: var(--body); border-radius: 8px; padding: 28px; box-shadow: 0 18px 50px rgba(0,0,0,.25); border-top: 6px solid var(--gold); }
.rule-card .tag { font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.rule-card h2 { font-size: 1.35rem; margin: 8px 0 12px; }
.rule-card ul { list-style: none; margin: 14px 0 0; }
.rule-card li { padding: 10px 0 10px 30px; border-top: 1px solid var(--rule); position: relative; font-size: .97rem; }
.rule-card li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 12px; background: var(--indigo); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.rule-card .fine { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

.page-hero { background: var(--indigo); color: #DCE1EC; padding: clamp(48px, 7vw, 80px) 0; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--gold); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.page-hero .lede { color: #DCE1EC; max-width: 680px; margin: 0; }

/* Stakes */
.stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stake { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--indigo); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px; }
.stake h3 { margin-bottom: 8px; }
.stake p { margin: 0; font-size: .98rem; }

/* Required vs delivered */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: #fff; }
.split > div { padding: 32px; }
.split .col-req { background: var(--tint); border-right: 1px solid var(--rule); }
.split h3 { display: flex; align-items: center; gap: 10px; }
.split .badge { font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.badge-ink { background: var(--indigo); color: #fff; }
.badge-gold { background: var(--gold); color: var(--indigo); }
.checklist { list-style: none; }
.checklist li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--rule); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 16px; height: 9px; border-left: 3px solid var(--indigo); border-bottom: 3px solid var(--indigo); transform: rotate(-45deg); }
.checklist strong { color: var(--ink); }
.split-foot { margin-top: 20px; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.1rem; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--indigo); }
.steps li { padding: 26px 22px 6px 0; position: relative; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--indigo); line-height: 1; margin-bottom: 14px; }
.steps li::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); }
.steps h3 { margin-bottom: 6px; }
.steps .when { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.steps p { font-size: .97rem; margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; }
.card-feature { border: 2px solid var(--indigo); position: relative; }
.card-feature .flag { position: absolute; top: -12px; left: 22px; background: var(--gold); color: var(--indigo); font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.card .more { margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; display: inline-block; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why h3 { color: #fff; font-size: 1.05rem; padding-top: 14px; border-top: 3px solid var(--gold); }
.why p { font-size: .96rem; color: #C9D0DF; margin: 0; }

/* Service detail */
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.svc { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.svc h3 { margin: 0; }
.svc .stage { display: block; font-family: var(--font-head); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.svc p { margin: 0 0 10px; }
.svc ul { list-style: none; }
.svc li { padding-left: 18px; position: relative; margin-bottom: 4px; font-size: .97rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--gold); }
.svc-entry { background: var(--gold-soft); border: 1px solid #EBDDAA; border-radius: 8px; padding: 30px; display: grid; grid-template-columns: 300px 1fr; gap: 32px; margin-bottom: 36px; }

.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scope .card ul { list-style: none; margin-top: 6px; }
.scope .card li { padding: 7px 0 7px 26px; position: relative; font-size: .97rem; border-bottom: 1px solid var(--rule); }
.scope .card li:last-child { border: 0; }
.scope .do li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.scope .dont li::before, .scope .dont li::after { content: ""; position: absolute; left: 3px; top: 15px; width: 13px; height: 2.5px; background: var(--danger); transform: rotate(45deg); }
.scope .dont li::after { transform: rotate(-45deg); }

/* CTA band */
.cta-band { background: var(--indigo); color: #DCE1EC; border-radius: 10px; padding: clamp(32px, 5vw, 52px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; color: #C9D0DF; }

/* Request form */
.req-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.form { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.form legend { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.form legend .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: .8rem; }
.form .hint { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.grid-2 .field { margin-bottom: 0; }
.field-full { grid-column: 1 / -1; }
label, .label { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--ink); }
.req { color: var(--danger); }
.opt { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #C5CAD5; border-radius: var(--radius); padding: 11px 12px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--indigo); outline: 3px solid rgba(216,186,83,.55); outline-offset: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid #C5CAD5; border-radius: var(--radius); padding: 11px 12px; cursor: pointer; font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--ink); }
.choice input { margin-top: 4px; accent-color: var(--indigo); width: 16px; height: 16px; flex: none; }
.choice small { display: block; color: var(--muted); font-weight: 400; font-size: .84rem; }
.choice:has(input:checked) { border-color: var(--indigo); background: var(--indigo-soft); }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 500; }
.has-error input, .has-error select, .has-error textarea, .has-error .choice { border-color: var(--danger); }
.form-errors { background: #FBECEC; border: 1px solid #E8B9B9; color: var(--danger); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px; font-weight: 500; }
.form-foot { border-top: 1px solid var(--rule); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-foot p { margin: 0; font-size: .86rem; color: var(--muted); max-width: 420px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.side { position: sticky; top: 100px; display: grid; gap: 18px; }
.side .card h3 { font-size: 1rem; }
.side ol { padding-left: 20px; font-size: .95rem; }
.side ol li { margin-bottom: 8px; }
.side .contact-line { font-size: .95rem; margin: 4px 0 0; }

/* Confirmation */
.confirm { max-width: 760px; }
.confirm .status { display: flex; gap: 14px; align-items: flex-start; background: #EAF4EE; border: 1px solid #BFDCCB; border-radius: 8px; padding: 18px 20px; margin-bottom: 28px; color: #17462E; }
.confirm .status strong { color: #12391F; }
.copy-box { position: relative; background: var(--tint); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; white-space: pre-wrap; color: var(--ink); margin: 0 0 16px; max-height: 360px; overflow: auto; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; font-weight: 500; color: var(--indigo); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 22px; max-width: 760px; }
.faq .answer p:last-child { margin: 0; }

/* About / data */
.data-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data-table th { font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; width: 38%; padding-right: 16px; }
.data-table td { color: var(--ink); font-weight: 500; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

.download { display: flex; gap: 16px; align-items: center; border: 1px solid var(--rule); border-radius: 8px; padding: 18px; background: #fff; text-decoration: none; color: var(--ink); }
.download:hover { border-color: var(--indigo); }
.download .doc { flex: none; width: 44px; height: 56px; background: var(--indigo); border-radius: 3px; position: relative; }
.download .doc::after { content: "PDF"; position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: .62rem; color: var(--gold); letter-spacing: .06em; }
.download strong { display: block; font-family: var(--font-head); }
.download span { font-size: .88rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--indigo); color: #B9C1D3; padding: 56px 0 28px; font-size: .94rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-logo img { height: 52px; width: auto; margin-left: -8px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #DCE1EC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-ids { font-size: .86rem; line-height: 1.7; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: #9EA7BC; display: grid; gap: 12px; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal p { margin: 0; max-width: 980px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .req-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .svc, .svc-entry { grid-template-columns: 1fr; gap: 12px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .stakes, .cards, .cards-2, .split, .scope, .why, .steps { grid-template-columns: 1fr; }
  .split .col-req { border-right: 0; border-bottom: 1px solid var(--rule); }
  .split > div { padding: 24px; }
  .cta-band { grid-template-columns: 1fr; }
  .grid-2, .choices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn-row .btn { width: 100%; }
  .form-foot .btn { width: 100%; }
  .steps li { padding-right: 0; }
}
