/* Sessão Clientes */

.clientes {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f1f1f1 100%);
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  opacity: 0;
}

.clientes h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #a71930;
  font-weight: 700;
}

.clientes-descricao {
  font-size: 1.1rem;
  color: #a71930;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

/* Grid dos logos */

.clientes-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: start; /* impede todos aumentarem juntos */
  max-width: 1100px;
  margin: 0 auto;
}

.animar {
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.3s;
}

/* Card */

.cliente-retangulo {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 260px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* remove efeito ao tocar */
}

.cliente-retangulo:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

/* Imagem */

.cliente-retangulo img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #fff;
  padding: 1rem;
  user-select: none;
  -webkit-user-drag: none;
}

/* Info */

.cliente-info {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.cliente-info h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.3rem;
  color: #a71930;
}

.cliente-info p {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 1rem;
}

/* Card expandido */

.cliente-retangulo.expanded .cliente-info {
  max-height: 200px;
  padding: 1rem;
}
