/* Advancing Fairness — civic editorial theme
   Deep navy + brass gold on warm parchment. Lora (serif) headings, Source Sans 3 body.
   Content is ALWAYS visible with CSS alone; any animation ends in the visible state. */

:root {
  --navy: #14213d;
  --navy-800: #1b2c4d;
  --navy-700: #24365c;
  --gold: #c8963e;
  --gold-dark: #a97a2a;
  --gold-soft: #e9d3a3;
  --parchment: #faf8f3;
  --paper: #ffffff;
  --ink: #23252b;
  --muted: #5c6272;
  --line: #e6e1d6;
  --line-strong: #d8d1c2;
  --maxw: 1160px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(20,33,61,.08);
  --shadow-md: 0 10px 30px rgba(20,33,61,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--parchment);
  font-size: 1.06rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 { font-family: "Lora", Georgia, "Times New Roman", serif; color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.01em; margin: 0 0 .6rem; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.28rem; color: var(--navy-700); margin: 1.7rem 0 .5rem; }
p { margin: 0 0 1.15rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- navbar ---------- */
.site-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: .55rem 0;
  position: sticky; top: 0; z-index: 1030;
}
.site-nav .navbar-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; padding: 0; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 5px;
  background: linear-gradient(150deg, var(--gold), var(--gold-dark));
  color: var(--navy); font-family: "Lora", serif; font-weight: 700; font-size: 1.12rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.brand-text { font-family: "Lora", serif; font-weight: 600; font-size: 1.24rem; color: #fff; letter-spacing: .01em; }
.site-nav .navbar-nav { gap: .1rem; }
.site-nav .nav-link {
  color: #d7ddea; font-weight: 600; font-size: .95rem;
  padding: .5rem .7rem; border-radius: 4px; text-decoration: none;
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: #fff; background: var(--navy-700); }
.site-nav .nav-link.active { color: var(--navy); background: var(--gold); }
.site-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(200,150,62,.5); }
.site-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,.9)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.dropdown-menu {
  border: 1px solid var(--line-strong); border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-md); padding: .4rem;
}
.dropdown-item { font-weight: 600; color: var(--navy-700); border-radius: 4px; padding: .5rem .75rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--parchment); color: var(--gold-dark); }

/* ---------- hero ---------- */
.page-hero { position: relative; background: var(--navy); }
.hero-image { min-height: clamp(240px, 34vw, 420px); overflow: hidden; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: heroin 1s ease both;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,33,61,.34) 0%, rgba(20,33,61,.12) 40%, rgba(20,33,61,.30) 100%);
}
.hero-image::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}
.page-hero-plain {
  padding: 2.6rem 0 1.4rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%);
}
.page-hero-plain .eyebrow { color: var(--gold-soft); }
.eyebrow {
  display: inline-block; font-family: "Source Sans 3", sans-serif; text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--gold-dark);
  margin-bottom: .4rem;
}

/* ---------- main / article ---------- */
.site-main { padding: 2.6rem 0 3.4rem; }
.article {
  max-width: 812px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 3rem);
  animation: rise .6s ease both;
}
/* Bulletproof: content is fully opaque by default. Entrance animation only
   nudges position, never hides — if animations never run, everything is visible. */
.hero-image + .site-main .article { margin-top: -3.6rem; position: relative; z-index: 5; }

.article > h1:first-child { margin-top: 0; }
.article h2 {
  padding-top: .3rem;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
}
.article h2:first-of-type { border-top: none; }
.article ul, .article ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.article li { margin-bottom: .5rem; }
.article strong { color: var(--navy); }
.article em { color: var(--muted); }
.article a { font-weight: 600; }

/* first paragraph = lead */
.article > p:first-of-type { font-size: 1.16rem; color: #33363f; }

/* callout note */
.note-callout {
  background: #fbf5e8;
  border-left: 4px solid var(--gold);
  padding: .95rem 1.15rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #4a4433;
  font-size: .98rem;
}

/* buttons */
.btn-primary, a.btn-primary, button.btn-primary {
  display: inline-block; background: var(--navy); color: #fff !important;
  font-weight: 700; text-decoration: none; border: none;
  padding: .7rem 1.4rem; border-radius: var(--radius); cursor: pointer;
  transition: background .18s ease, transform .18s ease; box-shadow: var(--shadow-sm);
}
.btn-primary:hover, a.btn-primary:hover, button.btn-primary:hover {
  background: var(--gold-dark); color: #fff !important; transform: translateY(-1px);
}

/* contact form */
.contact-form { margin: 1.4rem 0 1rem; }
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .3rem; font-size: .95rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .7rem .85rem; font: inherit; color: var(--ink);
  background: var(--parchment); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,150,62,.18); background: #fff;
}
.notfound ul { list-style: none; padding-left: 0; }
.notfound li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy); color: #c6cddb;
  padding: 3rem 0 1.6rem; margin-top: 2rem;
  border-top: 4px solid var(--gold);
}
.site-footer .footer-brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: "Lora", serif; font-weight: 600; font-size: 1.2rem; color: #fff; margin-bottom: .7rem;
}
.footer-blurb { font-size: .95rem; color: #a9b2c4; max-width: 34ch; }
.footer-h { font-family: "Source Sans 3", sans-serif; text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; font-weight: 700; color: var(--gold-soft); margin: 0 0 .8rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .45rem; }
.footer-list a { color: #c6cddb; text-decoration: none; font-size: .96rem; }
.footer-list a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-base {
  border-top: 1px solid var(--navy-700); margin-top: 2.2rem; padding-top: 1.2rem;
  font-size: .84rem; color: #8b94a8; line-height: 1.6;
}

/* ---------- animations (CSS-only; transform-only so content is NEVER hidden) ---------- */
@keyframes heroin { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Safeguard: never let any scroll-reveal markup hide content waiting on JS. */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { background: var(--navy-800); margin-top: .5rem; border-radius: var(--radius); padding: .5rem; }
  .site-nav .nav-link.active { display: inline-block; }
  .dropdown-menu { background: var(--navy-700); border-top-color: var(--gold); }
  .dropdown-item { color: #d7ddea; }
  .dropdown-item:hover, .dropdown-item:focus { background: var(--navy); color: var(--gold-soft); }
}
@media (max-width: 575.98px) {
  body { font-size: 1.02rem; }
  .hero-image + .site-main .article { margin-top: -1.8rem; }
  .brand-text { font-size: 1.08rem; }
}
