/* =========================
   LANDING TOPO (CONTAINER)
   ========================= */

.landing-topo {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6);
}

/* Desktop: lado a lado e centralizado */
@media (min-width: 1024px) {
  .landing-topo {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .landing-esquerda {
    flex: 0 0 auto;
    width: 100%;
    max-width: 720px;
  }

  .landing-direita {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
  }
}

/* =========================
   LANDING ESQUERDA
   ========================= */

.landing-esquerda {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.landing-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
  text-align: center;
}

/* Desktop: imagem + texto lado a lado */
@media (min-width: 768px) {
  .landing-container {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: center;
  }

  .landing-image,
  .landing-content {
    flex: 1;
  }
}

/* Imagem */
.landing-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
}

/* Conteúdo */
.landing-content {
  max-width: 520px;
}

.landing-content h1 {
  font-size: 1.6rem;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.landing-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

/* Botão */
.btn-landing {
  display: inline-block;
  background-color: var(--button-primary);
  color: var(--button-on-primary);
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

/* =========================
   CARROSSEL
   ========================= */

.landing-carousel {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
}

/* Ajuste fino no desktop */
@media (min-width: 1024px) {
  .landing-carousel {
    max-width: 380px;
  }
}

/* Trilho */
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  touch-action: pan-y; /* melhora swipe */
}

/* Slide */
.carousel-slide {
  min-width: 100%;
  height: 480px;
  padding: var(--space-4);
  box-sizing: border-box;
  display: flex;
}

/* Card */
.carousel-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--color-primary);
  border-radius: 24px;
  overflow: hidden;
  color: var(--button-on-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* leve profundidade */
}

/* Imagem */
.carousel-card img {
  width: 100%;
  height: 40%;
  object-fit: cover;
}

/* Conteúdo */
.carousel-content {
  flex: 1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.carousel-content h2 {
  margin-bottom: var(--space-3);
  font-size: 1.3rem;
}

/* Limita crescimento de texto */
.carousel-content p {
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Controles */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: var(--space-4);
}

.carousel-controls button {
  background: var(--color-primary);
  color: var(--button-on-primary);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
  .carousel-slide {
    height: auto;
  }

  .carousel-card img {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .carousel-content {
    justify-content: flex-start;
  }

  /* Esconde botões no mobile */
  .carousel-controls {
    display: none;
  }
}
