@import './theme.css';

.why-choose-us {
  text-align: center;
  padding: 20px 20px;
  margin-bottom: 90px;
  color: var(--paragraph-color);
}

.title {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--primary-text);
}

.title span {
  border-bottom: 2px solid var(--primary-text);
  padding-bottom: 3px;
}

/* GRID de 4 colunas */
.why-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
}

/* CARD */
.why-card {
  border: 1px solid var(--paragraph-color);
  border-radius: 12px;
  padding: 30px 20px;
  margin-top: 40px;
  text-align: center;
  background: var(--white-background);
  width: 100%;
  max-width: 220px;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--menu-header-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18); 
  background: var(--white-background); /* mantém fundo branco */
}

/* Ícone */
.why-icon {
  font-size: 40px;
  color: var(--primary-text);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

/* Texto */
.why-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--paragraph-color);
  margin: 0;
  transition: color 0.3s ease;
}

/* === HOVER COMPLETO === */
.why-card:hover .why-icon,
.why-card:hover .why-title {
  color: var(--background-color);
}

/* Responsividade */
@media (max-width: 1024px) {
  .why-cards-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .why-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .why-cards-container {
    grid-template-columns: 1fr;
  }
  .why-card {
    max-width: 100%;
  }
}

/* ===== Scroll Animation do topo da tela ===== */
.reveal {
  opacity: 0;
  transform: translateY(-300px); /* começa acima da seção, mas não muito longe */
  transition: all 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Stagger para cards */
.why-card.reveal:nth-child(1) { transition-delay: 0.1s; }
.why-card.reveal:nth-child(2) { transition-delay: 0.2s; }
.why-card.reveal:nth-child(3) { transition-delay: 0.3s; }
.why-card.reveal:nth-child(4) { transition-delay: 0.4s; }
.why-card.reveal:nth-child(5) { transition-delay: 0.5s; }
.why-card.reveal:nth-child(6) { transition-delay: 0.6s; }
.why-card.reveal:nth-child(7) { transition-delay: 0.7s; }
.why-card.reveal:nth-child(8) { transition-delay: 0.8s; }

