/* ==========================================================================
   Trust Strip Section (Leading Logos)
   ========================================================================== */

.trust-section {
  position: relative;
  width: 100%;
  background-color: var(--color-background);
  padding: 48px 0 56px;
  overflow: hidden;
}

.trust-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Caption: 24/30px, #62748E, left-aligned */
.trust-caption {
  font-family: var(--font-family-body);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); /* 20 -> 24px */
  font-weight: var(--font-weight-regular);
  line-height: 1.25; /* 30/24 */
  color: var(--color-text-slate);
  margin-bottom: 32px;
}

/* Horizontal Logo Marquee with Left & Right Fade */
.trust-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.trust-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: trust-marquee-scroll 34s linear infinite;
  will-change: transform;
}

.trust-marquee:hover .trust-marquee-track,
.trust-marquee:focus-within .trust-marquee-track {
  animation-play-state: paused;
}

.trust-logo-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

/* Individual Logo Item: Grayscale default -> Coloured on hover */
.trust-logo-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 57px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 280ms var(--ease-out);
}

.trust-logo-item:hover,
.trust-logo-item:focus-visible {
  transform: scale(1.05);
  outline: none;
}

.trust-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  transition: opacity 280ms var(--ease-out);
}

.trust-logo-bw {
  opacity: 0.9;
}

.trust-logo-color {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.trust-logo-item:hover .trust-logo-bw,
.trust-logo-item:focus-visible .trust-logo-bw {
  opacity: 0;
}

.trust-logo-item:hover .trust-logo-color,
.trust-logo-item:focus-visible .trust-logo-color {
  opacity: 1;
}

@keyframes trust-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
  .trust-section {
    padding: 36px 0 40px;
  }

  .trust-caption {
    margin-bottom: 24px;
  }

  .trust-logo-group {
    gap: 36px;
    padding-right: 36px;
  }

  .trust-logo-item {
    width: 124px;
    height: 47px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blur-word {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .trust-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .trust-logo-group--clone {
    display: none;
  }
}
