/* ===== THE HOLY WILDS — SHARED STYLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale: #F5E9C8;
  --dark: #1A1A12;
  --dark-mid: #202018;
  --dark-surface: #222218;
  --text: #EDE8D8;
  --text-muted: #B8A98A;
  --teal: #4A7B6A;
  --teal-light: #6BA89A;
  --border: rgba(201,168,76,0.22);
  --border-light: rgba(201,168,76,0.12);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

/* ——— NAV ——— */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2.5rem;
  background: linear-gradient(to bottom, rgba(26,26,18,0.97), transparent);
  transition: background 0.3s;
  gap: 1rem;
}
#nav.scrolled { background: rgba(26,26,18,0.98); }

#nav .logo {
  flex-shrink: 0;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
#nav .logo span {
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
}

#nav > ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

#nav > ul > li > a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
#nav > ul > li > a:hover { color: var(--gold); }

/* Dropdown — fix gap so mouse can reach it */
#nav .has-sub { position: relative; }
#nav .has-sub > a::after {
  content: ' ▾';
  font-size: 0.6rem;
  opacity: 0.6;
}
#nav .subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.75rem; /* invisible bridge so mouse can reach dropdown */
  list-style: none;
  min-width: 220px;
  z-index: 200;
}
#nav .subnav-inner {
  background: rgba(18,18,12,0.99);
  border: 1px solid var(--border);
  padding: 0.5rem 0;
}
#nav .has-sub:hover .subnav { display: block; }
#nav .subnav li a {
  display: block;
  padding: 0.6rem 1.5rem;
  white-space: nowrap;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
#nav .subnav li a:hover { color: var(--gold); background: rgba(201,168,76,0.08); }

/* Register button in nav */
#nav .nav-register {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1A1A12;
  background: var(--gold);
  padding: 0.55rem 1.3rem;
  text-decoration: none;
  transition: background 0.3s;
  white-space: nowrap;
}
#nav .nav-register:hover { background: var(--gold-light); }

/* ——— BUTTONS ——— */
.btn-primary {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1A1A12;
  background: var(--gold);
  padding: 1rem 2.5rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 1rem 2.5rem;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

/* ——— SECTION BASICS ——— */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-inner-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}
p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1.05rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.3rem; font-style: italic; color: var(--text); line-height: 1.75; }

/* ——— DIVIDERS ——— */
.gold-line {
  width: 80px; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 2rem 0;
}
.gold-line-center {
  width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 2rem auto;
}

/* ——— REVEAL ANIMATIONS ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-slow {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.reveal-slow.visible { opacity: 1; transform: translateY(0); }

/* ——— FOOTER ——— */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
footer .f-logo {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-decoration: none;
}
footer p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(184,169,138,0.4);
  margin: 0;
}
footer nav ul { list-style: none; display: flex; gap: 1.5rem; }
footer nav a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184,169,138,0.5);
  text-decoration: none;
  transition: color 0.3s;
}
footer nav a:hover { color: var(--gold); }

@media (max-width: 960px) {
  #nav { padding: 1rem 1.5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  footer nav { display: none; }
}

/* ——— HAMBURGER MENU ——— */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,18,12,0.98);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
}
.nav-drawer ul li {
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.nav-drawer ul li:first-child { border-top: 1px solid var(--border); }
.nav-drawer ul li a,
.nav-drawer ul li button {
  display: block;
  width: 100%;
  padding: 1.1rem 0;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}
.nav-drawer ul li a:hover,
.nav-drawer ul li button:hover { color: var(--gold); }
.nav-drawer ul li a.drawer-register {
  color: var(--gold);
  font-weight: 600;
}
.nav-drawer-sub {
  display: none;
  flex-direction: column;
  background: rgba(201,168,76,0.04);
  border-top: 1px solid var(--border-light);
}
.nav-drawer-sub.open { display: flex; }
.nav-drawer-sub a {
  padding: 0.75rem 1.5rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em !important;
  color: rgba(184,169,138,0.7) !important;
  border-bottom: none !important;
}
.nav-drawer-sub a:hover { color: var(--gold) !important; }
.drawer-toggle-btn::after { content: ' ▾'; font-size: 0.6rem; opacity: 0.6; }
.drawer-toggle-btn.open::after { content: ' ▴'; }

@media (max-width: 960px) {
  #nav > ul { display: none; }
  .nav-hamburger { display: flex; }
}

.drawer-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
  z-index: 10;
  line-height: 1;
}
.drawer-close:hover { color: var(--gold); border-color: var(--gold); }

/* ——— NESTED DROPDOWN for Seasonal Quest ——— */
#nav .subnav li.has-nested { position: relative; }
#nav .nested-sub {
  display: none;
  position: absolute;
  top: -1px;
  left: 100%;
  background: rgba(18,18,12,0.99);
  border: 1px solid var(--border);
  min-width: 240px;
  padding: 0.5rem 0;
  z-index: 300;
}
#nav .subnav li.has-nested:hover .nested-sub,
#nav .subnav li.has-nested:focus-within .nested-sub { display: block; }
#nav .nested-sub li a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  font-style: italic;
}
#nav .nested-sub li a:hover { color: var(--gold-light); background: rgba(201,168,76,0.08); }
