/* ======================================================
   THE MARVEL UNRIVALED RUN — MUMBAI
   Theme layer on top of Bootstrap 5.3
   ====================================================== */

:root{
  --black:        #050605;
  --black-soft:   #0b0d0b;
  --panel:        #10130f;
  --panel-2:      #161b15;
  --line:         rgba(255,255,255,.10);

  --green:        #2be86a;
  --green-bright: #6dffa0;
  --green-dark:   #0c7a35;
  --green-glow:   rgba(43,232,106,.45);

  --marvel-red:   #ed1d24;

  --white:        #f4f6f3;
  --grey:         #9ea89e;
  --grey-dim:     #6c766c;

  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 6vw;
  --nav-h: 84px;
  --ease: cubic-bezier(.16,.84,.24,1);

  /* Bootstrap variable overrides */
  --bs-body-bg: var(--black);
  --bs-body-color: var(--white);
  --bs-body-font-family: var(--font-body);
  --bs-link-color: var(--green);
  --bs-link-hover-color: var(--green-bright);
  --bs-border-color: var(--line);
  --bs-primary: #2be86a;
  --bs-primary-rgb: 43,232,106;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; background: var(--black); }

body{
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lock-scroll{ overflow: hidden; height: 100vh; }

img{ max-width: 100%; }

a{ text-decoration: none; }

::selection{ background: var(--green); color: var(--black); }

::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: var(--black); }
::-webkit-scrollbar-thumb{ background: var(--green-dark); border-radius: 10px; }

.container{ max-width: 1240px; }

/* ---------- Typography helpers ---------- */

.eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--green);
  margin: 0 0 14px;
}

.section-title{
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: .96;
  letter-spacing: .01em;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0 0 22px;
  color: var(--white);
}

/* Every heading's line(s) get wrapped at runtime (main.js splits on
   <br>) in .line-mask > .line-inner so each line can wipe up into
   view on its own beat, instead of the title just fading in flat. */
.section-title .line-mask{
  display: block;
  overflow: hidden;
}
.section-title .line-inner{
  display: block;
  will-change: transform;
}

.lead{
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--white);
  font-weight: 500;
}

.section-head{
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

/* ---------- Buttons (Bootstrap .btn base + our skin) ---------- */

.btn{
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-width: 2px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s, border-color .35s;
}
.btn:hover{ transform: translateY(-2px); }
.btn-lg{ padding: 18px 40px; font-size: .88rem; }
.btn-sm{ padding: 11px 20px; font-size: .74rem; }

.btn-marvel-primary{
  background: var(--green);
  border-color: var(--green);
  color: #05170a;
}
.btn-marvel-primary:hover{
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: #05170a;
  box-shadow: 0 8px 30px var(--green-glow);
}

.btn-marvel-outline{
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn-marvel-outline:hover{
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

/* ======================================================
   INTRO / LANDING VIDEO
   ====================================================== */

#intro-screen{
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#intro-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-vignette{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.85) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}

#intro-skip{
  position: absolute;
  bottom: 34px;
  right: 34px;
  z-index: 2;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color .3s, color .3s;
}
#intro-skip:hover{ border-color: var(--green); color: var(--green); }
#intro-skip span{ display: inline-block; transition: transform .3s; }
#intro-skip:hover span{ transform: translateX(4px); }

/* ======================================================
   GRAIN OVERLAY
   ====================================================== */
.grain-overlay{
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ======================================================
   AMBIENT CURSOR GLOW
   A soft brand-green glow that follows the pointer across the
   whole page — purely atmospheric (screen-blended, low opacity,
   pointer-events:none) so it never interferes with clicking or
   reading. Positioned/faded in from main.js; hidden outright on
   touch devices and for reduced-motion users.
   ====================================================== */
#cursor-glow{
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  margin-left: -240px;
  margin-top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 72%);
  pointer-events: none;
  z-index: 400;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .5s;
  will-change: transform;
}
#cursor-glow.is-visible{ opacity: .55; }
@media (hover: none), (pointer: coarse){
  #cursor-glow{ display: none; }
}

/* ======================================================
   NAVBAR (Bootstrap navbar + our skin)
   ====================================================== */

#site-header{
  z-index: 1030;
  padding: 16px 0;
  background: transparent;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
  min-height: var(--nav-h);
}
#site-header.scrolled{
  background: rgba(5,6,5,.86);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  border-bottom-color: var(--line);
}

.nav-inner{ padding-left: var(--gutter); padding-right: var(--gutter); }

.brand{ flex-shrink: 0; padding: 0; }
.brand img{
  height: 50px;
  width: auto;
  display: block;
}

.navbar-toggler{
  border-color: rgba(255,255,255,.35);
  padding: 8px 10px;
}
.navbar-toggler:focus{ box-shadow: 0 0 0 .2rem var(--green-glow); }
.navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(244,246,243,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

#navMain{
  background: transparent;
}

.main-nav .nav-link{
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey);
  position: relative;
  padding: 6px 0;
  transition: color .3s;
}
.main-nav .nav-link::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .3s var(--ease);
}
.main-nav .nav-link:hover{ color: var(--white); }
.main-nav .nav-link:hover::after{ width: 100%; }

.nav-cta{ padding: 12px 24px; font-size: .74rem; }

@media (max-width: 991.98px){
  #navMain{
    background: rgba(5,6,5,.97);
    border-radius: 16px;
    padding: 22px;
    margin-top: 14px;
    border: 1px solid var(--line);
  }
  .nav-cta{ display: inline-flex; width: 100%; justify-content: center; }
}

/* ======================================================
   HERO
   ====================================================== */

#hero{
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* The source artwork is exactly 1600x900 (16:9). Locking this box to the
   SAME ratio means object-fit can never need to crop anything away —
   Doom's full figure, head included, is always 100% visible, at any
   viewport width. Section height is now driven by the image, not a
   fixed viewport height (per brand-guideline requirement: no cropped
   character artwork). */
.hero-bg{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  z-index: 0;
  background: var(--black);
}
.hero-bg img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.05);
}

/* Darkens only the band the headline copy actually sits in (roughly the
   vertical middle, where hero-content is flex-centered) — the top stays
   light so the character's face/head is never dimmed, and the bottom
   stays light too so his legs/boots are never "blacked out". Only the
   left side (behind the text) gets extra darkening; the right side,
   where Doom himself stands, is left clear. */
.hero-scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(3,5,3,.4) 0%,
      rgba(3,5,3,.16) 16%,
      rgba(3,5,3,.44) 40%,
      rgba(3,5,3,.44) 66%,
      rgba(3,5,3,.14) 88%,
      rgba(3,5,3,.06) 100%),
    linear-gradient(90deg, rgba(3,5,3,.56) 0%, rgba(3,5,3,.06) 45%, rgba(3,5,3,.06) 60%, rgba(3,5,3,.4) 100%);
}

/* Hides only the source artwork's own small logo lockup in its top-left
   corner — scoped tightly so it never dims Doom's face on the right. */
.hero-logo-mask{
  position: absolute;
  top: 0; left: 0;
  width: min(40%, 420px);
  height: 16%;
  z-index: 1;
  background: radial-gradient(ellipse at top left, rgba(3,5,3,.95) 0%, rgba(3,5,3,.85) 45%, rgba(3,5,3,0) 78%);
  pointer-events: none;
}

.hero-content{
  position: relative;
  z-index: 2;
  padding: 40px var(--gutter) 56px;
}

/* Desktop/tablet: the aspect-ratio box stays comfortably tall (e.g. 1080px
   at a 1920px-wide screen), so the copy overlays on top of it, centered,
   exactly like before — only now with zero cropping on the photo beneath. */
@media (min-width: 768px){
  #hero{ padding-top: 0; }
  .hero-content{
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 30px) var(--gutter) 70px;
  }
}

.hero-title{
  margin: 0 0 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: .92;
  font-weight: 400;
}
.hero-title span{
  display: block;
  font-size: clamp(2.3rem, 7.4vw, 6.2rem);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.75), 0 4px 40px rgba(0,0,0,.5);
}
.hero-title-accent{
  color: var(--green);
  text-shadow: 0 0 40px var(--green-glow);
}
.hero-title, .hero-tagline{ will-change: transform; }

.hero-tagline{
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: .01em;
  line-height: 1;
  gap: 0 .4em;
  margin: 0 0 34px;
}
.tagline-word{
  display: inline-block;
  text-shadow: 0 0 30px var(--green-glow), 0 2px 10px rgba(0,0,0,.6);
  will-change: transform;
}

/* The last word — "Doom." — gets its own accent colour and a slow
   pulsing glow, like it's charged with a little extra energy. */
.tagline-word-doom{
  color: var(--green-bright);
  animation: doom-pulse 2.8s ease-in-out infinite;
}
@keyframes doom-pulse{
  0%, 100%{ text-shadow: 0 0 22px var(--green-glow), 0 2px 10px rgba(0,0,0,.6); }
  50%{ text-shadow: 0 0 46px var(--green-bright), 0 0 76px var(--green-glow), 0 2px 10px rgba(0,0,0,.6); }
}
@media (prefers-reduced-motion: reduce){
  .tagline-word-doom{ animation: none; }
}

.hero-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 34px;
  padding: 18px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10,14,10,.45);
  backdrop-filter: blur(10px);
  width: fit-content;
}
.meta-chip{ display: flex; flex-direction: column; gap: 4px; }
.meta-label{
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-dim);
  font-weight: 700;
}
.meta-value{ font-size: 1.05rem; font-weight: 800; color: var(--white); }
.meta-value-cities{ font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--green); }
.meta-divider{ width: 1px; height: 30px; background: var(--line); }

.hero-actions{ display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-cue{
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--grey);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line{ width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden; }
.scroll-line i{
  position: absolute; top: -60px; left: 0; width: 100%; height: 60px;
  background: var(--green);
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop{
  0%{ top: -60px; } 60%{ top: 60px; } 100%{ top: 60px; }
}

.reveal-up{ opacity: 0; transform: translateY(36px); }

/* Initial hidden states for the JS-driven reveals below — CSS sets
   the "before" pose so there's no flash of the final state before
   GSAP takes over. */
.tagline-word{ opacity: 0; transform: translateY(28px) scale(.92); }
.section-title .line-inner{ transform: translateY(110%); }

/* ======================================================
   SECTION SPACING
   ====================================================== */

.section{ position: relative; padding: 120px var(--gutter); }
.section .container{ padding-left: 0; padding-right: 0; }
.section.dark{ background: var(--black-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }

/* ======================================================
   ABOUT
   ====================================================== */

.about-copy p{ color: var(--grey); }
.about-copy .lead{ color: var(--white); }
.about-copy .btn{ margin-top: 12px; }

.about-image-wrap{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 60px -20px var(--green-glow);
  transform: rotate(1.5deg);
  will-change: transform;
}
.about-image-wrap img{ width: 100%; height: 100%; object-fit: cover; }

/* ======================================================
   INFO STRIP
   ====================================================== */

.info-strip{ background: var(--black-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-item{
  padding: 46px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-item:nth-child(2n){ border-right: none; }
@media (min-width: 992px){
  .info-item{ border-bottom: none; }
  .info-item:nth-child(2n){ border-right: 1px solid var(--line); }
  .info-item:last-child{ border-right: none; }
}
.info-num{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--green);
  line-height: 1;
}
.info-unit{ font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--white); }
.info-cap{ font-size: .78rem; color: var(--grey-dim); }

/* ======================================================
   RACE CATEGORIES — poster cards (clean image + copy below)
   ====================================================== */

.poster-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
@media (max-width: 991.98px){
  .poster-grid{ grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

.poster-card{
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  text-decoration: none;
  color: inherit;
  /* No `transform` here on purpose — the JS cursor-tilt effect (below)
     tweens transform directly on mouse users; a CSS transition on the
     same property would fight it. Focus-visible gets its own. */
  transition: border-color .45s, box-shadow .45s var(--ease);
  will-change: transform;
}
.poster-card:hover,
.poster-card:focus-visible{ color: inherit; }
/* Mouse users get transform (lift + tilt) from the JS cursor-tilt
   effect below, so only border/shadow live here — leaving `transform`
   to CSS too would fight the JS-driven inline transform on hover. */
.poster-card:hover{
  border-color: var(--green);
  box-shadow: 0 30px 60px -26px var(--green-glow), 0 10px 24px -12px rgba(0,0,0,.6);
}
/* Keyboard focus has no mousemove to drive it, so it keeps its own
   CSS lift. */
.poster-card:focus-visible{
  transform: translateY(-10px) scale(1.015);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s var(--ease);
  border-color: var(--green);
  box-shadow: 0 30px 60px -26px var(--green-glow), 0 10px 24px -12px rgba(0,0,0,.6);
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* Image box: nothing overlaid on it — the crop matches the source
   artwork's own 16:9 ratio exactly, so the full photo shows, uncropped. */
.poster-image-box{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--black-soft);
}
.poster-img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .8s var(--ease);
}
.poster-card:hover .poster-img,
.poster-card:focus-visible .poster-img{ transform: scale(1.14) rotate(.4deg); filter: saturate(1.15) brightness(1.04); }

.poster-badge{ transition: transform .4s var(--ease), box-shadow .4s; }
.poster-card:hover .poster-badge,
.poster-card:focus-visible .poster-badge{ transform: scale(1.1); box-shadow: 0 8px 20px -6px var(--green-glow); }

/* Content box: everything else lives here, below the image. */
.poster-content-box{
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.poster-badge{
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--black);
  background: var(--green);
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
  margin-bottom: 14px;
}

.poster-tag{
  display: block;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .78rem;
  margin: 0 0 6px;
}
.poster-title{
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.3vw, 1.7rem);
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 18px;
}

.poster-icons{
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.poster-icon{ text-align: center; }
.poster-icon-circle{
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.poster-icon small{
  display: block;
  font-size: .58rem;
  color: var(--grey-dim);
  margin-top: 5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.poster-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.poster-price{ font-family: var(--font-display); font-size: 1.4rem; color: var(--white); }
.poster-cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #05170a;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .3s;
}
.poster-card:hover .poster-cta{ background: var(--green-bright); }

/* Family pricing tiers — used inside the Fantastic Family Run poster
   card to list both the 3KM and 5KM Early Bird rates in one box,
   rather than a separate card. */
/* Side by side (not stacked) so this card's content stays roughly
   the same height as the plain 5KM/10KM cards next to it in the
   grid — a stacked layout made this box noticeably taller, leaving
   an empty gap under the other two cards' shorter content. */
.poster-tiers{
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 18px;
}
.poster-tier{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.poster-tier-dist{
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: .02em;
}
.poster-tier-price{ display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.poster-tier-earlybird{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--green);
  padding: 2px 9px;
  border-radius: 999px;
}
.poster-tier-amt-row{ display: flex; align-items: baseline; gap: 8px; }
.poster-tier-amt{ font-family: var(--font-display); font-size: 1.2rem; color: var(--white); }
.poster-tier-was{
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--grey-dim);
  text-decoration: line-through;
  text-decoration-color: var(--grey-dim);
}
/* Footer with only the Register CTA (no price) — align it to the
   right instead of the default space-between two-item layout. */
.poster-footer-end{ justify-content: flex-end; }

/* ======================================================
   RACE VILLAGE
   ====================================================== */

/* Given its own card chrome (border/panel/glow-on-hover) so it reads
   as an interactive block, matching the poster cards — the mouse
   tilt is wired up in main.js; `transform` stays out of the CSS
   transition list on purpose so it doesn't fight that JS tween. */
.village-card{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 32px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: border-color .45s, box-shadow .45s var(--ease);
  will-change: transform;
}
.village-card:hover,
.village-card:focus-within{
  border-color: var(--green);
  box-shadow: 0 30px 60px -26px var(--green-glow), 0 10px 24px -12px rgba(0,0,0,.6);
}
.village-meta{ margin-bottom: 28px; }
@media (max-width: 767.98px){
  .village-card{ align-items: stretch; padding: 28px 24px; }
  .village-meta{ width: auto; }
  .village-cta{ text-align: center; }
}

/* ======================================================
   RACE KIT
   ====================================================== */

.kit-hint{ color: var(--grey-dim); font-size: .82rem; margin: -8px 0 0; }

.kit-item{ position: relative; text-align: center; }
.kit-item img{ margin: 0 auto; }
.kit-label{ margin-top: 22px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }

/* ---- 3D flip cards (jersey + medal) ---- */

.flip-card{
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  perspective: 1400px;
  cursor: pointer;
  will-change: transform;
}
.flip-card-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.flip-face{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-face img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.6));
}
.flip-back{ transform: rotateY(180deg); }

/* The lanyard artwork is a very tall, narrow strip (roughly 1:2.4) — sized
   down to a small accent above the medal, rather than at its own natural
   size, so lanyard + medal together land close to the jersey cards'
   height instead of towering over them. */
.kit-medal-group{ padding-top: 6px; }
.kit-lanyard{
  width: 18%;
  max-width: 65px;
  margin: 0 auto -8%;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.5));
  position: relative;
  z-index: 1;
}
.kit-medal-card{ max-width: 170px; aspect-ratio: 1 / 1; }

.kit-bib img{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.7);
  will-change: transform;
}

/* ---- drawstring bag ---- */
.kit-tilt{ will-change: transform; }
#kit-bag img{
  width: 66%;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.6));
}

/* ======================================================
   PRICING
   ====================================================== */

.pricing-note{ color: var(--grey); font-size: .92rem; margin-top: 10px; }

.pricing-groups{ display: flex; flex-direction: column; gap: 64px; }

/* Two day-based groups — Race Day (all running categories) and
   Race Village (the separate walk-in day) — each carries its own
   date so it's unambiguous which categories happen when. */
.pricing-day + .pricing-day{ padding-top: 56px; border-top: 1px solid var(--line); }

.pricing-day-head{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.pricing-group-title{
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0;
  text-align: center;
}
.pricing-day-date{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--green);
  padding: 4px 14px;
  border-radius: 999px;
}

.pricing-subgroup + .pricing-subgroup{ margin-top: 36px; }
.pricing-subgroup-title{
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin: 0 0 18px;
}
.pricing-subgroup-title span{ text-transform: none; letter-spacing: 0; color: var(--grey-dim); }

/* Every card gets the same elevated "featured" treatment — with all
   cities/dates still TBC, no single distance is singled out as more
   popular than another. */
.price-card{
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 38px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 100%;
  box-shadow: 0 30px 60px -30px var(--green-glow);
  transition: transform .4s var(--ease), border-color .4s;
}
.price-card:hover{ transform: translateY(-8px); border-color: var(--green); }
.price-cat{ font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.price-amt{ font-family: var(--font-display); font-size: 2.4rem; color: var(--white); }

/* Early Bird tag + struck-through regular price, used on the Family
   cards where an Early Bird rate is currently active. */
.price-earlybird{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--green);
  padding: 3px 10px;
  border-radius: 999px;
  margin: -8px 0;
}
.price-amt-row{ display: flex; align-items: baseline; gap: 10px; }
.price-was{
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-dim);
  text-decoration: line-through;
  text-decoration-color: var(--grey-dim);
}

.pricing-register{ margin-top: 48px; text-align: center; }

/* ======================================================
   FINAL CTA
   ====================================================== */

#final-cta{ text-align: center; padding: 140px var(--gutter); }
.cta-title{
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  margin: 18px 0 40px;
}

/* ======================================================
   FOOTER
   ====================================================== */

#site-footer{ background: var(--black); border-top: 1px solid var(--line); padding: 60px var(--gutter) 40px; }
.footer-inner{ display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo{ height: 60px; width: auto; }
.footer-event{ font-size: .78rem; letter-spacing: .1em; color: var(--grey); font-weight: 700; }
.footer-nav{ display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-nav a{ font-size: .78rem; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.footer-nav a:hover{ color: var(--green); }
.footer-legal{ font-size: .72rem; color: var(--grey-dim); margin-top: 10px; }
.footer-partner{ font-size: .66rem; color: var(--grey-dim); opacity: .8; margin: 2px 0 0; }

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 767.98px){
  .section{ padding: 90px var(--gutter); }
  .hero-meta{ flex-direction: column; align-items: flex-start; gap: 14px; }
  .meta-divider{ display: none; }
  .scroll-cue{ display: none; }
  .kit-bib{ max-width: 340px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal-up{ opacity: 1; transform: none; }
  .tagline-word{ opacity: 1; transform: none; }
  .section-title .line-inner{ transform: none; }
  #cursor-glow{ display: none; }
}
