/* ============================================================================
   Company Overview — Company Details stat grid
   ============================================================================ */

.co-details-section {
  background: #ffffff;
}

.co-details-section .section-header {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.co-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.35rem);
}

.co-stat-card {
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  min-height: clamp(260px, 38vw, 300px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.co-stat-card__lead {
  margin: 0;
  font-size: clamp(0.88rem, 0.25vw + 0.84rem, 0.98rem);
  line-height: 1.65;
  max-width: 32ch;
}

.co-stat-card__foot {
  margin-top: auto;
  padding-top: 1.5rem;
}

.co-stat-card__stat {
  display: block;
  font-family: var(--font-display, 'Sora', sans-serif);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.co-stat-card__label {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(0.88rem, 0.2vw + 0.84rem, 0.96rem);
  font-weight: 500;
  line-height: 1.4;
}

/* Card variants */
.co-stat-card--light {
  background: #f3f3f3;
  color: #111111;
}

.co-stat-card--light .co-stat-card__lead {
  color: #444444;
}

.co-stat-card--gray {
  background: #888888;
  color: #ffffff;
}

.co-stat-card--gray .co-stat-card__lead {
  color: rgba(255, 255, 255, 0.88);
}

.co-stat-card--red {
  background: var(--clr-primary, #e51a1a);
  color: #ffffff;
}

.co-stat-card--red .co-stat-card__lead {
  color: rgba(255, 255, 255, 0.9);
}

/* Image-backed stat cards — full-bleed media within rounded corners */
.co-stat-card.co-stat-card--has-media {
  padding: 0;
  margin: 0;
  display: block;
  isolation: isolate;
  border: 0;
  box-shadow: none;
}

.co-stat-card__media {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
  background-color: #050a18;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.co-stat-card__media--map {
  background-image: url('../images/maps.jpg');
}

.co-stat-card__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Map card */
.co-stat-card--map {
  background: #050a18;
}

.co-stat-card__map-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(
    180deg,
    rgba(5, 10, 24, 0.08) 0%,
    rgba(5, 10, 24, 0.28) 42%,
    rgba(5, 10, 24, 0.78) 100%
  );
  pointer-events: none;
}

.co-stat-card__map-title {
  margin: 0;
  font-family: var(--font-display, 'Sora', sans-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.co-stat-card__map-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Compact company facts below grid */
.co-facts-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--clr-border-light, #eee);
}

.co-fact {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--clr-text-body, #475569);
}

.co-fact strong {
  color: #111111;
  font-weight: 650;
}

@media (max-width: 768px) {
  .co-details-grid {
    grid-template-columns: 1fr;
  }

  .co-stat-card,
  .co-stat-card.co-stat-card--has-media {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .co-stat-card__lead {
    max-width: none;
  }

  .co-facts-strip {
    flex-direction: column;
    gap: 0.5rem;
  }
}
