/* Results Section - Executive Report Style (Polished) */

.results-section {
  background: #EAE7DF; /* Light cream background */
  padding: 5rem 0;
  position: relative;
}

/* Section Header */
.results-section__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3.5rem;
}

.results-section__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: var(--font-size-h2);
  font-weight: 300;
  color: #2A2A2A; /* Dark text on light background */
  line-height: var(--line-height-tight);
  margin-bottom: 0.75rem;
}

.results-section__subtitle {
  font-size: var(--font-size-body);
  color: #6B6B6B; /* Dark secondary text */
  line-height: var(--line-height-normal);
  max-width: 700px;
  margin: 0 auto;
}

/* Metrics Grid - Horizontal 3-Column Layout */
.results-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

/* Individual Metric - Subtle card containers + fade-in animation */
.metric {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);

  /* Fade-in animation initial state */
  opacity: 0;
  transform: translateY(30px);
}

.metric:nth-child(1) {
  transition: opacity 700ms ease, transform 700ms ease, border-color var(--transition-base), box-shadow var(--transition-base);
  transition-delay: 0ms;
}

.metric:nth-child(2) {
  transition: opacity 700ms ease, transform 700ms ease, border-color var(--transition-base), box-shadow var(--transition-base);
  transition-delay: 150ms;
}

.metric:nth-child(3) {
  transition: opacity 700ms ease, transform 700ms ease, border-color var(--transition-base), box-shadow var(--transition-base);
  transition-delay: 300ms;
}

.metric.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.metric:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.metric.is-visible:hover {
  transform: translateY(-4px);
}

/* Badge Row - Hero Connection */
.metric__badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.metric__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2F5A1E; /* Green foundation solid */
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  flex-shrink: 0;
}

.metric__badge-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2F5A1E; /* Green foundation */
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: 'Roboto', sans-serif;
}

/* Metric Number - Balanced size, neutral dark */
.metric__number {
  font-size: clamp(3.5rem, 5vw, 5rem);
  font-weight: 700;
  color: #2A2A2A; /* Neutral dark for credibility */
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
  font-family: 'Roboto', sans-serif;
}

/* Metric Label - Clear prominence */
.metric__label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2A2A2A; /* Dark text */
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-family: 'Roboto', sans-serif;
}

/* Delta Row (before → after) */
.metric__delta {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #5A5A5A;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.metric__delta .arrow {
  color: #2F5A1E; /* Green foundation for arrow accent */
  font-weight: 600;
  margin: 0 0.25rem;
}

/* "Why it matters" line */
.metric__why {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6B6B6B;
  line-height: 1.5;
  margin: 0 auto 0.75rem;
  max-width: 260px;
}

/* Provenance Chip + Toggle Button */
.metric__source-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.metric__source-toggle:hover {
  opacity: 0.7;
}

.source-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6B6B6B;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  line-height: 1;
}

.chevron-icon {
  color: #2F5A1E; /* Green accent */
  transition: transform var(--transition-base);
}

.metric__source-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

/* Accordion Content - Hidden when collapsed */
.metric__source-content {
  display: block;
  max-height: 0;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border-top: none;
  overflow: hidden;
  position: relative;
  text-align: left;
  transition: max-height 400ms ease, padding 300ms ease, margin-top 300ms ease, background 300ms ease, border-top 300ms ease;
}

/* Expanded state */
.metric__source-toggle[aria-expanded="true"] + .metric__source-content {
  max-height: 500px;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
}

/* Source Details (Definition List) */
.source-details {
  margin-bottom: 1rem;
}

.source-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2A2A2A;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.source-details dt:first-child {
  margin-top: 0;
}

.source-details dd {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6B6B6B;
  line-height: 1.5;
  margin-left: 0;
}

.source-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2F5A1E; /* Green accent */
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.source-link:hover {
  opacity: 0.7;
}

/* Bottom CTAs */
.results-section__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 1.5rem;
}

.results-cta-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.results-cta-links__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9A9A9A;
}

.results-cta-links__row {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.results-cta-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.results-cta-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.results-cta-link__title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #5A5A5A;
  line-height: 1.3;
}

.results-cta-link__sub {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #9A9A9A;
  line-height: 1.3;
}

/* Bottom Footnote */
.results-footnote {
  font-size: 0.8125rem;
  color: #6B6B6B;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .results-metrics {
    gap: 1.5rem;
  }

  .metric__number {
    font-size: clamp(3rem, 6vw, 4rem);
  }

  .metric {
    padding: 1.75rem 1.25rem;
  }

  .metric__badge {
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
  }

  .metric__badge-label {
    font-size: 0.75rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .results-section {
    padding: 3rem 0;
  }

  .results-section__header {
    margin-bottom: 2.5rem;
  }

  .results-metrics {
    grid-template-columns: 1fr; /* Single column stack */
    gap: 1.5rem;
  }

  .metric {
    padding: 1.5rem 1.25rem;
  }

  .metric__number {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .metric__label {
    font-size: 1rem;
  }

  .metric__why {
    max-width: 100%;
  }

  .results-cta-links__row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .metric__badge {
    width: 18px;
    height: 18px;
    font-size: 0.5625rem;
  }

  .metric__badge-label {
    font-size: 0.6875rem;
  }

  /* Remove stagger delays on mobile for faster perception */
  .metric:nth-child(1),
  .metric:nth-child(2),
  .metric:nth-child(3) {
    transition-delay: 0ms;
  }
}
