/* ==========================================================================
   SECTION 3 — MÉTODO RENASCER (Timeline + Liquid Morphism)
   ========================================================================== */

.method-section {
  position: relative;
  background-color: var(--cream); /* Levemente areado para o glass dos cards contrastar */
  padding: 120px 24px 140px;
  z-index: 1;
}

.method-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ── Header ── */
.method-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

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

.method-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.method-title em {
  font-style: normal;
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.method-description {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--sienna);
  line-height: 1.75;
  max-width: 56ch;
}

.method-manifesto {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 32px;
  border-left: 2px solid var(--terracotta);
  text-align: left;
  background: rgba(166, 69, 33, 0.05);
  border-radius: 0 12px 12px 0;
}

.method-manifesto p {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.method-manifesto p:first-child {
  color: var(--sienna);
  font-weight: 400;
}

/* ==========================================================================
   TIMELINE VERTICAL
   ========================================================================== */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ── Coluna central da linha + glow ── */
.tl-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  z-index: 0;
  background: rgba(140, 108, 84, 0.15); /* --sienna opaco */
  border-radius: 999px;
  overflow: visible;
}

/* Preenchimento que cresce com scroll */
.tl-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* Controlado via JS */
  background: linear-gradient(to bottom, var(--terracotta), rgba(166,69,33,0.4));
  border-radius: 999px;
  transition: height 0.05s linear;
}

/* Brilho que desce com o scroll */
.tl-glow {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 80px;
  background: radial-gradient(ellipse at center,
    rgba(166, 69, 33, 0.9) 0%,
    rgba(166, 69, 33, 0.4) 40%,
    transparent 70%
  );
  border-radius: 999px;
  filter: blur(4px);
  top: 0%; /* Controlado via JS */
  transition: top 0.08s linear;
  pointer-events: none;
}

/* ── Item da timeline ── */
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 52px 1fr; /* Dot discreto */
  align-items: start;
  padding: 28px 0;
  position: relative;
  z-index: 2;

  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.tl-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Atrasos escalonados */
.timeline-item:nth-child(2) { transition-delay: 0s;    }
.timeline-item:nth-child(3) { transition-delay: 0.08s; }
.timeline-item:nth-child(4) { transition-delay: 0.16s; }
.timeline-item:nth-child(5) { transition-delay: 0.24s; }
.timeline-item:nth-child(6) { transition-delay: 0.32s; }
.timeline-item:nth-child(7) { transition-delay: 0.4s;  }
.timeline-item:nth-child(8) { transition-delay: 0.48s; }


/* ── Dot (bolinha com letra) ── */
.tl-dot {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 16px;
  position: relative;
  z-index: 3;
}

.tl-dot span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream); /* Fundo igual ao da seção — discreto */
  border: 1.5px solid rgba(166, 69, 33, 0.25); /* Contorno fraco no estado inativo */
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(166, 69, 33, 0.35); /* Letra terracotta suave no estado inativo */

  transition:
    border-color 0.45s ease,
    color 0.45s ease,
    box-shadow 0.45s ease;
}

/* Dot ativo: só o contorno fica forte, o fundo permanece o mesmo */
.timeline-item.tl-visible .tl-dot span {
  border-color: var(--terracotta);
  border-width: 2px;
  color: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(166, 69, 33, 0.08);
}

/* Dot final (R de RENASCER) com leve destaque de tamanho */
.tl-dot--last span {
  width: 46px;
  height: 46px;
  font-size: 0.95rem;
}

/* ── Conteúdo: Liquid Morphism Card ── */
.tl-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  border-radius: 20px;

  /* Liquid Morphism */
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 24px rgba(104, 89, 79, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;

  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.tl-content:hover {
  box-shadow:
    0 12px 40px rgba(104, 89, 79, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translateY(-3px);
}

/* Item à esquerda: card na col 1 */
.tl-left .tl-content  { grid-column: 1; grid-row: 1; margin-right: 8px; }
.tl-left .tl-dot      { grid-column: 2; grid-row: 1; }
.tl-left .tl-empty    { grid-column: 3; grid-row: 1; }

/* Item à direita: card na col 3 */
.tl-right .tl-empty   { grid-column: 1; grid-row: 1; }
.tl-right .tl-dot     { grid-column: 2; grid-row: 1; }
.tl-right .tl-content { grid-column: 3; grid-row: 1; margin-left: 8px; }

/* ── Tipografia do card ── */
.tl-letter {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.tl-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.tl-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--sienna);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE — MOBILE
   ========================================================================== */
@media (max-width: 700px) {
  .method-section { padding: 80px 16px 100px; }

  /* Linha à esquerda */
  .tl-track {
    left: 20px;
    transform: none;
  }

  /* Layout de 2 colunas: dot | card */
  .timeline-item {
    grid-template-columns: 40px 1fr;
    padding: 16px 0;
  }

  .tl-left .tl-content,
  .tl-right .tl-content {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .tl-left .tl-dot,
  .tl-right .tl-dot {
    grid-column: 1;
    grid-row: 1;
  }

  .tl-left .tl-empty,
  .tl-right .tl-empty {
    display: none;
  }
}
