/* Adiciona rolagem suave para links de âncora */
html {
  scroll-behavior: smooth;
}

/* Geral */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding-top: 110px; /* Adiciona espaço no topo para o header fixo */
  background-color: #f7fcf8; /* Cor de fundo mais neutra */
  color: #333;
}

/* Header */
header {
  position: fixed; /* Deixa o header fixo */
  top: 0;
  left: 0;
  width: 100%;
  background-color: #a5d9b5; /* Nova cor primária */
  color: #0d765d; /* Nova cor secundária para o texto */
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); /* Sombra inicial */
  z-index: 1000; /* Garante que fique sobre outros elementos */
  transition: background-color 0.4s ease, box-shadow 0.4s ease; /* Animação suave */
}

.header-scrolled {
  background-color: rgba(165, 217, 181, 0.9); /* Primária semi-transparente */
}

header .container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-family: "Pacifico", cursive;
  font-size: 2.2rem; /* Tamanho da nova fonte */
  margin: 0;
  display: flex;
  align-items: center;
}

/* Estilo para a logo no header */
.logo {
  height: 80px; /* Ajuste a altura conforme necessário */
  width: 80px; /* Garante que a forma seja um círculo */
  margin-right: 10px; /* Espaço entre a logo e o texto */
  border-radius: 50%; /* Deixa a imagem redonda */
  object-fit: cover; /* Garante que a imagem preencha o círculo */
}

header nav a {
  color: #0d765d; /* Nova cor secundária */
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

header nav a:hover {
  text-decoration: underline;
}

/* Menu Hambúrguer (escondido em telas grandes) */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #0d765d;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

/* Hero */
.hero {
  background: url("images/banho.png") center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 20px;
  position: relative; /* Necessário para posicionar as bolhas */
  overflow: hidden; /* Esconde as bolhas que saem da área */
}

/* Animação de bolhas fofas */
.bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bubble {
  position: absolute;
  bottom: -100px; /* Começa fora da tela */
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: rise 15s infinite ease-in;
}

@keyframes rise {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-100vh) translateX(50px); /* Sobe e move um pouco para o lado */
  }
}

/* Variações para cada bolha */
.bubble:nth-child(1) { left: 10%; animation-duration: 12s; }
.bubble:nth-child(2) { left: 20%; animation-duration: 15s; animation-delay: 1s; width: 20px; height: 20px; }
.bubble:nth-child(3) { left: 35%; animation-duration: 20s; animation-delay: 2s; }
.bubble:nth-child(4) { left: 50%; animation-duration: 18s; animation-delay: 0.5s; width: 50px; height: 50px; }
.bubble:nth-child(5) { left: 55%; animation-duration: 13s; animation-delay: 3s; }
.bubble:nth-child(6) { left: 65%; animation-duration: 16s; animation-delay: 1.5s; width: 25px; height: 25px; }
.bubble:nth-child(7) { left: 75%; animation-duration: 19s; }
.bubble:nth-child(8) { left: 85%; animation-duration: 22s; animation-delay: 4s; width: 30px; height: 30px; }
.bubble:nth-child(9) { left: 90%; animation-duration: 14s; animation-delay: 2.5s; }
.bubble:nth-child(10) { left: 5%; animation-duration: 17s; animation-delay: 5s; width: 35px; height: 35px; }

.hero-text {
  position: relative; /* Garante que o texto fique sobre as bolhas */
  z-index: 2;
}

.hero-text {
  background: rgba(0,0,0,0.4);
  padding: 30px;
  border-radius: 15px;
}

.enfase-sem-gaiola {
  font-weight: 500;
  font-size: 1.1rem;
  margin-top: 10px;
  margin-bottom: 20px;
}

.botao {
  background-color: #0d765d; /* Nova cor secundária */
  color: #fff; /* Texto branco para contraste */
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  display: inline-block;
  margin-top: 5px; /* Espaçamento ainda mais reduzido */
  transition: transform 0.2s;
}

.botao:hover {
  transform: scale(1.05);
}

/* Serviços */
.servicos {
  padding: 60px 20px;
  text-align: center;
}

.subtitulo-servicos {
  font-size: 1.1rem;
  color: #555;
  margin-top: -15px;
  margin-bottom: 40px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 280px;
  overflow: hidden;
  display: flex; /* Adiciona flexbox */
  flex-direction: column; /* Organiza os itens em coluna */
  transition: transform 0.2s;
}

.card-content {
  padding: 15px;
  flex-grow: 1; /* Faz esta área crescer e empurrar o selo para baixo */
  display: flex;
  flex-direction: column;
}

.selo-sem-gaiola {
  background-color: #eef7f2;
  color: #0d765d;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 15px;
  margin: 0 15px 15px 15px;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Galeria */
.galeria {
  background-color: #eef7f2; /* Fundo sutil da galeria */
  padding: 60px 20px;
  text-align: center;
}

.fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.fotos img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.fotos img:hover {
  transform: scale(1.05);
}

/* Sobre */
.sobre {
  padding: 60px 20px;
  background-color: #fff;
}

.sobre .container {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 90%;
  margin: auto;
}

.foto-proprietaria {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(13, 118, 93, 0.2);
  border: 5px solid #a5d9b5;
}

.sobre-texto h2 {
  margin-top: 0;
}

.sobre-texto h3 {
  color: #0d765d;
  font-weight: 600;
  margin-top: -10px;
  margin-bottom: 20px;
}

/* Processo */
.processo {
  padding: 60px 20px;
  text-align: center;
}

.subtitulo-processo {
  font-size: 1.1rem;
  color: #555;
  margin-top: -15px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.processo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.processo-step {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 25px;
  width: 220px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.processo-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(13, 118, 93, 0.15);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1;
}

/* Contato */
.contato {
  padding: 60px 20px;
  text-align: center;
}

/* Estilos para os links na seção de contato */
.contato a {
  color: #0d765d;
}

.contato a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #a5d9b5; /* Nova cor primária */
  color: white;
  text-align: center;
  padding: 10px;
}

.enfase-footer {
  font-weight: 500;
  margin: 10px 0 15px 0;
}

/* Responsividade para Dispositivos Móveis */
@media (max-width: 768px) {
  body {
    padding-top: 80px; /* Ajusta o padding para o header menor */
  }

  /* Header */
  header .container {
    flex-wrap: wrap;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .logo {
    height: 60px;
    width: 60px;
  }

  /* Lógica do Menu Hambúrguer */
  .hamburger-menu {
    display: flex;
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: #a5d9b5;
    padding: 20px 0;
    margin-top: 15px;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 10px 0;
    font-size: 1.2rem;
  }

  /* Hero */
  .hero {
    height: auto; /* Altura automática para se ajustar ao conteúdo */
    padding: 40px 15px;
  }

  .hero-text h2 {
    font-size: 1.6rem; /* Reduz o tamanho do título principal */
  }

  /* Títulos das seções */
  h2 {
    font-size: 1.8rem;
  }

  .card {
    width: 90%; /* Ocupa quase toda a largura da tela */
  }

  /* Sobre - Responsivo */
  .sobre .container {
    flex-direction: column;
    text-align: center;
  }

  .foto-proprietaria {
    width: 200px;
    height: 200px;
  }

  /* Processo - Responsivo */
  .processo-step {
    width: 80%;
  }
}
