/* ============================================================
   SAVE 12TH STREET — Main Stylesheet
   ============================================================
   EDITING GUIDE FOR NON-TECHNICAL EDITORS:
   - To change colors, edit the values in the :root block below
   - To change fonts, edit --font-sans
   - All colors are named (--navy, --red, --white, etc.)
   ============================================================ */

:root {
  /* Brand Colors */
  --navy:        #1a2e4a;
  --navy-light:  #243d5c;
  --red:         #c0392b;
  --red-hover:   #a93226;
  --white:       #ffffff;

  /* Neutral Grays */
  --gray-50:     #f8f9fa;
  --gray-100:    #f5f6f8;
  --gray-200:    #e9ecef;
  --gray-500:    #6b7280;
  --gray-700:    #374151;
  --gray-900:    #111827;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  /* Layout */
  --max-width: 1100px;
  --section-pad: 5rem 1.5rem;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ---- Layout Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Section Typography ---- */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  text-align: center;
  line-height: 1.25;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-lg  { padding: 0.9rem 2.25rem; font-size: 1.05rem; }
.btn-sm  { padding: 0.5rem 1.1rem;  font-size: 0.875rem; }

/* Red (primary) */
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-hover); }

/* White outline (on dark backgrounds) */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* White solid (on colored card backgrounds) */
.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover { background: var(--gray-100); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
}

/* Subtle radial glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* Thin red bottom border accent */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin-bottom: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub + .hero-sub {
  margin-top: 1.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   STAT CARDS (By the Numbers)
   ============================================================ */
.facts {
  padding: var(--section-pad);
  background: var(--gray-100);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  border-left: 5px solid var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card--red { border-left-color: var(--red); }

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card--red .stat-number { color: var(--red); }

.stat-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.stat-detail {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* source citation */
.facts-source {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1.75rem;
}

.facts-source a { color: var(--gray-500); text-decoration: underline; }

/* ============================================================
   ISSUES
   ============================================================ */
.issues {
  padding: var(--section-pad);
  background: var(--white);
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.issue-card {
  padding: 2rem;
  border-radius: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, transform 0.2s;
}

.issue-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.issue-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.issue-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
}

.issue-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.issue-card p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.75;
}

.issue-card strong { color: var(--gray-900); }

/* highlighted pull-quote within an issue card */
.issue-quote {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--red);
  background: rgba(192, 57, 43, 0.06);
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-style: italic;
}

/* ---- Issue Card Lists ---- */
.issue-list {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.issue-list li + li {
  margin-top: 0.35rem;
}

/* ---- Concerns Additional Links ---- */
.concerns-links {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--gray-100);
  border-radius: 8px;
}

.concerns-links h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.concerns-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.concerns-links a {
  color: var(--red);
  text-decoration: underline;
  font-size: 0.95rem;
}

.concerns-links a:hover {
  color: var(--red-hover);
}

/* ============================================================
   MAP
   ============================================================ */
.map-section {
  background: var(--gray-100);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.map-section .container { margin-bottom: 1.5rem; }

#map-container {
  width: 100%;
  height: 460px;
}

.map-caption {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.85rem;
  text-align: center;
}

.map-caption a { color: var(--gray-500); text-decoration: underline; }

/* ============================================================
   TAKE ACTION
   ============================================================ */
.action {
  padding: var(--section-pad);
  background: var(--navy);
  color: var(--white);
}

.action .section-title { color: var(--white); }
.action .section-sub   { color: rgba(255,255,255,0.68); }

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.action-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 12px;
  padding: 2rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-wrap: break-word;
}

.action-card--primary {
  background: var(--red);
  border-color: var(--red);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.action-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.6rem;
}

.action-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.action-card p, .action-card .action-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* Action link buttons */
.action-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Representative contact links */
.rep-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rep-link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: background 0.15s;
}

.rep-link:hover { background: rgba(255,255,255,0.16); }

.rep-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
}

.rep-contact {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  overflow-wrap: break-word;
}

/* Hearing notice box */
.hearing-notice {
  background: rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.hearing-notice strong { color: var(--white); }

/* Copy URL button */
#copy-url-btn {
  font-family: var(--font-sans);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0d1827;
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.footer p { font-size: 0.875rem; line-height: 1.7; }

.footer a { color: rgba(255,255,255,0.45); text-decoration: underline; }
.footer a:hover { color: var(--white); }

.footer strong { color: var(--white); }

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  max-width: 600px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .action-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 3.5rem 1.25rem; }

  .hero  { padding: 2rem 1.25rem 2.5rem; }

  /* Stack hero buttons vertically and stretch full-width for easy tapping */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { text-align: center; }

  .stats-grid  { grid-template-columns: 1fr; }
  .issues-grid { grid-template-columns: 1fr; }

  #map-container { height: 320px; }
}

@media (max-width: 400px) {
  /* Shrink nav petition button text on very small screens */
  .nav .btn-sm { font-size: 0.78rem; padding: 0.45rem 0.85rem; }
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Comparison Section ---- */
.comparison {
  padding: var(--section-pad);
  background: var(--gray-50);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.comparison-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.comparison-item figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--gray-500);
}

@media (max-width: 800px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}
