/* ============================================================
   Component: Marquee / Service Ticker (marquee.css)
   BEM Notation: block_element--modifier
   Matched to Figma node 0:5825 (height: 82px, font-size: 20px, font-weight: 600)
   ============================================================ */

.marquee {
  position: relative;
  width: 100%;
  height: 82px;
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
  background: var(--gradient-marquee);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  border-top: none;
  display: flex;
  align-items: center;
  z-index: 10;
}

/* Edge Fade Gradients - none in Figma */
.marquee::before,
.marquee::after {
  display: none;
}

/* Sliding Track */
.marquee_track {
  display: flex;
  width: max-content;
  overflow: hidden;
}

/* Individual group animating infinitely */
.marquee_group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  gap: 24px;
  padding-right: 24px;
  animation: marquee_scroll 35s linear infinite;
  will-change: transform;
}

/* Pause animation on hover or focus within */
.marquee:hover .marquee_group,
.marquee:focus-within .marquee_group {
  animation-play-state: paused;
}

/* Marquee Item */
.marquee_item {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-marquee-text);
  letter-spacing: var(--letter-spacing-tight);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .marquee_item {
    font-size: var(--font-size-marquee);
    font-weight: var(--font-weight-semibold);
  }
}

/* Separator Star Icon */
.marquee_separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marquee_star {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Pure CSS GPU Scroll Animation */
@keyframes marquee_scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Accessibility: Fallback for Users with prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .marquee::before,
  .marquee::after {
    display: none;
  }

  .marquee_track {
    overflow-x: auto;
  }

  .marquee_group {
    animation: none;
    min-width: auto;
  }

  .marquee_group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 767px) {
  .marquee {
    height: clamp(52px, 7.5vh, 64px);
  }
}
