/* The Forgotten Heroes – website styles */
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #120e0b;
  --bg-2: #1c1611;
  --panel: #241c15;
  --line: #5a4428;
  --gold: #e0b45a;
  --gold-2: #f3d58f;
  --text: #e9e1d4;
  --muted: #b3a690;
  --orange: #e9842a;
  --necro: #8fe36b;
  --kingdom: #79aef0;
  --horde: #f0703c;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); }
h1, h2, h3 { font-family: "Cinzel Decorative", Georgia, serif; font-weight: 700; line-height: 1.2; color: var(--gold-2); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 .6em; text-align: center; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.lead { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; color: var(--muted); font-size: 1.08rem; }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(rgba(12, 9, 7, .9), rgba(12, 9, 7, .6));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(224, 180, 90, .25);
}
.brand { font-family: "Cinzel Decorative", Georgia, serif; color: var(--gold-2); text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.topbar nav a:hover { color: var(--gold-2); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a, .lang span { padding: 2px 10px; font-size: .85rem; text-decoration: none; }
.lang span { background: var(--gold); color: #1a130c; font-weight: 600; }
.lang a { color: var(--text); }
@media (max-width: 720px) { .topbar nav .sec { display: none; } }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 120px 20px 70px; text-align: center;
  background: url("../img/hero.jpg") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(18, 14, 11, .15) 40%, rgba(18, 14, 11, .85) 82%, var(--bg));
}
.hero > div { position: relative; z-index: 1; max-width: 820px; }
.hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 4.6rem); margin: 0 0 .25em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .8), 0 0 2px #000;
}
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin: 0 0 1.4em; text-shadow: 0 2px 8px #000; }
.badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-2); background: rgba(18, 14, 11, .7);
  font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
}
.btn {
  display: inline-block; margin-left: 10px; padding: 8px 22px; border-radius: 6px;
  background: linear-gradient(#f39a3d, #c9661b); color: #1a0f05; font-weight: 700; text-decoration: none;
  border: 1px solid #ffc27a; box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.btn:hover { filter: brightness(1.08); }
@media (max-width: 720px) { .hero { background-image: url("../img/hero-mobile.jpg"); } .btn { margin: 12px 0 0; } }

/* Sections */
section { padding: 90px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid rgba(224, 180, 90, .12); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pillar p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Factions */
.faction {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 28px; margin-bottom: 26px;
}
.faction h3 { color: var(--accent); font-size: 1.6rem; }
.faction .people { margin: 0 0 .8em; color: var(--muted); font-style: italic; }
.faction p { margin: 0 0 .7em; }
.faction.necro { --accent: var(--necro); }
.faction.kingdom { --accent: var(--kingdom); }
.faction.horde { --accent: var(--horde); }
.roster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.roster figure { margin: 0; text-align: center; }
.roster img {
  width: 100%; aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--line);
  transition: transform .15s, border-color .15s;
}
.roster figure:hover img { transform: scale(1.08); border-color: var(--accent); }
.roster figcaption { font-size: .68rem; line-height: 1.25; color: var(--muted); margin-top: 4px; }
.roster-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; text-align: right; }
@media (max-width: 920px) { .faction { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .roster { grid-template-columns: repeat(4, 1fr); } .roster-note { display: none; } }

/* Gameplay */
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; margin-bottom: 60px; }
.feature:nth-child(even) .shot { order: 2; }
.feature:last-child { margin-bottom: 0; }
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.shot figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.feature ul { padding-left: 1.2em; margin: .6em 0 0; color: var(--muted); }
.feature li { margin-bottom: .3em; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-child(even) .shot { order: 0; }
}

footer { padding: 36px 0 44px; text-align: center; color: var(--muted); font-size: .9rem; border-top: 1px solid rgba(224, 180, 90, .15); }
footer p { margin: .3em 0; }
