/* ─────────────────────────────────────────────────────────────
   StrongMen — Shared Stylesheet
   Included by all main-site pages via <link rel="stylesheet" href="/styles.css" />.
   Contains: reset, design tokens, nav, hamburger, buttons,
   shared section utilities, footer, social icons, and mobile nav.
   Page-specific styles remain in each page's inline <style> block.
──────────────────────────────────────────────────────────────── */

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

:root {
  --gold:      #C9943A;
  --gold-lt:   #E8B84B;
  --dark:      #0f0f0f;
  --dark-2:    #181818;
  --dark-3:    #222;
  --text:      #f0f0f0;
  --muted:     #999;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

/* ─── Nav ─── */
/* background and border-bottom are set per-page since they differ
   (homepage uses a gradient; inner pages use solid rgba values). */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.nav__logo {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  /* Ensure touch targets meet 44px minimum */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav a:hover { color: var(--gold); }
.nav a.active { color: var(--gold); }

/* ─── Hamburger button ─── */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--text);
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* Hamburger → X animation */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  min-height: 48px;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,148,58,0.45);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ─── Shared section utilities ─── */
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.divider {
  width: 52px;
  height: 3px;
  background: var(--gold);
  margin: 1.25rem 0 1.75rem;
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.8rem;
  color: #444;
  border-top: 1px solid #1e1e1e;
}
footer a { color: #555; text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ─── Social Icons ─── */
.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  transition: color 0.2s;
}
.social-links a:hover { color: var(--gold); }
.social-links svg { width: 24px; height: 24px; display: block; }

/* ─── Skip to content ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: #000;
  padding: 0.5rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ─── Homepage Resources card hover ─── */
.resource-card:hover {
  border-left-color: #E8B84B !important;
  background: #141414 !important;
}

/* ─── Battle Brief "Go Deeper" link hover ─── */
.brief__go-deeper-link:hover { color: var(--gold-lt) !important; }

/* ─── Mobile nav (max 768px) ─── */
@media (max-width: 768px) {
  /* Show hamburger button */
  .nav__toggle { display: flex; }

  /* Tighten nav padding on mobile */
  .nav { padding: 0 1.25rem; }

  /* Slide-down mobile menu */
  .nav__links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15,15,15,0.98);
    border-bottom: 1px solid #252525;
    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links.is-open {
    max-height: 400px;
  }
  .nav__links a {
    font-size: 1rem;
    letter-spacing: 0.12em;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #1e1e1e;
    min-height: 52px;
    display: flex;
    align-items: center;
  }
  .nav__links a:last-child {
    border-bottom: none;
  }
}
