/* =============================================
   HERO TRUST BADGES — Scroll-driven horizontal
   ============================================= */

.hero-trust-scroll {
  position: relative;
}

.hero-trust-scroll:not(.is-passive) .hero-trust {
  display: flex;
  flex-wrap: nowrap;
}

.hero-trust-viewport {
  overflow: hidden;
  max-width: 100%;
}

.hero-trust-track {
  display: flex;
  align-items: center;
  gap: 10px;
  will-change: transform;
}

.hero-trust-scroll:not(.is-passive) .hero-trust-track .trust-card {
  flex-shrink: 0;
}

.hero-trust-scroll.is-passive:not(.is-marquee) .hero-trust-viewport {
  width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero-trust-scroll.is-passive:not(.is-marquee) .hero-trust-viewport::-webkit-scrollbar {
  display: none;
}

.hero-trust-scroll.is-passive:not(.is-marquee) .hero-trust-track {
  transform: none !important;
}

.hero-trust-scroll.is-passive:not(.is-marquee) .hero-trust-track .trust-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.hero-trust-scroll.is-marquee .hero-trust-viewport {
  width: 100% !important;
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.hero-trust-scroll.is-marquee .hero-trust-viewport.is-marquee-paused {
  cursor: grabbing;
}

.hero-trust-scroll.is-marquee .hero-trust-track {
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}

.hero-trust-scroll.is-marquee .hero-trust-track .trust-card {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .hero-trust-scroll.is-passive .hero-trust {
    display: block;
  }

  .hero-trust-scroll.is-passive:not(.is-marquee) .hero-trust-viewport {
    width: 100% !important;
    overflow-x: scroll;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pinch-zoom;
  }

  .hero-trust-scroll.is-passive:not(.is-marquee) .hero-trust-track {
    flex-wrap: nowrap;
    width: max-content;
    gap: 10px;
  }
}
