/* Trust bar — smartphone
--------------------------------------------- */

.trust-bar {
  background: var(--color-green);
  color: var(--color-white);
}

.trust-bar .container {
  width: 100%;
  max-width: none;
}

.trust-bar__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-bar__item {
  position: relative;
  display: grid;
  min-height: 6.5rem;
  align-content: center;
  gap: 0.2rem;
  padding: 1.25rem 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.trust-bar__item:last-child {
  border-bottom: 0;
}

.trust-bar__item::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.25rem;
  background: var(--color-red);
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 180ms ease;
}

.trust-bar__label {
  color: rgb(255 255 255 / 68%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.trust-bar__value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
}

/* Tablet
--------------------------------------------- */

@media screen and (min-width: 48rem) {
  .trust-bar__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-bar__item:nth-child(odd) {
    border-right: 1px solid rgb(255 255 255 / 18%);
  }

  .trust-bar__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

/* Desktop
--------------------------------------------- */

@media screen and (min-width: 72rem) {
  .trust-bar__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-bar__item {
    min-height: 7rem;
    padding-inline: 2rem;
    border-right: 1px solid rgb(255 255 255 / 18%);
    border-bottom: 0;
  }

  .trust-bar__item:last-child {
    border-right: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .trust-bar__item:hover {
    background: var(--color-green-dark);
    transform: translateY(-0.2rem);
  }

  .trust-bar__item:hover::before {
    transform: scaleY(1);
  }
}
