/* lee.blue — styled to match virginialocal.org (Roboto, navy gradient hero,
   wave dividers, red pill CTAs, white cards, alternating tint sections). */

@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,800;0,900&display=swap");

:root {
  --navy: #0e2f6b;       /* headings, wordmark */
  --navy-deep: #0a2350;  /* footer, gradient end */
  --red: #e0301e;        /* CTAs, accents */
  --red-deep: #c22411;
  --light-blue: #97c9f0;
  --tint: #eef4fb;       /* alt section bg */
  --white: #ffffff;
  --ink: #16233b;
  --muted: #566079;
  --line: rgba(14, 47, 107, 0.1);
  --hero-grad: radial-gradient(120% 120% at 78% 12%, #12388a 0%, #0e2f6b 45%, #0a2350 100%);
  --shadow-card: 0 12px 30px rgba(14, 47, 107, 0.06);
  --shadow-cta: 0 10px 24px rgba(224, 48, 30, 0.32);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons (red pills) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
  text-transform: none;
  letter-spacing: 0;
}
.btn--secondary:hover { border-color: var(--light-blue); background: var(--tint); }

.btn__icon { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(14, 47, 107, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand img { height: 40px; width: auto; }
.nav__word {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.05em;
  color: var(--navy);
  text-transform: uppercase;
}
.nav__word b { color: var(--red); font-weight: 800; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav__links a:hover { color: var(--red); }
.nav__cta {
  padding: 10px 20px;
  font-size: 0.8rem;
  border-radius: 10px;
  box-shadow: none;
}
.nav__links ~ .nav__cta { margin-left: 0; }
.nav__brand ~ .nav__cta { margin-left: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--hero-grad);
  color: var(--white);
  padding: 76px 0 150px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
.hero__rule {
  width: 66px;
  height: 5px;
  background: var(--red);
  border-radius: 3px;
  margin: 24px 0;
}
.hero__sub {
  font-size: 1.14rem;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 30px;
  max-width: 34rem;
}
.hero__sub strong { color: #fff; font-weight: 700; }

.hero__figure { justify-self: center; }
.hero__ring {
  width: fit-content;
  margin: 0 auto;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--light-blue), var(--red) 90%);
  box-shadow: 0 30px 60px rgba(4, 15, 40, 0.45);
}
.hero__ring img {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--navy);
}
.hero__cap {
  text-align: center;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* wave divider */
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 110px;
  display: block;
  line-height: 0;
}
.hero__wave { bottom: -1px; }
.hero__wave svg { width: 100%; height: 100%; }

/* ---------- Sections ---------- */

.sec { padding: 80px 0; }
.sec--tint { background: var(--tint); }
.sec--white { background: var(--white); }
.sec--flush { padding-bottom: 150px; }  /* clears the footer wave that dips up into it */

.sec__head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sec__badge { height: 64px; width: auto; margin: 0 auto 20px; display: block; }
.sec__eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.sec__title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.15;
  text-wrap: balance; /* avoid orphan last-line words */
}
.sec__tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 20px;
  line-height: 1.35;
  text-wrap: balance;
}
.sec__intro { color: var(--muted); font-size: 1.06rem; margin: 0 0 26px; }
.sec__cta { text-align: center; margin-bottom: 44px; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}
.linkcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.1s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.linkcard:hover {
  transform: translateY(-3px);
  border-color: var(--light-blue);
  box-shadow: 0 16px 36px rgba(14, 47, 107, 0.1);
}
.linkcard__title { font-weight: 800; color: var(--navy); font-size: 1.12rem; }
.linkcard__meta { color: var(--muted); font-size: 0.9rem; }
.linkcard__go {
  margin-top: 8px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Connect ---------- */

.connect__row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.connect__row a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(14, 47, 107, 0.05);
  transition: transform 0.1s ease, border-color 0.15s ease;
}
.connect__row a:hover { border-color: var(--light-blue); transform: translateY(-1px); }
.connect__row svg { width: 20px; height: 20px; fill: var(--navy); }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 64px 0 44px;
}
.footer__wave { bottom: 100%; }  /* sits directly above the footer, navy dips up into Connect */
.footer__wave svg { width: 100%; height: 100%; }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer__brand img { height: 42px; width: auto; }
.footer__word {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
}
/* Wordmark convention: on LIGHT backgrounds use navy + red (see .nav__word);
   on DARK backgrounds use white + light blue so the second word stays legible. */
.footer__word b { color: var(--light-blue); }
.footer a { color: rgba(255, 255, 255, 0.85); }

.footer__cta { margin: 8px 0 18px; font-size: 1.14rem; font-weight: 700; }
.footer__cta a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__cta a:hover { color: var(--light-blue); }
.footer__cta svg { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; }
.footer__legal { font-size: 0.85rem; margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero { padding: 52px 0 120px; text-align: center; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__figure { order: -1; }
  .hero__rule { margin: 22px auto; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .sec { padding: 60px 0; }
}

/* ---------- 404 ---------- */

.notfound { max-width: 460px; margin: 0 auto; text-align: center; padding: 90px 20px; }
.notfound__code { font-size: 3.4rem; font-weight: 900; color: var(--light-blue); margin: 0; }
.notfound h1 { color: var(--navy); font-weight: 800; margin: 4px 0 12px; }
.notfound code { background: var(--tint); padding: 2px 6px; border-radius: 5px; }
.notfound .btn { margin-top: 22px; }

/* ---------- Stats ---------- */

.stats-wrap { max-width: 1240px; }
.stats-gate { max-width: 380px; margin: 80px auto; text-align: center; }
.stats-gate h1 { color: var(--navy); font-weight: 800; }
.stats-gate form { display: grid; gap: 12px; margin-top: 20px; }
.stats-gate input {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
}
.stats-gate input:focus { outline: 2px solid var(--light-blue); border-color: var(--light-blue); }
.stats-gate .error { color: var(--red); font-size: 0.9rem; min-height: 1.2em; margin: 0; }

.stats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 16px;
  flex-wrap: wrap;
}
.stats-head h1 { color: var(--navy); font-weight: 800; margin: 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table.stats { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 620px; }
table.stats th, table.stats td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.stats th { background: var(--navy); color: #fff; font-weight: 700; position: sticky; top: 0; }
table.stats td.num, table.stats th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.stats tr:last-child td { border-bottom: 0; }
table.stats tbody tr:hover { background: var(--tint); }
table.stats .dest { max-width: 560px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.slug-pill { font-weight: 700; color: var(--navy); }
