/* KWCS partner marquee — infinite logo scroll bar.
   No equivalent exists in the mockup; built to match the section language. */

.partners-section {
  background: var(--warm-white);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.partners-section .section-header {
  padding: 0 80px;
  margin-bottom: 40px;
}

/* The track is two identical passes; sliding it by exactly half its width
   lands the clone precisely where the original started, so the loop is
   seamless no matter how many logos there are. */
.partner-marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.partner-marquee-track {
  display: flex;
  width: max-content;
  animation: kwcs-marquee var(--marquee-duration, 45s) linear infinite;
}

.partner-marquee:hover .partner-marquee-track { animation-play-state: paused; }

.partner-marquee-pass {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  /* Each pass must span the viewport, or a short logo list leaves a visible
     gap between the two passes on wide screens. */
  min-width: 100vw;
}

@keyframes kwcs-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Respect a reduced-motion preference — the logos stay, the scroll stops. */
@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track { animation: none; }
  .partner-marquee { overflow-x: auto; }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 0 44px;
  flex-shrink: 0;
  text-decoration: none;
}

.partner-logo img {
  max-height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.partner-logo:hover img { filter: grayscale(0); opacity: 1; }

/* Text fallback for a partner with no logo file yet. */
.partner-logo-text {
  font-family: 'Chewy', cursive;
  font-size: 24px;
  color: var(--navy);
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.partner-logo:hover .partner-logo-text { opacity: 1; }

.partner-credit {
  max-width: 900px;
  margin: 44px auto 0;
  padding: 0 32px;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 600;
  color: var(--muted);
}

.partner-credit strong { color: var(--navy-deep); font-weight: 800; }

@media (max-width: 1024px) {
  .partners-section { padding: 64px 0 72px; }
  .partners-section .section-header { padding: 0 32px; }
  .partner-logo { height: 80px; padding: 0 32px; }
  .partner-logo img { max-height: 52px; }
}

@media (max-width: 768px) {
  .partners-section { padding: 56px 0 64px; }
  .partners-section .section-header { padding: 0 20px; }
  .partner-logo { height: 70px; padding: 0 24px; }
  .partner-logo img { max-height: 44px; max-width: 150px; }
}
