/* =============================================================================
   Promo banner — a theatre marquee above the nav (_includes/promo-banner.html)
   =============================================================================
   Black and gold to match the passes page, chasing bulbs top and bottom like
   the confirmation screen, the headline in Anton, and the code as a gold
   ticket stub. Every animation stops under prefers-reduced-motion.
   ========================================================================== */

.sf-promo {
  --sf-promo-ink: #0C0B0A;
  --sf-promo-gold: #F6B01E;
  --sf-promo-gold-hi: #FFD873;
  --sf-promo-cream: #F4F1EA;
  --sf-promo-bulb: 14px;

  /* In the page flow, just under the fixed nav (pages already leave 60px for
     it), and below it in the stack so it scrolls away underneath. */
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(120% 180% at 50% 120%, rgba(246, 176, 30, 0.22), transparent 60%),
    linear-gradient(180deg, #171310 0%, var(--sf-promo-ink) 100%);
  color: var(--sf-promo-cream);
  font-family: "DM Sans", system-ui, sans-serif;
  padding: calc(var(--sf-promo-bulb) + 10px) 56px calc(var(--sf-promo-bulb) + 10px);
  box-sizing: border-box;
}

/* ---- marquee bulbs ------------------------------------------------------ */

.sf-promo__bulbs {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--sf-promo-bulb);
  background-image:
    radial-gradient(circle at center, var(--sf-promo-gold-hi) 0 2.5px, rgba(246, 176, 30, 0.55) 3.5px, transparent 5px),
    radial-gradient(circle at center, rgba(246, 176, 30, 0.28) 0 2.5px, transparent 3.5px);
  background-size: 42px 100%, 42px 100%;
  background-position: 0 50%, 21px 50%;
  background-repeat: repeat-x;
  animation: sf-promo-chase 1.4s steps(2) infinite;
  pointer-events: none;
}

.sf-promo__bulbs--top {
  top: 0;
  border-bottom: 1px solid rgba(246, 176, 30, 0.25);
}

.sf-promo__bulbs--bottom {
  bottom: 0;
  border-top: 1px solid rgba(246, 176, 30, 0.25);
  animation-direction: reverse;
}

@keyframes sf-promo-chase {
  to {
    background-position: 42px 50%, 63px 50%;
  }
}

/* A slow light sweep across the whole banner. */
.sf-promo__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 216, 115, 0.10) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: sf-promo-sweep 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sf-promo-sweep {
  0% { background-position: 120% 0; }
  60%, 100% { background-position: -120% 0; }
}

/* ---- content ------------------------------------------------------------ */

.sf-promo__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  flex-wrap: wrap;
  text-align: center;
}

.sf-promo__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sf-promo-gold);
  white-space: nowrap;
}

.sf-promo__star {
  font-size: 9px;
  letter-spacing: 0;
}

.sf-promo__headline {
  margin: 0;
  font-family: "Anton", "DM Sans", sans-serif;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sf-promo-cream);
}

/* "50% off" in shimmering gold. */
.sf-promo__shine {
  background: linear-gradient(100deg, var(--sf-promo-gold) 0%, var(--sf-promo-gold-hi) 25%, #FFF3CF 50%, var(--sf-promo-gold-hi) 75%, var(--sf-promo-gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sf-promo-shine 3.2s linear infinite;
  white-space: nowrap;
}

@keyframes sf-promo-shine {
  to { background-position: -200% 0; }
}

/* The code: a gold ticket stub, notched each side; click to copy. */
.sf-promo__code {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px;
  padding: 3px 16px 4px;
  vertical-align: 0.12em;
  background: var(--sf-promo-gold);
  color: var(--sf-promo-ink);
  border: 0;
  outline: 1px dashed rgba(12, 11, 10, 0.55);
  outline-offset: -5px;
  font-family: "Anton", "DM Sans", sans-serif;
  font-size: 0.9em;
  letter-spacing: 0.08em;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 216, 115, 0.4), 0 6px 22px rgba(246, 176, 30, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sf-promo__code::before,
.sf-promo__code::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--sf-promo-ink);
}

.sf-promo__code::before { left: -5px; }
.sf-promo__code::after { right: -5px; }

.sf-promo__code:hover {
  transform: translateY(-1px) rotate(-1deg);
  box-shadow: 0 0 0 1px rgba(255, 216, 115, 0.7), 0 10px 28px rgba(246, 176, 30, 0.5);
}

.sf-promo__code:focus-visible,
.sf-promo__cta:focus-visible,
.sf-promo__close:focus-visible {
  outline: 2px solid var(--sf-promo-gold-hi);
  outline-offset: 3px;
}

/* Copy icon, swapped for a check once the code is on the clipboard. */
.sf-promo__code-icon {
  display: inline-flex;
  align-items: center;
  padding-left: 10px;
  border-left: 1px dashed rgba(12, 11, 10, 0.5);
}

.sf-promo__code .sf-promo__icon-copy {
  display: block;
}

.sf-promo__code .sf-promo__icon-check,
.sf-promo__code.is-copied .sf-promo__icon-copy {
  display: none;
}

.sf-promo__code.is-copied .sf-promo__icon-check {
  display: block;
}

.sf-promo__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sf-promo__code.is-copied {
  background: var(--sf-promo-gold-hi);
}

.sf-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--sf-promo-gold);
  color: var(--sf-promo-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.sf-promo__cta:hover {
  background: var(--sf-promo-gold);
  color: var(--sf-promo-ink);
}

.sf-promo__close {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  color: rgba(244, 241, 234, 0.6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sf-promo__close:hover {
  color: var(--sf-promo-cream);
}

/* ---- phones ------------------------------------------------------------- */

@media (max-width: 759px) {
  .sf-promo {
    --sf-promo-bulb: 12px;
    padding: calc(var(--sf-promo-bulb) + 8px) 40px calc(var(--sf-promo-bulb) + 10px) 16px;
  }

  .sf-promo__inner {
    gap: 8px 16px;
  }

  .sf-promo__eyebrow {
    width: 100%;
    justify-content: center;
    font-size: 10px;
  }

  .sf-promo__headline {
    font-size: 18px;
  }

  .sf-promo__code {
    margin: 4px 4px;
  }

  .sf-promo__cta {
    padding: 8px 14px;
    font-size: 10px;
  }

  .sf-promo__close {
    top: 22px;
    right: 6px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-promo__bulbs,
  .sf-promo__glow,
  .sf-promo__shine {
    animation: none;
  }

  .sf-promo__code,
  .sf-promo__code:hover {
    transition: none;
    transform: none;
  }
}
