/* Shared · Partner logos — template-parts/gf-partners-logos.php */

.gf-partners-logos {
  position: relative;
  background: #ffffff;
  padding: clamp(3rem, 5vw, 4.5rem) 0 !important;
  margin: 0 !important;
  border-top: 1px solid rgba(12, 12, 14, 0.06);
  overflow: hidden;
}

.gf-partners-logos::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, #ffcc00 0%, rgba(255, 204, 0, 0.2) 40%, transparent 72%);
}

.gf-partners-logos__inner {
  position: relative;
  z-index: 1;
}

.gf-partners-logos__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.gf-partners-logos__kicker {
  margin: 0;
  font-family: var(--font-body), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7b00;
}

.gf-partners-logos__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: 100%;
}

.gf-partners-logos__title {
  margin: 0 !important;
  color: #08080a !important;
  font-family: var(--font-display), sans-serif !important;
  font-size: clamp(1.85rem, 1.25rem + 1.5vw, 2.6rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em;
  line-height: 1.1 !important;
}

.gf-partners-logos__lede {
  margin: 0 0 0 auto !important;
  max-width: min(34rem, 46%);
  text-align: right;
  color: #5c6570 !important;
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 450;
}

.gf-partners-logos__marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.gf-partners-logos__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0.85rem;
  animation: gf-partners-scroll 42s linear infinite;
}

.gf-partners-logos__marquee:hover .gf-partners-logos__track {
  animation-play-state: paused;
}

.gf-partners-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 10.5rem;
  height: 5.25rem;
  padding: 0.85rem 1.1rem;
  background: #f7f6f2;
  border: 1px solid rgba(12, 12, 14, 0.06);
}

.gf-partners-logos__item img {
  max-width: 8.25rem;
  max-height: 2.65rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.78;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.gf-partners-logos__item:hover img {
  filter: none;
  opacity: 1;
}

.gf-partners-logos__more {
  display: flex;
  justify-content: center;
  margin: 1.65rem 0 0 !important;
}

.gf-partners-logos__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid #0c0c0e;
  background: #0c0c0e;
  color: #ffffff !important;
  font-family: var(--font-body), sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gf-partners-logos__cta:hover {
  background: #ffcc00;
  border-color: #ffcc00;
  color: #08080a !important;
}

@keyframes gf-partners-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .gf-partners-logos__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gf-partners-logos__lede {
    margin: 0.35rem 0 0 !important;
    max-width: 42rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gf-partners-logos__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    max-width: 72rem;
    margin: 0 auto;
  }
}
