/* ==========================================================================
   iPost Sports — shared styles
   Palette: bg #0a0a0a, panel #141414, red #e2231a, red-dim #4a0f0c,
            white #f5f5f5, muted #8f8f8f
   Type: Oswald (display, condensed/uppercase) + Inter (body)
   Signature: camera-viewfinder corner brackets + live-pulse indicator
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --panel: #1a1a1a;
  --panel-2: #232323;
  --line: #363636;
  --red: #e2231a;
  --red-dim: #5c1310;
  --white: #f5f5f5;
  --muted: #a3a19d;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.5em;
  font-weight: 600;
  color: var(--white);
}

p { color: var(--muted); }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- viewfinder frame (signature element) ---------- */
.viewfinder {
  position: relative;
  padding: 14px;
}
.viewfinder::before,
.viewfinder::after,
.viewfinder .vf-tr,
.viewfinder .vf-br {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--red);
}
.viewfinder::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.viewfinder::after { bottom: 0; right: 0; border-left: none; border-top: none; }
.viewfinder .vf-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.viewfinder .vf-br { bottom: 0; left: 0; border-right: none; border-top: none; }

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.15em;
  font-size: 13px;
  color: var(--red);
  text-transform: uppercase;
}
.live-dot .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(226,35,26,0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(226,35,26,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(226,35,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,35,26,0); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 64px;
  width: auto;
  display: block;
}
nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  transition: opacity .15s, color .15s;
}
nav.primary-nav a:hover { opacity: 1; color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background .15s, color .15s, border-color .15s;
}
.btn-ghost {
  color: var(--white);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-solid {
  background: var(--red);
  color: var(--white);
}
.btn-solid:hover { background: #ff2c22; }

.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(226,35,26,0.10), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  margin: 18px 0 20px;
}
.hero h1 .accent { color: var(--red); }
.hero p.lede {
  font-size: 18px;
  max-width: 46ch;
  color: #cfcfcf;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 16px; }
.hero-media video, .hero-media img {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
}
.hero-media.hand-shot {
  position: absolute;
  right: -15px;
  bottom: -10px;
  width: 640px;
  max-width: 55vw;
  pointer-events: none;
}
.hero-media.hand-shot img {
  width: 100%;
  border-radius: 0;
  background: none;
}
@media (max-width: 900px) {
  .hero-media.hand-shot { position: static; width: 80%; max-width: 360px; margin: 32px auto 0; }
}

.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 64px;
}
.stat-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d8d8d8;
}
.stat-item svg { width: 20px; height: 20px; fill: var(--red); flex-shrink: 0; }

/* ---------- section basics ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow {
  color: var(--red);
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- feature cards (Information & Support) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .18s, transform .18s;
}
.feature-card:hover { border-color: var(--red-dim); transform: translateY(-3px); }
.feature-card .icon-wrap {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card .icon-wrap img { width: 56px; height: 56px; object-fit: contain; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; margin: 0 0 16px; }
.feature-card .learn {
  font-family: 'Oswald', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ---------- compact feature cards (It's really simple to use) ---------- */
#features .card-grid { gap: 18px; }
#features .feature-card { padding: 20px; }
#features .feature-card .icon-wrap { width: 44px; height: 44px; margin-bottom: 12px; }
#features .feature-card .icon-wrap img { width: 44px; height: 44px; }
#features .feature-card h3 { font-size: 16px; margin-bottom: 6px; }
#features .feature-card p { font-size: 13.5px; margin-bottom: 10px; }

/* ---------- feature video modal ---------- */
.fv-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.86);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fv-overlay.on { display: flex; }
.fv-modal {
  position: relative;
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.fv-modal video { width: 100%; display: block; background: #000; max-height: 60vh; }
.fv-info { padding: 24px 28px 28px; }
.fv-info h3 { font-size: 20px; margin-bottom: 8px; }
.fv-info p { font-size: 14.5px; color: #cfcfcf; margin: 0; }
.fv-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.fv-close:hover { border-color: var(--red); color: var(--red); }

/* ---------- resources ---------- */
.resource-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.resource-row a {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  border: 1px solid var(--line);
  color: var(--white);
}
.resource-row a:hover { border-color: var(--red); color: var(--red); }

/* ---------- testimonials (light band) ---------- */
.testimonial-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.testimonial-strip .section-head { padding-left: 40px; }
.testimonial-strip .section-head .eyebrow { color: var(--red); }
.testimonial-strip .section-head h2 { color: #0a0a0a; }
.t-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #e2e2e2;
}
.t-card {
  background: var(--white);
  padding: 40px;
}
.t-card .stars { color: var(--red); letter-spacing: 3px; margin-bottom: 16px; font-size: 14px; }
.t-card p.quote {
  color: #33322f;
  font-size: 16px;
  margin-bottom: 24px;
}
.t-person { display: flex; align-items: center; gap: 16px; }
.t-person img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
}
.t-person .name { font-family: 'Oswald', sans-serif; font-size: 17px; letter-spacing: 0.04em; color: #0a0a0a; }
.t-person .role { font-size: 14.5px; color: #6b6a67; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(180deg, #0a0a0a, #120606);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.cta-band p { max-width: 50ch; margin: 0 auto 36px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact .row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #cfcfcf; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--red); }
.copyright { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .t-grid { grid-template-columns: 1fr; }
  nav.primary-nav { display: none; }
  .menu-toggle { display: block; }
  nav.primary-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px 24px 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  nav.primary-nav.open ul {
    flex-direction: column;
    gap: 22px;
  }
  nav.primary-nav.open a { font-size: 15px; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .stat-strip .container { justify-content: flex-start; }
  section { padding: 64px 0; }
}

/* ---------- inner page hero (non-home pages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(226,35,26,0.10), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
}
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 14px; }
.page-hero p.lede { font-size: 17px; max-width: 60ch; color: #cfcfcf; margin: 0; }

/* ---------- 4-up card grid variant ---------- */
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- facility photo row ---------- */
.facility-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.facility-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .facility-photos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facility-photos { grid-template-columns: 1fr; } }

/* ---------- app store badges (promo) ---------- */
.app-badges { display: flex; gap: 20px; flex-wrap: wrap; margin: 32px 0 0; }
.app-badges a { display: inline-block; transition: opacity .15s, transform .15s; }
.app-badges a:hover { opacity: .85; transform: translateY(-2px); }
.app-badges img { height: 52px; width: auto; border-radius: var(--radius); }
.price-note { font-family: 'Oswald', sans-serif; letter-spacing: .04em; color: var(--white); font-size: 15px; margin-bottom: 4px; }

/* ---------- clients grid (promo) ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.client-card { display: block; background: #fff; border: 1px solid var(--line); padding: 22px; text-align: center; transition: border-color .18s, transform .18s; }
.client-card:hover { transform: translateY(-2px); }
.client-card:hover { border-color: var(--red-dim); }
.client-card img { max-height: 92px; width: auto; margin: 0 auto 14px; object-fit: contain; }
.client-card h3 { font-size: 13px; letter-spacing: .03em; margin: 0; color: #0a0a0a; }
.clients-status { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- how-it-works steps (gametap) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step-card { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600;
  margin-bottom: 14px;
}
.step-shot { border: 1px solid var(--line); overflow: hidden; margin-bottom: 16px; }
.step-shot img { width: 100%; display: block; }
.step-card h3 { font-size: 14.5px; margin-bottom: 6px; }
.step-card p { font-size: 13px; margin: 0; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- event card (events) ---------- */
.event-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); padding: 36px;
}
.event-card .event-tag {
  display: inline-block; font-family: 'Oswald', sans-serif; font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); padding: 4px 10px; margin-bottom: 16px;
}
.event-card h3 { font-size: 22px; margin-bottom: 6px; }
.event-card .event-sub { color: #cfcfcf; font-size: 14.5px; margin-bottom: 18px; }
.event-card .event-detail { font-size: 14px; margin: 0 0 6px; color: var(--white); }
.event-card .event-detail strong { color: var(--red); }
@media (max-width: 900px) { .event-card { grid-template-columns: 1fr; } }

/* ---------- tab showcase (stream admin) ---------- */
.tab-showcase-list { display: flex; flex-direction: column; gap: 28px; }
.tab-showcase { grid-template-columns: 1fr; gap: 24px; }
.tab-showcase img { width: 100%; border-radius: var(--radius); }
.tab-showcase ul { margin: 0; padding-left: 18px; }
.tab-showcase ul li { font-size: 14px; color: #b8b8b8; margin-bottom: 10px; line-height: 1.55; }
.tab-showcase ul li:last-child { margin-bottom: 0; }

/* ---------- iframe embed panels (facility & NCS pages) ---------- */
.embed-section { margin-bottom: 64px; }
.embed-section:last-child { margin-bottom: 0; }
.embed-section h2 { font-size: 19px; margin-bottom: 12px; }
.embed-section p { font-size: 14px; margin-bottom: 18px; }
.embed-frame iframe { width: 100%; border: 0; display: block; background: #000; }
.facility-hero { padding: 56px 0 8px; }
.facility-hero h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 6px; }

/* ---------- sport picker (school page) ---------- */
.sport-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.sport-row {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.sport-row:hover { border-color: var(--red-dim); background: var(--panel-2); }
.sport-row .sport-emoji { font-size: 22px; width: 28px; text-align: center; flex-shrink: 0; }
.sport-row .sport-name { flex: 1; font-family: 'Oswald', sans-serif; font-size: 16px; letter-spacing: .03em; }
.sport-row .sport-arrow { color: var(--muted); font-size: 16px; transition: transform .12s; }
.sport-row:hover .sport-arrow { transform: translateX(3px); color: var(--red); }

/* ---------- video category rows (school page) ---------- */
.video-section { margin-bottom: 48px; }
.video-section:last-child { margin-bottom: 0; }
.video-section h3 {
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.video-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.video-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--panel-2); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.75); color: var(--white);
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 4px;
}
.video-card-body { padding: 12px 14px; }
.video-card-body h4 { font-size: 14px; font-weight: 500; margin: 0; }

.video-empty {
  display: flex; align-items: center; gap: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px;
}
.video-empty-thumb {
  width: 88px; aspect-ratio: 16 / 9; flex-shrink: 0;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.video-empty-thumb svg { width: 24px; height: 24px; fill: var(--muted); }
.video-empty p { font-size: 14px; color: var(--muted); margin: 0; }

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}