/* ==========================================================================
   Athens Elite VBC — site styles
   Brand colors, fonts, and spacing live in the variables below.
   ========================================================================== */

:root {
  --green: #1d9341;
  --green-bright: #25b352;
  --green-dark: #146b2f;
  --green-tint: #eaf6ee;
  --ink: #0b0c0b;
  --ink-2: #151816;
  --text: #1b1d1c;
  --muted: #5d6460;
  --line: #e6e8e6;
  --surface: #fff;
  --surface-2: #f5f6f4;
  --display-font: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max-width: 1200px;
  --content-width: 920px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 20, 0.04), 0 8px 24px rgba(16, 24, 20, 0.06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 20, 0.06), 0 18px 40px rgba(16, 24, 20, 0.12);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; }

a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); }

:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 3px; border-radius: 4px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) { .container { padding: 0 16px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 200;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-bright);
}

/* ---------- Buttons ---------- */

.button,
.wp-block-button__link,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
  background: var(--green-bright);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(29, 147, 65, 0.35);
}
.button-sm { padding: 10px 20px; font-size: 0.875rem; }
.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.75em 0; }

/* ---------- Header / navigation ---------- */

.site-header {
  /* Floats transparently over the hero / page header until the page scrolls. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
}

.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(11, 12, 11, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { display: block; width: 108px; height: auto; }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu > li { position: relative; }

.nav-menu > li > a,
.submenu-toggle {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-menu > li > a:hover,
.submenu-toggle:hover,
.submenu-toggle[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-menu > li > a[aria-current="page"],
.submenu-toggle.is-current { color: #fff; }

.submenu-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.submenu-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }

.submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.submenu::before { /* hover bridge between toggle and panel */
  content: "";
  position: absolute;
  inset: -12px 0 auto 0;
  height: 12px;
}
.submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
}
.submenu a:hover,
.submenu a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.07); }
.submenu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--green-bright); }

.submenu-toggle[aria-expanded="true"] + .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (hover: hover) and (min-width: 1101px) {
  .has-submenu:hover .submenu { opacity: 1; visibility: visible; transform: none; }
}

.nav-cta-item { margin-left: 10px; }
.nav-menu > li > a.button { color: #fff; background: var(--green); padding: 10px 20px; }
.nav-menu > li > a.button:hover { background: var(--green-bright); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 40px;
    background: var(--ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu > li { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .nav-menu > li > a,
  .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 1.05rem;
    border-radius: 0;
  }
  .nav-menu > li > a:hover,
  .submenu-toggle:hover,
  .submenu-toggle[aria-expanded="true"] { background: none; }
  .submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 12px 8px;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .submenu::before { display: none; }
  .submenu-toggle[aria-expanded="true"] + .submenu { display: block; }
  .nav-cta-item { margin: 24px 0 0; border-bottom: 0 !important; }
  /* backdrop-filter would trap the fixed menu inside the header, so use a solid bar on small screens */
  .site-header.is-scrolled,
  .menu-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--ink);
  }
  .menu-open .site-header { background: var(--ink); }
  .nav-cta-item .button { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Home ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    radial-gradient(70% 90% at 75% 40%, rgba(37, 179, 82, 0.28) 0%, rgba(37, 179, 82, 0) 60%),
    var(--ink);
  overflow: hidden;
  isolation: isolate;
}
/* Court-line illustration, tilted into perspective behind the headline. */
.hero-court {
  position: absolute;
  inset: 0;
  z-index: -2;
  perspective: 900px;
  overflow: hidden;
}
.hero-court img {
  position: absolute;
  width: 78%;
  max-width: none;
  left: 34%;
  top: 14%;
  transform: rotateX(58deg) rotateZ(-24deg);
}
@media (max-width: 1000px) {
  .hero-court img { width: 125%; left: 12%; top: 4%; }
}
@media (max-width: 700px) {
  .hero-court img { width: 150%; left: 5%; top: 8%; }
}
/* Alternative: a full-bleed photo (<img class="hero-media" src="...">) in place of .hero-court. */
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 12, 11, 0.85) 0%, rgba(11, 12, 11, 0.35) 50%, rgba(11, 12, 11, 0) 100%),
    linear-gradient(0deg, rgba(11, 12, 11, 0.8) 0%, rgba(11, 12, 11, 0) 35%);
}
.hero-content { width: 100%; padding-top: calc(var(--header-h) + 80px); padding-bottom: 96px; }
.hero h1 {
  font-family: var(--display-font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 24px;
  max-width: 15ch;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 112px 0; }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, 0.8); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section h2 {
  font-family: var(--display-font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1;
  margin: 0 0 16px;
  color: var(--ink);
}
.section-dark h2 { color: #fff; }
@media (max-width: 700px) { .section { padding: 80px 0; } }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.card:hover {
  color: var(--text);
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.card:hover::after { transform: scaleX(1); }
.card-index {
  font-family: var(--display-font);
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 40px;
}
.card h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin: 0 0 24px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; flex: 1; }
.card-link { font-weight: 600; font-size: 0.9rem; color: var(--green); }
.card-link span { display: inline-block; transition: transform 0.2s var(--ease); }
.card:hover .card-link span { transform: translateX(4px); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.pillars { display: grid; gap: 24px; margin: 28px 0 36px; }
.pillar { padding-left: 20px; border-left: 2px solid var(--green); }
.pillar h3 { margin: 0 0 6px; color: #fff; font-size: 1.15rem; font-weight: 600; }
.pillar p { margin: 0; font-size: 0.98rem; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 56px;
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(37, 179, 82, 0.35) 0%, rgba(37, 179, 82, 0) 55%),
    var(--ink);
  color: rgba(255, 255, 255, 0.8);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p:last-child { margin: 0; }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; } }

/* ---------- Page header ---------- */

.page-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 160% at 100% 0%, rgba(37, 179, 82, 0.22) 0%, rgba(37, 179, 82, 0) 60%),
    var(--ink);
  color: #fff;
  min-height: calc(var(--header-h) + 260px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 64px) 0 64px;
}
.page-header::after { /* subtle court-line texture */
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.015), 0 0 0 140px rgba(255, 255, 255, 0.01);
}
.page-header .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--content-width) + 48px); /* line the title up with the page text */
}
.page-header h1 {
  font-family: var(--display-font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.98;
  margin: 0;
  max-width: 18ch;
}
.page-intro { margin: 20px 0 0; max-width: 620px; color: rgba(255, 255, 255, 0.78); font-size: 1.15rem; }
@media (max-width: 600px) { .page-header { min-height: calc(var(--header-h) + 200px); padding: calc(var(--header-h) + 40px) 0 44px; } }

/* ---------- Page content ---------- */

.content {
  max-width: calc(var(--content-width) + 48px);
  padding-top: 64px;
  padding-bottom: 112px;
}
.content > :first-child { margin-top: 0; }
.content h2:first-child { margin-top: 0; } /* opening subheading, even inside a wrapper block */

.content h2,
.content h3 { color: var(--ink); }
.content h2 {
  font-family: var(--display-font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05;
  margin: 2em 0 0.6em;
}
.content h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 1.8em 0 0.6em;
}
.content h4 { font-size: 1.1rem; font-weight: 600; margin: 1.6em 0 0.4em; }
.content h5 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin: 2em 0 8px;
}
.content h5 + h2,
.content h5 + h3 { margin-top: 0; }
.content p,
.content ul,
.content ol { margin: 0 0 1.15em; }
.content ul,
.content ol { padding-left: 1.3em; }
.content li { margin-bottom: 0.35em; }
.content li::marker { color: var(--green); }
.content strong { font-weight: 600; color: var(--ink); }
.content a strong { color: inherit; }

.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* Images */
.wp-block-image { margin: 0 0 2em; }
.wp-block-image img { display: block; border-radius: var(--radius-sm); }
.wp-block-image.aligncenter,
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.aligncenter img { margin: 0 auto; }
figcaption { color: var(--muted); font-size: 0.875rem; margin-top: 0.75em; }
.team-photo { margin-bottom: 56px; }
.team-photo img { width: 100%; border-radius: var(--radius); }

/* Columns */
.wp-block-columns {
  display: flex;
  gap: 2em;
  margin-bottom: 2em;
}
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column[style*="flex-basis"] { flex-grow: 0; }
@media (max-width: 781px) {
  .wp-block-columns { flex-wrap: wrap; }
  .wp-block-column { flex-basis: 100% !important; }
}

/* Coach / roster cards */
.wp-block-columns:has(> .roster-item) { margin-bottom: 1.5em; }
.roster-item:not(:has(h4)) { display: none; } /* empty layout slots left over from WordPress */
.roster-item .wp-block-columns { gap: 0; margin: 0; flex-wrap: nowrap; align-items: center; }
.roster-item .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.roster-item .wp-block-column:first-child { max-width: 112px; flex-basis: 112px !important; }
.roster-item .wp-block-column:last-child { flex-basis: auto !important; flex-grow: 1; padding-left: 20px; }
.roster-item h4 { margin: 0 0 2px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.roster-item p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.roster-item p:first-of-type { color: var(--green); font-weight: 600; }
.roster-item figure { margin: 0; }
.roster-item img {
  margin: 0 !important;
  width: 112px !important;
  height: 112px !important;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  background: var(--surface-2);
}
.coach-bio { margin-top: -32px; margin-bottom: 80px; }

/* Media & text */
.wp-block-media-text {
  display: grid;
  grid-template-columns: 50% 1fr;
  align-items: center;
  gap: 2em;
  margin: 2em 0;
}
.wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 50%; }
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
.wp-block-media-text__media { margin: 0; }
.wp-block-media-text__media img { display: block; width: 100%; border-radius: var(--radius-sm); }
.wp-block-media-text__content > :last-child { margin-bottom: 0; }
.wp-block-media-text.is-vertically-aligned-top { align-items: start; }
@media (max-width: 600px) {
  .wp-block-media-text,
  .wp-block-media-text.has-media-on-the-right,
  .wp-block-media-text[style] { grid-template-columns: 1fr !important; }
  .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 0; }
  .wp-block-media-text__media img { max-width: 140px; }
}
/* Coach headshots laid out with media & text: keep them round like the cards. */
.wp-block-media-text h4 { margin-top: 0; }

/* Tables */
.wp-block-table {
  margin: 0 0 2em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
.wp-block-table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; }
.wp-block-table td,
.wp-block-table th {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.wp-block-table tr:last-child td { border-bottom: 0; }
.wp-block-table thead th,
.wp-block-table thead td,
.wp-block-table table:not(:has(thead)) tr:first-child td {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.wp-block-table tbody tr:hover td { background: #fafbfa; }
.wp-block-table figcaption { padding: 0 16px 12px; }

/* Accordions (details/summary) */
.wp-block-details { border-top: 1px solid var(--line); }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--line); }
.wp-block-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  font-weight: 500;
  font-size: 1.2rem;
  transition: transform 0.2s var(--ease);
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-bottom: 1.25em; }

/* File downloads */
.wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 1em;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.wp-block-file > a:first-of-type { font-weight: 600; color: var(--text); text-decoration: none; }
.wp-block-file object { display: none; }
.wp-block-file__button { padding: 8px 18px; font-size: 0.85rem; }

/* Misc */
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 3.5em 0; }
.wp-block-video video { width: 100%; border-radius: var(--radius-sm); }
.wp-block-group { margin-bottom: 1.5em; }

/* ---------- Sponsors ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0 64px;
}
@media (max-width: 520px) {
  .logo-grid { gap: 12px; }
  .logo-card { padding: 22px 14px 14px; gap: 14px; }
  .logo-card img { height: 64px; }
  .logo-card figcaption { padding-top: 12px; font-size: 0.75rem; }
}
.logo-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 36px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.logo-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.logo-card a { display: contents; }
.logo-card img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 96px;
  object-fit: contain;
}
.logo-card figcaption {
  margin: 0;
  padding-top: 16px;
  width: 100%;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: var(--radius);
  background: var(--green-tint);
  border: 1px solid rgba(29, 147, 65, 0.15);
}
.callout > div { flex: 1 1 380px; }
.content .callout h3 { margin: 0 0 8px; }
.callout p { margin: 0; }
@media (max-width: 600px) { .callout { padding: 28px 24px; } }

/* ---------- Staff ---------- */

.staff-feature {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 40px;
  align-items: start;
  margin: 32px 0 80px;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface-2);
}
.staff-feature-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.staff-feature .eyebrow { color: var(--green); margin-bottom: 4px; }
.content .staff-feature h3 {
  font-family: var(--display-font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 20px;
}
.staff-feature p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .staff-feature { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
  .staff-feature-photo { position: static; max-width: 320px; }
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}
@media (max-width: 860px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  /* compact horizontal cards on phones: photo beside the text */
  .staff-grid { grid-template-columns: 1fr; gap: 14px; }
  .staff-card { display: grid; grid-template-columns: 104px 1fr; }
  .staff-photo { height: 100%; min-height: 130px; aspect-ratio: auto; }
  .staff-body { padding: 14px 16px 16px; }
  .staff-team { margin-bottom: 6px; }
}
.staff-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease);
}
.staff-card:hover { box-shadow: var(--shadow); }
.staff-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  background: var(--surface-2);
}
.staff-body { padding: 20px 22px 22px; }
.staff-team {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.content .staff-card h3 { margin: 0; font-size: 1.2rem; }
.staff-role { margin: 2px 0 0 !important; color: var(--muted); font-size: 0.92rem; }
.staff-bio-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
  cursor: pointer;
}
.staff-bio-open::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.staff-bio-open:hover { color: var(--green-dark); }
.staff-bio-open:hover::after { transform: translateX(4px); }

/* Bio pop-up (native <dialog>) */
.bio-modal {
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.bio-modal[open] { display: flex; animation: bio-in 0.25s var(--ease); }
.bio-modal::backdrop { background: rgba(11, 12, 11, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes bio-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.bio-modal-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 32px;
  overflow-y: auto;
  width: 100%;
}
.bio-modal-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  position: sticky; /* stays in view while a long bio scrolls */
  top: 0;
}
.content .bio-modal h3 {
  font-family: var(--display-font);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2.1rem;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}
.bio-modal .staff-role { margin-top: 6px !important; }
.bio-modal-text { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.bio-modal-text p { margin: 0 0 1em; font-size: 0.98rem; line-height: 1.7; }
.bio-modal-text p:last-child { margin-bottom: 0; }
.bio-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.bio-modal-close:hover { background: var(--line); }
body.modal-open { overflow: hidden; }
@media (max-width: 640px) {
  .bio-modal { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .bio-modal-inner { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px 32px; }
  .bio-modal-photo { width: 120px; position: static; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 120px; height: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; margin: 0; line-height: 1.6; }
.footer-heading {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
