/* ============================================================
   REPUBLIC GRAND OPENING PROMO
   Hero seal, the #republic-offer band, and the contact-form note.
   Loaded after styles.css. When the promotion ends, remove this
   file's <link>, the three marked blocks in index.html, the promo
   section of js/main.js, and the Republic entry in
   MOVE_IN_PROMOTIONS (backend/app/services/stripe_service.py).
============================================================ */

/* ---- Hero seal ---- */
.promo-seal {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: max(1.5rem, calc((100vw - var(--container-max)) / 2 + 1.5rem));
  width: 200px;
  height: 200px;
  margin-top: -60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  opacity: 0;
  animation: promoSealIn 0.9s var(--ease) 1.3s forwards;
}
.promo-seal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, var(--gold-light) 0%, var(--gold) 58%, var(--gold-hover) 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 0 0 7px rgba(255, 255, 255, 0.16),
    inset 0 0 0 8px rgba(9, 24, 48, 0.18);
  transition: transform var(--duration) var(--ease);
}
.promo-seal::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 168, 67, 0.6);
  opacity: 0;
  animation: promoSealPulse 2.8s ease-out 2.2s infinite;
}
/* Phone-only copy, shown by the 768px block below. */
.promo-seal.promo-seal-inline { display: none; }

.promo-seal:hover::before,
.promo-seal:focus-visible::before { transform: scale(1.06); }
.promo-seal:focus-visible { outline: 3px solid var(--white); outline-offset: 8px; }

.promo-seal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: promoSpin 24s linear infinite;
}
.promo-seal:hover .promo-seal-ring { animation-duration: 8s; }
.promo-seal-ring text {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  fill: var(--navy);
}
.promo-seal-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.promo-seal-amount {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.promo-seal-off {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---- Offer band ---- */
.promo-offer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 6rem 0;
  background: var(--navy);
  color: var(--white);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  scroll-margin-top: 80px;
}
.promo-offer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px circle at 88% 18%, rgba(212, 168, 67, 0.24), transparent 62%),
    radial-gradient(560px circle at 0% 100%, rgba(15, 79, 168, 0.4), transparent 62%);
}
.promo-offer-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.promo-offer h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  text-wrap: balance;
  font-weight: 600;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.promo-offer-total {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 700;
}
.promo-offer-lead {
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}
.promo-offer-lead strong { color: var(--white); }
.promo-offer-from {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
  margin: 1.75rem 0 2rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
}
.promo-offer-from[hidden] { display: none; }
.promo-offer-from s {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration-color: var(--gold-light);
  text-decoration-thickness: 2px;
}
.promo-offer-from strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
}
.promo-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-promo {
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(184, 134, 46, 0.35);
}
.btn-promo i { transition: transform var(--duration) var(--ease); }
.btn-promo:hover i { transform: translateX(4px); }
.promo-offer-scarcity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-light);
}
.promo-offer-scarcity[hidden] { display: none; }
.promo-offer-scarcity::before {
  content: '';
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-light);
  animation: promoDot 1.8s ease-out infinite;
}
.promo-offer-fine {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Month tickets ---- */
.promo-months {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.promo-month {
  --tilt: -3deg;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  --pad-x: 0.75rem;
  gap: 0.45rem;
  padding: 1.6rem var(--pad-x) 1.4rem;
  border-radius: 14px;
  background: var(--cream);
  color: var(--navy);
  text-align: center;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tilt));
}
.promo-month:nth-child(2) { --tilt: 2deg; margin-top: 1.5rem; }
.promo-month:nth-child(3) { --tilt: -1.5deg; }
/* Ticket notches, punched out in the band's navy on the dashed tear line
   (anchored to the label so they follow it at every size). */
.promo-month-label::before,
.promo-month-label::after {
  content: '';
  position: absolute;
  bottom: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
}
.promo-month-label::before { left: calc(-1 * var(--pad-x) - 9px); }
.promo-month-label::after { right: calc(-1 * var(--pad-x) - 9px); }
.promo-month-label {
  position: relative;
  width: 100%;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px dashed var(--cream-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.promo-month-amount {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--gold-hover);
}
.promo-month-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.promo-months-total {
  margin-top: 2.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-style: italic;
  color: var(--gold-light);
}
.promo-months-total span {
  margin-right: 0.35rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.6);
}

/* Tickets stamp in one after another when the band scrolls into view
   (main.js adds .visible to .reveal elements). */
.promo-months-wrap.reveal { transform: none; }
.promo-months-wrap .promo-month,
.promo-months-wrap .promo-months-total { opacity: 0; }
.promo-months-wrap.visible .promo-month { animation: promoStamp 0.55s var(--ease) forwards; }
.promo-months-wrap.visible .promo-month:nth-child(1) { animation-delay: 0.15s; }
.promo-months-wrap.visible .promo-month:nth-child(2) { animation-delay: 0.35s; }
.promo-months-wrap.visible .promo-month:nth-child(3) { animation-delay: 0.55s; }
.promo-months-wrap.visible .promo-months-total { animation: fadeUp 0.7s var(--ease) 0.9s forwards; }

/* ---- Contact form note ---- */
.form-promo-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 168, 67, 0.45);
  background: rgba(212, 168, 67, 0.12);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--gold-light);
}
.form-promo-note[hidden] { display: none; }

@keyframes promoSealIn {
  from { opacity: 0; transform: scale(0.6) rotate(-25deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes promoSpin { to { transform: rotate(360deg); } }
@keyframes promoSealPulse {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}
@keyframes promoStamp {
  0%   { opacity: 0; transform: rotate(var(--tilt)) scale(1.35); }
  70%  { opacity: 1; transform: rotate(var(--tilt)) scale(0.97); }
  100% { opacity: 1; transform: rotate(var(--tilt)) scale(1); }
}
@keyframes promoDot {
  0%   { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(212, 168, 67, 0); }
}

@media (max-width: 1024px) {
  .promo-seal {
    top: auto;
    bottom: 5.5rem;
    width: 150px;
    height: 150px;
    margin-top: 0;
  }
  .promo-seal-amount { font-size: 2.6rem; }
  .promo-seal-off { font-size: 0.6rem; }
  .promo-offer-layout { grid-template-columns: 1fr; gap: 3.5rem; }
  .promo-months-wrap { max-width: 560px; }
}

@media (max-width: 768px) {
  /* Phones swap to the copy inside .hero-content, floated right with a
     circular wrap so "Private Office Suites" flows around the seal. */
  .promo-seal { display: none; }
  .promo-seal.promo-seal-inline {
    display: grid;
    position: relative;
    float: right;
    shape-outside: circle(50%);
    top: auto;
    bottom: auto;
    right: auto;
    width: 104px;
    height: 104px;
    margin: 0 0 0.5rem 0.75rem;
  }
  .promo-seal-amount { font-size: 1.85rem; }
  .promo-seal-off { font-size: 0.48rem; letter-spacing: 0.16em; }
  .promo-offer { padding: 4.5rem 0; }
  .promo-offer-actions .btn { width: 100%; justify-content: center; }
  .promo-months { gap: 0.6rem; }
  .promo-month { --pad-x: 0.4rem; padding: 1.25rem var(--pad-x) 1.1rem; }
  .promo-month:nth-child(2) { margin-top: 0.9rem; }
  .promo-month-label { font-size: 0.6rem; letter-spacing: 0.14em; }
  .promo-month-sub { font-size: 0.65rem; }
  .promo-month-amount { font-size: clamp(1.25rem, 6.4vw, 1.9rem); }
  .promo-months-total { font-size: 1.55rem; margin-top: 1.75rem; }
}

@media (max-width: 360px) {
  .promo-seal.promo-seal-inline { width: 84px; height: 84px; }
  .promo-seal-amount { font-size: 1.5rem; }
  .promo-seal-off { font-size: 0.42rem; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-seal { animation: none; opacity: 1; }
  .promo-seal::after,
  .promo-seal-ring,
  .promo-offer-scarcity::before { animation: none; }
  .promo-months-wrap .promo-month,
  .promo-months-wrap .promo-months-total { opacity: 1; }
  .promo-months-wrap.visible .promo-month,
  .promo-months-wrap.visible .promo-months-total { animation: none; }
}
