/* Client logo strip: an endless marquee of real KlinikPro / KlinikPro Vet clinics.
   Used on index.html and vet.html. Without JS (or with reduced motion) it is a
   static, centred, wrapping row. */

.kp-clients { padding: 36px 0 12px; background: white; }
.kp-clients-title {
  margin: 0 0 18px;
  padding: 0 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.kp-marquee {
  --kp-gap: 14px;
  --kp-duration: 40s;
  display: flex;
  gap: var(--kp-gap);
  width: min(1200px, 100%);
  margin-inline: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.kp-marquee-track {
  display: flex;
  gap: var(--kp-gap);
  flex: none;
  margin: 0;
  padding: 4px 0 10px;
  list-style: none;
}
/* Before JS runs, or when motion is off: a static centred row. */
.kp-marquee:not(.is-running) { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
.kp-marquee:not(.is-running) .kp-marquee-track { flex-wrap: wrap; justify-content: center; padding-inline: 16px; }

.kp-marquee.is-running .kp-marquee-track { animation: kp-marquee var(--kp-duration) linear infinite; }
.kp-marquee.is-running:hover .kp-marquee-track,
.kp-marquee.is-running:focus-within .kp-marquee-track { animation-play-state: paused; }
@keyframes kp-marquee {
  to { transform: translateX(calc(-100% - var(--kp-gap))); }
}

.kp-logo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 8px 18px 8px 10px;
  background: white;
  border: 1px solid #e0e8f0;
  border-radius: 14px;
  white-space: nowrap;
}
.kp-logo-card img {
  width: auto;
  height: auto;
  max-height: 40px;
  max-width: 92px;
  object-fit: contain;
}
.kp-logo-card span { display: flex; flex-direction: column; line-height: 1.25; }
.kp-logo-card b { font-size: 13px; font-weight: 700; color: #172b43; }
.kp-logo-card small { font-size: 12px; color: #64748b; }
.kp-logo-mono {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ebf3fc;
  color: #001965;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
}

@media (max-width: 640px) {
  .kp-clients { padding-top: 26px; }
  .kp-marquee { --kp-duration: 30s; }
}
