/* Ana sayfa — hero altı YZ araç kaydırma şeridi (JS rAF ile sabit hız) */
.hm-marquee {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.875rem 0;
}
.hm-marquee::before,
.hm-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3.5rem;
  z-index: 2;
  pointer-events: none;
}
.hm-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.hm-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
@media (min-width: 768px) {
  .hm-marquee { padding: 1.125rem 0; }
  .hm-marquee::before,
  .hm-marquee::after { width: 5rem; }
}

.hm-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hm-marquee-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding-right: 0.625rem;
  flex-shrink: 0;
}

.hm-marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  height: 2.25rem;
  box-sizing: border-box;
  padding: 0 0.75rem 0 0.4rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius, 6px);
  text-decoration: none;
  color: #0f172a;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.hm-marquee-chip:hover {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.hm-marquee-chip:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

.hm-marquee-logo {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: var(--radius, 6px);
}
.hm-marquee-fallback {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: var(--radius, 6px);
}
.hm-marquee-name {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* reduced-motion / JS kapalı */
.hm-marquee--static .hm-marquee-track {
  max-width: 100%;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  row-gap: 0.5rem;
  padding: 0 1rem;
  will-change: auto;
  transform: none !important;
}
.hm-marquee--static .hm-marquee-group:last-child { display: none; }
.hm-marquee--static .hm-marquee-group {
  flex-wrap: wrap;
  justify-content: center;
  padding-right: 0;
}
.hm-marquee--static::before,
.hm-marquee--static::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hm-marquee .hm-marquee-track {
    max-width: 100%;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    row-gap: 0.5rem;
    padding: 0 1rem;
    will-change: auto;
    transform: none !important;
  }
  .hm-marquee .hm-marquee-group:last-child { display: none; }
  .hm-marquee .hm-marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }
  .hm-marquee::before,
  .hm-marquee::after { display: none; }
}
