/* SUFA 2027 programs: components added for the brochure-aligned site */

.prog-tag {
  font-family: var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--olive-bright); font-size: 1rem; margin: 0 0 .3rem;
}

/* ---------------- program cards: one component for home, programs page and "more programs" */
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.more-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .15s ease, transform .2s ease;
}
.more-card:hover { border-color: var(--olive-bright); transform: translateY(-3px); }
.more-card:focus-visible { outline: 2px solid var(--olive-bright); outline-offset: 3px; }
.more-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.more-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .5s ease; }
.more-card:hover .more-img img { transform: scale(1.04); }
.more-body { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.more-body .prog-tag { margin: 0; }
.more-body strong {
  font-family: var(--display); font-weight: 400; letter-spacing: .04em;
  font-size: 1.6rem; line-height: 1.1; color: var(--paper);
}
.more-body .more-meta { color: var(--sand-dim); font-size: 1.05rem; }
.more-body .more-desc { color: var(--sand); font-size: 1.1rem; line-height: 1.5; margin-top: .3rem; }
.more-body .more-go {
  margin-top: auto; padding-top: .9rem;
  font-family: var(--display); letter-spacing: .1em; font-size: 1.05rem; color: var(--olive-bright);
}
.more-card:hover .more-go { color: var(--paper); }

/* five programs = 2 wide + 3: every cell is filled, the first two lead */
.prog-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.prog-grid > * { grid-column: span 2; }
.prog-grid > :nth-child(-n+2) { grid-column: span 3; }
.prog-grid > :nth-child(-n+2) .more-img { aspect-ratio: 16 / 9; }
.prog-grid > :nth-child(-n+2) strong { font-size: 2rem; }
.overview .page-lead { margin: 0 0 2rem; }

/* VR tile (no photo yet for the new program) */
.vr-tile {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(126,154,45,.10) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(126,154,45,.10) 22px 23px),
    radial-gradient(circle at 50% 45%, #2c3614, #12140d 70%);
  color: #efeadb; text-align: center;
}
.vr-word { font-family: var(--display); font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: .08em; }
.vr-sub { font-family: var(--display); letter-spacing: .16em; font-size: 1rem; color: #d9cfae; }

/* ---------------- program page */
/* details: four cards in one row under the subtitle, as wide as the page grid */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
}
.facts div { background: var(--ink-2); border: 1px solid var(--line); border-left: 2px solid var(--olive-bright); padding: .75rem 1rem; }
.facts dt {
  font-family: var(--display); letter-spacing: .1em; font-size: 1rem; line-height: 1.2;
  color: var(--sand-dim); text-transform: uppercase;
}
.facts dd { margin: .2rem 0 0; color: var(--paper); font-weight: 600; font-size: 1.1rem; line-height: 1.35; }

/* text on the left; photo and sign-up stacked on the right, so both columns end together */
.prog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "text photo" "text cta";
  column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 1.25rem;
  align-items: start;
}
.prog-text { grid-area: text; }
.prog-text > :last-child { margin-bottom: 0; }
.prog-text p { max-width: var(--read); }
.prog-photo { grid-area: photo; margin: 0; }
.prog-photo img, .prog-photo .vr-tile {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.prog-layout .pkg-cta { grid-area: cta; margin-top: 0; padding: 1.4rem 1.5rem 1.6rem; }
/* short programs: sign-up sits under the text, the photo fills the right column */
.prog-layout.cta-left { grid-template-areas: "text photo" "cta photo"; grid-template-rows: auto auto; }
.prog-layout.cta-left .pkg-cta { margin-top: .75rem; }

.tip {
  border-left: 3px solid var(--olive-bright); padding: .4rem 0 .4rem 1rem;
  color: var(--sand); max-width: var(--read); margin: 1.2rem 0;
}

/* desert night steps */
.steps {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  counter-reset: step;
}
.steps li {
  counter-increment: step; background: var(--ink-2); border: 1px solid var(--line);
  padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .2rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display); color: var(--olive-bright); font-size: 1.4rem; line-height: 1.2;
}
.steps strong { color: var(--paper); }
.steps span { color: var(--sand); }

.more-programs { border-top: 1px solid var(--line); }

/* ---------------- why SUFA */
.why-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
}
.why-grid li { border-top: 2px solid var(--olive-bright); padding-top: 1rem; }
.why-grid h3 { font-size: 1.5rem; letter-spacing: .04em; margin: 0 0 .4rem; }
.why-grid p { color: var(--sand); margin: 0; }

/* overview table */
.compare-wrap { overflow-x: auto; margin-top: 2rem; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th {
  font-family: var(--display); letter-spacing: .12em; font-weight: 400;
  color: var(--sand-dim); font-size: 1rem;
}
.compare tbody th a { font-family: var(--display); letter-spacing: .06em; font-size: 1.2rem; text-decoration: none; }
.compare tbody th span { display: block; color: var(--sand-dim); font-weight: 400; font-size: 1rem; }
.compare td { color: var(--sand); }

/* ---------------- facilities: intro and "we come to you" on the left, the list on the right */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.split-form-first { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split .page-lead { margin: 0 0 1.6rem; }
.fac-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.fac-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.fac-list strong { color: var(--paper); font-weight: 600; }
.fac-list li > span { color: var(--sand-dim); }
.on-location {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--olive-bright);
  padding: 1.4rem 1.5rem 1.6rem;
}
.on-location h3 { font-size: 1.6rem; letter-spacing: .04em; margin: 0 0 .5rem; }
.on-location p { color: var(--sand); margin: 0 0 1.2rem; }
.on-location p:last-child { margin-bottom: 0; }

/* ---------------- contact: text next to the form instead of an empty half */
.split .form { max-width: none; }
.contact-intro p { color: var(--sand); max-width: 30em; margin: 0 0 1rem; }
.contact-aside .pkg-h2 { margin-top: 0; }
.contact-aside .on-location { margin-top: 1.5rem; }

/* ---------------- Q&A: questions on the left, the contact box follows on the right */
.qa-list details:last-child { margin-bottom: 0; }
.qa-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.qa-aside { position: sticky; top: 92px; }
.qa-aside .qa-note { margin: 0 0 1.2rem; font-style: normal; }

@media (max-width: 900px) {
  .split, .split-form-first, .qa-grid { grid-template-columns: 1fr; }
  .qa-aside { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .prog-grid > * { grid-column: span 3; }
  .prog-grid > :first-child { grid-column: span 6; }
  .prog-grid > :nth-child(2) .more-img { aspect-ratio: 3 / 2; }
  .prog-grid > :nth-child(2) strong { font-size: 1.6rem; }
  .prog-layout, .prog-layout.cta-left { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "photo" "text" "cta"; row-gap: 1.75rem; }
  .prog-photo img, .prog-photo .vr-tile { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .why-grid, .more-grid { grid-template-columns: 1fr; }
  .prog-grid > *, .prog-grid > :first-child { grid-column: span 6; }
  .prog-grid > :first-child .more-img { aspect-ratio: 3 / 2; }
  .prog-grid > :first-child strong { font-size: 1.6rem; }
  .fac-list li { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .more-card, .more-img img { transition: none; }
}
