/* Seção 7: depoimentos. Um carrossel de cartões que arrasta para o lado,
   com setas e bolinhas para quem prefere tocar. */

.abf-depo__trilho {
  display: flex;
  gap: 16px;
  margin: 40px calc(var(--abf-recuo) * -1) 0;
  padding: 8px var(--abf-recuo) 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--abf-recuo);
  scrollbar-width: none;
}

.abf-depo__trilho::-webkit-scrollbar {
  display: none;
}

.abf-depo__cartao {
  display: flex;
  flex: 0 0 min(84%, 360px);
  flex-direction: column;
  padding: 24px 22px;
  scroll-snap-align: start;
}

.abf-depo__fala {
  flex: 1;
  margin: 0;
  font-size: var(--abf-step-body);
  line-height: 1.55;
}

.abf-depo__conquista {
  align-self: start;
  margin-top: 16px;
  padding: 4px 12px;
  background: rgb(255 216 79 / 0.12);
  color: var(--abf-amarelo);
  border-radius: 999px;
  font-size: var(--abf-step-small);
  font-weight: 600;
}

.abf-depo__quem {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--abf-linha);
}

.abf-depo__inicial {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--abf-verde);
  color: var(--abf-texto);
  border-radius: 50%;
  font-family: var(--abf-face-titulo);
  font-size: var(--abf-step-body);
  font-weight: 800;
}

.abf-depo__nome {
  display: block;
  font-weight: 600;
  line-height: 1.25;
}

.abf-depo__cidade {
  display: block;
  color: var(--abf-texto-2);
  font-size: var(--abf-step-small);
}

/* Setas e bolinhas */
.abf-depo__controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.abf-depo__seta {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--abf-cartao);
  color: var(--abf-texto);
  border: 1px solid var(--abf-linha);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms var(--abf-ease-out),
    opacity 160ms ease;
}

.abf-depo__seta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.abf-depo__seta:active {
  transform: scale(0.94);
}

.abf-depo__seta:disabled {
  cursor: default;
  opacity: 0.35;
}

@media (hover: hover) and (pointer: fine) {
  .abf-depo__seta:not(:disabled):hover {
    background: var(--abf-verde);
  }
}

.abf-depo__pontos {
  display: flex;
  gap: 8px;
}

.abf-depo__pontos span {
  width: 8px;
  height: 8px;
  background: rgb(242 246 241 / 0.25);
  border-radius: 999px;
  transition:
    width 240ms var(--abf-ease-out),
    background-color 240ms ease;
}

.abf-depo__pontos span.is-atual {
  width: 24px;
  background: var(--abf-amarelo);
}

@media (min-width: 1024px) {
  .abf-depo__trilho {
    margin-top: 56px;
  }

  .abf-depo__cartao {
    flex-basis: calc((100% - 32px) / 3);
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abf-depo__seta,
  .abf-depo__pontos span {
    transition: none;
  }
}
