/* Copyright (c) Janyasi's Legal Associates. All Rights Reserved. */

/* ==========================================================================
   Process Flow — numbered steps connected by a line, horizontal on desktop,
   vertical on narrow screens. Reusable anywhere a page describes a
   sequential process (e.g. Our Approach's consultation-to-resolution flow).
   ========================================================================== */
.process-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-flow,
.process-flow li {
  list-style: none;
}

.process-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding-right: 28px;
}

.process-step-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  position: relative;
  z-index: 1;
}

.process-step:not(:last-child) .process-step-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 9999px;
  height: 2px;
  background: var(--border-light);
  transform: translateY(-50%);
}

.process-step-body {
  margin-top: 18px;
}

.process-step h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--black);
  margin-bottom: 10px;
}

.process-step p,
.process-step-body > div {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .process-flow {
    flex-direction: column;
    gap: 0;
  }

  .process-step {
    flex-direction: row;
    align-items: flex-start;
    padding-right: 0;
    padding-bottom: 32px;
  }

  .process-step-marker {
    margin-right: 18px;
  }

  .process-step:not(:last-child) .process-step-marker::after {
    top: 100%;
    left: 50%;
    width: 2px;
    height: 9999px;
    transform: translateX(-50%);
  }

  .process-step-body {
    flex: 1;
    min-width: 0;
    margin-top: 0;
    padding-top: 12px;
  }
}
