/* ========================================
   SCROLL MARQUEE CSS - TOP BAR ONLY
   ========================================
   
   This CSS handles ONLY the top scrolling marquee images.
   Marquee images use aspect-ratio for better performance and layout stability.
   
   IMPORTANT: All selectors are scoped to .scroll-marquee 
   to prevent conflicts with footer images or other website sections.
   ======================================== */

/* Scroll Marquee Top Bar - Mobile & Tablet Only */
.scroll-marquee {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #F9F6F4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  pointer-events: none;
  /* Performance optimizations */
  will-change: transform;
  backface-visibility: hidden;
  /* Isolate marquee from rest of website */
  contain: layout style paint;
  isolation: isolate;
}

/* Background Loading Fill */
.scroll-marquee__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #CFADD1; /* Lavender brand color */
  transition: width 0.15s ease-out;
  z-index: 1; /* Behind the icons */
  border-radius: 0;
  box-shadow: none;
  opacity: 0.9;
}

.scroll-marquee__track {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding: 0 16px;
  will-change: transform;
  /* Ensure images start from left side */
  justify-content: flex-start;
  /* Performance optimizations */
  contain: layout style;
  backface-visibility: hidden;
  position: relative;
  z-index: 2; /* Above the background fill */
}

/* Marquee image styles - consolidated */
.scroll-marquee .scroll-marquee__image {
  flex-shrink: 0;
  width: 24px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
  vertical-align: middle;
}

.scroll-marquee .scroll-marquee__image:hover {
  opacity: 1;
}



/* Background Loading Fill */
.scroll-marquee__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #CFADD1; /* Lavender brand color */
  transition: width 0.15s ease-out;
  z-index: 1; /* Behind the icons */
  border-radius: 0;
  box-shadow: none;
  opacity: 0.9;
}

.scroll-marquee__track {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding: 0 16px;
  will-change: transform;
  /* Ensure images start from left side */
  justify-content: flex-start;
  /* Performance optimizations */
  contain: layout style;
  backface-visibility: hidden;
  position: relative;
  z-index: 2; /* Above the background fill */
}

.scroll-marquee .scroll-marquee__image {
  flex-shrink: 0;
  width: 24px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.scroll-marquee .scroll-marquee__image:hover {
  opacity: 1;
}

/* Mobile styles (viewport < 600px) */
@media (max-width: 599px) {
  .scroll-marquee {
    height: 32px;
  }
  
  .scroll-marquee__track {
    gap: 16px;
    padding: 0 10px;
  }
  
  .scroll-marquee__image {
    width: 15px;
    aspect-ratio: 1 / 1;
  }
}

/* Tablet styles (viewport 600px - 1024px) */
@media (min-width: 600px) and (max-width: 1024px) {
  .scroll-marquee {
    height: 40px;
  }
  
  .scroll-marquee__track {
    gap: 20px;
    padding: 0 14px;
  }
  
  .scroll-marquee__image {
    width: 19px;
    aspect-ratio: 1 / 1;
  }
}

/* Hide on desktop (viewport > 1024px) */
@media (min-width: 1025px) {
  .scroll-marquee {
    display: none !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .scroll-marquee__track {
    transform: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .scroll-marquee {
    border-bottom: 2px solid #000000;
    box-shadow: none;
  }
  
  .scroll-marquee__image {
    opacity: 1;
  }
}
