/* ==========================================================================
   ProspectPoint Marketing — about.html and 404.html only. Loaded after styles.css.
   Uses the shared tokens; adds no colours or fonts.
   ========================================================================== */

/* ==========================================================================
   About page
   ========================================================================== */

/* ---------- Page header ---------- */

/* The intro keeps a comfortable measure instead of running the full 50rem */
.page-header .lead {
  max-width: 44rem;
}

/* ---------- Heading on the left, statement on the right ---------- */

/* When the two columns stack, the heading sits close to its text. */
.about-split {
  row-gap: var(--space-5);
}

/* A short paragraph set large enough to carry a section by itself.
   It is a .lead first, so it still reads well if this file is missing. */
.statement {
  max-width: 40rem;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.55;
  color: var(--slate-700);
}

/* Side by side, the first line of the statement shares a baseline with the
   heading: eyebrow line, stack gap, then the difference in first baselines. */
@media (min-width: 62em) {
  .about-split > :last-child {
    padding-top: 3.15rem;
  }
}

/* ---------- How we work: the home page step pattern, two by two on navy ---------- */
.principles {
  gap: var(--space-6);
}

@media (min-width: 40em) {
  .principles {
    row-gap: var(--space-7);
  }
}

.principles .step {
  border-top-color: var(--navy-600);
}

.principles .step::before {
  background: var(--teal-400);
}

.principles .step__num {
  color: var(--teal-400);
}

.principles .step h3 {
  font-size: clamp(1.3125rem, 1.2rem + 0.5vw, 1.5rem);
}

.principles .step p {
  max-width: 26rem;
  font-size: 1.0625rem;
  color: inherit;
}

.principles .link-arrow {
  font-size: 1rem;
}

/* Side by side, the two principles in a row share their rows (number, heading,
   text, link), so the text lines up even when only one heading wraps. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 40em) {
    .principles {
      row-gap: 0;
    }

    .principles .step {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 4;
    }

    .principles .step:nth-child(n + 3) {
      margin-top: var(--space-7);
    }
  }
}

/* ---------- Where we work: state tiles under the heading ---------- */

/* Two by two, and four across only where the longest name has room */
.about-split .state-row {
  max-width: 30rem;
  margin-top: var(--space-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Four across, the row needs the full width of the container, so the text
   column above it gives up its cap. */
@media (min-width: 48em) and (max-width: 61.99em) {
  .about-split > .stack {
    max-width: none;
  }

  .about-split .state-row {
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* A single column below 360px, where two tiles no longer fit */
@media (max-width: 22.49em) {
  .about-split .state-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- A straightforward start: centred closing statement ---------- */
.section-head:last-child {
  margin-bottom: 0;
}

.section-head--center .statement {
  margin-inline: auto;
  text-wrap: balance;
}

/* ---------- Closing band: two buttons sit side by side ---------- */
.cta-band__text {
  text-wrap: balance;
}

.cta-band__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   404 page
   ========================================================================== */

/* On a tall screen the footer stays at the bottom and the message sits in
   the middle of the space above it. */
.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-404 main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
}

/* Four links of equal width: two by two on a phone, then one centred row */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

@media (min-width: 40em) {
  .link-grid {
    grid-template-columns: repeat(4, minmax(0, 9rem));
    justify-content: center;
  }
}

/* ==========================================================================
   Both pages: workaround for the shared footer (reported to the stylesheet owner)
   ========================================================================== */

/* Between 62em and 75em the contact column is narrower than the email address,
   so the address runs past the container and, up to about 65em, past the edge
   of the page. Until styles.css gives that column more room, these pages move
   one unit of width from the first column to the last, the same way the
   pricing and services pages do. Delete once styles.css handles it. */
@media (min-width: 62em) and (max-width: 74.99em) {
  .site-footer__top {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr);
  }
}
