/* After We've Spoken only, linked from src/pages/after-weve-spoken.astro.
   Every rule is scoped to an after- class.

   A personal handoff after a conversation: thanks and who the page is for,
   beside a plain request to speak with us first; the four steps to the
   assessment; then what to do if the intake link has not arrived. */

.after-page {
  background: var(--paper);
}

.after-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.after-kicker::before {
  content: "";
  flex: 0 0 1.75rem;
  height: 2px;
  background: var(--coral);
}

/* Welcome */
.after-welcome {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}

.after-welcome__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.after-welcome__mark {
  display: block;
  width: 3.25rem;
  height: auto;
  margin-bottom: 1.5rem;
}

.after-welcome h1 {
  max-width: 13ch;
  margin-top: 1rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.after-welcome__lead {
  max-width: 34rem;
  margin-top: 1.4rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.after-welcome__for {
  max-width: 34rem;
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--coral);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.6;
}

/* Please speak with us first */
.after-first {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1.5rem 1.5rem 4rem;
  background: var(--navy);
  color: #fff;
}

.after-first__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
}

.after-first p {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.after-first p strong {
  color: #fff;
  font-weight: 700;
}

.after-first__link {
  display: inline-block;
  margin-top: 1.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--gold);
  color: #fff;
  font-weight: 700;
}

.after-first__link:hover {
  color: var(--gold);
}

/* The four steps */
.after-steps {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.after-steps__intro h2,
.after-help h2 {
  max-width: 18ch;
  margin-top: 1rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.after-steps__intro > p:not(.after-kicker),
.after-help__layout > div > p:not(.after-kicker) {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

.after-steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.25rem, 3vw, 2.5rem);
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

/* A line joins the four numbers. */
.after-steps__list::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: var(--rule);
}

.after-step {
  position: relative;
}

.after-step__number {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--coral);
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}

.after-step:last-child .after-step__number {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.after-step h3 {
  margin-top: 1.1rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.9vw, 1.6rem);
  font-weight: 600;
  line-height: 1.15;
}

.after-step p {
  margin-top: 0.55rem;
  color: var(--ink);
  line-height: 1.65;
}

/* No link yet */
.after-help {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
  background: var(--sage-pale);
}

.after-help__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.after-help__contact {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.after-help__contact a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--navy);
}

.after-help__contact a:hover {
  border-color: var(--navy);
}

.after-help__contact span {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.after-help__contact strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.after-page a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 0.3rem;
}

@media (max-width: 900px) {
  .after-welcome__layout,
  .after-help__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .after-first {
    max-width: 36rem;
  }

  .after-steps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .after-steps__list::before {
    display: none;
  }
}

/* Phones: the steps read top to bottom, joined by a line on the left. */
@media (max-width: 600px) {
  .after-steps__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .after-steps__list::before {
    display: block;
    top: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .after-step {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .after-step__number {
    grid-row: span 2;
  }

  .after-step h3 {
    margin-top: 0.35rem;
  }
}
