/* /courses/ catalogue page — hero, journey stepper, filter bar, mode legend,
   stage sections + cards, closing band. Relies on landing.css for :root tokens
   (--brand/--brand-active/--brand-tint/--brand-wash/--brand-deep/--cta/--cta-deep/
   --text/--text-mid/--text-soft/--border/--border-strong), the site fonts,
   nav/footer chrome, .btn-primary and .reveal. Layout/copy lifted from the
   `DVI Courses.html` visual mock — tokens and fonts are ours, not the mock's. */

/* ── HERO ── */
.p-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-bottom: 0.5px solid var(--border);
  min-height: 420px;
  margin-top: 68px;
}
.p-hero-left {
  padding: 80px 64px 72px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.p-hero-left::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 0.5px;
  background: var(--border);
}
.breadcrumb {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .here { color: var(--brand-deep); }
.p-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.p-title em { font-style: italic; color: var(--text-mid); }
.p-lede { font-size: 16px; color: var(--text-mid); line-height: 1.85; max-width: 520px; }
.p-hero-right {
  background: var(--brand-wash) center/cover;
  position: relative;
}
.p-hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(30,42,58,0) 40%, rgba(30,42,58,0.28) 100%);
}

/* ── JOURNEY STEPPER ── */
.journey {
  background: var(--brand);
  color: var(--text);
  padding: 72px 80px;
  border-bottom: 0.5px solid var(--border);
}
.j-eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.j-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 8px;
}
.j-title em { font-style: italic; }
.j-sub { font-size: 15px; color: var(--text-mid); max-width: 1100px; margin-bottom: 48px; }
.j-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid var(--border);
}
.j-step {
  padding: 28px 28px 30px;
  border-right: 0.5px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
  background: none;
  border-top: none;
  border-bottom: none;
  font-family: inherit;
  color: inherit;
}
.j-step:first-child { padding-left: 0; }
.j-step:last-child { border-right: none; }
.j-step::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-deep);
  transition: width 0.4s ease;
}
.j-step:first-child::before { left: 0; }
.j-step:hover::before { width: 100%; }
.j-step:hover { background: rgba(30,42,58,0.04); }
.j-step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.j-n { font-family: 'EB Garamond', Georgia, serif; font-size: 16px; color: var(--text-mid); letter-spacing: 0.1em; }
.j-name { font-family: 'EB Garamond', Georgia, serif; font-size: 25px; font-weight: 500; transition: color 0.25s; }
.j-step:hover .j-name { color: var(--text); }
.j-kicker { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 12px; }
.j-blurb { font-size: 14px; color: var(--text-mid); line-height: 1.75; }
.j-count {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-top: 16px;
  display: block;
  transition: color 0.25s;
}
.j-step:hover .j-count { color: var(--text); }

/* ── FILTER BAR (sticky, under the fixed nav) ── */
.filters {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: rgba(250,250,250,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 80px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  min-height: 62px;
}
.f-group { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.f-label {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-right: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.f-label::after { content: ''; display: block; width: 1px; height: 12px; background: var(--border-strong); }
.chip {
  appearance: none;
  background: none;
  border: 0.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 7px 15px;
  transition: all 0.2s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); background: rgba(30,42,58,0.04); border-color: var(--border); }
.chip.on { color: var(--text); border-color: var(--brand); background: var(--brand-active); }
.chip.on:hover { background: var(--brand-active); }
.f-count { margin-left: auto; font-size: 12px; letter-spacing: 0.08em; color: var(--text-soft); white-space: nowrap; }

/* ── MODE LEGEND ── */
.legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 0.5px solid var(--border);
  background: var(--brand-wash);
}
.legend-item { padding: 26px 40px; border-right: 0.5px solid var(--border); background: var(--surface); transition: background 0.2s; }
.legend-item:hover { background: var(--brand-tint); }
.legend-item:last-child { border-right: none; }
.legend-k { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 8px; }
.legend-n { font-family: 'EB Garamond', Georgia, serif; font-size: 21px; margin-bottom: 4px; }
.legend-d { font-size: 13.5px; color: var(--text-soft); line-height: 1.7; }

/* ── STAGE SECTIONS ── */
.stage { padding: 80px; border-bottom: 0.5px solid var(--border); }
.stage.alt { background: var(--brand-wash); }
.stage-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 44px;
}
.stage-eyebrow { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 14px; }
.stage-title { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(32px, 3.8vw, 50px); font-weight: 400; line-height: 1.1; }
.stage-blurb { font-size: 16px; color: var(--text-mid); line-height: 1.85; max-width: 600px; }
.stage-empty,
.stage-empty-static {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--text-soft);
  padding: 36px 0;
}
.stage-empty-static a { color: var(--brand-deep); }
.stage.alt .stage-eyebrow { color: var(--text); }
.stage.alt .stage-empty,
.stage.alt .stage-empty-static { color: var(--text-mid); }
.stage.alt .stage-empty-static a { color: var(--text); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
}
.c-card {
  background: var(--surface);
  padding: 34px 36px 30px;
  display: flex;
  flex-direction: column;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
  color: inherit;
  text-decoration: none;
}
/* An odd last card spans the row so the grid never shows an empty tinted cell. */
.c-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stage.alt .c-card { background: var(--surface); }
.c-card:hover { background: var(--brand-tint); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(30,42,58,0.08); z-index: 2; position: relative; }
.c-card-level { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 12px; }
.c-card-title { font-family: 'EB Garamond', Georgia, serif; font-size: 25px; font-weight: 500; line-height: 1.2; margin-bottom: 12px; transition: color 0.22s; }
.c-card:hover .c-card-title { color: var(--brand-deep); }
.c-card-desc { font-size: 14.5px; color: var(--text-soft); line-height: 1.75; margin-bottom: 22px; }
.c-card-meta { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 18px; border-top: 0.5px solid var(--border); margin-bottom: 18px; }
.cm-k { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft); display: block; margin-bottom: 3px; }
.cm-v { font-family: 'EB Garamond', Georgia, serif; font-size: 17px; color: var(--text); }
.c-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; flex-wrap: wrap; }
.mode-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-tag {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 0.5px solid var(--border-strong);
  padding: 5px 11px;
  transition: border-color 0.22s, color 0.22s;
}
.mode-tag[data-mode="person"] { color: var(--text); border-color: var(--text); }
.c-card:hover .mode-tag { border-color: var(--text-soft); }
.c-go {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.c-go::after { content: '→'; transition: transform 0.2s; }
.c-card:hover .c-go { color: var(--brand-deep); }
.c-card:hover .c-go::after { transform: translateX(4px); }
.c-go.muted { color: var(--text-soft); }

/* The final "see everything at DV Home" tile in the Retreats grid. */
.c-card-link {
  background: var(--brand-tint);
  border: 1px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px;
}
.c-card-link:hover { background: var(--brand-active); }
.c-card-link-arrow { transition: transform 0.2s; }
.c-card-link:hover .c-card-link-arrow { transform: translateX(4px); }

/* ── CLOSING ── */
.closing {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  justify-items: start;
  padding: 64px 80px;
  background: var(--brand-wash);
  border-bottom: 0.5px solid var(--border);
}
.closing-title { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(28px, 3vw, 40px); font-weight: 400; line-height: 1.15; margin-bottom: 10px; }
.closing-title em { font-style: italic; color: var(--text-mid); }
.closing-sub { font-size: 15px; color: var(--text-mid); max-width: 520px; }

/* ── BREAKPOINTS ── */
@media (max-width: 1024px) {
  .p-hero { grid-template-columns: 1fr; }
  .p-hero-left { padding: 56px 32px; }
  .p-hero-left::after { display: none; }
  .p-hero-right { min-height: 260px; }
  .journey { padding: 56px 32px; }
  .j-track { grid-template-columns: 1fr 1fr; }
  .j-step { padding: 26px 24px; }
  .j-step:nth-child(2) { border-right: none; }
  .j-step:nth-child(1), .j-step:nth-child(2) { border-bottom: 0.5px solid var(--border); }
  .filters { padding: 12px 32px; gap: 20px; }
  .f-count { margin-left: 0; }
  .legend { grid-template-columns: 1fr; }
  .legend-item { border-right: none; border-bottom: 0.5px solid var(--border); }
  .legend-item:last-child { border-bottom: none; }
  .stage { padding: 56px 32px; }
  .stage-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .card-grid { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; padding: 48px 32px; }
}
@media (max-width: 640px) {
  .p-hero-left { padding: 44px 20px; }
  .journey { padding: 48px 20px; }
  .j-track { grid-template-columns: 1fr; }
  .j-step { border-right: none; border-bottom: 0.5px solid var(--border); padding: 24px 0; }
  .filters { padding: 12px 20px; }
  .stage { padding: 48px 20px; }
  .closing { padding: 40px 20px; }
}
