/* =========================================
   The Scaffold Initiative — style.css
   ========================================= */

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

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

body {
  font-family: 'Poppins', sans-serif;
  color: #1A1A2E;
  background: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.required {
  color: #c0392b;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(26, 26, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #1A1A2E;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1A1A2E;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.15);
}

.btn-nav {
  background: #1A1A2E;
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 6px;
}

.btn-primary {
  background: #1A1A2E;
  color: #FFFFFF;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 0.9rem;
  width: 100%;
  max-width: 300px;
}

/* --- Mobile Toggle --- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1A1A2E;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 180px 0 100px;
  background: #1A1A2E url('images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(26, 26, 46, 0.75) 50%,
    rgba(26, 26, 46, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 24px;
  color: #FFFFFF;
}

.hero-subtext {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 700px;
  color: #FFFFFF;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-heading-center {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-intro {
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.7;
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* --- The Problem (split layout) --- */
.section-problem {
  position: relative;
  background: #F8F6F3;
  overflow: hidden;
}

.section-problem::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60%;
  height: 120%;
  background: url('images/problem-network.jpg') no-repeat center center;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.split-text p {
  margin-bottom: 16px;
  opacity: 0.8;
  line-height: 1.7;
}

.split-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1A1A2E;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 4px;
  font-weight: 500;
}

/* --- Three Pillars (gradient) --- */
.section-pillars {
  background: linear-gradient(135deg, #D4A841 0%, #C6923A 30%, #B8802F 60%, #A06B24 100%);
  color: #FFFFFF;
}

.section-pillars .section-heading-center {
  color: #FFFFFF;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.pillar {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 40px 32px;
  backdrop-filter: blur(4px);
}

.pillar-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 12px;
}

.pillar h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pillar p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* --- Timeline / Movement --- */
.section-movement {
  background: #FFFFFF;
}

.timeline-accent {
  text-align: center;
  margin-bottom: 32px;
}

.timeline-accent-img {
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  opacity: 0.9;
}

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 48px 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(26, 26, 46, 0.12);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  padding-top: 48px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1A1A2E;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px #1A1A2E;
}

.timeline-item-now::before {
  background: #D4A841;
  box-shadow: 0 0 0 2px #D4A841;
  width: 20px;
  height: 20px;
  top: 18px;
}

.timeline-year {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

.timeline-detail {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 2px;
}

.timeline-closing {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.8;
}

/* --- States --- */
.section-states {
  background: #1A1A2E;
  color: #FFFFFF;
}

.section-states .section-heading-center {
  color: #FFFFFF;
}

.section-states .section-intro {
  color: rgba(255, 255, 255, 0.75);
}

.states-visual {
  text-align: center;
  margin-bottom: 32px;
}

.states-map-img {
  max-width: 560px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

.state-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.state-badge {
  background: rgba(212, 168, 65, 0.15);
  border: 1px solid rgba(212, 168, 65, 0.4);
  color: #D4A841;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

/* --- DOL --- */
.section-dol {
  background: #FFFFFF;
  padding: 80px 0;
}

.section-dol .section-heading-center {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-dol .section-intro {
  margin-bottom: 0;
}

/* --- Get Involved / CTA --- */
.section-cta {
  position: relative;
  background: #F8F6F3 url('images/cta-bg.jpg') no-repeat center center;
  background-size: cover;
}

.signup-form {
  max-width: 560px;
  margin: 0 auto 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.form-group label,
.form-group legend {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(26, 26, 46, 0.15);
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  background: #FFFFFF;
  transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  outline: none;
  border-color: #D4A841;
  box-shadow: 0 0 0 3px rgba(212, 168, 65, 0.15);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #D4A841;
}

.signup-form .btn-primary {
  display: block;
  margin: 8px auto 0;
}

.contact-line {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.contact-line a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-line a:hover {
  opacity: 0.8;
}

/* --- Footer --- */
.footer {
  background: #1A1A2E;
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 8px;
  max-width: 400px;
}

.footer-meta {
  font-size: 0.75rem;
  opacity: 0.4;
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer-nav a {
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 16px;
}

.footer-bottom p {
  font-size: 0.75rem;
  opacity: 0.4;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 960px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 28px;
    width: 2px;
    height: auto;
    right: auto;
  }

  .timeline-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 20px;
    padding: 16px 0 16px 60px;
  }

  .timeline-item::before {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
  }

  .timeline-item-now::before {
    left: 18px;
  }

  .section-problem::after {
    display: none;
  }

  .timeline-accent-img {
    max-width: 360px;
  }

  .states-map-img {
    max-width: 420px;
  }

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

  .footer-nav {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.08);
  }

  .nav.open {
    display: flex;
  }

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

  .hero {
    padding: 140px 0 72px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading-center {
    font-size: 1.7rem;
  }

  .split-text h2 {
    font-size: 1.7rem;
  }

  .split-stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .state-badges {
    gap: 10px;
  }

  .state-badge {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

/* --- Honeypot (hidden from real users) --- */
.form-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/* --- Form status message --- */
.form-status {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 12px;
  min-height: 1.5em;
}

/* --- Accessibility: reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
