/**
 * Brands marquee — logo strip (from ele/index.html).
 * Full-width band; logos inside .container. Use Naseem Eyebrow 1 widget for the pill label above.
 *
 * @package Naseem
 */

.elementor-widget-naseem-brand-slider {
  width: 100%;
  max-width: 100%;
}

.brands.naseem-brands {
  margin: 0;
  padding: 0;
  width: 100%;
  border: none;
  background: transparent;
}

/* Full-bleed colored band (defaults; overridden by Elementor) */
.naseem-brands__shell {
  width: 100%;
  box-sizing: border-box;
  border: none;
  background-color: #ebf2ff;
  padding-bottom: var(--space-6, 1.5rem);
}

/* Edge-to-edge background when widget sits in a narrow column */
.naseem-brands__shell--breakout {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}

.naseem-brands__contain {
  position: relative;
  padding-top: var(--space-6, 1.5rem);
}

.brands__track-wrap {
  width: 100%;
}

.brands__viewport {
  overflow: hidden;
  max-width: 100%;
  padding-block: var(--space-2, 0.5rem);
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.brands__viewport:hover .brands__marquee {
  animation-play-state: paused;
}

.brands__marquee {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: naseem-brands-marquee var(--naseem-brands-marquee-duration, 32s) linear infinite;
  will-change: transform;
}

@keyframes naseem-brands-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.brands__set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin: 0;
  padding: 0 var(--space-3, 0.75rem);
  list-style: none;
  gap: clamp(var(--space-5, 1.25rem), 3vw, var(--space-10, 2.5rem));
}

.brands__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: var(--space-4, 1rem) clamp(var(--space-4, 1rem), 2.5vw, var(--space-7, 1.75rem));
  min-height: 72px;
  color: var(--text-muted, #64748b);
}

.brands__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.brands__img {
  display: block;
  height: clamp(28px, 5vw, 44px);
  width: auto;
  max-width: min(200px, 36vw);
  object-fit: contain;
  object-position: center;
  opacity: 0.88;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.brands__item:hover .brands__img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .brands__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .brands__marquee {
    animation: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-4, 1rem) 0;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
    will-change: auto;
  }

  .brands__set--clone {
    display: none;
  }

  .brands__set:not(.brands__set--clone) {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: var(--space-5, 1.25rem);
  }

  .brands__viewport:hover .brands__marquee {
    animation-play-state: running;
  }
}
