/* Card Principal */
.texto-card-principal h2 {
  font-size: var(--fs-xxl);
  margin-bottom: 15px;
}

.texto-card-principal h3 {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 40px;
}

.texto-card-principal p {
  font-size: var(--fs-md);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Passos */
.container-steps {
  display: flex;
  justify-content: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  gap: 10px;
}

.step h3 {
  font-size: var(--fs-md);
  white-space: nowrap;
}

.step p {
  line-height: 1.5rem;
  font-size: var(--fs-xs);
  max-width: 500px;
}

.step-number {
  display: flex;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px;
  margin: 10px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  width: fit-content;
  font-size: 2rem;
  font-weight: 600;
  justify-content: center;
  position: relative;
}

.step:nth-child(1) .step-number::after {
  content: "";
  background-image: repeating-linear-gradient(
    to right,
    var(--color-primary) 0,
    var(--color-primary) 5px,
    transparent 1px,
    transparent 10px
  );
  background-size: 40px 40px;
  height: 3px;
  position: absolute;
  align-self: center;
  left: 50%;
  z-index: -1;
}

.step:nth-child(1) .step-number.animation-active::after {
  animation: showRight 0.8s ease forwards;
}

.step-number.last::after {
  content: none;
}

@keyframes showRight {
  from {
    width: 0px;
  }

  to {
    width: calc(var(--distancia-steps) * 1.1);
  }
}

@keyframes showDown {
  from {
    height: 0px;
  }

  to {
    height: calc(var(--distancia-steps-vertical) *1.072);
  }
}

/* Estatísticas */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-card {
  opacity: 0;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-card.animation-active {
  animation: fadeInUp 0.5s ease forwards;
}

/* Garantias */
.garantias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.garantia-card {
  display: flex;
  gap: 30px;
}

.garantia-card img {
  height: 80px;
  transition: all 0.4s ease;
}

.garantia-card h3 {
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.garantia-card p {
  font-size: var(--fs-xs);
}

.garantia-card img:hover {
  animation: pop 0.5s ease forwards;
}


/* Botões Principais */
.container-btns-principais {
  display: flex;
  justify-content: center;
  gap: 80px;
  width: 100%;
  margin: 0 auto;
}

.btn.principal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px 30px;
  border-radius: 12px;
}

.btn.principal img {
  height: 50px;
}

.btn.principal h2 {
  font-size: 1.1rem;
}

.btn.principal p {
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 1440px) {
  .garantias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .container-steps {
    flex-direction: column;
    gap: 20px;
    position: relative;
  }

  .step {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 10px 0;
  }

  .step-number {
    height: 50px;
    font-size: var(--fs-lg);
    justify-content: center;
    align-items: center;
  }

  .step-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .step:nth-child(1) .step-number::after {
    content: "";
    background-image: repeating-linear-gradient(
      to bottom,
      var(--color-primary) 0,
      var(--color-primary) 5px,
      transparent 1px,
      transparent 10px
    );
    background-size: 40px 40px;
    width: 3px;
    height: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%);
    z-index: -1;
  }

  .step:nth-child(1) .step-number.animation-active::after {
    animation: showDown 0.8s ease forwards;
  }
}

@media (max-width: 992px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .garantias-grid {
    grid-template-columns: 1fr;
  }

  .garantia-card img {
    height: 50px;
  }
  
}


@media (max-width: 512px) {

  .texto-card-principal h2 {
    font-size: var(--fs-xl);
  }

  .texto-card-principal h3 {
    font-size: var(--fs-md);
  }

  .texto-card-principal p {
    font-size: var(--fs-sm);
  }
  
  .container-btns-principais {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .garantias-grid,
  .stats-container {
    grid-template-columns: 1fr;
  }

  .btn.principal {
    flex-direction: row;
    min-width: 250px;
  }

  .btn.principal img {
    height: 35px;
  }

  .btn.principal h2 {
    font-size: var(--fs-sm);
  }

  .btn.principal p {
    font-size: var(--fs-xxs);
  }
}
