/* ==========================================
   HYLEK - "TRUSTED BY 30+ CLIENTS" SECTION
   ========================================== */

.trusted-section {
  position: relative;
  width: 100%;
  background-color: #000000;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem 0 1.5rem 0;
  z-index: var(--z-content);
  overflow: hidden;
}

.trusted-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.trusted-heading {
  font-family: var(--font-family-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Centered Horizontal Logo Carousel Container - Capped to 4 Visible Logos */
.trusted-marquee-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  background: transparent;
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.trusted-marquee-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  width: max-content;
  animation: trustedMarqueeScroll 24s linear infinite;
  will-change: transform;
}

.trusted-marquee-container:hover .trusted-marquee-track {
  animation-play-state: paused;
}

/* Standalone Logo Item Presentation - Zero Background Boxes */
.client-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.client-logo-img {
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  background: transparent;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 300ms ease, opacity 300ms ease, transform 300ms ease;
}

.client-logo-item:hover .client-logo-img {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================== */

@media (max-width: 1024px) {
  .trusted-section {
    padding: 1.5rem 0 1.5rem 0;
  }

  .trusted-heading {
    margin-bottom: 1.5rem;
  }

  .trusted-marquee-container {
    max-width: 480px;
  }

  .trusted-marquee-track {
    gap: 2.75rem;
  }

  .client-logo-img {
    max-height: 32px;
  }
}

@media (max-width: 767px) {
  .trusted-section {
    padding: 2.75rem 0 3.25rem 0;
  }

  .trusted-heading {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    margin-bottom: 2rem;
  }

  .trusted-marquee-container {
    max-width: 320px;
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }

  .trusted-marquee-track {
    gap: 1.75rem;
  }

  .client-logo-img {
    max-height: 26px;
  }
}

/* Reduced Motion Fallback for Accessibility */
@media (prefers-reduced-motion: reduce) {
  .trusted-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}