/* ==================================================
   Denver Jacks — Theme Layer
   Clean, intentional overrides only
   Depends on: main.css
   ================================================== */

/* =========================
   BRAND TOKENS
========================= */

:root {
  --bg: #080808;
  --panel: #111111;
  --text: #f1f1f1;
  --muted: #9a9a9a;
  --line: rgba(255,255,255,.14);
  --accent: #b23a2f;
}

/* =========================
   GLOBAL
========================= */

body { background: var(--bg); }
a { color: var(--accent); }

/* =========================
   HEADER / NAV
========================= */

.site-header {
  background: rgba(8,8,8,.85);
  border-bottom: 1px solid var(--line);
}

.nav a[aria-current="page"] {
  background: rgba(178,58,47,.18);
  border: 1px solid rgba(178,58,47,.45);
}

/* =========================
   HERO (VIDEO VERSION)
========================= */

.hero.hero-media {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

/* Video layer */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: contrast(1.15) saturate(.85);
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

/* Content layer */
.hero-media .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 18px;
  transform: translateY(10vh);
}

.hero-media h1 {
  text-shadow: 0 2px 18px rgba(0,0,0,.9);
  letter-spacing: .04em;
}

.hero-media .cta {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   CARDS / SECTIONS
========================= */

.card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.05),
    rgba(255,255,255,.02)
  );
  border: 1px solid var(--line);
}

section.card {
  margin-top: 28px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  background: var(--accent);
  color: #000;
  border-radius: 8px;
}

.btn:hover { filter: brightness(1.08); }

.btn.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn.secondary:hover {
  background: var(--accent);
  color: #000;
}

/* =========================
   TYPOGRAPHY
========================= */

.kicker {
  color: var(--accent);
  letter-spacing: .18em;
}

/* =========================
   PARALLAX (SINGLE SYSTEM)
========================= */

.parallax-section {
  position: relative;
  min-height: 65vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.parallax-content {
  width: 100%;
  padding: 64px 18px;
  background: rgba(0,0,0,.35);
  color: #fff;
}

/* Desktop: true parallax */
@media (hover: hover) and (pointer: fine) {
  .parallax-section {
    background-attachment: fixed;
  }
}

/* Mobile: static */
@media (hover: none) and (pointer: coarse) {
  .parallax-section {
    background-attachment: scroll;
    min-height: 70vh;
    display: block;
  }

  .parallax-content {
    padding: 72px 18px;
  }
}

/* =========================
   SIGNUP FORM
========================= */

.signup-wrap {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.signup-form label {
  margin-top: 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.signup-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}

/* CAPTCHA visibility */
.captcha-wrap img {
  display: block;
  max-width: 220px;
  height: auto;
  background: #fff;
  padding: 6px;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* =========================
   CALENDAR THUMBNAILS — iOS SAFE
========================= */

.cm-grid .card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cm-grid .thumb {
  width: 340px;
  height: 340px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.cm-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .cm-grid .card {
    display: block;
  }

  .cm-grid .thumb {
    width: 120px;
    height: 120px;
    margin-bottom: 8px;
  }
}

/* =========================
   VIDEO FRAME
========================= */

.video-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: #000;
}

/* =========================
   COUNTDOWN
========================= */

.countdown {
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.countdown strong {
  color: var(--accent);
}

/* =========================
   AGE GATE – HARD MODAL
========================= */

#age-gate {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100vh;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
}

html.age-gate-lock,
html.age-gate-lock body {
  height: 100%;
  overflow: hidden !important;
}

#age-gate .age-gate-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/no.GIF");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
}

#age-gate .age-gate-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: calc(100% - 40px);
  padding: 40px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

#age-gate h1 {
  font-size: 28px;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

#age-gate p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
}

#age-gate .age-gate-actions {
  margin-top: 24px;
}

#age-gate .age-gate-actions button {
  padding: 12px 20px;
  margin: 0 8px;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
}

#age-confirm {
  background: #fff;
  color: #000;
}

#age-deny {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

#age-gate.age-gate-hide {
  animation: ageGateFade 0.6s ease forwards;
}

@keyframes ageGateFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
