/**
 * Process row.
 *
 * Ported from `_mockups/index-c.html` (`.c-process__grid` / `.c-step`), with
 * every class renamed to the section prefix. Nothing here exists in pages.css:
 * the kit's `.step-rail` is the vertical rail and `.numbered .card` numbers a
 * card grid in blue-tint with a gold last item, but neither is this five-across
 * hover strip.
 *
 * The step number is a CSS counter. It is never a value an author types, so
 * reordering the repeater renumbers the strip and cannot disagree with itself.
 *
 * Breakpoints are literal px because `var()` is invalid inside a media query –
 * the values match the mock-up.
 */

.process-row {
  /* The sticky header would otherwise cover the heading when this section is a
     jump target. */
  scroll-margin-block-start: var(--sticky-offset);
}

.process-row__grid {
  max-width: var(--container-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
  counter-reset: process-row-step;
}

.process-row__step {
  counter-increment: process-row-step;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-4);
  transition:
    transform var(--dur-normal) var(--ease-out-soft),
    box-shadow var(--dur-normal) var(--ease-out-soft);
}

.process-row__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}

.process-row__step::before {
  content: counter(process-row-step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--blue-tint-20);
  margin-block-end: var(--s-2);
}

/* The last step is the one the journey is for, so it lands in gold. */
.process-row__step:last-child::before {
  color: var(--gold);
}

.process-row__step h3 {
  font-family: var(--display);
  font-size: var(--text-s);
  color: var(--navy);
  margin-block-end: 0.35em;
}

.process-row__step p {
  font-size: var(--text-xs);
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .process-row__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .process-row__grid { grid-template-columns: 1fr; }
}
