/* steps.css - versão ajustada: maior no desktop e mobile */
:root {
  --ladder-accent-strong: #8d7f74;
  --ladder-line: #d4c2a8;
  --steps-left-width: 320px;
  /* aumentei coluna esquerda para desktop */
  --steps-left-width-sm: 220px;
}

/* container split: título grande à esquerda, conteúdo à direita */
.steps-split .steps-split-inner {
  display: grid;
  grid-template-columns: var(--steps-left-width) 1fr;
  gap: 2.4rem;
  align-items: start;
  padding: clamp(2.6rem, 6vw, 5rem) 0;
}

/* Forçar centralização absoluta da seção PASSOS */
.steps-split {
  width: 100%;
}

.steps-split-inner {
  max-width: 100%;
  padding: 0 clamp(1rem, 6vw, 5rem);
}

.steps-split .steps-right-col {
  width: 100%;
  max-width: 680px;
  margin: 0 auto !important;
}

.steps-split .steps-header,
.steps-split .steps-ladder {
  margin-left: auto;
  margin-right: auto;
}

/* Ajuste offsets da escada para novo centro (reduz deslocamento relativo) */
.steps-split.steps-minimal .step-item[data-step='02'] {
  margin-left: 2rem !important;
}

.steps-split.steps-minimal .step-item[data-step='03'] {
  margin-left: 4rem !important;
}

@media (min-width:1200px) {
  .steps-split .steps-right-col {
    max-width: 720px;
  }

  .steps-split.steps-minimal .step-item[data-step='02'] {
    margin-left: 2.4rem !important;
  }

  .steps-split.steps-minimal .step-item[data-step='03'] {
    margin-left: 4.8rem !important;
  }
}

@media (max-width:640px) {
  .steps-split .steps-right-col {
    max-width: 560px;
  }

  .steps-split.steps-minimal .step-item[data-step='02'] {
    margin-left: 1.4rem !important;
  }

  .steps-split.steps-minimal .step-item[data-step='03'] {
    margin-left: 2.8rem !important;
  }
}

@media (max-width:420px) {
  .steps-split .steps-right-col {
    max-width: 100%;
  }

  .steps-split.steps-minimal .step-item[data-step='02'] {
    margin-left: 1.1rem !important;
  }

  .steps-split.steps-minimal .step-item[data-step='03'] {
    margin-left: 2.2rem !important;
  }
}

/* Centralização da seção PASSOS em layout minimal */
.steps-split-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.steps-split .steps-left-col {
  display: none;
}

.steps-split .steps-right-col {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.steps-split .steps-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.steps-split .steps-title {
  margin: 0;
}

.steps-split .steps-number {
  margin-bottom: .6rem;
}

.steps-split .steps-ladder {
  width: 100%;
  margin-top: 1.8rem;
}

/* TÍTULO grande à esquerda (como na foto) */
/* Aumentei bastante com clamp para cobrir telas grandes */
.steps-left-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0.4rem;
}

.steps-left-col .steps-label {
  writing-mode: horizontal-tb;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  /* agora bem maior no desktop, ainda comportado em mobile */
  font-size: clamp(3.2rem, 8.5vw, 7.2rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: .85;
  color: #1f1a18;
  opacity: .98;
}

/* cabeçalho interno (número e título pequeno) no topo da coluna direita */
.steps-right-col .steps-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.steps-right-col .steps-number {
  font-size: .9rem;
  letter-spacing: .25em;
  color: #7a6d64;
}

.steps-right-col .steps-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  /* aumento do título secundário também */
  font-size: clamp(1.4rem, 3.2vw, 3rem);
  margin: 0;
  color: #403734;
}

/* Escada: lista de passos */
.steps-ladder {
  position: relative;
  display: block;
  padding-left: 2.4rem;
  /* espaço para a linha vertical e bullets */
}

/* linha vertical que conecta os passos */
.steps-ladder::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.8rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(141, 127, 116, .45), rgba(215, 165, 157, .35));
  border-radius: 2px;
  opacity: .95;
}

/* cada passo (item) */
.step-item {
  position: relative;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: .8rem 1.2rem 1rem 0;
  min-height: 56px;
}

/* pequeno círculo indicativo no eixo da linha */
.step-item::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: calc(50% - 7px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(215, 165, 157, .12);
  border: 2px solid rgba(141, 127, 116, .18);
  transform: translateX(-50%);
}

/* offset horizontal em escada (progressivo) */
/* aumentei os offsets para reforçar o efeito em telas maiores */
.step-item[data-step='01'] {
  margin-left: 0;
}

.step-item[data-step='02'] {
  margin-left: 3.6rem;
}

.step-item[data-step='03'] {
  margin-left: 7.2rem;
}

/* número do passo (pequeno, discreto) - maior agora */
.step-index {
  position: relative;
  min-width: 44px;
  font-size: clamp(.88rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--ladder-accent-strong);
  opacity: .98;
  margin-top: 2px;
}

/* corpo do passo: título + descrição; estilo minimal */
.step-body {
  position: relative;
  padding-right: 1rem;
}

.step-title {
  margin: 0 0 .28rem 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  /* maior para desktop */
  font-size: clamp(1.05rem, 2.6vw, 1.9rem);
  color: #332e2b;
}

.step-text {
  margin: 0;
  /* maior e mais legível */
  font-size: clamp(.9rem, 1.6vw, 1.1rem);
  line-height: 1.45;
  color: #5f564f;
  max-width: 620px;
  opacity: .98;
}

/* pequena barra decorativa abaixo do texto (igual na foto) */
.step-body::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  height: 3px;
  width: 120px;
  background: linear-gradient(90deg, #9b8b82, #c8b5a0);
  border-radius: 2px;
  opacity: .95;
}

/* Responsividade — celulares e tablets */
/* Em telas menores quero que os tamanhos continuem grandes o suficiente,
   por isso não faço reduzões drásticas — apenas ajuste fino. */
@media (max-width:1024px) {
  :root {
    --steps-left-width: 280px;
  }

  .steps-left-col .steps-label {
    font-size: clamp(2.8rem, 7.2vw, 5.6rem);
  }

  .step-item[data-step='02'] {
    margin-left: 2.8rem;
  }

  .step-item[data-step='03'] {
    margin-left: 5.6rem;
  }

  .step-body::after {
    width: 100px;
    height: 2.5px;
    bottom: -10px;
  }
}

/* Mobile: aumentar um pouco em relação ao normal (como pediu) */
@media (max-width:720px) {
  .steps-split .steps-split-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .steps-left-col {
    order: -1;
    padding-bottom: .6rem;
  }

  /* mobile: manter o título grande, mas controlado */
  .steps-left-col .steps-label {
    font-size: clamp(2.4rem, 9.5vw, 4.2rem);
    letter-spacing: .14em;
  }

  /* offsets reduzidos mas ainda visíveis */
  .step-item[data-step='02'] {
    margin-left: 1.8rem;
  }

  .step-item[data-step='03'] {
    margin-left: 3.6rem;
  }

  .steps-ladder::before {
    left: 0.95rem;
  }

  .step-item::before {
    left: 0.95rem;
    width: 10px;
    height: 10px;
    top: calc(50% - 5px);
  }

  .step-index {
    min-width: 38px;
    font-size: .92rem;
  }

  .step-title {
    font-size: 1.18rem;
  }

  .step-text {
    font-size: .95rem;
    line-height: 1.4;
  }

  .step-body::after {
    width: 86px;
    height: 2px;
    bottom: -8px;
  }
}

/* Very small screens: compact but readable (increase relative to original) */
@media (max-width:420px) {
  :root {
    --steps-left-width: var(--steps-left-width-sm);
  }

  .steps-left-col .steps-label {
    font-size: clamp(1.6rem, 8.5vw, 2.8rem);
  }

  .step-index {
    min-width: 32px;
    font-size: .86rem;
  }

  .step-title {
    font-size: 1.02rem;
  }

  .step-text {
    font-size: .84rem;
  }

  .step-body::after {
    width: 64px;
  }

  .step-item[data-step='02'] {
    margin-left: 1.1rem;
  }

  .step-item[data-step='03'] {
    margin-left: 2.2rem;
  }

  .step-item::before {
    left: .84rem;
  }

  .steps-ladder::before {
    left: .84rem;
  }
}

/* Desktop extra-large: reforçar ainda mais os tamanhos */
@media (min-width:1400px) {
  :root {
    --steps-left-width: 380px;
  }

  .steps-left-col .steps-label {
    font-size: clamp(4.4rem, 9.5vw, 9.6rem);
  }

  .steps-right-col .steps-title {
    font-size: clamp(2rem, 3.6vw, 3.6rem);
  }

  .step-title {
    font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  }

  .step-text {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }

  .step-item[data-step='02'] {
    margin-left: 4.4rem;
  }

  .step-item[data-step='03'] {
    margin-left: 8.8rem;
  }

  .step-body::after {
    width: 160px;
    height: 3px;
    bottom: -14px;
  }
}

/* reduz animações para preferências reduzidas */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}


/* --- CENTRALIZAÇÃO NO MEIO DA SEÇÃO --- */

/* Container centralizado */
/* Container centralizado */
.steps-split .steps-split-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 820px;
  /* controla largura total */
  padding: clamp(1rem, 2vw, 2rem) 1rem clamp(1rem, 4vw, 2rem) 1rem;
}

/* Título */
.steps-split .steps-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* A escada centralizada como bloco */
.steps-ladder {
  position: relative;
  margin: 0 auto;
  /* centraliza o bloco */
  width: fit-content;
  /* só ocupa o espaço necessário */
  padding-left: 2.4rem;
  /* espaço da linha */
}

/* Linha continua ao lado dos textos */
.steps-ladder::before {
  left: 0;
  /* cola na esquerda do bloco */
  transform: none;
}

/* Bullets também alinhados à esquerda da linha */
.step-item::before {
  left: 0;
  transform: translateX(-50%);
}

/* Texto alinhado à esquerda, mas o bloco tá centralizado */
.step-item {
  text-align: left;
  padding-left: 2rem;
  /* espaço entre linha e texto */
}

/* Faixa superior diferenciando PASSOS */
.steps-split {
  position: relative;
  background: linear-gradient(180deg, #f4efec 0%, #f2ede9 70%, #f1ebe7 100%);
}

.steps-split::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1040px, 100% - 2rem);
  height: 9px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #d4c2a8, #c8b5a0, #d4c2a8);
  opacity: .4;
  border-radius: 0 0 10px 10px;
}

.steps-split::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: min(1040px, 100% - 2rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #cdbfb7, #cdbfb7, transparent);
  opacity: .75;
}
