/* ============================================================
   Indivisible Dane County WI — site styles
   Palette taken from the IDCW logo:
     navy       #1a3a6e
     deep navy  #0f2347
     red        #d63447
     cyan       #3aa9e0
     off-white  #fafbfd
   ============================================================ */

:root {
  --navy: #1a3a6e;
  --navy-deep: #0f2347;
  --red: #d63447;
  --red-dark: #b82638;
  --cyan: #3aa9e0;
  --cream: #fafbfd;
  --ink: #121826;
  --muted: #4a5568;
  --line: #e2e8f0;
  --radius: 4px;
  --maxw: 1120px;
  --display: "Archivo Black", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 56px; width: auto; display: block; max-width: 280px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-weight: 700;
  font-family: var(--body);
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background-color .15s ease, color .15s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-large { padding: 16px 28px; font-size: 17px; }
.nav-cta { padding: 10px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 0 18px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.hero-title .accent { color: var(--red); }
.hero-sub {
  font-size: 19px;
  max-width: 640px;
  color: #dbe4f2;
  margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stripes {
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  display: flex;
}
.hero-stripes span { flex: 1; }
.hero-stripes span:nth-child(1) { background: var(--cyan); }
.hero-stripes span:nth-child(2) { background: #fff; }
.hero-stripes span:nth-child(3) { background: var(--red); }

/* ---------- Generic section ---------- */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.section-light { background: #fff; }
.section-dark {
  background: var(--cream);
  border-bottom-color: var(--line);
}
.section-heading {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--navy);
  margin: 0 0 36px;
  line-height: 1.1;
  position: relative;
  padding-bottom: 14px;
}
.section-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  background: var(--red);
  position: absolute;
  left: 0;
  bottom: 0;
}
.prose {
  max-width: 760px;
  font-size: 18px;
}
.prose p { margin: 0 0 18px; }

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 26px;
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(15,35,71,0.25);
}
.card h3 {
  font-family: var(--display);
  color: var(--navy);
  font-size: 20px;
  margin: 0 0 10px;
}
.card p { margin: 0 0 12px; color: var(--muted); }
.card-link {
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
.section-dark .card { background: #fff; }

/* ---------- Impact list ---------- */
.impact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.impact-list li {
  background: #fff;
  border-left: 6px solid var(--red);
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(15,35,71,0.04);
}
.impact-list h3 {
  font-family: var(--display);
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 20px;
}
.impact-list p { margin: 0; color: var(--muted); }

/* ---------- Get involved ---------- */
.involve { display: grid; gap: 32px; }
.involve-body { font-size: 18px; max-width: 720px; }
.involve-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.involve-columns h3 {
  font-family: var(--display);
  color: var(--navy);
  font-size: 22px;
  margin: 0 0 14px;
}
.committee-list { list-style: none; margin: 0; padding: 0; }
.committee-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.committee-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}
.committee-list li:last-child { border-bottom: 0; }

/* ---------- Closing section ---------- */
.section-hero-closing {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 90px 0 100px;
}
.section-hero-closing .section-heading {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  max-width: 820px;
}
.section-hero-closing .section-heading::after { background: var(--red); }
.closing-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 19px;
  max-width: 760px;
}
.closing-bullets li {
  padding: 14px 18px;
  border-left: 4px solid var(--red);
  background: rgba(255,255,255,0.05);
}
.closing-bullets li strong { color: var(--cyan); font-weight: 800; }
.closing-line {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 28px;
  max-width: 780px;
  line-height: 1.25;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-title {
  font-family: var(--display);
  color: #fff;
  font-size: 18px;
  margin: 0 0 4px;
}
.footer-sub { margin: 0; font-size: 14px; }
.footer-sub a { color: var(--cyan); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .brand-logo { height: 42px; max-width: 220px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 3px solid var(--red);
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 14px 0; }
  .nav-cta { margin-top: 14px; text-align: center; }

  .hero { padding: 64px 0 80px; }
  .section { padding: 56px 0; }
  .involve-columns { grid-template-columns: 1fr; }
}
