/* Hero (Banner com background) */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
  margin-top: 80px; /* compensar navbar (80) + onda (150) */
}
.hero-background {
  position: absolute;
  inset: 0;
  background-image: url('../img/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.5);
  transform: scale(1.05);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}
.btn-primary {
  background-color: #0a70ac;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(10, 147, 150, 0.3);
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #005f73;
}

/* Cards sections */
.section-cards,
.section-produtos {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-cards h2,
.section-produtos h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  text-align: center;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 300px;
  text-align: center;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card h3 {
  margin: 15px 0 10px;
}
.card p {
  padding: 0 15px 15px;
}

/* Contato */
.section-contato {
  padding: 60px 20px;
  background: #e0f7fa;
  text-align: center;
}

.contato-cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin: 30px 0 40px;
}

.contato-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px 20px;
  width: 220px;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.contato-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.contato-card img {
  width: 55px;
  margin-bottom: 10px;
}

.contato-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Responsivo */
@media (max-width: 768px) {
  .contato-cards {
    flex-direction: column;
    align-items: center;
  }
}


.mapa {
  margin-top: 30px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


.servicos-link {
  color: inherit;
  text-decoration: none;
}

.servicos-link:hover {
  color: #0a9396;
  text-decoration: underline;
}

.popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0a70ac;
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 250px;
  display: none; /* será ativado via JS */
  animation: slideIn 0.4s ease;
}

.popup-content {
  position: relative;
}

.popup p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.popup-btn {
  background-color: #09b3b6;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.popup-btn:hover {
  background-color: #00757f;
}

.close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  line-height: 22px;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}
@media (max-width: 768px) {
  .hero-background {
    background-image: url('../img/mobiledef.png');
    background-position: center top;
  }
}