/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #000000;
  --black-soft:  #0a0a0a;
  --black-card:  #111111;
  --red:         #c0392b;
  --red-dim:     #8b1a1a;
  --red-glow:    rgba(192, 57, 43, 0.15);
  --gray-100:    #e5e5e5;
  --gray-300:    #a3a3a3;
  --gray-500:    #737373;
  --gray-700:    #404040;
  --gray-900:    #171717;
  --white:       #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--black);
  color: var(--gray-300);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--gray-100); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--white); }

img { max-width: 100%; display: block; }

/* ===== FLOATING EMBER PARTICLES ===== */
.ember-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

/* ===== TOP BANNER / NAV ===== */
.top-banner {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-900);
  padding: 0.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-banner .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
}

.site-title .accent {
  color: var(--red);
}

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-700);
  color: var(--gray-300);
  font-size: 1.5rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.nav-toggle:hover { background: rgba(255,255,255,0.05); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

nav.main-nav a {
  display: block;
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

nav.main-nav a:hover {
  color: var(--white);
}

nav.main-nav a.active {
  color: var(--white);
  background: rgba(192, 57, 43, 0.15);
  border-color: rgba(192, 57, 43, 0.3);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 400px;
  max-height: 750px;
  overflow: hidden;
  z-index: 1;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider .slide.active { opacity: 1; }

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

.slide-placeholder h2 {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--white);
  font-weight: 700;
}

.slide-placeholder p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-top: 1rem;
  color: var(--gray-500);
  letter-spacing: 2px;
  font-weight: 300;
  max-width: 600px;
}

.slide-bg-1,
.slide-bg-2,
.slide-bg-3 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-bg-1 {
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.7)), url('../img/barbarian_phoenix.png');
}
.slide-bg-2 {
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.7)), url('../img/breaking_barriers.png');
}
.slide-bg-3 {
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.7)), url('../img/maori.png');
}

/* slider controls */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 5;
}

.slider-dots button {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: var(--gray-700);
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dots button:hover {
  background: var(--gray-500);
}

.slider-dots button.active {
  background: var(--red);
  width: 48px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PAGE CONTENT ===== */
.page-content {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
}

.page-content h1 {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  position: relative;
}

.page-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.page-content h2 {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: 1.4rem;
  color: var(--gray-100);
  margin: 2.5rem 0 0.8rem;
  padding-bottom: 0.6rem;
  letter-spacing: 1px;
  position: relative;
}

.page-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.page-content p { margin-bottom: 1rem; color: var(--gray-500); }

/* ===== GLASSMORPHISM INFO CARDS ===== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: left;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--red-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.info-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.info-card:hover::before {
  opacity: 1;
}

.info-card .icon {
  font-family: 'Oswald', 'Impact', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}

.info-card h3 {
  font-family: 'Oswald', 'Impact', sans-serif;
  color: var(--white);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.info-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

.info-card.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.info-card.has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  z-index: 0;
}

.info-card.has-bg > * {
  position: relative;
  z-index: 1;
}

/* ===== DIRECTIONS PAGE ===== */
.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.directions-list {
  list-style: none;
  counter-reset: step;
}

.directions-list li {
  counter-increment: step;
  padding: 1.2rem 1.2rem 1.2rem 3.8rem;
  position: relative;
  margin-bottom: 0.8rem;
  background: var(--black-card);
  border-left: 2px solid var(--gray-700);
  border-radius: 0 8px 8px 0;
  transition: border-color 0.3s, background 0.3s;
}

.directions-list li:hover {
  border-left-color: var(--red);
}

.directions-list li::before {
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 1.2rem;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--red-dim);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== PAYMENT PAGE: TWO-COLUMN LAYOUT ===== */
.registration-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.registration-info .detail-list {
  color: var(--gray-500);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 2;
}

.registration-form iframe {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: var(--black-card);
}

@media (max-width: 768px) {
  .registration-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== PAYMENT PAGE ===== */
.payment-widget-placeholder {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  min-height: 350px;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
}

/* ===== CONTACT PAGE ===== */
.contact-form {
  max-width: 600px;
}

.contact-form label {
  display: block;
  color: var(--gray-300);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Oswald', 'Impact', sans-serif;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.4rem;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--gray-100);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
  background: var(--gray-900);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.btn-fire {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Oswald', 'Impact', sans-serif;
}

.btn-fire:hover {
  background: var(--red-dim);
  color: var(--white);
}

.btn-fire:active { transform: scale(0.98); }

/* ===== FOOTER ===== */
footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--gray-700);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}

footer .flame-divider {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav.main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  nav.main-nav.open { max-height: 300px; }

  nav.main-nav ul {
    flex-direction: column;
    padding-top: 0.5rem;
  }

  nav.main-nav a { text-align: center; }

  .hero-slider { height: 55vh; min-height: 300px; }
}

@media (max-width: 480px) {
  .top-banner { padding: 0.6rem 0.8rem; }
  .site-title { font-size: 1.3rem; }
  .page-content { padding: 2rem 1rem; }
}

/* ===== AMBIENT GRADIENTS ON SLIDER ===== */
.hero-slider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--black), transparent);
  z-index: 3;
  pointer-events: none;
}

.hero-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
  z-index: 3;
  pointer-events: none;
}

/* ===== SUBTLE NOISE TEXTURE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 48px;
  height: 2px;
  background: var(--red-dim);
  margin: 3rem auto;
  border: none;
}
