/* ============================================================
   C2 Camps - Design Tokens
   The ONLY source of colors, type, spacing, and shared classes.
   Shared across index.html (hub), flag.html, coverage.html.
   Palette + type ported from the two C2 fliers.
   ============================================================ */

:root {
  /* ---- Color (from the fliers) ---- */
  --green:        #2a7a2a;
  --green-light:  #3da63d;
  --green-dark:   #1a4f1a;
  /* Blue accent (replaced the original gold/orange brand accent).
     The --gold* names are kept and point at blue so every existing
     reference picks up the new color with no churn. */
  --blue:         #3b82f6;
  --blue-light:   #60a5fa;
  --blue-dark:    #1d4ed8;
  --gold:         var(--blue);
  --gold-light:   var(--blue-light);
  --gold-dark:    var(--blue-dark);
  --dark:         #0d0d0d;  /* page background - field at night */
  --dark2:        #141414;  /* alt section background */
  --dark3:        #1c1c1c;  /* card / raised surface */
  --white:        #f5f5f0;  /* primary text */
  --text-soft:    rgba(245, 245, 240, 0.7);
  --text-muted:   rgba(245, 245, 240, 0.5);
  --text-faint:   rgba(245, 245, 240, 0.35);
  --gray:         #888;
  --line:         rgba(255, 255, 255, 0.08);

  /* ---- Type ----
     Display: Barlow Condensed (tall, athletic) · Body: Barlow */
  --font-heading: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --text-h1:      clamp(2.8rem, 8vw, 5rem);
  --text-h2:      clamp(2.2rem, 5vw, 3.5rem);
  --text-h3:      clamp(1.4rem, 3vw, 2rem);
  --text-body:    1.0625rem;   /* 17px */
  --text-small:   0.875rem;
  --text-eyebrow: 0.7rem;

  /* ---- Spacing & shape ---- */
  --space-section:        96px;
  --space-section-mobile: 64px;
  --space-gap:            32px;
  --radius:               4px;
  --radius-pill:          999px;
  --container-max:        1080px;
  --shadow-card:          0 2px 16px rgba(0, 0, 0, 0.4);
}

/* ---- Reset & base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.05;
  text-transform: uppercase;
}
h1 { font-size: var(--text-h1); font-weight: 900; letter-spacing: -1px; }
h2 { font-size: var(--text-h2); font-weight: 800; letter-spacing: -0.5px; }
h3 { font-size: var(--text-h3); font-weight: 800; }
img { max-width: 100%; display: block; }
a  { color: var(--green-light); }

/* ---- Field background (shared, fixed) ---- */
.field-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(90deg,
      transparent, transparent calc(10% - 1px),
      rgba(255,255,255,0.05) calc(10% - 1px), rgba(255,255,255,0.05) 10%),
    repeating-linear-gradient(180deg,
      transparent, transparent calc(8.33% - 1px),
      rgba(255,255,255,0.035) calc(8.33% - 1px), rgba(255,255,255,0.035) 8.33%);
}
.hashmarks { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hashmarks::before, .hashmarks::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 2px;
  background: rgba(255,255,255,0.07);
}
.hashmarks::before { left: 28%; }
.hashmarks::after  { left: 72%; }

/* ---- Playbook route arrows (shared, fixed, self-drawing inline SVG) ----
   The art is inlined (one <symbol> template re-placed as scattered <use>
   instances at varied angles/sizes) so the strokes live in the DOM and can
   draw themselves on, while looking hand-chalked on a board rather than a
   rigid tiled grid. Same green strokes, same faded opacity. */
.playbook {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.16;
}
.playbook-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Self-drawing start state: only hide the strokes when motion is allowed, so
   the GSAP "chalk it on" timeline can draw them in with no first-paint flash.
   Reduced-motion users skip this rule entirely and see the play fully drawn. */
@media (prefers-reduced-motion: no-preference) {
  .playbook .pb-player,
  .playbook .pb-route,
  .playbook .pb-defender {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  /* Dashed pre-snap motion starts hidden; JS fades it in last (its own dash
     pattern conflicts with the dashoffset draw-on trick). */
  .playbook .pb-motion { opacity: 0; }
}

/* ---- Shared layout ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
@media (max-width: 720px) {
  .section { padding-top: var(--space-section-mobile); padding-bottom: var(--space-section-mobile); }
}

/* ---- Eyebrow / section label ---- */
.eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-light);
  display: block;
  margin-bottom: 12px;
}
.divider { width: 48px; height: 3px; background: var(--green); margin: 0 0 36px; }
.divider.gold { background: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 16px 40px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 2px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ---- Badge / pill ---- */
.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
}

/* ---- Card ---- */
.card {
  position: relative;
  z-index: 1;
  background: var(--dark3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

/* ---- Shared sticky nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-nav .nav-wordmark {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav .nav-wordmark span { color: var(--green-light); }
.site-nav .nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.site-nav .nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.site-nav .nav-links a:hover { color: var(--white); }
.site-nav .nav-links a.nav-cta {
  background: var(--green);
  color: #fff;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(42, 122, 42, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.site-nav .nav-links a.nav-cta:hover {
  background: var(--green-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(61, 166, 61, 0.45);
}
@media (max-width: 720px) {
  .site-nav .nav-links { gap: 16px; }
  .site-nav .nav-links a.nav-hide-mobile { display: none; }
}

/* ---- Shared footer ---- */
.site-footer {
  position: relative;
  z-index: 1;
  background: #0a0a0a;
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer .footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.25);
  margin-bottom: 12px;
}
.site-footer p { font-size: var(--text-small); color: var(--text-muted); line-height: 1.8; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--green-light); }
.site-footer .footer-social {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-light);
  text-transform: uppercase;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
