/* ============================================
   FIELD OF CHAMPIONS — SHARED SITE STYLES
   Tokens, reset, header nav, footer.
   Page-specific styles live in each page template.
   ============================================ */

:root {
  --blue: #6599ff;
  --blue-dark: #3a6fe0;
  --black: #0a0a0a;
  --black-mid: #111318;
  --black-card: #16191f;
  --black-card2: #1c2028;
  --white: #ffffff;
  --white-dim: rgba(255,255,255,0.65);
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

main#page { padding-top: var(--header-height); }

/* ── HEADER / NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid rgba(101,153,255,0.2);
  backdrop-filter: blur(8px);
  z-index: -1;
}
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo { flex-shrink: 0; line-height: 0; }
.site-logo img { height: 64px; width: auto; }

.site-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.site-nav-list > li { position: relative; }
.site-nav-list > li > a,
.dropdown-toggle {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: left;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}
.site-nav-list > li > a:hover,
.dropdown-toggle:hover,
.site-nav-list > li > a[aria-current="page"] {
  color: var(--blue);
}

.has-dropdown { position: relative; }
.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--black-card);
  border: 1px solid rgba(101,153,255,0.25);
  border-radius: 4px;
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white-dim);
  white-space: nowrap;
}
.dropdown-menu a:hover { color: var(--blue); background: rgba(101,153,255,0.08); }

.site-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.site-header-social { display: flex; align-items: center; gap: 8px; }
.site-header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.site-header-social a:hover { color: var(--blue); border-color: var(--blue); background: rgba(101,153,255,0.08); }
.site-header-cta {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--black);
  border-radius: 2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.site-header-cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

.menu-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 900px) {
  .site-header-cta { display: none; }
  .site-header-social { display: none; }
  .menu-burger { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    bottom: 0;
    background: var(--black);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav-list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .site-nav-list > li { width: 100%; }
  .site-nav-list > li > a, .dropdown-toggle { display: block; width: 100%; padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    border: none; background: none; box-shadow: none;
    padding-left: 16px;
  }
  .has-dropdown.is-open .dropdown-menu { display: block; }
  .has-dropdown.is-open .dropdown-toggle { color: var(--blue); }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--black-mid);
  border-top: 1px solid rgba(101,153,255,0.15);
  padding: 56px 24px 0;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer-logo { height: 48px; width: auto; margin-bottom: 14px; }
.site-footer-tagline { font-size: 15px; color: var(--white-dim); line-height: 1.6; margin-bottom: 18px; max-width: 260px; }
.site-footer-social { display: flex; gap: 12px; }
.site-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.site-footer-social a:hover { color: var(--blue); border-color: var(--blue); background: rgba(101,153,255,0.08); }

.site-footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.site-footer-col p { font-size: 15px; color: var(--white-dim); margin-bottom: 10px; line-height: 1.7; }
.site-footer-col a { text-decoration: none; }
.site-footer-col p a:hover { color: var(--blue); }
.site-footer-links { list-style: none; }
.site-footer-links li { margin-bottom: 10px; }
.site-footer-links a { font-size: 15px; color: var(--white-dim); text-decoration: none; }
.site-footer-links a:hover { color: var(--blue); }

.site-footer-btn {
  display: block;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 2px;
  margin-bottom: 10px;
  background: var(--blue); color: var(--black);
  transition: background 0.2s;
}
.site-footer-btn:hover { background: var(--blue-dark); color: #fff; }
.site-footer-btn-ghost { background: none; border: 1px solid var(--blue); color: var(--blue); }
.site-footer-btn-ghost:hover { background: rgba(101,153,255,0.1); color: var(--blue); }

.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer-inner { grid-template-columns: 1fr; }
}
