/* ==========================================================================
   TechAbbot – client logos marquee
   Markup: partials/client-logos.html (generated by tools/build-client-logos.js)
   Behaviour: CSS animation only, no script.

   Each logo sits on its own white card. The track holds the card sequence
   --marquee-copies times. It slides left (cards travel right to left) by
   exactly one sequence and repeats, so the loop has no visible seam and
   there is always enough track to cover very wide screens.
   ========================================================================== */

.client-logos {
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 3.5vw, 44px);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(11, 109, 145, 0.1), transparent 70%),
    radial-gradient(60% 120% at 100% 100%, rgba(38, 150, 94, 0.1), transparent 70%),
    var(--c-bg-alt);
  overflow: hidden;
}

.marquee {
  /* Keep in step with COPIES in tools/build-client-logos.js. */
  --marquee-copies: 4;
  --marquee-duration: 45s;
  --marquee-gap: clamp(14px, 1.6vw, 22px);
  --logo-height: clamp(26px, 1.4rem + 0.6vw, 32px);

  margin-top: clamp(24px, 3vw, 40px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-right-to-left var(--marquee-duration) linear infinite;
}

.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--marquee-gap);
  margin: 0;
  padding: 10px var(--marquee-gap) 22px 0;
  list-style: none;
}

/* Logo card */
.marquee__group li {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: clamp(150px, 14vw, 190px);
  height: clamp(68px, 6vw, 84px);
  padding-inline: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-bg);
  box-shadow: 0 12px 22px -18px rgba(37, 55, 70, 0.45);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

@media (hover: hover) {
  .marquee__group li:hover {
    border-color: rgba(11, 109, 145, 0.35);
    box-shadow: 0 16px 26px -16px rgba(11, 109, 145, 0.5);
    transform: translateY(-3px);
  }
}

.marquee__group img {
  display: block;
  width: auto;
  max-width: none;
  height: calc(var(--logo-height) * var(--logo-scale, 1));
}

@keyframes marquee-right-to-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / var(--marquee-copies))); }
}

/* The marquee runs continuously: no hover pause and no pause control, also
   when the visitor's system asks for reduced motion. */

/* Footer: call to action */

.client-logos__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(8px, 1.2vw, 16px);
}
