/* GRID DE PROFISSÕES */
.professions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 25px;
  padding: 20px;
  justify-items: center;
}

/* CARD */
.profession-card {
  width: 150px;
  background: #ffffff;
  border-radius: 18px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #e8e8e8;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* IMAGEM */
.profession-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .3s ease;
}

/* TEXTO */
.profession-card h3 {
  margin-top: 12px;
  font-size: 1rem;
  color: #222;
  font-weight: 600;
}

/* HOVER BONITO */
.profession-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.profession-card:hover img {
  transform: scale(1.06);
}

/* ANIMAÇÃO EM CASCATA */
.fade-in {
  opacity: 0;
  animation: fadeInMove .6s ease forwards;
}

@keyframes fadeInMove {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .profession-card {
    width: 130px;
  }

  .profession-card img {
    height: 95px;
  }
}
