:root {
  --navy: #031a34;
  --navy-2: #062442;
  --teal: #009f91;
  --teal-2: #00b6a6;
  --gold: #f7b500;
  --orange: #f05a28;
  --white: #ffffff;
  --ink: #071a32;
  --muted: #5c6c7b;
  --panel: #f7f9fb;
  --line: rgba(7, 26, 50, .12);
  --shadow: 0 24px 55px rgba(3, 26, 52, .16);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

h1, h2, h3, .button, .eyebrow, .site-nav a, .team-name, .team-school {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-style: italic;
  letter-spacing: .025em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 8vw, 7.4rem); line-height: .88; margin: 0; color: var(--white); text-shadow: 0 4px 16px rgba(0,0,0,.25); }
h1 span, h2 span { color: var(--teal-2); }
h2 { font-size: clamp(2rem, 4.2vw, 4rem); line-height: .95; margin: 0; }
h3 { margin: 0 0 .6rem; font-size: 1.25rem; line-height: 1; }
p { line-height: 1.55; }

.site-header {
  position: fixed; inset: 0 0 auto; height: 86px; z-index: 50;
  display: flex; align-items: center; gap: 26px; padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: white; background: linear-gradient(90deg, rgba(3,26,52,.96), rgba(3,26,52,.88));
  border-bottom: 1px solid rgba(255,255,255,.08); transition: .25s ease;
}
.site-header.is-scrolled { height: 72px; box-shadow: 0 10px 35px rgba(3,26,52,.28); }
.brand img { width: 122px; }
.site-nav { display: flex; gap: 24px; align-items: center; margin-left: auto; }
.site-nav a { font-size: .88rem; opacity: .9; padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--gold); border-color: var(--teal); }
.header-cta { margin-left: 8px; }
.menu-button { display: none; margin-left: auto; background: transparent; color: white; border: 1px solid rgba(255,255,255,.35); padding: 10px 14px; border-radius: 999px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 4px; border: 2px solid transparent;
  font-size: .92rem; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(3,26,52,.22); }
.button-yellow { background: var(--gold); color: var(--navy); }
.button-teal { background: var(--teal); color: white; }
.button-outline { border-color: rgba(255,255,255,.55); color: white; background: rgba(255,255,255,.06); }
.button.full { width: 100%; }

.section { padding: 78px 0; }
.section-dark { background: var(--navy); color: white; }
.light { background: var(--white); }
.eyebrow { color: var(--gold); font-size: 1.05rem; margin: 0 0 12px; }
.eyebrow.dark { color: var(--teal); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-heading p { color: rgba(255,255,255,.72); }

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  padding-top: 86px;
  padding-bottom: 86px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,26,52,.98) 0%, rgba(3,26,52,.78) 44%, rgba(3,26,52,.08) 100%); z-index: 1; }
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 150px;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(140% 90% at 50% 100%, var(--navy) 0%, var(--navy) 54%, transparent 55%),
    linear-gradient(180deg, rgba(3,26,52,0) 0%, rgba(3,26,52,.56) 78%, var(--navy) 100%);
}
.hero-media { position: absolute; inset: 0; background: url('../assets/hero-hastings-sport.jpg') center right / cover no-repeat; filter: saturate(1.1) contrast(1.04); }
.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hero-copy { max-width: 650px; margin-top: 32px; }
.hero-lede { color: white; font-size: 1.25rem; max-width: 600px; margin: 24px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.location-pill { margin-top: 18px; display: inline-flex; color: white; border: 1px solid rgba(0,182,166,.7); background: rgba(0,159,145,.18); padding: 8px 16px; border-radius: 999px; font-weight: 700; }

.problem-band {
  position: relative;
  padding: 0 0 78px;
  margin-top: 0;
  background: var(--navy);
  color: white;
  overflow: visible;
}
.problem-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 10%, rgba(0,182,166,.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(247,181,0,.12), transparent 24%),
    linear-gradient(135deg, rgba(0,159,145,.10), transparent 52%, rgba(247,181,0,.07));
}
.school-involved::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,159,145,.16), transparent 40%, rgba(247,181,0,.08));
  pointer-events: none;
}
.problem-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(520px, 1.25fr);
  gap: 42px;
  align-items: center;
  padding: 42px 46px;
  border-radius: 28px;
  background: linear-gradient(135deg, #072a67 0%, #031a34 76%);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.12);
  border-top: 5px solid var(--teal);
  transform: translateY(-36px);
  overflow: visible;
}
.problem-grid::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  background:
    linear-gradient(115deg, rgba(0,182,166,.12), transparent 36%),
    linear-gradient(300deg, rgba(247,181,0,.10), transparent 34%);
  pointer-events: none;
}
.problem-grid > * {
  position: relative;
  z-index: 1;
}
.problem-grid h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: .92;
  max-width: 590px;
}
.problem-grid p {
  max-width: 610px;
  color: rgba(255,255,255,.82);
  font-size: 1.02rem;
}
.problem-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.problem-icons article {
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.14);
  padding: 6px 12px;
}
.problem-icons strong { display: block; color: var(--gold); font-family: Impact, Haettenschweiler, "Arial Black"; font-style: italic; text-transform: uppercase; margin-top: 10px; }
.line-icon, .journey-icon { width: 54px; height: 54px; margin: auto; position: relative; color: white; }
.line-icon::before, .line-icon::after, .journey-icon::before, .journey-icon::after { content: ""; position: absolute; }
.person-x::before { width: 24px; height: 24px; border: 4px solid currentColor; border-radius: 50%; left: 15px; top: 2px; }
.person-x::after { width: 42px; height: 24px; border: 4px solid currentColor; border-top-left-radius: 42px; border-top-right-radius: 42px; border-bottom: 0; left: 6px; bottom: 4px; }
.calendar-x::before { inset: 6px; border: 4px solid currentColor; border-radius: 7px; }
.calendar-x::after { width: 34px; height: 4px; background: currentColor; left: 10px; top: 22px; box-shadow: 0 11px 0 currentColor; }
.signpost::before { width: 5px; height: 48px; background: currentColor; left: 24px; top: 3px; }
.signpost::after { width: 42px; height: 16px; border: 4px solid currentColor; left: 6px; top: 8px; transform: skewX(-25deg); }
.session::before { width: 32px; height: 32px; border: 4px solid currentColor; border-radius: 50%; left: 9px; top: 0; }
.session::after { width: 46px; height: 4px; background: currentColor; left: 4px; bottom: 8px; }

.feature-grid { display: grid; gap: 26px; }
.feature-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 12px 32px rgba(3,26,52,.08); }
.icon-circle { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 2rem; margin-bottom: 18px; }
.icon-circle.teal { background: var(--teal); }
.icon-circle.gold { background: var(--gold); color: var(--navy); }
.feature-card p { color: var(--muted); margin-bottom: 0; }

.children-experience { padding-top: 26px; }
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; text-align: center; }
.journey-item { position: relative; }
.journey-item:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 26px; color: var(--teal); font-size: 2rem; font-weight: 900; }
.journey-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--teal); margin-bottom: 16px; display: grid; place-items: center; color: white; font-size: 2rem; }
.journey-item:nth-child(even) .journey-icon { background: var(--gold); color: var(--navy); }
.journey-icon::before { content: attr(class); }
.shirt::before { content: "♜"; }
.ball::before { content: "●"; }
.medal::before { content: "★"; }
.pin::before { content: "⌖"; }
.arrow-up::before { content: "↗"; }
.journey-item h3 { color: var(--navy); }
.journey-item p { color: var(--muted); font-size: .95rem; }

.team-preview { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: 42px; align-items: center; }
.team-copy p { color: var(--muted); }
.team-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card { position: relative; min-height: 270px; padding: 20px 18px; border-radius: 18px; color: white; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.team-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 15%, rgba(255,255,255,.18), transparent 36%), linear-gradient(145deg, var(--team), var(--navy) 70%); z-index: -2; }
.team-card::after { content: ""; position: absolute; inset: 10px; border: 2px solid rgba(255,255,255,.28); border-radius: 14px; z-index: -1; }
.team-card.teal { --team: #00a897; }
.team-card.gold { --team: #f7b500; }
.team-card.purple { --team: #6b2fb9; }
.team-card.blue { --team: #1478b8; }
.team-card.red { --team: #d94332; }
.team-card.green { --team: #087f5b; }
.team-card.navy { --team: #09254a; }
.team-symbol { position: absolute; top: 20px; right: 20px; font-size: 3.5rem; color: var(--gold); opacity: .9; }
.team-school { font-size: 1rem; color: rgba(255,255,255,.85); }
.team-name { font-size: clamp(2rem, 3vw, 3.1rem); line-height: .85; margin: 4px 0 10px; }
.team-card p { margin: 0 0 12px; color: rgba(255,255,255,.78); font-size: .92rem; }
.team-card span { color: var(--gold); font-weight: 800; font-size: .78rem; text-transform: uppercase; }
.team-card-small { min-height: 230px; }
.concept-note { text-align: center; font-size: .9rem; color: var(--muted); margin: 22px auto 0; }

.school-involved { position: relative; }
.school-grid { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.school-benefit { text-align: center; border-left: 1px solid rgba(255,255,255,.16); padding: 0 12px; }
.school-benefit div { color: var(--gold); font-size: 2.2rem; margin-bottom: 12px; }
.school-benefit h3 { font-size: 1.02rem; color: white; }
.school-benefit p { color: rgba(255,255,255,.72); font-size: .9rem; }

.local-play { background: white; }
.play-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.play-card { background: var(--panel); border: 1px solid var(--line); padding: 28px; border-radius: var(--radius); }
.play-card span { font-family: Impact; font-size: 2.4rem; color: var(--teal); font-style: italic; }
.play-card p { color: var(--muted); }

.involved { background: linear-gradient(180deg, white, #f4f7f9); }
.involved-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.audience-card { background: white; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(3,26,52,.07); padding: 22px; text-align: center; }
.audience-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: var(--teal); color: white; font-size: 1.8rem; }
.audience-card:nth-child(2) .audience-icon { background: var(--gold); color: var(--navy); }
.audience-card:nth-child(4) .audience-icon { background: #7048e8; }
.audience-card p { color: var(--muted); font-size: .92rem; }
.interest-panel { background: white; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.interest-panel h2 { font-size: 2.3rem; }
.interest-form { display: grid; gap: 14px; margin-top: 24px; }
.interest-form label { display: grid; gap: 7px; font-weight: 800; color: var(--navy); }
.interest-form input, .interest-form select, .interest-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; background: #fbfcfd; }
.form-note { color: var(--teal); font-weight: 800; font-size: .9rem; }

.all-teams { background: white; }
.all-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.site-footer { padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 40px; align-items: start; }
.footer-logo { width: 140px; margin-bottom: 14px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.72); }
.site-footer a { display: block; margin: 8px 0; }
.site-footer h3 { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(22px); transition: .65s ease; transition-delay: calc(var(--delay, 0) * 70ms); }
.reveal[data-delay="1"] { --delay: 1; }
.reveal[data-delay="2"] { --delay: 2; }
.reveal[data-delay="3"] { --delay: 3; }
.reveal[data-delay="4"] { --delay: 4; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .site-nav, .header-cta { display: none; }
  .menu-button { display: block; }
  .site-nav.is-open { display: flex; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: stretch; background: var(--navy); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
  .hero-grid, .problem-grid, .split-grid, .involved-grid { grid-template-columns: 1fr; }
  .hero { min-height: 650px; }
  .hero::before { background: linear-gradient(90deg, rgba(3,26,52,.98), rgba(3,26,52,.62)); }
  .problem-icons, .audience-grid, .team-cards, .all-team-grid, .play-grid { grid-template-columns: repeat(2, 1fr); }
  .journey, .school-grid { grid-template-columns: repeat(3, 1fr); }
  .journey-item:not(:last-child)::after { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-header { height: 72px; padding-inline: 14px; }
  .brand img { width: 96px; }
  .hero { min-height: 700px; }
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.35rem; }
  .section { padding: 58px 0; }
  .hero-actions, .button { width: 100%; }
  .problem-icons, .feature-grid.three, .journey, .team-cards, .all-team-grid, .school-grid, .play-grid, .audience-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* Clean hero to problem transition
   No white wedge or overlapping divider. The hero fades into navy,
   and the problem section sits as a floating branded panel. */
@media (max-width: 980px) {
  .hero {
    min-height: 640px;
    padding-bottom: 78px;
  }

  .hero::after {
    height: 120px;
  }

  .problem-band {
    padding-bottom: 62px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    transform: translateY(-26px);
    padding: 36px 28px;
    gap: 30px;
  }

  .problem-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-icons article:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 610px;
    padding-bottom: 60px;
  }

  .hero-copy {
    margin-top: 24px;
  }

  .hero::after {
    height: 90px;
  }

  .problem-grid {
    transform: translateY(-18px);
    padding: 32px 22px;
    border-radius: 22px;
  }

  .problem-grid h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .problem-icons {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .problem-icons article {
    border-left: 0;
    padding: 8px 6px;
  }
}

.nowrap { white-space: nowrap; }


/* Children experience moved into the second homepage band */
.children-band .section-intro p {
  max-width: 620px;
}

.children-band-items article {
  min-height: 132px;
}

.children-band-items .journey-icon {
  color: white;
  margin-bottom: 8px;
}

.children-band-items strong {
  color: var(--gold);
}


/* Second band: children experience stacked layout */
.problem-grid.children-band-stacked {
  display: block;
}

.children-band-header {
  max-width: 980px;
  margin: 0 auto 28px;
  text-align: center;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.children-band-header h2 {
  margin-bottom: 14px;
}

.children-band-header p {
  margin: 0 auto;
  max-width: 860px;
  color: rgba(255,255,255,.84);
}

.children-experience-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.children-experience-list article {
  text-align: center;
  padding: 14px 10px 4px;
}

.children-experience-list .journey-icon {
  margin: 0 auto 14px;
  color: white;
}

.children-experience-list h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Impact, Haettenschweiler, "Arial Black";
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.05;
}

.children-experience-list p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .93rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .children-experience-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .children-band-header {
    text-align: left;
    margin-bottom: 22px;
  }

  .children-experience-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .children-experience-list article {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    text-align: left;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .children-experience-list article:last-child {
    border-bottom: 0;
  }

  .children-experience-list .journey-icon {
    margin: 0;
  }
}


/* Second band header: left title, vertical divider, body copy */
.children-band-stacked .children-band-header {
  max-width: none;
  margin: 0 0 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  display: grid;
  grid-template-columns: minmax(260px, .75fr) 1px minmax(420px, 1.25fr);
  gap: 28px;
  align-items: center;
  text-align: left;
}

.children-band-stacked .children-band-header h2 {
  margin: 0;
  max-width: 420px;
}

.children-band-stacked .children-band-header p {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,.84);
  font-size: 1.05rem;
  line-height: 1.55;
}

.children-band-divider {
  width: 1px;
  height: 92px;
  background: rgba(255,255,255,.28);
}

@media (max-width: 860px) {
  .children-band-stacked .children-band-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 22px;
  }

  .children-band-divider {
    width: 100%;
    height: 1px;
  }

  .children-band-stacked .children-band-header h2,
  .children-band-stacked .children-band-header p {
    max-width: none;
  }
}


/* Keep the second band title phrase tighter */
.children-band-stacked .children-band-header h2 {
  max-width: 520px;
}


/* Make the second band header columns evenly split */
.children-band-stacked .children-band-header {
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
}

.children-band-stacked .children-band-header h2,
.children-band-stacked .children-band-header p {
  max-width: none;
}

@media (max-width: 860px) {
  .children-band-stacked .children-band-header {
    grid-template-columns: 1fr;
  }
}
