/* ─── RatepayersFirst — Shared Stylesheet ──────────────────────────────── */

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --navy:   #1a2e4a;
  --red:    #b5252b;
  --gold:   #c9922a;
  --cream:  #f9f6f0;
  --ink:    #1c1c1c;
  --steel:  #3d5468;
  --rule:   #e8e4dc;
  --white:  #ffffff;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    Arial, Helvetica, sans-serif;
  --max: 1080px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }

/* ─── Top Bar ────────────────────────────────────────────────────────────── */
.top-bar {
  background: var(--red);
  padding: 7px 28px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
}
.top-bar a { color: var(--white); text-decoration: underline; }

/* ─── Site Nav ───────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--navy);
  padding: 0 28px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}
.site-nav .logo {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  letter-spacing: .02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 14px 0;
}
.site-nav .logo span { color: var(--gold); }
.site-nav .logo small {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  display: block;
  margin-top: 1px;
}
.site-nav nav {
  display: flex;
  align-items: stretch;
}
.site-nav nav a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  margin-bottom: -3px;
}
.site-nav nav a:hover  { color: var(--gold); border-bottom-color: var(--gold); }
.site-nav nav a.active { color: var(--white); border-bottom-color: var(--gold); }
.site-nav .nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0 20px !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
  font-weight: bold;
  letter-spacing: .08em;
}
.site-nav .nav-cta:hover { background: #9e1e24; color: var(--white) !important; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .18s, transform .12s;
  border: none;
  font-family: var(--font-body);
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--red);  color: var(--white); }
.btn-gold    { background: var(--gold); color: var(--navy); }
.btn-navy    { background: var(--navy); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); opacity: 1; }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); opacity: 1; }

/* ─── Section Labels ─────────────────────────────────────────────────────── */
.section-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 4px;
  margin-bottom: 20px;
  display: inline-block;
}
.section-label.gold {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ─── Page Hero ──────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 56px 28px 64px;
  text-align: center;
}
.page-hero .hero-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 48px);
  color: var(--white);
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 18px;
}
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero .hero-sub {
  color: rgba(255,255,255,.72);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Stats Bar ──────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--steel);
  padding: 40px 28px;
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  text-align: center;
}
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
}
.stat-item .stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.72);
  margin-top: 6px;
  line-height: 1.4;
  letter-spacing: .03em;
}
.stat-item .stat-src {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  margin-top: 4px;
  font-style: italic;
}

/* ─── Content sections ───────────────────────────────────────────────────── */
.section {
  padding: 64px 28px;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-white  { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-cream  { background: var(--cream); }
.section-navy   { background: var(--navy); }
.section-gold-top { border-top: 3px solid var(--gold); }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}
.section-navy h2 { color: var(--white); }
.section p.lead {
  color: var(--steel);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 36px;
}
.section-navy p.lead { color: rgba(255,255,255,.72); }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--navy);
  border-radius: 3px;
  padding: 24px 26px;
}
.card.red    { border-left-color: var(--red); }
.card.gold   { border-left-color: var(--gold); }
.card.navy   { border-left-color: var(--navy); }
.card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.card p {
  font-size: 13.5px;
  color: var(--steel);
  line-height: 1.65;
}
.card .card-tag {
  font-size: 9.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  font-weight: bold;
}
.card .card-tag.gold { color: var(--gold); }
.card .card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 1px;
}
.card .card-link:hover { color: var(--red); border-bottom-color: var(--red); }

/* Campaign cards */
.campaign-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,46,74,.07);
  transition: box-shadow .2s;
}
.campaign-card:hover { box-shadow: 0 6px 24px rgba(26,46,74,.13); }
.campaign-card .cc-status {
  background: var(--navy);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 7px 16px;
}
.campaign-card .cc-status.active { background: var(--red); color: var(--white); }
.campaign-card .cc-status.past   { background: var(--steel); color: rgba(255,255,255,.8); }
.campaign-card .cc-body { padding: 20px 22px; }
.campaign-card .cc-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.campaign-card .cc-body p {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.6;
  margin-bottom: 16px;
}
.campaign-card .cc-meta {
  font-size: 11.5px;
  color: rgba(28,28,28,.5);
  margin-bottom: 16px;
}
.campaign-card .cc-meta strong { color: var(--ink); }
.campaign-card .cc-thumb {
  display: block;
  border-bottom: 1px solid var(--rule);
  background: var(--cream, #f4f1ea);
  text-align: center;
  overflow: hidden;
}
.campaign-card .cc-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ─── Step list ──────────────────────────────────────────────────────────── */
.step-list { list-style: none; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.step-list li::before {
  content: counter(steps);
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-list li .step-content h4 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 5px;
}
.step-list li .step-content p {
  font-size: 13.5px;
  color: var(--steel);
  line-height: 1.6;
}

/* ─── Testimony box ──────────────────────────────────────────────────────── */
.testimony-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  padding: 28px 32px;
  border-left: 4px solid var(--gold);
}
.testimony-box .tb-label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: bold;
}
.testimony-box p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.88);
  margin-bottom: 10px;
}
.testimony-box .fill {
  color: var(--gold);
  font-weight: bold;
  border-bottom: 1px dashed rgba(201,146,42,.6);
}
.testimony-box p:last-child { margin-bottom: 0; }

/* ─── Signup Form ────────────────────────────────────────────────────────── */
.signup-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.signup-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--navy);
  margin-bottom: 12px;
}
.signup-wrap h2 em { font-style: normal; color: var(--red); }
.signup-wrap p {
  color: var(--steel);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: bold;
}
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  padding: 10px 13px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .18s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 80px; }
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--steel);
  line-height: 1.55;
}
.form-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--navy);
}
.signup-submit {
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity .18s;
  width: 100%;
  font-family: var(--font-body);
}
.signup-submit:hover { opacity: .88; }
.signup-trust {
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(28,28,28,.4);
  text-align: center;
}
.success-msg {
  display: none;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  padding: 28px 24px;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
}
.success-msg strong {
  color: var(--gold);
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

/* ─── Resource list ──────────────────────────────────────────────────────── */
.resource-list { list-style: none; }
.resource-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.resource-list li:last-child { border-bottom: none; }
.resource-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.resource-info h4 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 3px;
}
.resource-info p {
  font-size: 12.5px;
  color: var(--steel);
  line-height: 1.5;
}
.resource-info a {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1.5px solid var(--red);
}

/* ─── Callout box ────────────────────────────────────────────────────────── */
.callout {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  padding: 20px 24px;
  margin: 28px 0;
}
.callout p {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.7;
  margin: 0;
}
.callout strong { color: var(--navy); }

/* ─── Two-col layout ─────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col-wide {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 40px 28px 28px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .foot-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand .foot-logo span { color: var(--gold); }
.footer-brand p {
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: bold;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .18s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max);
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 11px;
  color: rgba(255,255,255,.35);
}
.footer-bottom a {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  margin-left: 18px;
}
.footer-bottom a:hover { color: var(--gold); }

/* ─── Photo Feature (grassroots photos / news) ──────────────────────────── */
.photo-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}
.photo-feature-img {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26,46,74,.18);
  border: 5px solid var(--white);
}
.photo-feature-img img { width: 100%; }
.photo-caption {
  font-size: 11.5px;
  color: rgba(28,28,28,.45);
  margin-top: 12px;
  line-height: 1.6;
  font-style: italic;
}
.news-list { list-style: none; margin-top: 8px; }
.news-list li { margin-bottom: 18px; }
.news-item { display: flex; gap: 12px; align-items: flex-start; }
.news-tag {
  background: var(--navy);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 3px;
  white-space: nowrap;
}
.news-item-body a {
  font-size: 14.5px;
  font-weight: bold;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.4;
}
.news-item-body a:hover { color: var(--red); }
.news-item-body p {
  font-size: 12.5px;
  color: var(--steel);
  margin-top: 3px;
  line-height: 1.5;
}

/* ─── Divider ────────────────────────────────────────────────────────────── */
hr.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 28px; }
  .photo-feature { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .site-nav nav .hide-mobile { display: none; }
  .site-nav nav a { padding: 0 10px; font-size: 11px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom a { margin-left: 0; margin-right: 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
