/* =========================================================================
   Corporate Prep Sports Central — Design System
   Light-themed corporate brand site. A FLOWW Media company.
   Palette: white/soft-gray canvas, green primary, yellow→orange energy accent.
   Type: Oswald (athletic condensed display) + Inter (body).
   ========================================================================= */

:root {
  /* Brand */
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-50:  #f0fdf4;
  --yellow:    #eab308;
  --orange:    #f97316;

  /* Ink / neutrals */
  --ink:        #0f172a;  /* slate-900 */
  --ink-soft:   #1e293b;  /* slate-800 */
  --muted:      #64748b;  /* slate-500 */
  --muted-soft: #94a3b8;  /* slate-400 */
  --line:       #e2e8f0;  /* slate-200 */
  --line-soft:  #eef2f6;
  --bg:         #ffffff;
  --bg-soft:    #f8fafc;  /* slate-50 */
  --bg-tint:    #f0fdf4;  /* green-50 */

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow:    0 12px 32px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --radius:    16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  --grad-energy: linear-gradient(100deg, var(--yellow) 0%, var(--orange) 100%);
  --grad-field:  linear-gradient(120deg, var(--green-600) 0%, var(--green-500) 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Type ---------- */
h1, h2, h3, h4, .display {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display  { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; text-transform: uppercase; }
h2.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
.eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green-600);
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.text-grad { background: var(--grad-energy); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section--soft  { background: var(--bg-soft); }
.section--tint  { background: var(--bg-tint); }
.section--ink   { background: var(--ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 70ch; margin-bottom: clamp(32px, 5vw, 56px); }
.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-500); box-shadow: var(--shadow); }
.btn--energy { background: var(--grad-energy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--on-ink { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--on-ink:hover { background: rgba(255,255,255,.08); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9e2ec; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-600); margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }
.card__link { color: var(--green-600); font-weight: 600; font-size: .92rem; display: inline-flex; gap: .35rem; margin-top: 14px; }
.card__link:hover { gap: .6rem; }

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: var(--radius-pill);
  background: var(--green-50); color: var(--green-600);
  font-size: .82rem; font-weight: 600; border: 1px solid rgba(22,163,74,.16);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }

/* =========================================================================
   Header / Nav (mega-menu)
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.nav__logo img { height: 30px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: 'Oswald', sans-serif; font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; font-size: .92rem; color: var(--ink-soft);
  padding: .6rem .8rem; border-radius: 8px; transition: color .15s, background .15s;
}
.nav__link:hover, .nav__item.is-open .nav__link, .nav__link.is-active { color: var(--green-600); background: var(--green-50); }
.nav__caret { width: 14px; height: 14px; transition: transform .2s; }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(760px, 92vw); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease;
}
.mega::before { /* hover bridge so menu doesn't close in the gap */
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* JS may set --mega-shift to nudge a menu back into the viewport */
.nav__item.is-open .mega { transform: translateX(calc(-50% + var(--mega-shift, 0px))) translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 1100px) { .mega__grid { grid-template-columns: repeat(2, 1fr); } }
.mega__card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.mega__card:hover { background: var(--bg-soft); border-color: var(--line); transform: translateY(-2px); }
.mega__img { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; background: var(--bg-soft); }
.mega__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mega__card:hover .mega__img img { transform: scale(1.05); }
.mega__txt { padding: 10px 8px 6px; }
.mega__txt strong { display: block; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: .92rem; color: var(--ink); letter-spacing: .01em; }
.mega__txt small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.mega__card:hover .mega__txt strong { color: var(--green-600); }
.mega__all { display: inline-block; margin: 14px 8px 4px; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; font-weight: 600; color: var(--green-600); }
.mega__all:hover { color: var(--green-500); }

/* Mobile nav */
.nav__toggle { display: none; background: none; border: 0; padding: 8px; }
.nav__toggle svg { width: 26px; height: 26px; }
@media (max-width: 980px) {
  .nav__menu, .nav__actions .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
}
.mobile-nav {
  position: fixed; inset: 74px 0 0 0; background: #fff; z-index: 49;
  padding: 24px var(--gutter); overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { display: block; padding: .9rem 0; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line-soft); }
.mobile-nav a.sub { font-family: 'Inter', sans-serif; text-transform: none; letter-spacing: 0; padding-left: 16px; color: var(--muted); border: 0; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(56px, 8vw, 104px);
}
.hero__copy { max-width: 36rem; }
.hero .display { margin: 18px 0 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__photo { position: relative; align-self: stretch; min-height: 420px; border-radius: var(--radius); overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; position: absolute; inset: 0; }
/* fade the photo's left edge into the page so it blends toward the text */
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-soft) 0%, rgba(248,250,252,.55) 22%, rgba(248,250,252,0) 52%),
              linear-gradient(0deg, var(--bg-soft) 0%, rgba(248,250,252,0) 28%);
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { min-height: 280px; order: -1; }
  .hero__photo::after { background: linear-gradient(0deg, var(--bg-soft) 2%, rgba(248,250,252,0) 60%); }
}

/* =========================================================================
   Stats band
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.section--ink .stat__num { background: var(--grad-energy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted-soft); margin-top: 8px; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.section--ink .stat__label { color: rgba(255,255,255,.6); }

/* =========================================================================
   Ecosystem / property cards
   ========================================================================= */
.prop { display: flex; flex-direction: column; }
.prop__tag { font-family: 'Oswald', sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); margin-bottom: 6px; }
.prop h3 { font-size: 1.15rem; }
.prop__url { font-size: .85rem; color: var(--muted-soft); margin-top: auto; padding-top: 14px; }

/* =========================================================================
   Split feature (program highlight)
   ========================================================================= */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split__media {
  border-radius: var(--radius); background: var(--grad-field); min-height: 320px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  display: grid; place-items: center; color: #fff; text-align: center; padding: 32px;
}
.split__media .big { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(3rem,8vw,5rem); text-transform: uppercase; line-height: .95; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.checklist svg { width: 22px; height: 22px; color: var(--green-600); flex: none; margin-top: 2px; }

/* =========================================================================
   Interactive US states map
   ========================================================================= */
.map-wrap { position: relative; }
.usmap { width: 100%; height: auto; display: block; overflow: visible; }
.usmap .state {
  fill: #e7edf3; stroke: #fff; stroke-width: 1; stroke-linejoin: round;
  transition: fill .18s ease;
}
.usmap .state.is-active { fill: var(--green-500); }
.usmap .state.is-active:hover { fill: var(--green-600); }
.usmap .state:not(.is-active):hover { fill: #d4dde6; }
.map-legend { display: flex; gap: 20px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.map-legend span { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
.map-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.map-legend i.on { background: var(--green-500); }
.map-legend i.off { background: #e7edf3; }
.map-tip {
  position: fixed; z-index: 60; pointer-events: none; opacity: 0;
  background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600;
  padding: .4rem .7rem; border-radius: 8px; transform: translate(-50%, -130%);
  transition: opacity .12s ease; white-space: nowrap; box-shadow: var(--shadow);
}
.map-tip.show { opacity: 1; }
.map-tip small { display: block; font-weight: 400; opacity: .7; font-size: .72rem; }

/* =========================================================================
   Newsroom cards
   ========================================================================= */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }
.news__card { overflow: hidden; padding: 0; }
.news__img { aspect-ratio: 16/10; background: linear-gradient(135deg, #e2e8f0, #f1f5f9); position: relative; }
.news__img .tag { position: absolute; top: 14px; left: 14px; }
.news__body { padding: 22px 24px 26px; }
.news__meta { font-size: .82rem; color: var(--muted-soft); text-transform: uppercase; letter-spacing: .06em; }
.news__card h3 { margin: 8px 0 6px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; text-transform: none; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { background: var(--grad-field); border-radius: var(--radius); padding: clamp(36px, 6vw, 64px); color: #fff; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.9); margin: 14px auto 28px; }
.cta-band .btn--light { color: var(--green-600); }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--ink); color: #cbd5e1; padding-block: 64px 32px; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 28px; margin-bottom: 16px; }
.footer__brand p { color: var(--muted-soft); font-size: .92rem; max-width: 34ch; }
.footer h4 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: .92rem; }
.footer__bottom { border-top: 1px solid rgba(148,163,184,.18); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer__floww { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; }
.footer__floww img { height: 30px; filter: brightness(0) invert(1); }

/* ---------- Reveal-on-scroll (progressive enhancement) ----------
   Content is visible by default. Only when JS adds `.js` to <html> do we
   hide-then-animate, so no-JS / failed-JS still shows everything. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
