/* ── Clients Carousel — Solvea Digital ───────────────────────────────────── */

.sd-clients {
  padding: clamp(2rem, 4vw, 3rem) 0;
  overflow: hidden;
  background: var(--sd-white);
  border-top: 1px solid var(--sd-bdr);
  border-bottom: 1px solid var(--sd-bdr);
}

/* Fade edges on both sides */
.sd-clients__track-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* The moving strip — duplicated so the loop is seamless */
.sd-clients__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  width: max-content;
  will-change: transform;
  animation: sd-clients-scroll 28s linear infinite;
}

/* Pause on hover/focus for accessibility */
.sd-clients__track:hover,
.sd-clients__track:focus-within {
  animation-play-state: paused;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .sd-clients__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding: 0 var(--sd-gutter);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

/* Individual logo slot */
.sd-clients__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-clients__logo img {
  height: clamp(28px, 3.5vw, 40px);
  width: auto;
  max-width: clamp(100px, 12vw, 150px);
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(50%);
  transition: opacity 0.3s ease, filter 0.3s ease;
  display: block;
}

.sd-clients__logo img:hover {
  opacity: 0.85;
  filter: none;
}

@keyframes sd-clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Mobile tweaks ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .sd-clients__track {
    gap: 2rem;
    animation-duration: 22s;
  }

  .sd-clients__logo img {
    height: 26px;
    max-width: 90px;
  }
}
