/* Good Earth Rolling Counters — compact premium Our Impact layout. */

.ges-stats-counters,
.ges-stats-counters * {
  box-sizing: border-box;
}

.ges-stats-counters {
  --ges-green: #5ea260;
  --ges-black: #050505;
  --ges-white: #ffffff;
  --ges-soft-white: #b8b8b8;
  width: 100%;
  padding: clamp(38px, 3.6vw, 50px) 0 clamp(40px, 3.8vw, 54px);
  font-family: "Anek Latin", Manrope, Arial, sans-serif;
}

.ges-stats-counters--black {
  color: var(--ges-white);
  background: var(--ges-black);
}

/* Retained widget options; Black is the approved Home default. */
.ges-stats-counters--deep-green {
  color: var(--ges-white);
  background: #102d21;
}

.ges-stats-counters--white {
  color: #111111;
  background: #ffffff;
}

.ges-stats-counters__inner {
  width: min(calc(100% - 2 * clamp(22px, 5vw, 132px)), 2200px);
  margin: 0 auto;
}

.ges-stats-counters__header {
  display: flex;
  align-items: center;
  margin-bottom: clamp(22px, 2.15vw, 30px);
}

.ges-stats-counters__section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ges-soft-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1;
  text-transform: uppercase;
}

.ges-stats-counters__section-label::before {
  display: inline-block;
  width: 28px;
  height: 1px;
  content: "";
  background: var(--ges-green);
}

.ges-stats-counters__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ges-stats-counters__item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 90px;
  padding: 0 clamp(22px, 3.75vw, 88px);
  align-items: center;
  gap: clamp(15px, 1.5vw, 24px);
}

.ges-stats-counters__item:first-child {
  padding-left: 0;
}

.ges-stats-counters__item:last-child {
  padding-right: 0;
}

.ges-stats-counters__item + .ges-stats-counters__item::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 58px;
  content: "";
  background: rgba(255, 255, 255, .14);
  transform: translateY(-50%);
}

.ges-stats-counters--white .ges-stats-counters__item + .ges-stats-counters__item::before {
  background: rgba(17, 17, 17, .14);
}

.ges-stats-counters__icon {
  display: inline-grid;
  width: clamp(40px, 3vw, 48px);
  height: clamp(40px, 3vw, 48px);
  flex: 0 0 auto;
  border: 1px solid rgba(94, 162, 96, .74);
  border-radius: 50%;
  color: var(--ges-green);
  place-items: center;
}

.ges-stats-counters__icon svg {
  width: 21px;
  height: 21px;
}

.ges-stats-counters__metric {
  min-width: 0;
}

.ges-stats-counters__number-wrap {
  display: flex;
  align-items: baseline;
  color: var(--ges-white);
  font-size: clamp(48px, 3.55vw, 58px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.052em;
  font-variant-numeric: tabular-nums;
}

.ges-stats-counters--white .ges-stats-counters__number-wrap {
  color: #111111;
}

.ges-stats-counters__number {
  display: inline-block;
  min-width: .6em;
  transform: translateY(0);
}

.ges-stats-counters.is-rolling .ges-stats-counters__number {
  animation: ges-counter-roll .14s linear infinite alternate;
}

@keyframes ges-counter-roll {
  from { transform: translateY(-.014em); }
  to { transform: translateY(.014em); }
}

.ges-stats-counters__prefix,
.ges-stats-counters__suffix {
  color: var(--ges-white);
  font-size: .55em;
  font-weight: 600;
  letter-spacing: -.025em;
}

.ges-stats-counters__prefix { margin-right: .07em; }
.ges-stats-counters__suffix { margin-left: .025em; }

.ges-stats-counters__label {
  margin: 11px 0 0;
  color: var(--ges-soft-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.ges-stats-counters--white .ges-stats-counters__label {
  color: #666666;
}

@media (max-width: 1024px) {
  .ges-stats-counters__item {
    padding-right: clamp(16px, 2.5vw, 38px);
    padding-left: clamp(16px, 2.5vw, 38px);
    gap: 14px;
  }

  .ges-stats-counters__number-wrap {
    font-size: clamp(42px, 4.8vw, 54px);
  }

  .ges-stats-counters__label {
    font-size: 12px;
    letter-spacing: .075em;
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .ges-stats-counters {
    padding: 30px 0 32px;
  }

  .ges-stats-counters__header {
    margin-bottom: 18px;
  }

  .ges-stats-counters__grid {
    grid-template-columns: 1fr;
  }

  .ges-stats-counters__item,
  .ges-stats-counters__item:first-child,
  .ges-stats-counters__item:last-child {
    min-height: 78px;
    padding: 18px 0;
  }

  .ges-stats-counters__item + .ges-stats-counters__item::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, .14);
    transform: none;
  }

  .ges-stats-counters--white .ges-stats-counters__item + .ges-stats-counters__item::before {
    background: rgba(17, 17, 17, .14);
  }

  .ges-stats-counters__icon {
    width: 42px;
    height: 42px;
  }

  .ges-stats-counters__icon svg {
    width: 20px;
    height: 20px;
  }

  .ges-stats-counters__number-wrap {
    font-size: clamp(44px, 13vw, 54px);
  }

  .ges-stats-counters__label {
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: .085em;
    white-space: nowrap;
  }
}

@media (max-width: 370px) {
  .ges-stats-counters__label {
    font-size: 11px;
    letter-spacing: .065em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ges-stats-counters.is-rolling .ges-stats-counters__number {
    animation: none;
  }
}
