/* ---------- Design tokens ---------- */
:root {
  --accent: #5358f3;
  --accent-dark: #3f43d6;
  --ink: #223127;
  --paper: #b1cff3;
  --card: #ffffff;
  --line: #e4efe2;
  --shadow: 0 10px 30px rgba(34, 49, 39, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

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

/* ---------- Top nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(177, 207, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.2px;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand .ball {
  font-size: 1.4rem;
}

.brand-dropdown {
  position: relative;
}

.brand-toggle {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.brand-caret {
  font-size: 0.9rem;
  color: #8a978c;
  transition: transform 0.2s ease;
}

.brand-dropdown.open .brand-caret {
  transform: rotate(180deg);
}

.brand-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 160px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 60;
}

.brand-dropdown.open .brand-menu {
  display: flex;
}

.brand-menu a {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.brand-menu a:hover,
.brand-menu a.active {
  background: #e7e8fd;
  color: var(--accent-dark);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--accent);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-links a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.nav-links a.active {
  background: var(--accent-dark);
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--accent-dark);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-portrait { height: auto; aspect-ratio: 3 / 4; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e7e8fd;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero h1 span {
  color: #000;
}

.hero p.lede {
  font-size: 0.95rem;
  color: #46574c;
  max-width: 640px;
  margin: 0 0 28px;
}

.hero p.lede.placeholder-text {
  color: #8a978c;
  font-style: italic;
  font-weight: 400;
}

.hero-video {
  max-width: 560px;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover { transform: translateY(-2px); }

.hero-portrait {
  width: 100%;
  height: 100%;
  max-width: 320px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Quick stats strip ---------- */
.stats {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.stats .tile-block--under-profile {
  grid-column: 3;
}

@media (max-width: 720px) {
  .stats .tile-block--under-profile { grid-column: auto; }
}

.lang-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lang-text {
  text-align: left;
}

.lang-flag {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

/* ---------- One-page sections (Academics, Team History, Profile, Videos) ---------- */
.page-section {
  scroll-margin-top: 90px;
  border-top: 1px solid var(--line);
}

/* ---------- Generic page header ---------- */
.page-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 30px;
  text-align: center;
}

.page-hero .hero-eyebrow { margin-bottom: 14px; }

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin: 0 0 10px;
  color: var(--accent);
}

.page-hero p {
  color: #46574c;
  max-width: 560px;
  margin: 0 auto;
}

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 90px;
}

.placeholder-panel {
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 28px;
  text-align: center;
  color: #6a7a6d;
}

.placeholder-panel .icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

@media (max-width: 800px) {
  .placeholder-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .placeholder-grid { grid-template-columns: 1fr; }
}

.placeholder-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 540px) {
  .placeholder-grid.grid-4 { grid-template-columns: 1fr; }
}

.placeholder-grid.grid-5 {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 18px;
}

@media (max-width: 900px) {
  .placeholder-grid.grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .placeholder-grid.grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .placeholder-grid.grid-5 { grid-template-columns: 1fr; }
}

.placeholder-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
  color: #8a978c;
  border-style: dashed;
  text-align: center;
  font-size: 0.85rem;
}

.event-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* ---------- Filled-in info tiles (school info, stats, etc.) ---------- */
.tile-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tile-block .tile-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-dark);
  text-align: center;
}

.tile-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tile-logos--wide {
  gap: 22px;
}

.tile-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 56px;
  max-width: 40%;
  flex-shrink: 1;
  min-width: 0;
}

.tile-logo--nudge-down {
  position: relative;
  top: 5px;
}

.info-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  text-align: center;
}

.info-tile .tile-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.info-tile .tile-value.lg {
  font-size: 1.7rem;
  color: #000;
}

.info-tile .tile-value.pending {
  font-weight: 600;
  color: #8a978c;
}

.info-tile .tile-note {
  font-size: 0.78rem;
  color: #6a7a6d;
}

.info-tile .tile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.info-tile .tile-list a:hover {
  text-decoration: underline;
}

.tile-list--stats {
  gap: 12px;
}

.stat-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
  color: var(--ink);
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.info-tile .tile-tag {
  align-self: center;
  background: #e7e8fd;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.info-tile-link {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.info-tile-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.info-tile-link .tile-value {
  color: #000;
}

/* ---------- Coach comments / quote cards ---------- */
#coach-comments {
  scroll-margin-top: 90px;
}

.section-title {
  font-size: 1.4rem;
  margin: 0 0 20px;
  text-align: center;
  color: var(--accent-dark);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}

.quote-mark {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  font-weight: 700;
  margin-bottom: 4px;
}

.quote-text {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.quote-author {
  font-size: 0.85rem;
  font-weight: 600;
}

.coach-name-wrap {
  position: relative;
  display: inline-block;
  border-bottom: 1px dashed var(--accent);
  cursor: default;
}

/* Sits flush against the name (top: 100%, no gap) so the pointer never
   crosses dead space moving from the name down into the bubble; the
   visual gap lives inside this box as padding-top instead, which keeps
   it part of the hoverable area. */
.coach-contact-bubble {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.coach-contact-bubble-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #14161c;
  color: #fff;
  font-weight: 500;
  font-size: 0.75rem;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  user-select: text;
}

.coach-contact-bubble-inner::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #14161c;
}

.coach-name-wrap:hover .coach-contact-bubble,
.coach-name-wrap:focus .coach-contact-bubble,
.coach-contact-bubble:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.placeholder-text {
  color: #8a978c;
  font-style: italic;
  font-weight: 400;
}

/* ---------- Achievements timeline ---------- */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 4px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #14161c;
  transform: translateX(-50%);
}

.tl-cap {
  position: relative;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border-radius: 50%;
  background: #14161c;
  z-index: 2;
}

.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  padding: 30px 0;
}

.tl-col-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.tl-node {
  width: 56px;
  height: 56px;
  background: var(--card);
  border: 2px solid #14161c;
  border-radius: 10px;
}

.tl-col-left { padding-right: 34px; }
.tl-col-right { padding-left: 34px; }

.tl-text {
  position: relative;
  max-width: 320px;
}

.tl-col-left .tl-text {
  margin-left: auto;
  text-align: right;
}

.tl-col-right .tl-text {
  margin-right: auto;
  text-align: left;
}

.tl-col-left .tl-text::after,
.tl-col-right .tl-text::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 36px;
  height: 2px;
  background: #14161c;
}

.tl-col-left .tl-text::after {
  left: 100%;
  right: auto;
  margin-left: 6px;
}
.tl-col-right .tl-text::before {
  right: 100%;
  left: auto;
  margin-right: 6px;
}

.tl-year {
  font-size: 1.2rem;
  font-weight: 800;
  color: #14161c;
  letter-spacing: 0.3px;
}

.tl-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-dark);
  margin: 2px 0 6px;
}

.tl-location {
  font-size: 0.8rem;
  color: #6a7a6d;
  margin: 0 0 6px;
}

.tl-photos-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 6px;
}

.tl-photos-link:hover {
  text-decoration: underline;
}

.tl-photos-link span {
  transition: transform 0.15s ease;
  display: inline-block;
}

.tl-photos-link:hover span {
  transform: translateX(3px);
}

.tl-desc {
  margin: 0;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .timeline::before { left: 22px; }
  .tl-cap { margin-left: 16px; margin-right: auto; }

  .tl-row {
    grid-template-columns: 44px 1fr;
    padding: 20px 0;
  }

  .tl-col-left,
  .tl-col-right {
    grid-column: 2;
    padding: 0 0 0 20px;
  }

  .tl-col-center { grid-column: 1; }

  .tl-node { width: 44px; height: 44px; }

  .tl-col-left .tl-text,
  .tl-col-right .tl-text {
    margin: 0;
    max-width: none;
    text-align: left;
  }

  .tl-col-left .tl-text::after,
  .tl-col-right .tl-text::before {
    left: -20px;
    right: auto;
    width: 20px;
  }
}

/* ---------- Event gallery pages ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.back-link:hover {
  text-decoration: underline;
}

.back-link-wrap {
  text-align: center;
  margin-top: 28px;
}

.event-description {
  max-width: 720px;
  margin: 0 auto 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.event-description p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ---------- Achievements CTA (bottom of one-page home) ---------- */
.achievements-cta {
  border-top: 1px solid var(--line);
  background: var(--card);
  text-align: center;
  padding: 60px 24px 80px;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta-inner .hero-eyebrow { margin-bottom: 14px; }

.cta-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 10px;
  color: var(--accent);
}

.cta-inner p {
  color: #46574c;
  margin: 0 0 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 24px;
  text-align: center;
  color: #8a978c;
  font-size: 0.85rem;
}
