/* ==========================================================================
   Color Palette: Illinois Prairie Meets Chicago
   - Prairie Sage & Tallgrass Green (Nature, rails-to-trails, greenway)
   - Chicago Lakefront Blue & Star Red (Civic identity, waterways, transit)
   - Warm Limestone & Loam (Accessible high-contrast backgrounds & text)
   ========================================================================== */
:root {
  --prairie-green: #2C5E3B;       /* Deep tallgrass & oak savanna green */
  --prairie-green-dark: #1E4229;
  --prairie-sage: #EBF2EC;        /* Soft sage tint for alternating sections */
  --prairie-gold: #D49A2A;        /* Big bluestem & goldenrod accent */
  
  --chicago-blue: #1B4965;        /* Lake Michigan & Chicago flag blue */
  --chicago-blue-light: #E6F0F5;
  --chicago-red: #C83E37;         /* Chicago municipal star red */
  --chicago-red-dark: #A62F29;

  --surface-white: #FFFFFF;
  --surface-limestone: #F8F9F6;   /* Warm off-white background */
  --text-primary: #1A241E;        /* Deep forest charcoal (WCAG AAA contrast) */
  --text-secondary: #435248;      /* Muted slate-green */
  --border-subtle: #D5DFD7;

  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-soft: 0 4px 20px rgba(26, 36, 30, 0.08);
  --transition: 0.2s ease-in-out;
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--surface-limestone);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Helpers */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--chicago-blue);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Focus outlines for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--prairie-gold);
  outline-offset: 3px;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow-container {
  max-width: 820px;
}

.section {
  padding: 3.5rem 0;
}

/* ==========================================================================
   Hero Section (Full-Width Background Image)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 4rem 0;

  /* Fallback gradient blending Chicago Blue & Prairie Green until image is added */
  background-color: var(--prairie-green-dark);
  background-image: 
    linear-gradient(135deg, rgba(27, 73, 101, 0.88) 0%, rgba(44, 94, 59, 0.85) 100%),
    url('hero-background.jpg'); /* <-- Replace with your selected image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 22, 0.35); /* Ensures crisp text legibility over any photo */
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: #F0F5F1;
  margin-bottom: 2.25rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Action Buttons (Stacked nicely on mobile, grid/row on larger screens) */
.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 340px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px; /* Mobile touch-target accessibility standard */
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary CTA: Chicago Star Red for high visibility */
.btn-primary {
  background-color: var(--chicago-red);
  color: #ffffff;
  border: 2px solid var(--chicago-red);
  box-shadow: 0 4px 12px rgba(200, 62, 55, 0.35);
}

.btn-primary:hover {
  background-color: var(--chicago-red-dark);
  border-color: var(--chicago-red-dark);
}

/* Secondary Buttons: Frosted glass over background image */
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: var(--prairie-green-dark);
  border-color: #ffffff;
}

/* ==========================================================================
   About / Overview Section
   ========================================================================== */
.about-section {
  background-color: var(--surface-white);
  border-bottom: 1px solid var(--border-subtle);
}

.lead-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-primary);
}

/* ==========================================================================
   Trail Map Section ("See the Vision")
   ========================================================================== */
.map-section {
  background-color: var(--prairie-sage);
}

.split-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--prairie-green);
  margin-bottom: 0.4rem;
}

.map-text h2,
.status-card h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--chicago-blue);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.map-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.map-wrapper {
  width: 100%;
}

.google-map-container {
  width: 100%;
  height: 340px;
  background-color: var(--chicago-blue-light);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.map-placeholder-notice {
  color: var(--chicago-blue);
  max-width: 360px;
}

.map-placeholder-notice p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.map-placeholder-notice code {
  background: rgba(27, 73, 101, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Project Status Section
   ========================================================================== */
.status-section {
  background-color: var(--surface-limestone);
}

.status-card {
  background-color: var(--surface-white);
  border-left: 5px solid var(--prairie-green);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.status-card p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.status-list {
  margin: 1.25rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.status-list li {
  font-size: 1.05rem;
  color: var(--text-primary);
  padding-left: 0.25rem;
}

.status-list li::marker {
  color: var(--prairie-green);
  font-weight: bold;
}

.hearing-note {
  background-color: var(--chicago-blue-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  margin-bottom: 0 !important;
}

.inline-link {
  color: var(--chicago-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--chicago-red);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--prairie-green-dark);
  color: #EBF2EC;
  padding: 3rem 0;
  border-top: 4px solid var(--prairie-gold);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
}

.footer-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.footer-email a {
  color: #CFE3D4;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
}

.footer-email a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color var(--transition), border-color var(--transition);
}

.social-btn:hover {
  background-color: var(--prairie-green);
  border-color: var(--prairie-gold);
}

/* ==========================================================================
   Tablet & Desktop Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.35rem;
  }

  .hero-actions {
    grid-template-columns: repeat(2, 1fr);
    max-width: 540px;
  }

  .status-card {
    padding: 2.75rem;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 5rem 0;
  }

  .hero {
    min-height: 82vh;
  }

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

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

  .split-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 3.5rem;
  }

  .google-map-container {
    height: 420px;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
