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

:root {
  --navy: #1a365d;
  --navy-light: #2a4a7f;
  --red: #c53030;
  --gold: #d69e2e;
  --light-blue: #ebf8ff;
  --light-bg: #f7fafc;
  --border: #e2e8f0;
  --text: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--navy-light);
  text-decoration: underline;
}

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

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

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

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

/* === Header === */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-title span {
  color: var(--gold);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}

/* === Status Banner === */
.status-banner {
  background: #7b341e;
  color: white;
  text-align: center;
  padding: 0.6rem 1.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.status-banner a {
  color: var(--gold);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #1a365d 0%, #2d5986 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

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

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--red);
  color: white;
}

.btn-primary:hover {
  background: #9b2c2c;
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #b7791f;
  color: white;
}

/* === Section Tags & Headings === */
.section-tag {
  display: inline-block;
  background: var(--light-blue);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}

.section-tag.tag-light {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* === What Is Flock Section === */
.flock-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.flock-intro p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.stats-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--navy);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  text-align: center;
  min-width: 150px;
  flex: 1;
  max-width: 200px;
}

.stat-card .number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.stat-card .label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* === Concern Cards === */
.concern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.concern-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 1.5rem;
}

.concern-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
  display: block;
}

.concern-card h3 {
  margin-bottom: 0.4rem;
}

.concern-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* === Cost Section === */
.cost-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cost-highlight {
  background: var(--navy);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.cost-highlight .big-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.cost-highlight .sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.4rem;
}

.cost-highlight .breakdown {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
}

.cost-points {
  list-style: none;
  padding: 0;
}

.cost-points li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.5;
}

.cost-points li::before {
  content: '→';
  color: var(--red);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* === Neighbors Won Section === */
.win-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.win-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid #276749;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.win-card .city {
  font-weight: 700;
  color: #276749;
  font-size: 1.05rem;
}

.win-card .result {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* === CTA Section === */
.cta-section {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 4.5rem 0;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* === Page Hero (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, #1a365d 0%, #2d5986 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

/* === Take Action Page === */
.action-section {
  border-bottom: 1px solid var(--border);
}

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

.action-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--red);
  color: white;
  font-weight: 800;
  border-radius: 50%;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.info-box {
  background: var(--light-blue);
  border-left: 4px solid var(--navy);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* .info-box strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
} */

/* === Council Grid === */
.council-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.council-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
}

.council-card .name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.council-card .position {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* Action Tips list */
.tips-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.tips-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.5;
}

.tips-list li::before {
  content: '✓';
  color: #276749;
  font-weight: 700;
  flex-shrink: 0;
}

/* === Newsletter Signup === */
.signup-section {
  background: var(--light-blue);
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.signup-form input[type="email"]:focus {
  outline: 2px solid var(--navy-light);
  outline-offset: 1px;
}

.signup-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.6rem;
}

/* === Footer === */
footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.88rem;
}

footer p + p {
  margin-top: 0.5rem;
}

footer a {
  color: var(--gold);
}

footer strong {
  color: white;
}

/* === Responsive: Tablet & down === */
@media (max-width: 768px) {
  /* Mobile nav drawer */
  header {
    position: sticky;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  }

  nav ul.open {
    display: flex;
  }

  nav ul li a {
    display: block;
    padding: 0.6rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hamburger {
    display: flex;
  }

  /* Sections */
  section {
    padding: 2.5rem 0;
  }

  .page-hero {
    padding: 2rem 0;
  }

  .cta-section {
    padding: 3rem 0;
  }

  /* Hero */
  .hero {
    padding: 2.75rem 0;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-btns .btn {
    text-align: center;
  }

  /* Stat cards: 2×2 grid on tablet */
  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-card {
    max-width: none;
    min-width: 0;
    flex: none;
  }

  /* Cost section: stack vertically */
  .cost-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* CTA buttons stack */
  .cta-section .hero-btns {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Action page button groups */
  .action-btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .action-btn-group .btn {
    text-align: center;
  }

  /* Signup form stacks on mobile */
  .signup-form {
    flex-direction: column;
    max-width: 320px;
  }

  .signup-form .btn {
    text-align: center;
  }
}

/* === Responsive: Small phones (≤ 480px) === */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  /* Single column stats on small phones */
  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1.25rem 1.5rem;
  }

  /* Concern cards full-width */
  .concern-grid {
    grid-template-columns: 1fr;
  }

  /* Win cards full-width */
  .win-grid {
    grid-template-columns: 1fr;
  }

  /* Council cards 1-col */
  .council-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 2rem 0;
  }

  h2 {
    font-size: 1.4rem;
  }

  /* Full-width buttons in info sections */
  .info-box + div .btn,
  .tips-list + div .btn {
    display: block;
    text-align: center;
  }
}
