.stages-block {
  padding: 110px 100px;
  background: var(--white);
}

.stages-block__intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.stages-block__title {
  margin: 0;
  color: var(--color-heading);
  font: var(--text-4xl);
  font-family: var(--font-body);
  letter-spacing: var(--ls-sm);
}

.stages-block__title span {
  display: block;
  color: var(--color-link);
  font-family: var(--font-display);
/*   font-style: italic; */
  font-weight: 600;
}

.stages-block__journey {
  margin: 56px auto 0;
  max-width: 1120px;
}

.stages-block__card {
  position: relative;
  width: 340px;
  min-height: 205px;
  background: var(--white);
  border: 1px solid var(--surface-border-accent-soft);
  border-radius: var(--card-radius-lg);
  padding: 44px 24px 24px;
  text-align: center;
  z-index: 1;
}

.stages-block__card:hover {
  border-color: var(--color-accent-strong);
  box-shadow: 0 0 0 3px var(--color-focus-ring-accent);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.stages-block__card h3 {
  margin: 0;
  color: var(--color-heading);
  font: var(--text-3xl);
  font-family: var(--font-body);
  font-weight: 600;
}

.stages-block__card p {
  margin: 8px 0 0;
  color: var(--color-text-slate);
  font: var(--text-lg);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stages-block__icon {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--surface-border-accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-tint);
}

.stages-block__icon img {
    width: 32px;
    height: 32px;
}

.stages-block__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.stages-block__arrow {
  display: none;
}

/* Full journey — all three stages, staggered desktop layout */
@media (min-width: 1025px) {
  .stages-block__journey--full {
    position: relative;
    min-height: 340px;
    display: block;
  }

  .stages-block__journey--full .stages-block__card {
    position: absolute;
  }

  .stages-block__journey--full .stages-block__card--startup {
    top: 0;
    left: 0;
  }

  .stages-block__journey--full .stages-block__card--growth {
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
  }

  .stages-block__journey--full .stages-block__card--exit {
    top: 0;
    right: 0;
    left: auto;
  }

  .stages-block__journey--full .stages-block__arrow {
    display: block;
    position: absolute;
    width: 282px;
    height: 80px;
    z-index: 0;
    pointer-events: none;
  }

  .stages-block__journey--full .stages-block__arrow--first {
    top: 16px;
    left: 245px;
    background: url('/wp-content/themes/peacevalueadvisory/assets/img/icon/icon-stage-arrow.svg') center / contain no-repeat;
    transform: rotate(7deg);
  }

  .stages-block__journey--full .stages-block__arrow--second {
    top: 216px;
    right: 210px;
    background: url('/wp-content/themes/peacevalueadvisory/assets/img/icon/icon-after-arrow.svg') center / contain no-repeat;
    transform: rotate(-7deg);
  }

  /* Partial set — single centered row with arrow between cards */
  .stages-block__journey--row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    min-height: 0;
  }

  .stages-block__journey--row .stages-block__card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    flex: 0 0 340px;
    max-width: 340px;
  }

  .stages-block__journey--row .stages-block__arrow--between {
    display: block;
    flex: 0 0 86px;
    width: 86px;
    height: 98px;
    align-self: center;
    margin-top: 40px;
    background: center / contain no-repeat;
    pointer-events: none;
  }

  .stages-block__journey--row .stages-block__arrow--between-down {
    background-image: url('/wp-content/themes/peacevalueadvisory/assets/img/icon/icon-stage-arrow.svg');
    transform: rotate(-18deg);
  }

  .stages-block__journey--row .stages-block__arrow--between-up {
    background-image: url('/wp-content/themes/peacevalueadvisory/assets/img/icon/icon-after-arrow.svg');
    transform: rotate(18deg);
  }
}

.stages-block__cta-wrap {
  margin-top: 40px;
  text-align: center;
}

.stages-block__cta {
  min-width: 328px;
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .stages-block__journey {
    max-width: 1020px;
  }

  .stages-block__journey--full .stages-block__arrow--first {
    left: 230px;
  }

  .stages-block__journey--full .stages-block__arrow--second {
    right: 230px;
  }
}

@media (max-width: 1024px) {
  .stages-block__journey {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .stages-block__journey--full .stages-block__card,
  .stages-block__journey--row .stages-block__card {
    position: relative;
    width: 100%;
    max-width: 500px;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    flex: none;
  }

  .stages-block__journey--full .stages-block__arrow {
    display: none;
  }

  .stages-block__journey--row .stages-block__arrow--between {
    display: block;
    flex: none;
    width: 86px;
    height: 98px;
    margin: 0;
    align-self: center;
    background: center / contain no-repeat;
  }

  .stages-block__journey--row .stages-block__arrow--between-down {
    background-image: url('/wp-content/themes/peacevalueadvisory/assets/img/icon/icon-stage-arrow.svg');
    transform: rotate(90deg);
  }

  .stages-block__journey--row .stages-block__arrow--between-up {
    background-image: url('/wp-content/themes/peacevalueadvisory/assets/img/icon/icon-after-arrow.svg');
    transform: rotate(-90deg);
  }

  .stages-block__cta-wrap {
    margin-top: 28px;
  }
}

@media (max-width: 991px) {
  .stages-block {
    padding: 44px 0 52px;
  }

  .stages-block .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stages-block__intro {
    max-width: none;
    text-align: left;
  }

  .stages-block__title span {
    display: inline;
  }

  .stages-block__journey {
    margin-top: 60px;
    max-width: none;
  }

  .stages-block__journey--full .stages-block__card,
  .stages-block__journey--row .stages-block__card {
    max-width: 400px;
    min-height: 205px;
    padding: 34px 20px 20px;
    margin: 0 auto;
  }

  .stages-block__card p {
    font: var(--text-md);
    line-height: 1.45;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .stages-block__cta-wrap {
    margin-top: 28px;
    text-align: left;
  }

  .stages-block__cta {
    min-width: 0;
    width: auto;
  }
}

@media (max-width: 580px) {
  .stages-block {
    padding: 40px 16px;
  }

  .stages-block .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .stages-block__journey {
    margin-top: 40px;
    gap: 30px;
  }

  .stages-block__journey--full .stages-block__card,
  .stages-block__journey--row .stages-block__card {
    padding: 30px 16px 16px;
  }

  .stages-block__icon {
    width: 48px;
    height: 48px;
    top: -24px;
  }

  .stages-block__card p {
    margin-top: 10px;
    font: var(--text-sm);
    line-height: 1.45;
  }

  .stages-block__cta {
    width: 100%;
    justify-content: center;
  }
}
