/* Stats Section - Pixel Perfect Figma Implementation */
/* Node: 249-3019 */

/* Section Container */
.stats-section {
  background: #efeae7;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.stats-section .container {
  max-width: 1440px;
  width: 100%;
  padding: 0 64px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: baseline;
}

/* Stats Intro */
.stats-intro {
  width: 100%;

  text-align: start;
  margin: 0 auto;
}

.stats-intro-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #093855;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: stretch;
  justify-items: center;
  place-self: center;
  width: 100%;
  max-width: 1280px;
}

/* Stat Cards */
.stat-card {
  background-color: #faf7f5;
  border: 2px solid #397396;
  border-radius: 16px;
  padding: 24px;
  height: 227px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.4);
}

/* Gradient overlay for cards */
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

/* Stat Icon */
.stat-icon {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.stat-card:hover .stat-icon {
  opacity: 1;
}

.stat-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Makes icons white */
}

/* Stat Number */
.stat-number {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 52px;
  line-height: 60px;
  letter-spacing: -0.02em;
  color: #397396;
  margin: 0;
  position: relative;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Stat Label */
.stat-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 24px;
  color: #093855;
  margin: 0;
  width: 100%;
  max-width: 200px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .stats-section .container {
    padding: 0 60px;
  }

  .stats-grid {
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .stats-section {
    padding: 60px 0;
  }

  .stats-section .container {
    padding: 0 40px;
    gap: 40px;
  }

  .stats-intro-text {
    font-size: 28px;
    line-height: 36px;
  }

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

  .stat-card {
    padding: 32px 20px;
    min-height: 160px;
  }

  .stat-number {
    font-size: 40px;
    line-height: 48px;
  }
}

@media (max-width: 768px) {
  .stats-section {
    padding: 40px 0;
  }

  .stats-section .container {
    padding: 0 20px;
    gap: 32px;
  }

  .stats-intro-text {
    font-size: 24px;
    line-height: 32px;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .stat-card {
    padding: 24px;
    min-height: 140px;
  }

  .stat-number {
    font-size: 36px;
    line-height: 44px;
  }

  .stat-label {
    font-size: 14px;
    line-height: 20px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .stat-card::before {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .stat-card {
    border: 2px solid #093855;
  }

  .stat-number {
    -webkit-text-fill-color: initial;
    text-fill-color: initial;
    background: none;
    color: #093855;
  }
}

/* ==========================================================================
   HOMEPAGE STATISTICS STYLES - FROM STYLE.CSS
   ========================================================================== */

/* Statistics Section - Figma Match */
.statistics-section {
  background: var(--color-neutral-50);
  padding: var(--section-padding) 0;
  text-align: center;
}

.statistics-title {
  font-family: var(--font-body);
  font-size: var(--h3-size);
  color: var(--color-primary-600);
  margin-bottom: 48px;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Homepage stat-card override (white background version) */
.statistics-section .stat-card {
  background: #faf7f5;
  border: 1px solid #397396;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

/* Homepage stat-number override (blue color version) */
.statistics-section .stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  color: var(--color-primary-400);
  margin-bottom: 8px;
}

/* Homepage stat-label override */
.statistics-section .stat-label {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-primary-600);
  line-height: 1.5;
}

/* Responsive overrides for homepage statistics */
@media (max-width: 1200px) {
  .statistics-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .statistics-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
