/* ==========================================================
   nawa subpages: Students, Institutions, Mentors, Sponsors.
   Builds on base.css, sections.css and businesses.css (hero, signpost
   columns, banner, FAQ, closing CTA). This file only adds the layouts
   those pages need: static benefit columns, the goal line, numbered
   steps, card grids and tags. Copy is word for word from the live site.
   ========================================================== */

/* ---------- Hero: headline only, no card wall ---------- */
.sub-hero {
  display: flex;
  align-items: center;
  min-height: clamp(380px, 58svh, 620px);
}
.sub-hero .biz-hero__layout { width: 100%; }

/* ---------- Every section ---------- */
.sub-sec {
  position: relative;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
  overflow-x: clip;
}
.sub-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 44rem;
  margin-bottom: var(--head-gap);
}
.sub-head .section-title { margin: 0; }
.sub-head .section-title .biz-section-title__line { display: block; }
.sub-head .section-sub { margin-top: var(--head-stack); }
.sub-head .btn { margin-top: var(--space-4); }

/* ---------- Benefit columns: Businesses' signpost, without the link behaviour ---------- */
.sub-sign { margin-top: 0; }
.biz-sign__link.sub-static { cursor: default; }
.sub-static::before { display: none; }
.sub-static .biz-sign__title { color: var(--text); }
@media (min-width: 1024px) {
  .sub-static .biz-sign__title { white-space: normal; font-size: var(--text-h3); }
}

/* ---------- Goal line ---------- */
.sub-goal {
  display: grid;
  gap: var(--space-2);
  max-width: 54rem;
}
.sub-goal__label { color: var(--lime); }
.sub-goal__text {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: pretty;
}

/* ---------- Numbered steps ---------- */
.sub-steps,
.sub-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--grid-gap);
}
@media (min-width: 768px) {
  .sub-steps--3,
  .sub-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sub-steps--4,
  .sub-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .sub-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sub-step,
.sub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--card-pad);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--panel-2);
}
.sub-step { background: var(--panel); }
.sub-num { color: var(--lime); }
.sub-step .feature__title,
.sub-card .feature__title { margin: 0; }
.sub-step .feature__text,
.sub-card .feature__text { margin: 0; color: #cfcce2; text-wrap: pretty; }
.sub-card .btn { margin-top: auto; }
.sub-card .tags + .btn { margin-top: var(--space-2); }
/* Brand name stays lowercase inside uppercase labels */
.sub-nocaps { text-transform: none; }

/* ---------- Callout banner: Businesses' institutions banner, without a button ---------- */
.sub-sec .biz-inst { margin-top: 0; }

/* ---------- Project tags (Sponsors) ---------- */
.sub-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.sub-tags li {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.sub-card .sub-tags + .btn { margin-top: var(--space-2); }

/* ---------- Closing CTA: one centred line and its button, then straight into the footer ---------- */
.sub-cta {
  display: flex;
  align-items: center;
  min-height: 70svh;
}
@media (max-width: 959px) { .sub-cta { min-height: 55svh; } }
.sub-cta .biz-cta__inner { grid-template-columns: minmax(0, 1fr); width: 100%; }
.sub-cta .biz-cta__copy { justify-self: center; align-items: center; text-align: center; }
.sub-cta .biz-cta__title {
  max-width: none;
  font-size: var(--text-statement);   /* the same as every section title */
  text-wrap: balance;
}
.sub-cta .biz-cta__glow { left: 50%; top: 50%; }
@media (min-width: 960px) {
  .sub-cta .biz-cta__inner { grid-template-columns: minmax(0, 1fr); }
  .sub-cta .biz-cta__glow { left: 50%; top: 50%; }
}
/* The footer follows the closing line closely, so the two read as one ending */
body:has(.sub-cta) .site-footer { padding-top: var(--space-6); }

/* ---------- Goal statement (Students, Institutions, Mentors, Sponsors): "Goal:" then the
   sentence on the same line, full width; the words light up a few at a time as you scroll
   (js/goal-highlight.js). "Goal:" is section-title size (48); the sentence is one step down
   (32, the card-title size). The label's tight line-height keeps the first line's spacing
   the same as the rest; both sit on the same baseline. ---------- */
.st-goal__text {
  max-width: none;
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(244, 243, 250, 0.2);
  text-wrap: pretty;
}
.st-goal__label {
  font-size: var(--text-statement);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgba(209, 238, 43, 0.35);
  transition: color 400ms var(--ease);
}
.st-goal__label.is-lit { color: var(--lime); }
.st-w { transition: color 350ms var(--ease); }
.st-w.is-lit { color: #fff; }
/* Mentors, Sponsors: the goal as an ordinary section (Students and Institutions set their own spacing) */
.sub-goal-sec { padding-block: var(--section-space); border-top: 1px solid var(--line); }
/* Sponsors: what sponsorship can cover, one line under the two option cards */
.sub-cover { max-width: 62rem; margin: var(--space-5) 0 0; color: var(--text-2); text-wrap: pretty; }
.sub-cover__label { color: var(--text); font-weight: 600; }
/* No JS: the statement at full colour */
html:not(.js) .st-goal__text { color: #fff; }
html:not(.js) .st-goal__label { color: var(--lime); }
