* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0d0d0d;
  color: #fff;
}

/* HERO */
.hero {
  height: 100vh;
  background: url("/images/capa.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%;
  position: relative;
  
}

.overlay {
  background: rgba(0,0,0,0.75);
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 15px;
}

.btn {
  margin-left: auto;
  padding: 12px 30px;
  background: red;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
}

.linha-botoes {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 50px;
  box-sizing: border-box; 
}



/* BOTAO SOBRE */
.sobre {
  margin: 40px 0;
  padding-left: 20%;
  text-align: left;
}

#btnSobre {
  background-color: red;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  margin-left: -240px;
}

#btnSobre:hover {
  background-color: #333;
}

.sobre-conteudo {
  max-width: 600px;
  margin: 20px auto 0;
  display: none;
  animation: fade 0.3s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* SEÇÕES */
section {
  padding: 80px 20px;
  text-align: center;
}

h2 {
  margin-bottom: 25px;
  font-size: 32px;
}

/* SERVIÇOS */
.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: #1a1a1a;
  padding: 30px;
  width: 200px;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s;
  
}

.card:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* PORTFÓLIO */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.foto {
  width: 100%;
  aspect-ratio: 1 / 1; /* ✅ FORÇA FORMATO PERFEITO */
  border-radius: 15px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ NUNCA distorce */
  display: block;
  transition: transform 0.4s ease;
}

.foto:hover img {
  transform: scale(1.08);
}

.hidden {
  display: none !important;
}


/* HOVER NORMAL */
.foto:hover img {
  transform: scale(1.1);
}

/* GARANTE QUE CARD ESCONDIDO NÃO QUEBRE O GRID */
.hidden {
  display: none !important;
 
}

.galeria {
  overflow: hidden;
}


/* CONTATO */
form {
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
}

button {
  background: red;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: green;
  color: white;
  font-size: 26px;
  text-decoration: none;
  padding: 15px;
  border-radius: 50%;
}

/* FOOTER */
footer {
  background: black;
  padding: 20px;
  text-align: center;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }
}


/* --- modal / lightbox --- */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

#fecharModal {
  position: absolute;
  top: 24px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  user-select: none;
}

.mostrar-todos {
  margin: 30px auto;
  display: block;
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  background: #1a1a1a;
  color: #fffdfd;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.mostrar-todos:hover {
  background: #ff0000;
  color: #fff;
}



/* ======================= */
/*      RESPONSIVIDADE     */
/* ======================= */

/* --- Tablets e celulares grandes --- */
@media (max-width: 768px) {

  /* HERO */
  .hero {
    height: 70vh;
    background-position: center;
  }

  .hero h1 {
    font-size: 36px;
    padding: 0 20px;
  }

  /* Botões do topo */
  .linha-botoes {
    padding: 0 20px;
    justify-content: center;
  }

  /* Botão SOBRE */
  #btnSobre {
    margin-left: 0;
    padding: 12px 25px;
  }

  /* Seções */
  section {
    padding: 60px 15px;
  }

  /* Serviços */
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 300px;
  }

  /* Portfólio */
  .galeria {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .foto {
    aspect-ratio: 1 / 1;
  }

  /* Texto */
  h2 {
    font-size: 26px;
  }

  /* WhatsApp */
  .whatsapp {
    right: 15px;
    bottom: 15px;
    padding: 12px;
    font-size: 22px;
  }
}

/* --- Celulares pequenos (iPhone SE etc) --- */
@media (max-width: 480px) {

  /* HERO */
  .hero h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  /* Sobre */
  #btnSobre {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  /* Galeria */
  .galeria {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Footer */
  footer p {
    font-size: 14px;
  }

  /* Formulário */
  form {
    width: 100%;
    padding: 0 10px;
  }
}


