/* ===== Impact Page Styles - Matching React ImpactPage ===== */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 60;
  width: 0%;
  transition: width 0.1s linear;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--foreground);
}

.back-link svg {
  transition: transform 0.3s;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Impact Hero */
.impact-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .impact-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
}

.impact-hero-content {
  max-width: 48rem;
}

.impact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.impact-title span {
  display: block;
}

.impact-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .impact-description {
    font-size: 1.25rem;
  }
}

/* Stats Bar */
.stats-bar {
  padding: 3rem 0;
  border-top: 1px solid hsla(var(--border-hsl), 0.5);
  border-bottom: 1px solid hsla(var(--border-hsl), 0.5);
  background: hsla(var(--muted-hsl), 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: inline;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 2.25rem;
  }
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Achievements Section */
.achievements-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .achievements-section {
    padding: 6rem 0;
  }
}

.achievements-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.achievement-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid hsla(var(--border-hsl), 0.5);
  background: var(--card);
  transition: all 0.5s ease;
}

@media (min-width: 768px) {
  .achievement-card {
    padding: 2rem;
  }
}

.achievement-card:hover {
  border-color: hsla(var(--primary-hsl), 0.3);
}

.achievement-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.achievement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: hsla(var(--primary-hsl), 0.1);
  color: var(--primary);
}

.achievement-company {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.achievement-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.achievement-description {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.achievement-metric {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Impact Categories Section */
.impact-categories-section {
  padding: 4rem 0;
  background: hsla(var(--muted-hsl), 0.2);
}

@media (min-width: 768px) {
  .impact-categories-section {
    padding: 6rem 0;
  }
}

.section-description {
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-bottom: 3rem;
}

.categories-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid hsla(var(--border-hsl), 0.5);
  background: var(--card);
}

@media (min-width: 768px) {
  .category-card {
    padding: 2rem;
  }
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: hsla(var(--primary-hsl), 0.1);
  color: var(--primary);
  flex-shrink: 0;
}

.category-info {
  flex: 1;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.category-total {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.total-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.total-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.metric-list {
  list-style: none;
}

.metric-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsla(var(--border-hsl), 0.3);
}

.metric-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metric-item .metric-label {
  font-size: 0.875rem;
  color: var(--foreground);
}

.metric-item .metric-label::after {
  content: none;
}

.metric-item .metric-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

/* Company badge after metric label */
.metric-item .metric-company {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-left: 0.5rem;
}

/* Deep Dives Section */
.deep-dives-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .deep-dives-section {
    padding: 6rem 0;
  }
}

.deep-dives-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.deep-dive-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid hsla(var(--border-hsl), 0.5);
  background: var(--card);
  transition: all 0.5s ease;
  text-decoration: none;
}

@media (min-width: 768px) {
  .deep-dive-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
  }
}

.deep-dive-card:hover {
  border-color: hsla(var(--primary-hsl), 0.3);
}

.deep-dive-card:hover .deep-dive-title {
  color: var(--primary);
}

.deep-dive-info {
  flex: 1;
}

.deep-dive-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.deep-dive-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.3s;
}

.deep-dive-period {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.deep-dive-summary {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.deep-dive-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.metric-badge {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: hsla(var(--primary-hsl), 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: hsla(var(--muted-hsl), 0.2);
}

@media (min-width: 768px) {
  .cta-section {
    padding: 6rem 0;
  }
}

.cta-content {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2rem;
  }
}

.cta-description {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

/* Button Secondary Style */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foreground);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Animated number counter styles */
.counter.counting {
  color: var(--primary);
}

/* Fade-up animation */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fade-up 0.6s ease-out forwards;
}
