/* ==========================================================================
   VORA — Bento Grid stats/counters section
   ========================================================================== */

.stats {
  position: relative;
  background-color: var(--bg-beige);
  padding: 120px 0;
  overflow: hidden;
}

.stats__decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 24%;
  aspect-ratio: 1.065 / 1;
  z-index: 1;
  pointer-events: none;
}

.stats__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.stats__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 70%;
  text-align: center;
}

.stats__badge {
  display: inline-flex;
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
}

.stats__title {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.stats__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 20px;
}

.stats__col-left {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats__col-right {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stats__card {
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.stats__card--yellow {
  background: var(--gradient-brand);
  color: var(--text-on-dark);
  min-height: 300px;
}

.stats__card--yellow .stats__number,
.stats__card--yellow .stats__suffix,
.stats__card--yellow .stats__label {
  color: var(--text-on-dark);
}

.stats__card--white {
  background-color: var(--color-white);
}

.stats__card--black {
  background-color: var(--bg-black);
  color: var(--text-on-dark);
}

.stats__card--media {
  padding: 0;
  min-height: 260px;
}

.stats__card--media img,
.stats__card--media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.stats__label {
  font-size: 14px;
  font-weight: 500;
}

.stats__card--black .stats__label {
  color: var(--text-muted);
}

.stats__number-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stats__number {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats__suffix {
  font-size: 34px;
  font-weight: 500;
}

.stats__card--black .stats__number,
.stats__card--black .stats__suffix {
  color: var(--text-on-dark);
}

.stats__body {
  font-size: 18px;
  font-weight: 400;
  max-width: 90%;
}

.stats__card--yellow .stats__body {
  color: rgba(255, 255, 255, 0.85);
}

.stats__card--white .stats__body {
  color: var(--color-charcoal);
}

.stats__card--black .stats__body {
  color: var(--bg-beige);
  max-width: 80%;
}

.stats__decoration-circle {
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  opacity: 0.5;
  pointer-events: none;
}

.stats__truck-img {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 38%;
  max-width: 150px;
  border-radius: 10px;
  object-fit: contain;
  object-position: right bottom;
}

/* Keep the card text above the decorative photo */
.stats__card--yellow .stats__label,
.stats__card--yellow .stats__number-row,
.stats__card--yellow .stats__body {
  position: relative;
  z-index: 1;
}

.stats__card--yellow .stats__body {
  max-width: 78%;
}

.stats__avatars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stats__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-white);
  object-fit: cover;
}

@media (max-width: 1024px) {
  .stats__head {
    max-width: 100%;
  }
}

@media (max-width: 809px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }

  .stats__col-left,
  .stats__col-right {
    grid-column: span 1;
  }

  .stats__row {
    grid-template-columns: 1fr;
  }

  .stats__card {
    min-height: 200px;
  }
}
