/* ============================================================
   CVWP – Main Stylesheet
   Colors: #0a0a0a (bg), #fff (text), #D4AF37 (gold), #1a1a1a (surface)
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0a;
  --surface:     #141414;
  --surface-2:   #1e1e1e;
  --border:      rgba(255,255,255,0.07);
  --text:        #f0f0f0;
  --text-muted:  rgba(240,240,240,0.5);
  --gold:        #D4AF37;
  --gold-light:  #e8cc70;
  --gold-dark:   #a8880f;
  --white:       #ffffff;
  --radius:      12px;
  --radius-sm:   6px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body:   'Inter', system-ui, sans-serif;
  --font-display:'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Utilities ─────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--gold {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212,175,55,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.btn--full { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 0.8rem; }

/* ── SPLASH SCREEN ─────────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.splash__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.splash__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.splash__logo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: scale(0.85);
  animation: splashLogoIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.logo-svg {
  width: min(240px, 55vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(212,175,55,0.4));
}

/* Stick draw animation */
.stick {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawLine 0.8s ease forwards;
}
.stick-1 { animation-delay: 0.5s; }
.stick-2 { animation-delay: 0.8s; }

.bead {
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}
.bead-1 { animation-delay: 0.45s; }
.bead-2 { animation-delay: 0.75s; }

.logo-letter {
  fill: white;
  font-family: var(--font-display);
  font-size: 38px;
  opacity: 0;
  animation: letterPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.logo-letter:nth-child(1) { animation-delay: 1.2s; }
.logo-letter:nth-child(2) { animation-delay: 1.35s; }
.logo-letter:nth-child(3) { animation-delay: 1.5s; }
.logo-letter:nth-child(4) { animation-delay: 1.65s; }

.splash__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.9s forwards;
}

.splash__skip {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 1s ease 2.5s forwards;
  user-select: none;
}

/* Splash exit */
.splash.exiting {
  animation: splashOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashLogoIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes letterPop {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); pointer-events: none; }
}

/* ── MAIN SITE ─────────────────────────────────────────────── */
.main-site {
  opacity: 0;
  transition: opacity 0.6s ease;
  min-height: 100vh;
}
.main-site.visible { opacity: 1; }

/* ── NAV ───────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 64px;
  background: rgba(10,10,10,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo .cvwp-logo-small { width: 38px; height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: var(--transition);
  color: var(--text);
}
.nav-link:hover { color: var(--gold); }

.nav-link--gold {
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 600;
}
.nav-link--gold:hover {
  background: var(--gold-light);
  color: #0a0a0a;
}

.nav-link--outline {
  border: 1px solid var(--border);
}
.nav-link--outline:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.nav-user {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 8px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.nav-mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: none;
  flex-direction: column;
  padding: 12px 0 20px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  padding: 14px clamp(16px,4vw,48px);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { background: var(--surface); color: var(--gold); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 60dvh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__logo {
  width: min(180px, 40vw);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(212,175,55,0.25));
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
  margin-top: 4px;
}

.hero__sub {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 300;
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 11px;
  position: relative;
}
.hero__scroll-hint span::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBob 1.6s ease infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  60% { transform: translateX(-50%) translateY(10px); opacity: 0; }
}

/* ── EVENTS SECTION ────────────────────────────────────────── */
.events-section {
  background: var(--surface);
  clip-path: polygon(0 96px, 100% 0, 100% 100%, 0 100%);
  margin-top: -96px;
  padding: calc(64px + 96px) clamp(20px,6vw,80px) 64px;
}

.events-section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.events-section__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}

.events-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.events-section__see-all {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.events-section__see-all:hover { opacity: 1; }

/* ── Homepage Main Content ─────────────────────────────────── */
.home-main-content {
  background: var(--bg);
  padding: 64px clamp(20px,6vw,80px);
}
.home-main-content__inner {
  max-width: 960px;
  margin: 0 auto;
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.75;
}
.home-main-content__inner h1,
.home-main-content__inner h2,
.home-main-content__inner h3,
.home-main-content__inner h4 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 1.4em 0 0.5em;
}
.home-main-content__inner h1 { font-size: 2rem; }
.home-main-content__inner h2 { font-size: 1.5rem; }
.home-main-content__inner h3 { font-size: 1.15rem; }
.home-main-content__inner p  { margin: 0 0 1em; }
.home-main-content__inner a  { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.home-main-content__inner a:hover { opacity: 0.8; }
.home-main-content__inner img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
}
.home-main-content__inner ul,
.home-main-content__inner ol {
  padding-left: 1.5em;
  margin: 0 0 1em;
}
.home-main-content__inner li { margin-bottom: 0.35em; }
.home-main-content__inner blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.2em;
  margin: 1.2em 0;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}
.home-main-content__inner code {
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.88em;
}
.home-main-content__inner pre {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 1em 0;
}
.home-main-content__inner pre code { background: none; padding: 0; }
.home-main-content__inner hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.events-list__item {
  border-bottom: 1px solid var(--border);
  transition: background 0.18s, padding-left 0.18s;
  border-radius: 4px;
}
.events-list__item:hover {
  background: rgba(212,175,55,0.04);
}

.events-list__link {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px 20px;
  align-items: center;
  padding: 18px 12px;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 600px) {
  .events-list__link {
    grid-template-columns: 1fr auto;
  }
  .events-list__date-block { display: none; }
}

.events-list__date-block {
  text-align: center;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  padding: 10px 8px;
  min-width: 82px;
}
.events-list__date-day {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
}
.events-list__date-mon {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.events-list__body {}
.events-list__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.events-list__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.events-list__meta span + span::before {
  content: ' · ';
}

.events-list__badge {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.badge--competition {
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.3);
}
.badge--showcase {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}

.events-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Season Registration CTA ─────────────────────────────── */
.season-reg-section {
  background: var(--bg);
  padding: 56px clamp(20px,6vw,80px);
  border-top: 1px solid var(--border);
  text-align: center;
}

.season-reg__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.season-reg__btn {
  font-size: 1rem;
  padding: 14px 36px;
  letter-spacing: 0.06em;
}

.season-reg__msg {
  font-size: 0.88rem;
  color: #f87171;
  margin: 0;
}

/* ── Season Register Coming Soon Page ────────────────────── */
.season-reg-page {
  min-height: 100vh;
  padding-top: 64px;
  background: var(--bg, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.season-reg-page__wrap {
  max-width: 640px;
  padding: 48px clamp(16px, 5vw, 40px);
  text-align: center;
}

.season-reg-page__title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 20px;
}

.season-reg-page__sub {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── STRIP ─────────────────────────────────────────────────── */
.strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px clamp(20px,6vw,80px);
}

.strip__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.strip__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.strip__icon {
  font-size: 2.4rem;
  line-height: 1;
}

.strip__item h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.strip__item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 240px;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 32px clamp(20px,6vw,80px);
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.footer__logo .cvwp-logo-small { width: 30px; height: 30px; }

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── ERROR PAGES ───────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.error-page__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.error-page__logo .cvwp-logo-small { width: 60px; height: 60px; margin: 0 auto; }

.error-page__code {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.error-page__msg {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
