/* Logo band — "Module/Logo Band" in the Fibbl Design System Figma file.
   A full-width strip between two hairlines where customer logos slide
   slowly to the left and leave the screen cleanly at the edge (no fade),
   with the interaction counter centred underneath.
   Markup: templates/logo-band.html. */
.logo-band {
  --logo-band-gap: 40px;
  /* One full loop of the logo list. Raise to slow the band down. */
  --logo-band-duration: 120s;

  width: 100%;

  .logo-band_carousel {
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid var(--c-gray-900);
    border-bottom: 1px solid var(--c-gray-900);
  }

  .logo-band_track {
    display: flex;
    width: max-content;
    animation: logo-band-scroll var(--logo-band-duration) linear infinite;
  }

  .logo-band_group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: var(--logo-band-gap);
    margin: 0;
    padding: 0 var(--logo-band-gap) 0 0;
    list-style: none;

    li {
      display: flex;
      flex-shrink: 0;
      margin: 0;
      padding: 0;
    }

    img {
      display: block;
      max-width: none;
      height: auto;
    }
  }

  .logo-band_text {
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    text-align: center;

    strong {
      font-weight: 600;
    }
  }
}

/* The track holds two identical lists, so moving it by half its width
   brings the second list exactly where the first started. */
@keyframes logo-band-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-band .logo-band_track {
    animation: none;
  }
}
