/* ============================================================
   Programs page styles (scoped to programs.html)
   Reuses main.css tokens: --color-dark/light/accent, fonts, .hero, .btn, .cta-band
   ============================================================ */

/* --- Split section (image half + copy half), alternating sides --- */
.prog-split {
  display: flex;
  flex-wrap: wrap;
  background: var(--color-light);
}
.prog-media {
  flex: 1 1 50%;
  min-height: 480px;
  background-color: #cdbfae; /* fallback tint while the photo loads or if a path breaks */
  background-size: cover;
  background-position: center;
}
.prog-copy {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 4.5vw, 4.5rem);
}
/* dark variant (Competition Team) */
.prog-split.dark { background: var(--color-dark); color: var(--color-text-on-dark); }

.prog-copy h2 {
  /* font-family + weight come from the global h1,h2,h3 rule in main.css */
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  margin-bottom: 1.1rem;
}
.prog-copy > p {
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 46ch;
}

/* Shared uppercase accent-label treatment (tagline + subheads) */
.prog-tagline,
.prog-subhead {
  font-family: var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-text);
}

/* Competition Team's split is the one dark (.prog-split.dark) instance of
   .prog-subhead ("What to Expect") - restore the lighter accent there, since
   the darker text variant fails against this dark background. */
.prog-split.dark .prog-subhead {
  color: var(--color-accent);
}
.prog-tagline {
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}
.prog-subhead {
  font-size: 0.82rem;
  margin: 1.6rem 0 0.9rem;
}
.prog-split .btn { margin-top: 1.9rem; }

/* --- Checklist-style benefits / criteria (two columns) --- */
.prog-benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.75rem;
  width: 100%;
}
.prog-benefits li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.97rem;
  line-height: 1.4;
}
.prog-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* --- Pointe levels --- */
.prog-levels {
  display: grid;
  gap: 1.1rem;
  width: 100%;
  margin-bottom: 0.5rem;
}
.prog-levels h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.prog-levels p {
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 52ch;
}

/* --- Centered section heading (Journey, Program Information) --- */
.prog-center-heading {
  /* font-family + weight come from the global h1,h2,h3 rule in main.css */
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  text-align: center;
  margin-bottom: 2.75rem;
}

/* --- Your Journey at Elevation --- */
/* The journey row grew from 7 steps to 9 (Session 20 re-tiering), which pushed
   it onto two lines on desktop. The side padding, step width, gap and arrow are
   all trimmed just enough to keep all 9 steps on one line from 1101px (the
   site's desktop breakpoint) up. Step width is floored by the longest label,
   "Comp Team" at 82px. */
.prog-journey-section {
  background: var(--color-white);
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.5rem, 2.5vw, 3rem);
}
.prog-journey {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem 0.25rem;
  max-width: 1180px;
  margin: 0 auto;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 92px;
}
.journey-icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.journey-icon svg { width: 26px; height: 26px; }
.journey-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.journey-age {
  font-size: 0.78rem;
  color: #4a443e; /* matches the site-wide muted caption color in main.css */
  margin-top: 0.15rem;
}
.journey-arrow {
  color: var(--color-accent-text);
  align-self: center;
  margin-top: 22px;
  font-size: 0.95rem;
}

/* --- Program Information cards --- */
.prog-info-section {
  background: var(--color-light);
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
}
.prog-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.prog-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.1);
}
.prog-card-media {
  height: 130px;
  background-color: #b7a894; /* fallback tint while the photo loads or if a path breaks */
  background-size: cover;
  background-position: center;
}
.prog-card span {
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prog-card span span { padding: 0; color: var(--color-accent-text); font-size: 1rem; }

/* --- Responsive ---
   Splits stack at 1024px, the same width main.css's split sections
   (.mission, .intensive-band, .season-cta) stack, so the tablet experience
   is consistent across pages. The .reverse image-side swap only exists on
   the side-by-side layout, so it lives inside the min-width query and the
   stacked layout needs no order overrides at all. */
@media (min-width: 1025px) {
  .prog-split.reverse .prog-media { order: 2; }
  .prog-split.reverse .prog-copy { order: 1; }
}
@media (max-width: 1024px) {
  .prog-media,
  .prog-copy { flex: 1 1 100%; }
  .prog-media { min-height: 300px; }
}
@media (max-width: 860px) {
  .prog-benefits { grid-template-columns: 1fr; }
  .prog-cards { grid-template-columns: 1fr; }
  .journey-arrow { transform: rotate(90deg); margin: 0.1rem 0; }
  .prog-journey { flex-direction: column; align-items: center; }
  .journey-step { width: auto; }
}
