/* =============================================
   process.css — Timeline do processo (vertical mobile → horizontal desktop)
   ============================================= */

#processo {
  padding: var(--section-pad-v) var(--section-pad-h);
  background: var(--color-surface);
}

.process__container {
  max-width: 900px;
  margin: 0 auto;
}

/* ------ Cabeçalho da seção ------ */
.process__header {
  text-align: center;
  margin-bottom: 3rem;
}

.process__header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--fw-black);
  margin-bottom: .5rem;
}

.process__header p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* ------ Container da timeline ------ */

/* O container tem data-animate mas NÃO deve começar invisível —
   apenas o ::before (linha) usa a classe .is-visible */
#processo .process__steps[data-animate] {
  opacity: 1;
}

/* 375px (base): vertical */
.process__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

/* Linha vertical */
.process__steps::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--color-mid);
}

/* ≥1024px: horizontal com linha animada */
@media (min-width: 1024px) {
  .process__steps {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .process__steps::before {
    top: 24px;
    left: 10%;
    right: 10%;
    bottom: auto;
    width: auto;
    height: 2px;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 800ms cubic-bezier(.16, 1, .3, 1) 400ms;
  }

  .process__steps.is-visible::before {
    transform: scaleX(1);
  }
}

/* ------ Step ------ */
/* 375px: linha horizontal dentro do step (nó à esquerda, conteúdo à direita) */
.step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}

/* ≥1024px: coluna (nó em cima, conteúdo abaixo, centralizado) */
@media (min-width: 1024px) {
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }
}

/* ------ Nó circular ------ */
.step__node {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--color-mid);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

/* ------ Conteúdo do step ------ */
.step__body {
  padding-top: .25rem;
}

/* Número decorativo grande */
.step__num {
  display: block;
  font-size: 3rem;
  font-weight: var(--fw-black);
  color: var(--color-accent);
  opacity: .3;
  line-height: 1;
  margin-bottom: .25rem;
}

.step__body h3 {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  margin-bottom: .375rem;
  color: var(--color-text);
}

.step__body p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
