/* ============================================
   Partial: logos-1 — Infinite Marquee Carousel
   ============================================ */

.home-section--logos {
  padding: 28px 0 36px;
}

.home-section--logos .home-section__header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.home-section--logos .home-container {
  position: static;
  isolation: isolate;
}

.home-logos-carousel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  contain: content;
  contain-intrinsic-block-size: 112px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 112px;
}

.home-logos-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: home-logos-marquee var(--logos-speed, 36s) linear infinite;
  will-change: transform;
}

.home-logos-carousel:hover .home-logos-track {
  animation-play-state: paused;
}

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

.home-logo {
  flex: 0 0 clamp(150px, 14vw, 210px);
  background: var(--home-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 78px;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-logo:hover,
.home-logo:focus-within {
  transform: none;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: var(--home-shadow);
}

.home-logo img {
  display: block;
  max-height: 48px;
  width: 160px;
  height: 40px;
  max-width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.home-logo:hover img,
.home-logo:focus-within img {
  filter: none;
  opacity: 1;
}

.home-logo span {
  font-size: 13px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--home-muted);
}

.home-logo .home-logo__savings {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--home-muted);
  text-align: center;
  text-transform: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.home-logo__savings strong,
.home-logo .home-logo__savings-value {
  font-weight: 600;
  color: var(--home-green);
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 600px) {
  .home-section--logos {
    padding: 24px 0 30px;
  }

  .home-logos-carousel {
    border-radius: 0;
    padding: 0;
    min-height: 100px;
    contain-intrinsic-block-size: 100px;
  }

  .home-logos-track {
    gap: 12px;
    animation-duration: 32s;
  }

  .home-logo {
    flex-basis: clamp(132px, 44vw, 170px);
    min-height: 72px;
    padding: 14px;
  }

  .home-logo img {
    width: 130px;
    height: 32px;
    aspect-ratio: 4 / 1;
  }
}

/* ── Reduced motion ──────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .home-logo,
  .home-logo img {
    transition-duration: 0.01ms !important;
  }

  .home-logos-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
