/* =========================================================
   WDHC shared cinematic hero
   Full-bleed video background + frosted glass copy plate
   Pattern from rulebook / submit · used on main pages
   ========================================================= */

/* Shared cinematic heroes (all non-index main pages) */
.wdhc-cine-hero {
  position: relative;
  display: grid;
  /* TOP-align copy · place-items:center was creating the huge empty band above the eyebrow */
  place-items: start center;
  width: 100%;
  max-width: none;
  margin: 0 0 28px;
  /* Hug content · do not force a tall empty video stage */
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 90% 80% at 50% 20%, rgba(212, 175, 55, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 80% 90%, rgba(205, 127, 50, 0.16) 0%, transparent 50%),
    #080603;
  text-align: center;
  box-sizing: border-box;
}

/* Kill gap between marquee and hero on every main page */
.wdhc-marquee + .wdhc-cine-hero,
.marquee-container + .wdhc-cine-hero,
.wdhc-marquee + header.wdhc-cine-hero,
.wdhc-marquee + header[data-wdhc-cinematic-hero] {
  margin-top: 0 !important;
}

.wdhc-cine-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 5;
  background: linear-gradient(90deg, #D4AF37 0%, #e8a04a 48%, #cd7f32 100%);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.wdhc-cine-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.wdhc-cine-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block !important;
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.08) brightness(0.94) sepia(0.18) hue-rotate(-8deg);
}

.wdhc-cine-hero--hang .wdhc-cine-hero__video {
  object-position: center 28%;
}

.wdhc-cine-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      165deg,
      rgba(40, 28, 8, 0.78) 0%,
      rgba(12, 8, 4, 0.42) 36%,
      rgba(28, 16, 6, 0.5) 64%,
      rgba(18, 10, 4, 0.88) 100%
    ),
    radial-gradient(
      ellipse 75% 65% at 50% 38%,
      rgba(212, 175, 55, 0.22) 0%,
      rgba(205, 127, 50, 0.1) 42%,
      rgba(0, 0, 0, 0.55) 100%
    );
}

.wdhc-cine-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 100px rgba(40, 24, 6, 0.55),
    inset 0 -50px 90px rgba(80, 45, 10, 0.4),
    inset 0 0 0 1px rgba(212, 175, 55, 0.12);
  background:
    radial-gradient(ellipse 95% 75% at 50% 100%, rgba(212, 175, 55, 0.2) 0%, rgba(205, 127, 50, 0.08) 35%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 15%, rgba(232, 201, 106, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 88% 80%, rgba(205, 127, 50, 0.14) 0%, transparent 50%);
}

.wdhc-cine-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  /* Tight top padding · content starts just under marquee */
  padding: 16px 22px 28px;
  box-sizing: border-box;
}

.wdhc-cine-hero__copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 22px) clamp(16px, 3vw, 24px);
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background:
    linear-gradient(
      155deg,
      rgba(50, 36, 12, 0.72) 0%,
      rgba(22, 14, 6, 0.58) 48%,
      rgba(32, 18, 8, 0.68) 100%
    );
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.12),
    inset 0 1px 0 rgba(240, 215, 140, 0.22),
    inset 0 0 0 1px rgba(205, 127, 50, 0.12);
  animation: wdhc-cine-copy-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wdhc-cine-hero__copy--wide {
  max-width: 44rem;
}

@keyframes wdhc-cine-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wdhc-cine-hero__eyebrow {
  font-family: var(--wdhc-font-ui, 'Rajdhani', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(105deg, #FFE566 0%, #D4AF37 45%, #F0A030 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 14px;
  text-align: center;
  width: 100%;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

.wdhc-cine-hero__title {
  font-family: var(--wdhc-font-head, 'Oswald', sans-serif);
  /* Match challenges / main-page hero scale sitewide */
  font-size: clamp(2.75rem, 7.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.98;
  margin: 0 0 16px;
  text-align: center;
  width: 100%;
  color: #fff;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 18px rgba(212, 175, 55, 0.45));
}

.wdhc-cine-hero__title .wdhc-gold-text,
.wdhc-cine-hero__title .hero-gold-gradient,
.wdhc-cine-hero__title .hero-gold,
.wdhc-cine-hero__title .dead-hang-text {
  background: linear-gradient(115deg, #FFE566 0%, #D4AF37 38%, #F0A030 72%, #E87820 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  filter: drop-shadow(0 0 22px rgba(240, 160, 48, 0.45));
}

.wdhc-cine-hero__title-line {
  display: block;
}

.wdhc-cine-hero__lead {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.55;
  color: #f5edd8;
  max-width: 42ch;
  margin: 0 auto 18px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.wdhc-cine-hero__copy--wide .wdhc-cine-hero__lead {
  max-width: 48ch;
}

.wdhc-cine-hero__lead a {
  color: #F0D070;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wdhc-cine-hero__lead a:hover {
  color: #FFE566;
}

.wdhc-cine-hero__sub {
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(245, 237, 216, 0.88);
  max-width: 46ch;
  margin: 0 auto 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.wdhc-cine-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.wdhc-cine-hero__cta,
a.wdhc-cine-hero__cta.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 13px 26px !important;
  font-family: var(--wdhc-font-ui, 'Rajdhani', sans-serif) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 999px !important;
  border: 1px solid rgba(205, 127, 50, 0.55) !important;
  background: linear-gradient(135deg, #D4AF37 0%, #cd7f32 100%) !important;
  color: #000 !important;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.wdhc-cine-hero__cta:hover,
a.wdhc-cine-hero__cta.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.45) !important;
  color: #000 !important;
}

.wdhc-cine-hero__secondary,
a.wdhc-cine-hero__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--wdhc-font-ui, 'Rajdhani', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(12, 8, 4, 0.45);
  color: #f5edd8;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wdhc-cine-hero__secondary:hover,
a.wdhc-cine-hero__secondary:hover {
  border-color: rgba(240, 208, 112, 0.7);
  background: rgba(40, 28, 8, 0.55);
  color: #FFE566;
}

/* Optional medal / logo above title */
.wdhc-cine-hero__medal {
  width: 56px;
  height: auto;
  margin: 0 0 8px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}

/* Status pill (leaderboard) */
.wdhc-cine-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--wdhc-font-ui, 'Rajdhani', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F0D070;
}

/* Stats strip inside frosted plate (Pro) */
.wdhc-cine-hero .wdhc-stat-strip {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.wdhc-cine-hero .wdhc-stat-strip__val {
  color: #FFE566;
}

.wdhc-cine-hero .wdhc-stat-strip__lbl {
  color: rgba(245, 237, 216, 0.75);
}

/* Challenges countdown inside cinematic hero */
.wdhc-cine-hero .ch-countdown {
  margin: 8px auto 16px;
  width: 100%;
  max-width: 100%;
}

.wdhc-cine-hero .ch-countdown__label,
.wdhc-cine-hero .ch-countdown__meta,
.wdhc-cine-hero .ch-countdown__unit-label {
  color: rgba(245, 237, 216, 0.8);
}

.wdhc-cine-hero .ch-countdown__value {
  color: #FFE566;
}

.wdhc-cine-hero .ch-hero__month {
  font-family: var(--wdhc-font-ui, 'Rajdhani', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F0D070;
  margin: 0 0 10px;
}

.wdhc-cine-hero .ch-hero__auto {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(245, 237, 216, 0.9);
  max-width: 46ch;
  margin: 0 auto 12px;
}

/* Beat #1 callout · larger and more notable than surrounding hero copy */
.wdhc-cine-hero .ch-hero__beat {
  max-width: min(28rem, 100%);
  margin: 14px auto 16px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.wdhc-cine-hero .ch-hero__auto a {
  color: #F0D070;
}

/* Gyms contact line */
.wdhc-cine-hero .gyms-contact-line,
.wdhc-cine-hero .wdhc-cine-hero__contact {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: rgba(245, 237, 216, 0.85);
}

.wdhc-cine-hero .gyms-phone-link,
.wdhc-cine-hero .wdhc-cine-hero__contact a {
  color: #F0D070;
  font-weight: 700;
  text-decoration: none;
}

.wdhc-cine-hero .gyms-phone-link:hover,
.wdhc-cine-hero .wdhc-cine-hero__contact a:hover {
  color: #FFE566;
  text-decoration: underline;
}

/* Reduced motion: freeze video feel via CSS (JS also pauses) */
@media (prefers-reduced-motion: reduce) {
  .wdhc-cine-hero__copy {
    animation: none;
  }

  .wdhc-cine-hero__video {
    display: none !important;
  }

  .wdhc-cine-hero__media {
    background:
      radial-gradient(ellipse 80% 70% at 50% 40%, rgba(212, 175, 55, 0.25) 0%, transparent 55%),
      #120c06;
  }
}

/* Alias · same top-aligned layout as default */
.wdhc-cine-hero--compact {
  min-height: 0;
  margin-bottom: 28px;
}

.wdhc-cine-hero--compact .wdhc-cine-hero__title {
  font-size: clamp(2.75rem, 7.5vw, 4.4rem);
}

@media (max-width: 640px) {
  .wdhc-cine-hero,
  .wdhc-cine-hero--compact {
    min-height: 0;
    margin-bottom: 22px;
  }

  .wdhc-cine-hero__inner {
    padding: 12px 14px 22px;
  }

  .wdhc-cine-hero__copy {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .wdhc-cine-hero__title,
  .wdhc-cine-hero--compact .wdhc-cine-hero__title {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  .wdhc-cine-hero__medal {
    width: 48px;
    margin-bottom: 6px;
  }
}
