/* Golfed Partners — footer marquee styles
 * Mount target:  <div data-partners-marquee></div>
 * Visible only after JS adds .gpm-mounted (prevents layout shift)
 */

[data-partners-marquee] {
  /* Hide until JS mounts */
  display: none;
}

[data-partners-marquee].gpm-mounted {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 20px auto;
  padding: 12px 24px;
  flex-wrap: nowrap;
}

.gpm-label {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.55);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.gpm-label:hover { color: rgba(212, 175, 55, 0.95); }

.gpm-inner {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.gpm-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: gpm-scroll 30s linear infinite;
}

.gpm-inner:hover .gpm-track { animation-play-state: paused; }

.gpm-tile {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 60px;
  background: rgba(245, 240, 232, 0.92);
  border-radius: 8px;
  padding: 6px 14px 6px 8px;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.gpm-tile:hover { opacity: 1; transform: translateY(-1px); }
.gpm-tile img {
  max-height: 44px;
  max-width: 44px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.gpm-tile-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 15px;
  color: #1a472a;
  white-space: nowrap;
  line-height: 1;
}

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

@media (prefers-reduced-motion: reduce) {
  .gpm-track { animation: none; }
  .gpm-inner { overflow-x: auto; }
}

@media (max-width: 600px) {
  [data-partners-marquee].gpm-mounted { padding: 10px 12px; gap: 10px; }
  .gpm-label { font-size: 11px; }
  .gpm-tile  { height: 52px; gap: 8px; padding: 4px 12px 4px 6px; }
  .gpm-tile img { max-height: 40px; max-width: 40px; }
  .gpm-tile-name { font-size: 13px; }
}
