/* ==========================================================================
   SECTION 6 — PROCESSO RENASCER (4 Etapas)
   Background: brown-dark escuro / layout: 4 colunas horizontais numeradas
   ========================================================================== */

.process-section {
  position: relative;
  background-color: var(--brown-dark);
  padding: 140px 40px;
  z-index: 1;
  overflow: hidden;
}

/* Decoração de fundo: texto ghost gigante */
.process-section::before {
  content: 'RENASCER';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 72px;
  position: relative;
  z-index: 2;
}

/* ── Header ── */
.process-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.process-header .section-label { color: var(--taupe); }
.process-header .label-line    { background: var(--terracotta); }

.process-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--off-white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.process-title em {
  font-style: normal;
  color: var(--terracotta);
  font-weight: 600;
}

.process-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--taupe);
  line-height: 1.6;
  max-width: 50ch;
  margin: 0;
}

/* ── Linha conectora ── */
.process-track {
  position: relative;
}

.process-track::before {
  content: '';
  position: absolute;
  top: 28px; /* Alinha com o centro dos dots */
  left: calc(4% + 20px);
  right: calc(4% + 20px);
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}

/* ── Grid 4 Colunas ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Card individual ── */
.process-card {
  position: relative;
  padding: 36px 28px 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  z-index: 1;
  cursor: default;

  /* Estado inicial para animação */
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease,
    border-color 0.4s ease;
}

.process-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.process-card:nth-child(1) { transition-delay: 0s;    }
.process-card:nth-child(2) { transition-delay: 0.12s; }
.process-card:nth-child(3) { transition-delay: 0.24s; }
.process-card:nth-child(4) { transition-delay: 0.36s; }

.process-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(166, 69, 33, 0.25);
}

/* Barra de progresso no topo do card */
.process-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--terracotta), rgba(166, 69, 33, 0.4));
  border-radius: 0 999px 999px 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-card.is-visible::before {
  width: 100%;
}

/* Número ghost no fundo do card */
.process-card::after {
  content: attr(data-num);
  position: absolute;
  bottom: -12px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.4s ease;
}

.process-card:hover::after {
  color: rgba(166, 69, 33, 0.08);
}

/* ── Dot de passo ── */
.process-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.5s ease, background 0.5s ease;
}

.process-step-dot span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  transition: color 0.5s ease;
}

.process-card.is-visible .process-step-dot {
  border-color: var(--terracotta);
  background: rgba(166, 69, 33, 0.12);
}

.process-card.is-visible .process-step-dot span {
  color: var(--terracotta);
}

/* ── Textos do card ── */
.process-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-step-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--off-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.process-step-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--taupe);
  line-height: 1.65;
  margin: 0;
}

/* ── Inline connector dots between cards ── */
.process-connector {
  display: none; /* Só no mobile */
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .process-section {
    padding: 100px 20px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .process-track::before {
    display: none;
  }
}

@media (max-width: 540px) {
  .process-section {
    padding: 80px 16px;
  }

  .process-header {
    align-items: center;
    text-align: center;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* No mobile de 1 coluna, o card fica horizontal com dot à esquerda */
  .process-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 16px;
  }

  .process-card-body {
    gap: 6px;
  }

  .process-card::after {
    font-size: 4rem;
    bottom: -6px;
    right: 12px;
  }
}
