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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #2d2d2d;
  background: #f5f5f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.container-wide {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navigation ===== */
.site-nav {
  background: #1B2B4B;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: #C9A84C;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-links a.active {
  color: #C9A84C;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ===== Header (legacy, used on pages without hero) ===== */
.site-header {
  background: #1B2B4B;
  color: #fff;
  padding: 32px 0;
  text-align: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.tagline {
  font-size: 1.05rem;
  color: #C9A84C;
  font-weight: 400;
}

/* ===== Hero Section ===== */
.hero {
  background: #1B2B4B;
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 720px;
  margin: 0 auto 16px;
}

.hero .subheadline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 0;
  line-height: 1.6;
  font-weight: 400;
}

/* ===== Zip Tool (embedded in hero) ===== */
.hero-tool {
  max-width: 480px;
  margin: 36px auto 0;
  text-align: left;
}

.hero-tool .form-group label {
  color: rgba(255,255,255,0.9);
}

.hero-tool .form-group input,
.hero-tool .form-group select {
  background: rgba(255,255,255,0.95);
}

/* ===== Section Layouts ===== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #fff;
}

.section-dark {
  background: #1B2B4B;
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1B2B4B;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.section-dark .section-header h2 {
  color: #fff;
}

.section-header p {
  font-size: 1.05rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.75);
}

/* ===== The Problem Section ===== */
.problem-text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.problem-text p {
  margin-bottom: 16px;
}

.problem-text p:last-child {
  margin-bottom: 0;
}

.problem-quote {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1B2B4B;
  border-left: 4px solid #C9A84C;
  padding: 16px 24px;
  margin: 24px 0;
  background: #fff;
  border-radius: 0 8px 8px 0;
}

/* ===== Policy Cards ===== */
.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.policy-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.policy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.policy-card .card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.policy-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B2B4B;
  margin-bottom: 8px;
}

.policy-card .card-stat {
  font-size: 1.6rem;
  font-weight: 700;
  color: #C9A84C;
  margin-bottom: 4px;
}

.policy-card .card-stat-label {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.4;
}

.policy-card .card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1B2B4B;
  text-decoration: none;
  border-bottom: 2px solid #C9A84C;
  padding-bottom: 1px;
  transition: color 0.2s;
}

.policy-card .card-link:hover {
  color: #C9A84C;
}

/* ===== Big Stat ===== */
.big-stat-section {
  text-align: center;
  padding: 72px 0;
}

.big-stat {
  font-size: 5rem;
  font-weight: 700;
  color: #C9A84C;
  line-height: 1;
  margin-bottom: 8px;
}

.big-stat-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.big-stat-detail {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #C9A84C;
  color: #1B2B4B;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B2B4B;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 56px 0;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 24px;
}

.cta-section .btn-primary {
  width: auto;
  padding: 14px 40px;
  font-size: 1.1rem;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  padding: 32px 0;
  text-align: center;
  background: #1B2B4B;
  border-top: 3px solid #C9A84C;
}

.site-footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  margin: 0 auto;
}

.footer-tagline {
  font-size: 1rem !important;
  color: #C9A84C !important;
  font-weight: 600;
  margin-bottom: 8px !important;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0 12px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #C9A84C;
}

/* ===== Form ===== */
.form-section {
  margin-top: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #1B2B4B;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #C9A84C;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  background: #C9A84C;
  color: #1B2B4B;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: #b8973f;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: #C9A84C;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #C9A84C;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: #C9A84C;
  color: #1B2B4B;
}

/* ===== Loading ===== */
.loading {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #ddd;
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== Error ===== */
.error-card {
  background: #fff;
  border-left: 4px solid #c0392b;
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.error-card p {
  color: #c0392b;
  font-weight: 500;
}

/* ===== Results ===== */
.results-card {
  margin-top: 28px;
}

.result-block {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.result-block h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 10px;
}

.district-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1B2B4B;
  overflow-wrap: break-word;
}

.rep-name {
  font-size: 1.05rem;
  color: #444;
  margin-top: 4px;
  overflow-wrap: break-word;
}

.rep-name a {
  word-break: break-word;
}

#primary-type {
  font-weight: 600;
  color: #1B2B4B;
  font-size: 1.1rem;
}

#primary-date {
  color: #C9A84C;
  font-weight: 600;
  margin-top: 4px;
}

#primary-summary {
  margin-top: 8px;
  color: #555;
  font-size: 0.95rem;
}

.recommendation {
  border-left: 4px solid #C9A84C;
}

#recommendation-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  overflow-wrap: break-word;
}

#recommendation-text p {
  margin-bottom: 10px;
}

#recommendation-text p:last-child {
  margin-bottom: 0;
}

.actions {
  text-align: center;
}

.actions .btn-primary {
  margin-bottom: 16px;
}

.actions .note {
  font-size: 0.85rem;
  color: #888;
}

.actions .note a {
  color: #1B2B4B;
}

/* ===== Primary Date in Recommendation ===== */
.primary-date-highlight {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1B2B4B;
  background: #f5f0e0;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  text-align: center;
}

/* ===== Deadline Countdown ===== */
.deadline-countdown {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fff8e6;
  border-left: 3px solid #C9A84C;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #5a4a1a;
}

/* ===== Education Section ===== */
.education-section {
  margin-top: 8px;
  margin-bottom: 32px;
}

.education-section h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 16px;
}

.edu-item {
  margin-bottom: 16px;
}

.edu-item:last-child {
  margin-bottom: 0;
}

.edu-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1B2B4B;
  margin-bottom: 4px;
}

.edu-item p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* ===== Platform Page ===== */
.platform-hero {
  background: #1B2B4B;
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.platform-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.platform-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
}

.platform-bucket {
  padding: 56px 0;
  border-bottom: 1px solid #e5e5e0;
}

.platform-bucket:last-of-type {
  border-bottom: none;
}

.bucket-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.bucket-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.bucket-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1B2B4B;
}

.bucket-problem {
  background: #fff;
  border-left: 4px solid #c0392b;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.bucket-problem h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c0392b;
  margin-bottom: 8px;
}

.bucket-problem p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

.bucket-support {
  margin-bottom: 28px;
}

.bucket-support h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 14px;
}

.bucket-support ul {
  list-style: none;
  padding: 0;
}

.bucket-support li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  border-bottom: 1px solid #f0f0ec;
}

.bucket-support li:last-child {
  border-bottom: none;
}

.bucket-support li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  background: #C9A84C;
  border-radius: 50%;
}

.bucket-numbers {
  background: #1B2B4B;
  border-radius: 12px;
  padding: 24px 28px;
}

.bucket-numbers h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #C9A84C;
  margin-bottom: 16px;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-pct {
  font-size: 1.4rem;
  font-weight: 700;
  color: #C9A84C;
  flex-shrink: 0;
  min-width: 60px;
}

.stat-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

.stat-src {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* ===== About Page ===== */
.about-hero {
  background: #1B2B4B;
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
}

.about-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px;
  border-bottom: 1px solid #e5e5e0;
}

.about-section:last-of-type {
  border-bottom: none;
}

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B2B4B;
  margin-bottom: 16px;
}

.about-section p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section blockquote {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1B2B4B;
  border-left: 4px solid #C9A84C;
  padding: 16px 24px;
  margin: 20px 0;
  background: #fff;
  border-radius: 0 8px 8px 0;
}

.about-callout {
  background: #1B2B4B;
  color: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  text-align: center;
  margin: 40px auto;
  max-width: 680px;
}

.about-callout h2 {
  color: #C9A84C;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.about-callout p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-callout p:last-child {
  margin-bottom: 0;
}

.about-not-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.about-not-list li {
  padding: 6px 0;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.5;
}

.about-is-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.about-is-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.5;
}

.about-is-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  background: #C9A84C;
  border-radius: 50%;
}

/* ===== Utility ===== */
.hidden {
  display: none !important;
}

.text-gold {
  color: #C9A84C;
}

.text-center {
  text-align: center;
}

/* ===== Small Screens ===== */
@media (max-width: 600px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #1B2B4B;
    padding: 8px 20px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    gap: 0;
  }

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

  .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .subheadline {
    font-size: 0.95rem;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .big-stat {
    font-size: 3.5rem;
  }

  .big-stat-label {
    font-size: 1.1rem;
  }

  .district-name {
    font-size: 1.15rem;
  }

  .primary-date-highlight {
    font-size: 1rem;
  }

  .result-block {
    padding: 18px;
  }

  .container,
  .container-wide {
    padding: 0 14px;
  }

  .bucket-header h2 {
    font-size: 1.3rem;
  }

  .stat-row {
    flex-direction: column;
    gap: 4px;
  }

  .platform-hero h1,
  .about-hero h1 {
    font-size: 1.6rem;
  }
}

/* ===== Desktop ===== */
@media (min-width: 640px) {
  .hero {
    padding: 80px 0 56px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero .subheadline {
    font-size: 1.15rem;
  }

  .result-block {
    padding: 28px;
  }

  .section {
    padding: 80px 0;
  }
}
