/* Save Green Springs - MVP Website Styles */

:root {
  --sgs-green: #244735;
  --sgs-green-dark: #163026;
  --sgs-green-light: #e8f1ec;
  --sgs-sage: #f3f6f1;
  --sgs-cream: #fbfaf6;
  --sgs-charcoal: #1f2933;
  --sgs-muted: #5f6b66;
  --sgs-border: #d8ded8;
  --sgs-alert: #fff4d8;
  --sgs-alert-border: #e3bd5b;
  --sgs-white: #ffffff;
  --sgs-radius: 16px;
  --sgs-shadow: 0 8px 24px rgba(20, 35, 30, 0.08);
}

.sgs-page {
  font-family: inherit;
  color: var(--sgs-charcoal);
  background: var(--sgs-cream);
  line-height: 1.6;
}

.sgs-page * {
  box-sizing: border-box;
}

.sgs-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.sgs-section {
  padding: 56px 0;
}

.sgs-section-small {
  padding: 36px 0;
}

.sgs-hero {
  background: linear-gradient(135deg, var(--sgs-green-dark), var(--sgs-green));
  color: var(--sgs-white);
  padding: 76px 0 68px;
}

.sgs-eyebrow {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.85;
  margin-bottom: 14px;
}

.sgs-hero h1,
.sgs-page h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 14px;
  color: inherit;
}

.sgs-hero h2 {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 20px;
  color: inherit;
  font-weight: 700;
}

.sgs-hero p {
  max-width: 780px;
  font-size: 1.15rem;
  margin: 0 0 28px;
}

.sgs-page h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--sgs-green-dark);
}

.sgs-page h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--sgs-green-dark);
}

.sgs-page p {
  margin: 0 0 16px;
}

.sgs-lead {
  font-size: 1.12rem;
  max-width: 850px;
}

.sgs-muted {
  color: var(--sgs-muted);
}

.sgs-button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.sgs-button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}

.sgs-button-primary {
  background: var(--sgs-white);
  color: var(--sgs-green-dark);
}

.sgs-button-secondary {
  background: transparent;
  color: var(--sgs-white);
  border-color: rgba(255, 255, 255, 0.75);
}

.sgs-button-dark {
  background: var(--sgs-green);
  color: var(--sgs-white);
}

.sgs-button-light {
  background: var(--sgs-white);
  color: var(--sgs-green-dark);
  border-color: var(--sgs-border);
}

.sgs-button:hover,
.sgs-button:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.sgs-banner {
  background: var(--sgs-alert);
  border-top: 1px solid var(--sgs-alert-border);
  border-bottom: 1px solid var(--sgs-alert-border);
}

.sgs-banner-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.sgs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.sgs-card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.sgs-card {
  background: var(--sgs-white);
  border: 1px solid var(--sgs-border);
  border-radius: var(--sgs-radius);
  padding: 22px;
  box-shadow: var(--sgs-shadow);
}

.sgs-card p:last-child {
  margin-bottom: 0;
}

.sgs-card a {
  font-weight: 700;
}

.sgs-fact-card {
  background: var(--sgs-white);
  border-left: 5px solid var(--sgs-green);
  border-radius: var(--sgs-radius);
  padding: 20px;
  box-shadow: var(--sgs-shadow);
}

.sgs-fact-card p {
  margin-bottom: 10px;
}

.sgs-source-needed {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7a4c00;
  background: #fff1c2;
  border: 1px solid #e2bd5c;
  border-radius: 999px;
  padding: 3px 9px;
}

.sgs-callout {
  background: var(--sgs-green-light);
  border: 1px solid var(--sgs-border);
  border-radius: var(--sgs-radius);
  padding: 28px;
}

.sgs-quote-question {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--sgs-green-dark);
  font-weight: 800;
  margin: 8px 0 0;
}

.sgs-footer-cta {
  background: var(--sgs-green-dark);
  color: var(--sgs-white);
}

.sgs-footer-cta h2 {
  color: var(--sgs-white);
}

.sgs-footer-cta p {
  max-width: 760px;
}

.sgs-review-note {
  background: #f8f2e8;
  border: 1px dashed #b98b3d;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: #5b3d0f;
  margin-top: 14px;
}

@media (max-width: 800px) {
  .sgs-section {
    padding: 42px 0;
  }

  .sgs-hero {
    padding: 56px 0;
  }

  .sgs-banner-box {
    grid-template-columns: 1fr;
  }

  .sgs-card-grid,
  .sgs-card-grid.two {
    grid-template-columns: 1fr;
  }

  .sgs-button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sgs-button {
    width: 100%;
    text-align: center;
  }
}
/* Hero subtitle contrast and spacing */
.sgs-page .sgs-hero h2 {
  color: var(--sgs-white);
  max-width: 900px;
  margin-bottom: 24px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Save Green Springs - contrast and mobile fixes */

/* Make secondary buttons readable on light sections by default */
.sgs-button-secondary {
  background: transparent;
  color: var(--sgs-green-dark);
  border-color: var(--sgs-green);
}

/* Preserve white secondary buttons in dark sections */
.sgs-hero .sgs-button-secondary,
.sgs-footer-cta .sgs-button-secondary,
.sgs-home-callout .sgs-button-secondary {
  color: var(--sgs-white);
  border-color: rgba(255, 255, 255, 0.75);
}

/* Improve hover/focus contrast */
.sgs-button-secondary:hover,
.sgs-button-secondary:focus {
  background: var(--sgs-green-light);
  color: var(--sgs-green-dark);
}

.sgs-hero .sgs-button-secondary:hover,
.sgs-hero .sgs-button-secondary:focus,
.sgs-footer-cta .sgs-button-secondary:hover,
.sgs-footer-cta .sgs-button-secondary:focus,
.sgs-home-callout .sgs-button-secondary:hover,
.sgs-home-callout .sgs-button-secondary:focus {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sgs-white);
}

/* Fix muted note text inside dark hero */
.sgs-hero .sgs-home-note {
  color: rgba(255, 255, 255, 0.82);
}

/* Make hero bottom-line box more legible */
.sgs-hero-bottom-line {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--sgs-radius);
  padding: 20px;
  margin: 24px 0;
  max-width: 900px;
}

.sgs-hero-bottom-line p {
  margin-bottom: 0;
}

/* Improve mobile spacing */
@media (max-width: 800px) {
  .sgs-container {
    padding: 0 16px;
  }

  .sgs-hero {
    padding: 48px 0;
  }

  .sgs-page .sgs-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .sgs-page .sgs-hero h2 {
    font-size: clamp(1.2rem, 6vw, 1.65rem);
  }

  .sgs-home-callout,
  .sgs-home-long-card,
  .sgs-card,
  .sgs-fact-card {
    padding: 20px;
  }
}

/* Ensure homepage-specific grids collapse correctly on phones */
@media (max-width: 900px) {
  .sgs-stat-strip,
  .sgs-home-impact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .sgs-stat-strip,
  .sgs-home-impact-grid {
    grid-template-columns: 1fr;
  }
}
/* Map Library Page */

.sgs-section--sage {
  background: var(--sgs-sage);
}

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

.sgs-section--bordered {
  border-top: 1px solid var(--sgs-border);
  border-bottom: 1px solid var(--sgs-border);
}

.sgs-map-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.sgs-map-card {
  padding: 0;
  overflow: hidden;
}

.sgs-map-card img {
  width: 100%;
  height: auto;
  display: block;
}

.sgs-map-card figcaption {
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--sgs-muted);
}

.sgs-map-card figcaption strong {
  color: var(--sgs-green-dark);
}

.sgs-map-library {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.sgs-map-entry {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 22px;
  background: var(--sgs-white);
  border: 1px solid var(--sgs-border);
  border-radius: var(--sgs-radius);
  box-shadow: var(--sgs-shadow);
  padding: 18px;
}

.sgs-map-entry-media {
  border-radius: 12px;
  overflow: hidden;
  background: var(--sgs-sage);
  border: 1px solid var(--sgs-border);
}

.sgs-map-entry-media img {
  width: 100%;
  height: auto;
  display: block;
}

.sgs-map-entry-content h3 {
  margin-top: 10px;
}

.sgs-map-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.sgs-map-date,
.sgs-map-status {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.2;
}

.sgs-map-date {
  background: var(--sgs-green);
  color: var(--sgs-white);
}

.sgs-map-status {
  background: var(--sgs-green-light);
  color: var(--sgs-green-dark);
  border: 1px solid var(--sgs-border);
}

.sgs-map-details {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.sgs-map-details div {
  border-top: 1px solid var(--sgs-border);
  padding-top: 10px;
}

.sgs-map-details dt {
  font-weight: 800;
  color: var(--sgs-green-dark);
}

.sgs-map-details dd {
  margin: 2px 0 0;
  color: var(--sgs-muted);
}

@media (max-width: 900px) {
  .sgs-map-compare-grid,
  .sgs-map-entry {
    grid-template-columns: 1fr;
  }
}
/* Timeline / Background Page */

.sgs-section--sage {
  background: var(--sgs-sage);
}

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

.sgs-section--bordered {
  border-top: 1px solid var(--sgs-border);
  border-bottom: 1px solid var(--sgs-border);
}

.sgs-timeline-page .sgs-translation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.sgs-timeline-page .sgs-translation-card {
  background: var(--sgs-white);
  border: 1px solid var(--sgs-border);
  border-radius: var(--sgs-radius);
  padding: 22px;
  box-shadow: var(--sgs-shadow);
}

.sgs-timeline-page .sgs-translation-card h3 {
  margin-bottom: 8px;
}

.sgs-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.sgs-status-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--sgs-green-light);
  color: var(--sgs-green-dark);
  border: 1px solid var(--sgs-border);
}

.sgs-map-card {
  padding: 0;
  overflow: hidden;
  margin-top: 24px;
}

.sgs-map-card img {
  width: 100%;
  height: auto;
  display: block;
}

.sgs-map-card figcaption {
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--sgs-muted);
}

.sgs-timeline-list {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.sgs-timeline-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  background: var(--sgs-white);
  border: 1px solid var(--sgs-border);
  border-radius: var(--sgs-radius);
  box-shadow: var(--sgs-shadow);
  padding: 22px;
}

.sgs-timeline-card--turning-point {
  border-left: 6px solid var(--sgs-green);
}

.sgs-timeline-date {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sgs-green-dark);
}

.sgs-timeline-content {
  display: grid;
  gap: 16px;
}

.sgs-timeline-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sgs-timeline-track {
  background: var(--sgs-cream);
  border: 1px solid var(--sgs-border);
  border-radius: 12px;
  padding: 16px;
}

.sgs-timeline-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sgs-muted);
  margin-bottom: 6px;
}

.sgs-timeline-track h3 {
  margin-bottom: 8px;
}

.sgs-timeline-why,
.sgs-timeline-question {
  border-radius: 12px;
  padding: 16px;
}

.sgs-timeline-why {
  background: var(--sgs-green-light);
  border: 1px solid var(--sgs-border);
}

.sgs-timeline-question {
  background: var(--sgs-alert);
  border: 1px solid var(--sgs-alert-border);
}

.sgs-timeline-why h4,
.sgs-timeline-question h4 {
  margin: 0 0 8px;
  color: var(--sgs-green-dark);
  font-size: 1rem;
}

.sgs-timeline-why p:last-child,
.sgs-timeline-question p:last-child,
.sgs-timeline-track p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .sgs-timeline-page .sgs-translation-grid,
  .sgs-timeline-tracks {
    grid-template-columns: 1fr;
  }
}

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

  .sgs-timeline-date {
    font-size: 1.35rem;
  }
}