/* =================================================
   HERO
================================================= */

.projetos-hero {
  padding: 100px 0 90px;
  text-align: center;
  background: var(--azul-primario);
  position: relative;
  overflow: hidden;
}

/* garante visibilidade do título */
.projetos-hero .titulo-secao {
  color: #fff;
}

/* subtítulo */
.subtitulo-projetos {
  color: #fff;
  max-width: 700px;
  margin: 15px auto 0;
  opacity: 0.9;
}

/* =================================================
   INTRO
================================================= */

.projetos-intro {
  padding: 70px 0 10px;
  text-align: center;
}

.texto-intro {
  max-width: 820px;
  margin: auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--cinza-medio);
}

/* =================================================
   GRID PROJETOS
================================================= */

.grid-projetos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 40px;
}

/* =================================================
   CARD PROJETO
================================================= */

.card-projeto {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transform: translateY(30px);
  opacity: 0;

  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s,
    opacity 0.6s ease;
}

/* animação reveal ativa */
.card-projeto.ativo {
  transform: translateY(0);
  opacity: 1;
}

.card-projeto img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-projeto:hover img {
  transform: scale(1.08);
}

.card-projeto-body {
  padding: 25px;
}

.card-projeto h3 {
  margin-bottom: 10px;
  color: var(--azul-primario);
}

.card-projeto p {
  font-size: 14px;
  color: var(--cinza-medio);
}

/* hover premium */
.card-projeto:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 55px rgba(0,0,0,0.18);
}

/* BOTÃO CARD */

.btn-card {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  background: var(--azul-primario);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  transition: 0.3s;
}

.btn-card:hover {
  background: var(--azul-secundario);
  transform: translateY(-2px);
}

/* =================================================
   CTA FINAL
================================================= */

.projetos-cta {
  text-align: center;
  padding: 100px 0;
  background: #f9fafb;
}

.btn-projetos {
  background: #25d366;
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;

  transition: 0.3s;
}

.btn-projetos:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* =================================================
   RESPONSIVO
================================================= */

@media (max-width: 992px) {
  .grid-projetos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .projetos-hero {
    padding: 80px 0;
  }

  .texto-intro {
    font-size: 16px;
  }

  .grid-projetos {
    grid-template-columns: 1fr;
  }
}
