/* ================= HERO ================= */
.home-hero {
  width: 100%;
  height: 55vh; 


  background:
    linear-gradient(
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.15)
    ),
    url('../img/hero/fundo-dwa.png') center center / cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  overflow: hidden;

  animation: heroZoom 7s cubic-bezier(0.22, 1, 0.36, 1) forwards;

}


.hero-content {
  margin-left: 8%;
  max-width: 520px;
  color: #fff;

  background: rgba(0, 0, 0, 0.45);
  padding: 30px 35px;
  border-radius: var(--radius);

  opacity: 0;
  transform: translateY(30px);
  transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}



.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
}

.hero-content p {
  font-size: 20px;
  margin: 15px 0 25px;
}

.btn-hero-whatsapp {
  background-color: #25d366;
  padding: 12px 24px;
  border-radius: var(--radius);
  color: #fff;
  transition: 0.3s;
}



/* ================= SEÇÕES ================= */
section {
  padding: 70px 0;
}

.titulo-secao {
  margin-bottom: 40px;
  text-align: center;
}

/* Títulos conforme fundo */
.azul .titulo-secao {
  color: #ffffff;
}

.branco .titulo-secao {
  color: var(--azul-primario);
}


.home-servicos {
  background-color: var(--azul-primario);
}

.home-projetos {
  background-color: #ffffff;
}

.home-execucoes {
  background-color: var(--azul-primario);
}


/* ================= SERVIÇOS ================= */
.grid-servicos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}



.card-servico {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 30px;
  text-align: center;
  color: #fff;
  border-radius: var(--radius);
  transition: 0.3s;
}

.card-servico:hover {
  border-color: #25d366;
}

.card-servico .emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
  filter: grayscale(1);
  opacity: 0.9;
}

/* =================================================
   HOME — PROJETOS EM DESTAQUE (PADRÃO PROJETOS.PHP)
================================================= */

.home-projetos .grid-projetos-destaque {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */

.home-projetos .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;
}

/* REVEAL */

.home-projetos .card-projeto.ativo {
  transform: translateY(0);
  opacity: 1;
}

/* IMAGEM */

.home-projetos .card-projeto img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-projetos .card-projeto:hover img {
  transform: scale(1.08);
}

/* BODY */

.home-projetos .card-projeto-body {
  padding: 25px;
}

/* TEXTO */

.home-projetos .card-projeto h3 {
  margin-bottom: 10px;
  color: var(--azul-primario);
}

.home-projetos .card-projeto p {
  font-size: 14px;
  color: var(--cinza-medio);
  min-height: 90px;
}

/* HOVER PREMIUM */

.home-projetos .card-projeto:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 55px rgba(0,0,0,0.18);
}

/* BOTÃO */

.home-projetos .btn-detalhe {
  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;
}

.home-projetos .btn-detalhe:hover {
  background: var(--azul-secundario);
  transform: translateY(-2px);
}


/* ================= EXECUÇÕES ================= */
.galeria-execucoes {
  display: flex;
  height: 30vh;
}

.execucao-item {
  position: relative;
  flex: 1;
  transition: flex 0.4s ease;
}


.execucao-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.execucao-item span {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 4px;
}

.execucao-item:hover {
  flex: 3;
}





/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {
  .home-hero {
   
    max-height: 30vh;
    background-attachment: scroll;
    background-size: cover;
  
    }



  .hero-content {
    margin: 0 5%;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .grid-servicos,
  .grid-projetos-destaque {
    grid-template-columns: 1fr;
  }

  .galeria-execucoes {
      flex-direction: column;
      height: auto;
    }
    
    .execucao-item {
      width: 100%;
      height: 160px;
      transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    }
    
    .execucao-item:active {
      height: 260px;
    }


}

@media (max-width: 768px) {
  .home-projetos .grid-projetos-destaque {
    grid-template-columns: 1fr;
  }
}


/* =================================================
   HERO PREMIUM DWA
================================================= */


.home-hero.hero-loaded .hero-content {
  opacity: 1;
  transform: translateY(0);
}

/* H1 */
.hero-content h1 {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease;
}

.home-hero.hero-loaded h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* Parágrafo */
.hero-content p {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease;
}

.home-hero.hero-loaded p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Botão */
.btn-hero-whatsapp {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease;
}

.home-hero.hero-loaded .btn-hero-whatsapp {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

@keyframes heroZoom {
  0% {
    background-size: 115%;
    background-position: center 60%;
  }
  100% {
    background-size: 100%;
    background-position: center center;
  }
}

