/* ============================================================
   World of Warcraft Classic — The Founding Legends
   Theme: deep purples, dark blues, gold/bronze accents
   ============================================================ */

:root {
  --bg-void: #0a0714;
  --bg-deep: #0c1024;
  --bg-purple: #140a28;
  --bg-purple-2: #1e1140;
  --panel: rgba(24, 15, 46, 0.72);
  --panel-solid: #170d2e;
  --gold: #c8a24a;
  --gold-bright: #e8c874;
  --gold-soft: rgba(200, 162, 74, 0.35);
  --ink: #ece7f6;
  --ink-dim: #b3a9c9;
  --ink-faint: #7d7396;
  --horde: #b23a2e;
  --alliance: #3f74c4;
  --line: rgba(200, 162, 74, 0.18);
  --font-head: "Cinzel", "Marcellus", Georgia, serif;
  --font-alt: "Marcellus", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(60, 30, 110, 0.5), transparent 60%),
    radial-gradient(1000px 600px at 0% 10%, rgba(20, 40, 100, 0.35), transparent 60%),
    var(--bg-void);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; }

.gold { color: var(--gold-bright); }

/* ---------- section shared heads ---------- */
.section-kicker {
  font-family: var(--font-alt);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0 0 12px;
}
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-lead { color: var(--ink-dim); margin-top: 16px; font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: var(--font-alt);
  letter-spacing: 0.06em;
  font-size: 0.98rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #241704;
  box-shadow: 0 8px 24px rgba(200, 162, 74, 0.25);
  font-weight: 500;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200, 162, 74, 0.4); }
.btn-ghost {
  border-color: var(--gold-soft);
  color: var(--gold-bright);
  background: rgba(200, 162, 74, 0.05);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(200, 162, 74, 0.14); transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(10, 7, 20, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.site-header.scrolled { background: rgba(10, 7, 20, 0.9); }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { flex: none; filter: drop-shadow(0 0 6px rgba(200,162,74,.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line-1 { font-family: var(--font-alt); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--ink-dim); text-transform: uppercase; }
.brand-line-2 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--gold-bright); letter-spacing: 0.05em; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-family: var(--font-alt);
  font-size: 0.95rem;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
  transition: color .2s ease;
  position: relative;
}
.main-nav a:not(.nav-cta):hover { color: var(--gold-bright); }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--gold-soft);
  padding: 8px 18px;
  border-radius: 4px;
  color: var(--gold-bright);
}
.nav-cta:hover { background: rgba(200,162,74,.14); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold-bright); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,7,20,0.55) 0%, rgba(10,7,20,0.35) 40%, rgba(10,7,20,0.85) 88%, var(--bg-void) 100%),
    radial-gradient(900px 500px at 50% 40%, transparent, rgba(10,7,20,0.6));
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.eyebrow {
  font-family: var(--font-alt);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero-content h1 {
  font-size: clamp(2.3rem, 6.5vw, 4.6rem);
  letter-spacing: 0.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.7);
}
.hero-sub {
  margin: 24px auto 34px;
  max-width: 620px;
  font-size: 1.12rem;
  color: var(--ink-dim);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--gold-soft); border-radius: 14px;
  display: flex; justify-content: center;
}
.scroll-cue span {
  width: 4px; height: 8px; background: var(--gold-bright); border-radius: 2px; margin-top: 7px;
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: .2; transform: translateY(0);} 50% { opacity: 1; transform: translateY(8px);} }

/* ============================================================
   STORY
   ============================================================ */
.story { position: relative; padding: 110px 0; overflow: hidden; }
.story-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 15% 30%, rgba(80,40,130,0.28), transparent 70%),
    radial-gradient(600px 400px at 90% 80%, rgba(30,60,120,0.22), transparent 70%);
}
.story-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.story-text h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 22px; }
.story-text p { color: var(--ink-dim); margin: 0 0 18px; }
.story-stats { list-style: none; display: flex; gap: 34px; padding: 0; margin: 30px 0 0; }
.story-stats li { display: flex; flex-direction: column; }
.story-stats strong { font-family: var(--font-head); font-size: 2.1rem; color: var(--gold-bright); }
.story-stats span { font-size: 0.82rem; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }

.story-figure { position: relative; }
.story-figure img {
  width: 100%; border-radius: 6px; aspect-ratio: 4/3; object-fit: cover;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.figure-frame {
  position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold-soft);
  border-radius: 6px; z-index: -1;
}

/* ============================================================
   CHARACTERS
   ============================================================ */
.characters { padding: 110px 0; }
.char-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.char-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  outline: none;
}
.char-card:hover, .char-card:focus-visible {
  transform: translateY(-8px);
  border-color: var(--gold-soft);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px var(--gold-soft) inset;
}
.char-photo { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.char-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.char-card:hover .char-photo img, .char-card:focus-visible .char-photo img { transform: scale(1.06); }
.char-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12,8,24,0.9));
}
.char-body { position: relative; padding: 18px 20px 22px; }
.faction {
  display: inline-block; font-family: var(--font-alt); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 3px;
  margin-bottom: 10px;
}
.faction-horde { color: #f0a79c; background: rgba(178,58,46,0.18); border: 1px solid rgba(178,58,46,0.4); }
.faction-alliance { color: #a9c6f5; background: rgba(63,116,196,0.16); border: 1px solid rgba(63,116,196,0.4); }
.faction-neutral { color: #cbb7ea; background: rgba(120,80,170,0.16); border: 1px solid rgba(120,80,170,0.4); }
.char-body h3 { font-size: 1.45rem; color: var(--gold-bright); margin-bottom: 10px; }
.char-snippet { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }
.char-more {
  color: var(--ink-dim); font-size: 0.9rem; margin: 12px 0 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s ease, opacity .4s ease, margin .4s ease;
}
.char-card:hover .char-more, .char-card:focus-visible .char-more { max-height: 220px; opacity: 1; }

/* ============================================================
   GEOGRAPHY / MAP
   ============================================================ */
.geography { padding: 110px 0; }
.map-wrap { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: stretch; }
.map-stage {
  position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.map-stage img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05); }
.map-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(10,7,20,0.5));
}
.map-pin {
  position: absolute; transform: translate(-50%, -50%);
  background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; z-index: 3;
}
.pin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(200,162,74,0.25);
  position: relative;
}
.pin-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--gold-bright); animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8;} 100% { transform: scale(2.4); opacity: 0;} }
.pin-label {
  font-family: var(--font-alt); font-size: 0.78rem; color: var(--ink);
  background: rgba(10,7,20,0.8); padding: 3px 9px; border-radius: 3px;
  border: 1px solid var(--line); white-space: nowrap;
  opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease;
}
.map-pin:hover .pin-label, .map-pin.active .pin-label { opacity: 1; transform: translateX(0); }
.map-pin.active .pin-dot { background: #fff; box-shadow: 0 0 0 5px rgba(200,162,74,0.45); }

.zone-panel {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.zone-eyebrow {
  font-family: var(--font-alt); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.72rem; color: var(--gold); margin: 0 0 10px;
}
.zone-panel h3 { font-size: 1.7rem; color: var(--gold-bright); margin-bottom: 14px; transition: opacity .2s ease; }
.zone-panel p { color: var(--ink-dim); margin: 0; transition: opacity .2s ease; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-section { padding: 110px 0; position: relative; }
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 24px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 15%, var(--gold-soft) 85%, transparent);
}
.timeline-item {
  position: relative; padding: 46px 20px 24px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.timeline-item::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(200,162,74,0.2);
}
.tl-year { font-family: var(--font-alt); color: var(--gold); letter-spacing: 0.1em; font-size: 0.85rem; }
.timeline-item h3 { font-size: 1.2rem; color: var(--ink); margin: 8px 0 10px; }
.timeline-item p { color: var(--ink-dim); font-size: 0.9rem; margin: 0; }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; padding: 130px 0; text-align: center; overflow: hidden; }
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 50% 20%, rgba(90,50,150,0.4), transparent 70%),
    linear-gradient(180deg, var(--bg-purple), var(--bg-void));
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; }
.cta-inner h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 18px; }
.cta-lead { color: var(--ink-dim); font-size: 1.1rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-void); }
.footer-inner { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-alt); color: var(--gold-bright); letter-spacing: 0.04em; }
.footer-note { color: var(--ink-faint); font-size: 0.82rem; max-width: 640px; margin: 0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span, .pin-dot::after { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-wrap { grid-template-columns: 1fr; }
  .char-more { max-height: 220px; opacity: 1; margin-top: 12px; } /* touch: show lore */
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,7,20,0.97); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-120%); transition: transform .35s ease;
    pointer-events: none;
  }
  .main-nav.open { transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-cta { text-align: center; margin-top: 12px; border-bottom: 1px solid var(--gold-soft) !important; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .char-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .story-stats { gap: 22px; }
  .hero { padding-top: 100px; }
}
