/*
Theme Name: A Better Connecticut
Theme URI: https://abetterconnecticut.com
Author: A Better Connecticut Project
Author URI: https://abetterconnecticut.com
Description: A nonpartisan public-opinion civic survey platform for Connecticut residents. Clean, modern, research-grade design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abetterct
Tags: one-page, civic, nonpartisan, survey, responsive, accessibility-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --white:       #FFFFFF;
  --navy:        #0B1F3A;
  --blue:        #1E5AA8;
  --blue-dark:   #164585;
  --red:         #C62828;
  --red-dark:    #a81f1f;
  --gray-light:  #F4F6F8;
  --gray-mid:    #DDE3EA;
  --gray-border: #C4CDD8;
  --text:        #263238;
  --text-mid:    #455A64;
  --text-light:  #78909C;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Outfit', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;

  --shadow-sm:   0 1px 4px rgba(11,31,58,0.08);
  --shadow-md:   0 4px 16px rgba(11,31,58,0.10);
  --shadow-lg:   0 8px 32px rgba(11,31,58,0.13);

  --container:   1180px;
  --header-h:    70px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--blue-dark); }

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-mid); font-size: 1.05rem; line-height: 1.75; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
}

.section--alt {
  background: var(--gray-light);
}

.section__header {
  margin-bottom: 3rem;
}

.section__header--center {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: rgba(30,90,168,0.08);
  border-radius: 100px;
}

.section__label--red {
  color: var(--red);
  background: rgba(198,40,40,0.08);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30,90,168,0.35);
}

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198,40,40,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-border);
}
.btn--outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(11,31,58,0.04);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn--sm {
  font-size: 0.85rem;
  padding: 0.55rem 1.2rem;
}

.btn--lg {
  font-size: 1.05rem;
  padding: 0.95rem 2.2rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-mid);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo__mark span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--white);
  line-height: 1;
}

.site-logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.2;
}

.site-logo__text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--blue);
  background: rgba(30,90,168,0.07);
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 1.25rem 1.5rem 1.75rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.18s;
}
.mobile-nav a:hover {
  color: var(--blue);
  background: var(--gray-light);
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  text-align: center;
  justify-content: center;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding-block: 6rem 5rem;
  overflow: hidden;
  background: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-light) 0%, rgba(244,246,248,0.4) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(198,40,40,0.08);
  border: 1px solid rgba(198,40,40,0.2);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero__badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: italic;
  color: var(--blue);
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__trust-item::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Hero data viz (right side) */
.hero__visual {
  position: relative;
}

.hero-chart {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-chart__title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-mid);
}

.hero-chart__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hero-chart__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  width: 130px;
  flex-shrink: 0;
}

.hero-chart__bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--gray-mid);
  border-radius: 100px;
  overflow: hidden;
}

.hero-chart__bar {
  height: 100%;
  border-radius: 100px;
  transition: width 1s var(--ease-out);
}

.hero-chart__pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.hero-chart__footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-mid);
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================================
   STAT CARDS (Polling Snapshot)
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-block: 3.5rem;
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  margin-block: 1rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.stat-card:nth-child(1)::before { background: var(--blue); }
.stat-card:nth-child(2)::before { background: var(--red); }
.stat-card:nth-child(3)::before { background: var(--navy); }

.stat-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.stat-card:nth-child(1) .stat-card__number { color: var(--blue); }
.stat-card:nth-child(2) .stat-card__number { color: var(--red); }
.stat-card:nth-child(3) .stat-card__number { color: var(--navy); }

.stat-card__label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.stat-card__desc {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__disclaimer {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.75rem;
}

.about__disclaimer p {
  font-size: 0.88rem;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.6;
}

.about__disclaimer strong {
  font-style: normal;
  color: var(--navy);
}

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s;
}

.about-pillar:hover {
  box-shadow: var(--shadow-sm);
}

.about-pillar__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-pillar:nth-child(1) .about-pillar__icon { background: rgba(30,90,168,0.1); }
.about-pillar:nth-child(2) .about-pillar__icon { background: rgba(198,40,40,0.1); }
.about-pillar:nth-child(3) .about-pillar__icon { background: rgba(11,31,58,0.08); }
.about-pillar:nth-child(4) .about-pillar__icon { background: rgba(30,90,168,0.1); }

.about-pillar__body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.about-pillar__body p {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================================
   SURVEY SECTION
   ============================================================ */
.survey-section {
  background: var(--navy);
  color: var(--white);
  padding-block: 5rem;
}

.survey-section h2 {
  color: var(--white);
}

.survey-section .lead {
  color: rgba(255,255,255,0.75);
}

.survey-embed-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
}

.survey-embed-wrap iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  border-radius: var(--radius-md);
}

.survey-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.survey-embed-placeholder p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  max-width: 380px;
}

.embed-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.07);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255,255,255,0.2);
}

/* ============================================================
   ISSUE CARDS
   ============================================================ */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.issue-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  cursor: default;
  transition: all 0.22s var(--ease-out);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.issue-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--blue);
  transition: height 0.22s var(--ease-out);
}

.issue-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.issue-card:hover::after { height: 3px; }

.issue-card__icon {
  width: 42px;
  height: 42px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background 0.22s;
}

.issue-card:hover .issue-card__icon {
  background: rgba(30,90,168,0.1);
}

.issue-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.results-section {
  background: var(--gray-light);
}

.results-embed-wrap {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 0.75rem;
}

.results-embed-wrap iframe {
  width: 100%;
  min-height: 400px;
  border: none;
  border-radius: var(--radius-md);
}

.results-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.results-preview-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.results-preview-card:hover { box-shadow: var(--shadow-sm); }

.results-preview-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.results-preview-card h3 {
  font-size: 0.95rem;
  color: var(--navy);
}

.results-preview-card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   VOTER TOOLS SECTION
   ============================================================ */
.voter-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.voter-tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.22s var(--ease-out);
  position: relative;
}

.voter-tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gray-mid);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: background 0.22s;
}

.voter-tool-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue);
  color: inherit;
}

.voter-tool-card:hover::before {
  background: var(--blue);
}

.voter-tool-card__icon {
  font-size: 1.5rem;
}

.voter-tool-card h3 {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
}

.voter-tool-card p {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.5;
}

.voter-tool-card__arrow {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================================================
   UPDATES / SIGNUP SECTION
   ============================================================ */
.updates-section {
  background: var(--navy);
  padding-block: 5rem;
}

.updates-section h2 {
  color: var(--white);
}

.updates-section .lead {
  color: rgba(255,255,255,0.7);
}

.updates-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.updates-embed-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 0.75rem;
}

.updates-embed-wrap iframe {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background: var(--gray-light);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  transition: color 0.18s;
  user-select: none;
  list-style: none;
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question:hover { color: var(--blue); }

.faq-item__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s;
}

details[open] .faq-item__question .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--gray-mid);
}

.faq-item__answer p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  padding-top: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding-block: 3.5rem 2.5rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-brand__logo .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand__logo .logo-mark span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--white);
}

.footer-brand__logo .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.55;
  font-style: italic;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(255,255,255,0.15);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-col ul li a:hover { color: var(--white); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   ACCESSIBILITY & FOCUS
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   ANCHOR OFFSET (for sticky header)
   ============================================================ */
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ============================================================
   RESPONSIVE: TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero::before { display: none; }
  .hero__lead { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .issues-grid { grid-template-columns: repeat(3, 1fr); }
  .results-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .voter-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .updates-inner { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding-block: 3.5rem; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-block: 3.5rem 3rem; }
  .stats-row { grid-template-columns: 1fr; gap: 1rem; }
  .issues-grid { grid-template-columns: repeat(2, 1fr); }
  .results-preview-grid { grid-template-columns: 1fr 1fr; }
  .voter-tools-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
  .hero-chart { margin-top: 0; }
}

@media (max-width: 480px) {
  .issues-grid { grid-template-columns: repeat(2, 1fr); }
  .results-preview-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.2rem; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .hero__trust { gap: 0.75rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .mobile-nav, .nav-toggle { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
