/* Civic Infrastructure Consultants — cicdfw.com
   Token contract shared with accesstwin-site/styles.css — names stable,
   values per-brand. Do NOT retro-fit these values into accesstwin-site: its
   palette is contrast-verified against its own light-default surfaces.

   Contrast pairs verified before authoring (WCAG 2.1 AA):
     #B8963E gold on #0E1F3B navy .......... 6.5:1  pass (body + large)
     #F5F7FA text  on #0E1F3B navy ........ 15.8:1  pass
     #0E1F3B navy  on #FFFFFF white ....... 16.1:1  pass
     #365F91 blue  on #FFFFFF white ........ 6.1:1  pass  (light surfaces ONLY)
     #365F91 blue  on #0E1F3B navy ......... 1.7:1  FAIL  — never used together
     #8A6A1F gold-ink on #FFFFFF white ..... 5.4:1  pass  (gold text on light) */

:root {
  --navy: #0E1F3B;
  --navy-deep: #0A1729;
  --navy-soft: #16294a;
  --gold: #B8963E;
  --gold-light: #D4B565;
  --gold-dark: #8A6A1F;
  --gold-ink: #8A6A1F;          /* gold as text on LIGHT surfaces */
  --heading-blue: #365F91;      /* LIGHT surfaces only — fails on navy */
  --white: #FFFFFF;
  --off: #F5F7FA;
  --ink: #F5F7FA;
  --muted: #B9C4D4;
  --line: rgba(245, 247, 250, 0.14);
  --font: Arial, Helvetica, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  background: var(--navy);
  color: var(--ink);
}

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1.05em; }
a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--white); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 68ch; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }

/* ---------- skip link + focus ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--navy-deep);
  padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--navy-deep);
  position: sticky; top: 0; z-index: 50;
}
.nav-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand {
  font-weight: 700; font-size: 1.02rem; color: var(--white);
  text-decoration: none; letter-spacing: -.01em; margin-right: auto;
}
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-light); }
.nav-cta {
  background: var(--gold); color: var(--navy-deep) !important;
  padding: 9px 16px; border-radius: var(--radius); font-weight: 700;
}
.nav-cta:hover { background: var(--gold-light); }
.hamburger {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); font-size: 1.3rem; line-height: 1; padding: 7px 11px;
  border-radius: var(--radius); cursor: pointer;
}

@media (max-width: 860px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy-deep); border-bottom: 1px solid var(--line);
    padding: 8px 22px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 9px 0; }
  .nav-cta { display: inline-block; margin-top: 6px; }
}

/* ---------- sections ---------- */
.section { padding: 62px 0; }
.section-off { background: var(--navy-soft); }
.section-light { background: var(--off); color: var(--navy); }
.section-light h1, .section-light h2, .section-light h3 { color: var(--heading-blue); }
.section-light a { color: var(--gold-ink); }
.section-light .lede, .section-light .muted { color: #46536b; }

.hero { padding: 88px 0 70px; }
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: 1.22rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .13em; font-size: .76rem;
  font-weight: 700; color: var(--gold); margin-bottom: 14px;
}

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: .96rem;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-ghost { border: 1px solid var(--gold); color: var(--gold-light); }
.btn-ghost:hover { background: rgba(184, 150, 62, .12); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- grid + cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--navy-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { color: var(--gold-light); }
.card p:last-child { margin-bottom: 0; }
.section-light .card { background: var(--white); border-color: #dbe2ec; }
.section-light .card h3 { color: var(--heading-blue); }

.stat { border-left: 3px solid var(--gold); padding-left: 16px; }
.stat .n { font-size: 2rem; font-weight: 700; color: var(--white); display: block; }
.section-light .stat .n { color: var(--navy); }
.stat .l { font-size: .88rem; color: var(--muted); }

.reg { font-size: .8rem; color: var(--muted); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); }
th { color: var(--gold-light); font-weight: 700; }

/* ---------- form ---------- */
.form-row { margin-bottom: 16px; }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 11px 13px; font-family: var(--font); font-size: 1rem;
  background: var(--navy-deep); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
}
input:focus, textarea:focus { border-color: var(--gold); }
.status { margin-top: 14px; font-weight: 700; color: var(--gold-light); }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 46px 0 30px; }
.footer h4 { color: var(--white); font-size: .93rem; margin-bottom: .7em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
