/* 52-promo-marquee.css - promotional offer marquee
   Single line, large and bold, sitting between the hero and the page body on
   the location templates. Reuses the credential marquee's loop technique: a
   width:max-content track holding two identical content blocks, animated by
   exactly -50% so the second lands where the first began. */

.promo-marquee{
  overflow:hidden;
  padding:var(--space-5) 0;
  background:var(--color-bg-alt);
  border-top:1px solid var(--color-border);
  border-bottom:1px solid var(--color-border);
}

.promo-marquee__track{
  display:flex;
  width:max-content;
  animation:promo-marquee-scroll 38s linear infinite;
}
/* Pause on hover so the offer can actually be read. */
.promo-marquee:hover .promo-marquee__track{animation-play-state:paused;}

.promo-marquee__content{
  display:flex;
  align-items:center;
  gap:var(--space-5);
  white-space:nowrap;
  padding-right:var(--space-5);
  font-family:var(--font-heading);
  font-size:clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight:var(--weight-extrabold);
  letter-spacing:var(--tracking-tight);
  text-transform:uppercase;
  line-height:1.1;
}

.promo-marquee__label{color:var(--color-cta);}
.promo-marquee__offer{color:var(--color-action-deep);}
.promo-marquee__dot{
  color:var(--color-action);
  font-size:.6em;
  transform:translateY(-.12em);
}

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

/* Decorative motion: hold it still for anyone who has asked for less. */
@media (prefers-reduced-motion:reduce){
  .promo-marquee__track{animation:none;}
  .promo-marquee__content:nth-child(2){display:none;}
  .promo-marquee{text-align:center;}
  .promo-marquee__content{
    flex-wrap:wrap;
    justify-content:center;
    white-space:normal;
  }
}

@media (max-width:700px){
  .promo-marquee{padding:var(--space-4) 0;}
  .promo-marquee__content{gap:var(--space-4);padding-right:var(--space-4);}
}
