/* =========================================================
   F3 Northlake — shared styles
   Matches the family template used by F3 NFW / Alliance / Skynet:
   black + salmon red + white, condensed all-caps nav & hero,
   title-case gray section headings, red icon rows, red FNG band.
   ========================================================= */

:root {
  --black: #000000;
  --charcoal: #111111;
  --gray-head: #58595b;
  --gray-body: #6d6e71;
  --light: #f7f7f7;
  --white: #ffffff;
  --red: #e93d3d;
  --red-dark: #cc2929;
  /* theme tokens (light) */
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --text: #6d6e71;
  --head: #58595b;
  --strong: #111111;
  --card-bg: #ffffff;
  --card-border: #e4e4e4;
  --ph-a: #e2e2e2;
  --ph-b: #efefef;
  --ph-border: #b5b5b5;
  --ph-text: #7a7a7a;
  --ph-small: #909090;
  --max-w: 1160px;
  --font-cond: "Oswald", "Arial Narrow", sans-serif;   /* nav, hero, buttons */
  --font-head: "Jost", "Trebuchet MS", sans-serif;      /* section headings */
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* dark theme: explicit user choice */
:root[data-theme="dark"] {
  --bg: #161616;
  --bg-alt: #101010;
  --text: #ababab;
  --head: #e8e8e8;
  --strong: #f0f0f0;
  --card-bg: #1e1e1e;
  --card-border: #343434;
  --ph-a: #222222;
  --ph-b: #2b2b2b;
  --ph-border: #4a4a4a;
  --ph-text: #9a9a9a;
  --ph-small: #8a8a8a;
}

/* dark theme: OS preference, unless user chose light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #161616;
  --bg-alt: #101010;
  --text: #ababab;
  --head: #e8e8e8;
  --strong: #f0f0f0;
  --card-bg: #1e1e1e;
  --card-border: #343434;
  --ph-a: #222222;
  --ph-b: #2b2b2b;
  --ph-border: #4a4a4a;
  --ph-text: #9a9a9a;
  --ph-small: #8a8a8a;
  }
}

/* black artwork that flips to white when the theme is dark */
:root[data-theme="dark"] .invert-dark { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .invert-dark { filter: invert(1); }
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

h1, h2, h3, h4 { line-height: 1.2; }

a { color: var(--red); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 36px;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn .flag { margin-right: 8px; }

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }

/* black button (used on red bands, like "WHAT TO EXPECT →") */
.btn-navy { background: var(--black); color: var(--white); border: 1px solid var(--card-border); }
.btn-navy:hover { background: #2a2a2a; }

.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.brand img {
  height: 58px;
  width: 58px;
}

.brand-name {
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-name span { color: var(--white); }

.main-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
}

.main-nav a {
  display: block;
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--red);
  text-decoration: none;
  padding: 10px 12px;
}

.main-nav a:hover,
.main-nav a.active { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--red);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .main-nav a { padding: 12px 28px; font-size: 1rem; }
}

/* red announcement bar under the nav */
.announce {
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 9px 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/img/hero.jpg") center / cover no-repeat #000;
  color: var(--white);
  text-align: center;
  padding: 150px 24px 160px;
}

.hero h1 {
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 14px;
}

.hero .tagline {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 500;
  font-size: clamp(0.9rem, 2.2vw, 1.15rem);
  color: var(--white);
  margin-bottom: 40px;
}

.hero .tagline .x { color: var(--red); padding: 0 6px; }

.hero .btn { margin: 6px 8px; }

.hero .img-note {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Page-title hero (interior pages) */
.page-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(45deg, #1c1c1c 0 26px, #262626 26px 52px);
  color: var(--white);
  text-align: center;
  padding: 78px 24px;
}

/* photo banners for interior pages (launch-day PAX photos) */
.page-hero.hero-fng {
  background: linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("/img/banners/fng.jpg") center 68% / cover no-repeat #000;
}

.page-hero.hero-ao {
  background: linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("/img/banners/workouts.jpg") center 40% / cover no-repeat #000;
}

.page-hero.hero-resources {
  background: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    url("/img/principles.jpg") center 40% / cover no-repeat #000;
}

.page-hero.hero-slt {
  background: linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("/img/banners/leadership.jpg") center 45% / cover no-repeat #000;
}

.page-hero h1 {
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

.page-hero p {
  max-width: 720px;
  margin: 14px auto 0;
  color: #d9d9d9;
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--black); color: var(--white); }

/* small red all-caps kicker above headings */
.kicker {
  display: block;
  text-align: center;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 10px;
}

/* Title-case section headings, gray on white / white on dark */
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--head);
  text-align: center;
  margin-bottom: 12px;
}

.section.dark .section-title { color: var(--white); }

.section-title.underline::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--red);
  margin: 14px auto 0;
}

.section-sub {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px;
  font-size: 1.05rem;
}

.section.dark .section-sub { color: #d9d9d9; }

.center { text-align: center; }

/* centered icon above a section heading */
.section-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.section-icon svg { width: 58px; height: 58px; }

/* responsive 16:9 video embed — minimal click-to-play facade */
.video-embed {
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #2e2e2e;
  border-radius: 3px;
  overflow: hidden;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--black);
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.video-facade:hover img { opacity: 0.65; }

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.video-facade:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--red-dark);
}

.video-play svg { width: 30px; height: 30px; margin-left: 4px; }

.video-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
}

/* live F3 Nation map embed */
.map-embed {
  height: 520px;
  border: 1px solid var(--card-border);
  border-radius: 3px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* circular logo centered in dark intro section */
.intro-logo {
  width: 190px;
  height: 190px;
  margin: 0 auto 26px;
}

/* ---------- Core Principles (white bg, red icons, 5 cols) ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px 26px;
}

@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

.principle { text-align: center; }

.principle .p-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.principle .p-icon svg { width: 54px; height: 54px; }

.principle h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--head);
  margin-bottom: 6px;
}

.principle p { font-size: 0.85rem; }

/* ---------- Red full-width band (FNG / CTA) ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
}

.cta-band .band-icon { display: flex; justify-content: center; margin-bottom: 18px; }
.cta-band .band-icon svg { width: 58px; height: 58px; }

.cta-band h2 {
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--black);
  margin-bottom: 6px;
}

.cta-band .band-sub {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.cta-band p { max-width: 760px; margin: 0 auto 14px; }
.cta-band p.strong { font-weight: 700; }
.cta-band .btn { margin-top: 16px; }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  background: repeating-linear-gradient(-45deg, var(--ph-a) 0 16px, var(--ph-b) 16px 32px);
  border: 2px dashed var(--ph-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ph-text);
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
  min-height: 220px;
  gap: 6px;
}

.img-placeholder small {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  color: var(--ph-small);
}

.section.dark .img-placeholder {
  background: repeating-linear-gradient(-45deg, #1d1d1d 0 16px, #272727 16px 32px);
  border-color: #4a4a4a;
  color: #9a9a9a;
}

/* ---------- AO type filters ---------- */
.ao-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -18px 0 12px;
}

.ao-filters-days { margin: 0 0 44px; }

.ao-filter {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 20px;
  background: var(--card-bg);
  color: var(--head);
  border: 1px solid var(--card-border);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ao-filter:hover { border-color: var(--red); color: var(--red); }

.ao-filter.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ---------- AO cards ---------- */
.ao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.ao-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
}

.ao-card .img-placeholder { min-height: 170px; border: 0; border-bottom: 2px dashed var(--ph-border); }

.ao-card .ao-img {
  position: relative;
  height: 175px;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
  background: #000;
}

.ao-card .ao-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* darkened so the AO logo reads on top */
  filter: brightness(0.35);
}

.ao-card .ao-img .ao-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-height: 80%;
  max-width: 70%;
  object-fit: contain;
  filter: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.ao-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.ao-types { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.ao-type {
  /* fixed-size chip: identical height and width for every label */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 88px;
  padding: 0 10px;
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-indent: 0.14em; /* re-center: offsets the trailing letter-spacing gap */
  color: var(--white);
  background: var(--gray-head);
  border-radius: 2px;
}

.ao-type.bootcamp { background: var(--red); }
/* black chip needs an edge so it doesn't melt into dark cards */
.ao-type.ruck { background: var(--black); box-shadow: inset 0 0 0 1px #5a5a5a; }
.ao-type.run { background: var(--gray-head); }

.ao-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--head);
}

.ao-meta { list-style: none; font-size: 0.92rem; }
.ao-meta li { padding: 3px 0; }
.ao-meta b { color: var(--strong); }

.ao-body .btn { margin-top: auto; align-self: flex-start; font-size: 0.82rem; padding: 10px 22px; }

/* ---------- Leadership (SLT) ---------- */
.slt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

.slt-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-align: center;
  padding-bottom: 24px;
}

.slt-card .img-placeholder { min-height: 240px; border: 0; border-bottom: 2px dashed var(--ph-border); margin-bottom: 18px; }

.slt-card .slt-photo {
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 18px;
}

.slt-card .slt-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* pin to the top so faces never crop out at any screen size */
  object-position: top;
}

.slt-role {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.slt-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--head);
}

.slt-card .real-name { font-size: 0.95rem; }

/* ---------- FNG steps / lexicon ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; max-width: 820px; margin: 0 auto; }

.step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 5px solid var(--red);
  padding: 26px 28px 26px 84px;
  position: relative;
}

.step h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--head);
  margin-bottom: 4px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lexicon { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.lex-item { background: var(--card-bg); border: 1px solid var(--card-border); padding: 18px 20px; font-size: 0.95rem; }
.lex-item b {
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

/* ---------- Connect ---------- */
.connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }

.connect-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 34px 28px;
  text-align: center;
}

.connect-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--head);
  margin-bottom: 10px;
}

.connect-card p { margin-bottom: 18px; font-size: 0.95rem; }

/* ---------- News placeholder cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.news-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: inherit;
}

.news-card:hover { border-color: var(--red); }
.news-card:hover h3 { color: var(--red); }

.news-img {
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* publication logos (e.g. NYT) shown whole on black, not cropped */
.news-img.logo { background: #000000; }
.news-img.logo img { object-fit: contain; padding: 28px; }

.news-card .news-body { padding: 22px 24px 26px; }

.news-source {
  display: block;
  font-family: var(--font-cond);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 6px;
}

.news-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--head);
  margin-bottom: 8px;
  transition: color 0.15s ease;
}
.news-card p { font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #9a9a9a;
  padding: 56px 0 32px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-family: var(--font-cond);
  text-transform: uppercase;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #9a9a9a; text-decoration: none; }
.site-footer a:hover { color: var(--red); }

.social-links { display: flex; gap: 14px; margin-top: 14px; }

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #3a3a3a;
  color: var(--white);
  font-family: var(--font-cond);
  font-size: 0.8rem;
  text-decoration: none;
}

.social-links a:hover { background: var(--red); border-color: var(--red); }

.social-links svg { width: 17px; height: 17px; display: block; }

.footer-bottom {
  border-top: 1px solid #262626;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #7a7a7a;
}

.footer-bottom a { color: #9a9a9a; }


/* ---------- Theme toggle (top right) ---------- */
.theme-toggle {
  display: flex;
  border: 1px solid #3a3a3a;
  border-radius: 2px;
  overflow: hidden;
  order: 2;
  margin-left: 14px;
  flex-shrink: 0;
}

.main-nav { order: 1; }
.nav-toggle { order: 3; }

.theme-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: #9a9a9a;
  padding: 7px 9px;
  cursor: pointer;
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  display: block;
}

.theme-toggle button + button { border-left: 1px solid #3a3a3a; }
.theme-toggle button:hover { color: var(--white); }
.theme-toggle button.active { background: var(--red); color: var(--white); }
