/* ── DESIGN TOKENS ── */
:root {
  --cream: #F0F4FB;
  --warm-white: #FFFFFF;
  --rust: #BF0A30;
  --rust-light: #E8254A;
  --navy: #002868;
  --navy-light: #1A3D8F;
  --gold: #E8EDF7;
  --gold-light: #C8D4EF;
  --sage: #1A3D8F;
  --text-dark: #001A4A;
  --text-mid: #2A3F6F;
  --text-light: #6A7FAF;
  --border: rgba(0, 40, 104, 0.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── GATE ── */
.gate-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 20, 60, 0.92);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.gate-box {
  background: #fff; border-radius: 16px; padding: 2.5rem;
  max-width: 480px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.gate-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 1.2rem; }
.gate-box h2 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.6rem; margin-bottom: .75rem; }
.gate-box > p { color: var(--text-mid); font-size: .95rem; line-height: 1.6; margin-bottom: 1.5rem; }
.gate-zip-row { margin-bottom: 1.5rem; }
.gate-zip-row label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-mid); margin-bottom: .5rem; }
.gate-zip-row input { width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 1.1rem; letter-spacing: .15em; text-align: center; }
.gate-error { color: var(--rust); font-size: .82rem; margin-top: .4rem; }
.gate-actions { display: flex; flex-direction: column; gap: .75rem; }
.gate-confirm-btn { background: var(--navy); color: #fff; border: none; padding: .85rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.gate-confirm-btn:hover { background: var(--navy-light); }
.gate-deny-btn { background: transparent; color: var(--text-light); border: 1px solid var(--border); padding: .65rem; border-radius: 8px; font-size: .9rem; cursor: pointer; transition: background .2s; }
.gate-deny-btn:hover { background: #f0f4fb; }
.gate-denied { margin-top: 1rem; color: var(--text-mid); font-size: .9rem; }

/* ── HEADER ── */
header {
  background: var(--navy); padding: 0 5vw;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; padding: .5rem 0; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--cream); letter-spacing: .02em; white-space: nowrap; }
.logo span { color: var(--gold); }
nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; flex: 1; }
nav a { color: rgba(251,247,240,.75); text-decoration: none; font-size: .9rem; font-weight: 500; margin-left: 1.4rem; transition: color .2s; white-space: nowrap; }
nav a:hover { color: var(--gold-light); }
.nav-cta { background: var(--rust) !important; color: var(--cream) !important; padding: .45rem 1.1rem; border-radius: 30px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--rust-light) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(145deg, #002868 0%, #1A3D8F 60%, #2850A8 100%);
  padding: 90px 5vw 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(191,10,48,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 680px; position: relative; }
.hero-tag { display: inline-block; background: rgba(191,10,48,.18); border: 1px solid rgba(191,10,48,.35); color: #FFB3C0; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 30px; margin-bottom: 1.5rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem,5vw,3.8rem); font-weight: 900; color: var(--cream); line-height: 1.1; margin-bottom: 1.2rem; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { font-size: 1.15rem; color: rgba(251,247,240,.78); line-height: 1.7; max-width: 540px; margin-bottom: 2.2rem; font-weight: 300; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary { background: var(--rust); color: var(--cream); padding: .85rem 2rem; border-radius: 40px; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: background .2s, transform .2s; }
.btn-primary:hover { background: var(--rust-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--cream); padding: .85rem 2rem; border-radius: 40px; font-size: 1rem; font-weight: 500; border: 1.5px solid rgba(251,247,240,.35); cursor: pointer; text-decoration: none; display: inline-block; transition: border-color .2s, transform .2s; }
.btn-outline:hover { border-color: rgba(251,247,240,.7); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--navy); padding: .7rem 1.4rem; border-radius: 40px; font-size: .95rem; font-weight: 500; border: 1.5px solid var(--border); cursor: pointer; transition: border-color .2s; }
.btn-outline-dark:hover { border-color: var(--navy); }

/* ── STATS BAR ── */
.stats-bar { background: var(--warm-white); border-bottom: 1px solid var(--border); padding: 0 5vw; }
.stats-inner { display: flex; justify-content: space-around; flex-wrap: wrap; }
.stat-item { padding: 1.5rem 1rem; text-align: center; flex: 1; min-width: 120px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--navy); }
.stat-label { font-size: .78rem; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }

/* ── SECTION SHARED ── */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-header.light h2 { color: var(--cream); }
.section-header.light p { color: rgba(251,247,240,.7); }
.section-header.light .section-tag { background: rgba(191,10,48,.2); color: #FFB3C0; border: 1px solid rgba(191,10,48,.3); }
.section-tag { display: inline-block; background: rgba(0,40,104,.08); color: var(--navy); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 30px; margin-bottom: 1rem; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 900; line-height: 1.15; color: var(--text-dark); margin-bottom: .8rem; }
.section-header h2 em { color: var(--navy); font-style: italic; }
.section-header p { color: var(--text-mid); font-size: 1.05rem; line-height: 1.65; }

/* ── FILTER BUTTONS ── */
.tracker-filters, .support-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { background: #fff; border: 1.5px solid var(--border); color: var(--text-mid); padding: .45rem 1.1rem; border-radius: 30px; font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── ISSUES ── */
.issues-section { padding: 80px 5vw; }
.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }
.issue-card { background: #fff; border-radius: 14px; padding: 2rem; border: 1px solid var(--border); transition: box-shadow .2s, transform .2s; }
.issue-card:hover { box-shadow: 0 8px 30px rgba(0,40,104,.1); transform: translateY(-3px); }
.issue-icon { font-size: 2rem; margin-bottom: 1rem; }
.issue-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: .6rem; }
.issue-card p { color: var(--text-mid); font-size: .92rem; line-height: 1.6; margin-bottom: 1.2rem; }
.issue-link { color: var(--rust); font-size: .9rem; font-weight: 600; text-decoration: none; }
.issue-link:hover { text-decoration: underline; }

/* ── TRACKER ── */
.tracker-section { background: var(--navy); padding: 80px 5vw; }
.tracker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.2rem; }
.tracker-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 1.4rem; }
.tracker-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.tracker-card h4 { font-size: .97rem; font-weight: 600; color: #fff; line-height: 1.4; }
.status-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .6rem; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.status-introduced { background: rgba(200,212,239,.2); color: var(--gold-light); }
.status-committee { background: rgba(232,37,74,.25); color: #FFB3C0; }
.status-floor { background: rgba(255,200,0,.25); color: #FFE066; }
.status-passed { background: rgba(0,200,100,.25); color: #80FFB8; }
.tracker-card p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.5; margin-bottom: .8rem; }
.tracker-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.tracker-meta span { font-size: .75rem; color: rgba(255,255,255,.4); }
.tracker-progress { margin-top: .8rem; }
.tracker-progress-track { height: 4px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; }
.tracker-progress-fill { height: 100%; background: var(--rust); border-radius: 4px; }

/* ── CONTACT ── */
.contact-section { padding: 80px 5vw; background: var(--warm-white); }
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; max-width: 900px; margin: 0 auto; }
.contact-form-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 2rem; }
.lookup-row { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
.lookup-row input { flex: 1; padding: .7rem 1rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 1rem; }
.rep-results { margin-bottom: 1.5rem; }
.rep-card { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; margin-bottom: .75rem; }
.rep-card h5 { font-size: .97rem; color: var(--navy); margin-bottom: .2rem; }
.rep-card p { font-size: .82rem; color: var(--text-light); }
.rep-contact-btn { background: var(--navy); color: #fff; border: none; padding: .4rem .9rem; border-radius: 6px; font-size: .82rem; cursor: pointer; }
.message-compose h4 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.topic-select-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.topic-select-row label { font-size: .9rem; color: var(--text-mid); font-weight: 500; }
.topic-select-row select { padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 6px; }
.message-compose textarea { width: 100%; padding: .9rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: .92rem; color: var(--text-dark); resize: vertical; margin-bottom: 1rem; font-family: inherit; }
.msg-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.contact-info-box { background: var(--navy); border-radius: 14px; padding: 2rem; color: rgba(255,255,255,.85); }
.contact-info-box h3 { font-family: 'Playfair Display', serif; color: #fff; margin-bottom: 1rem; }
.contact-info-box p { font-size: .92rem; line-height: 1.6; margin-bottom: 1rem; }
.contact-info-box ul { padding-left: 1.2rem; }
.contact-info-box li { font-size: .88rem; margin-bottom: .5rem; }

/* ── MAP ── */
.map-section { background: var(--navy); padding: 80px 5vw; }
.map-wrapper { position: relative; }
.map-container { background: rgba(255,255,255,.05); border-radius: 16px; padding: 1rem; position: relative; overflow: hidden; }
.us-map-svg { width: 100%; height: auto; display: block; }
.map-tooltip { position: absolute; background: rgba(0,15,50,.95); color: #fff; padding: .75rem 1rem; border-radius: 8px; font-size: .85rem; pointer-events: none; z-index: 10; min-width: 180px; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.map-tooltip h5 { font-size: .9rem; margin-bottom: .3rem; color: var(--gold-light); }
.map-legend { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.legend-item { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: rgba(255,255,255,.65); }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }

/* ── SUPPORT / PROPOSALS ── */
.support-section { padding: 80px 5vw; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.4rem; }
.support-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; transition: box-shadow .2s; }
.support-card:hover { box-shadow: 0 6px 24px rgba(0,40,104,.09); }
.support-card-type { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .2rem .7rem; border-radius: 20px; margin-bottom: .5rem; }
.type-amendment { background: rgba(0,40,104,.1); color: var(--navy); }
.type-law { background: rgba(191,10,48,.1); color: var(--rust); }
.type-reform { background: rgba(26,61,143,.1); color: var(--sage); }
.topic-pill { display: inline-block; background: var(--gold); color: var(--navy); font-size: .72rem; padding: .18rem .6rem; border-radius: 20px; margin-bottom: .6rem; margin-left: .3rem; }
.support-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--text-dark); margin-bottom: .5rem; line-height: 1.35; }
.support-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.55; margin-bottom: 1rem; }
.support-vote-row { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; }
.support-vote-btn { padding: .4rem .9rem; border-radius: 20px; border: 1.5px solid var(--border); font-size: .85rem; cursor: pointer; background: #fff; transition: all .2s; font-weight: 500; }
.support-vote-btn.yes-btn.voted { background: #e6faf0; border-color: #22c55e; color: #166534; }
.support-vote-btn.no-btn.voted  { background: #fef2f2; border-color: var(--rust); color: var(--rust); }
.support-bar-wrap { flex: 1; min-width: 160px; }
.support-bar-row { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; }
.bar-label { font-size: .73rem; color: var(--text-light); width: 22px; flex-shrink: 0; }
.support-bar-track { flex: 1; height: 6px; background: #e5eaf5; border-radius: 4px; overflow: hidden; }
.support-bar-fill-yes { height: 100%; background: #22c55e; border-radius: 4px; transition: width .6s ease; }
.support-bar-fill-no  { height: 100%; background: var(--rust); border-radius: 4px; transition: width .6s ease; }
.bar-pct { font-size: .73rem; color: var(--text-light); width: 30px; text-align: right; }
.support-total { font-size: .72rem; color: var(--text-light); margin-top: .2rem; }

/* ── ACTION / NEWSLETTER ── */
.action-section { background: var(--rust); padding: 80px 5vw; text-align: center; }
.action-inner { max-width: 520px; margin: 0 auto; }
.action-inner h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3vw,2.4rem); color: #fff; margin-bottom: .75rem; }
.action-inner > p { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 1.8rem; line-height: 1.6; }
.action-form { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.action-form input { flex: 1; min-width: 220px; padding: .8rem 1.2rem; border: none; border-radius: 40px; font-size: 1rem; }
.action-fine { margin-top: 1rem; font-size: .78rem; color: rgba(255,255,255,.55); }

/* ── FOOTER ── */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,.65); padding: 60px 5vw 0; }
.footer-inner { display: flex; gap: 3rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { flex: 2; min-width: 200px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-links { display: flex; gap: 3rem; flex: 1; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: .4rem; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 1.5rem 0; font-size: .8rem; color: rgba(255,255,255,.3); }

/* ── TOAST ── */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: .75rem 1.5rem; border-radius: 30px; font-size: .9rem; z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,.3); white-space: nowrap; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .hero { padding: 60px 5vw 50px; }
  nav a { margin-left: .8rem; font-size: .8rem; }
  .logo { font-size: 1rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .msg-actions { flex-direction: column; }
  .support-grid { grid-template-columns: 1fr; }
}
