@import url("https://fonts.cdnfonts.com/css/nexa-bold");

:root {
  --primary-text-color: #dabdbc;
  --secondary-text-color: #ffffff;
  --primary-background-color: #46475c;
  --secondary-background-color: #555770;
  --border-color: #dabdbc;
}

body {
  margin: 0;
  user-select: none;
  font-family: "Nexa", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.container {
  background-color: var(--secondary-background-color);
  color: var(--primary-text-color);
}

nav {
  max-width: 100vw;
  width: 100vw;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 3rem;
  padding-right: 3rem;
  border-bottom: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
  display: flex;
  background-color: #46475c;
  position: fixed;
  z-index: 1;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav > *:first-child {
  justify-self: start;
}

nav > *:nth-child(2) {
  justify-self: center;
}

nav > *:last-child {
  justify-self: end;
}

nav a,
nav h1 {
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  color: var(--primary-text-color);
}

nav a:hover {
  transform: scale(1.1);
  transition: 0.3s;
}

.logo img {
  width: 50px;
  height: 50px;
}

.links {
  display: flex;
  flex-direction: row;
}

.links a:nth-child(2) {
  margin: 0 20px;
}

.links a:nth-child(3) {
  margin-right: 20px;
}

.contato {
  background: rgba(126, 211, 33, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 135, 48, 0.37);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px;
  align-items: center;
}

.contato a {
  color: var(--secondary-text-color);
  text-decoration: none;
}

.contato:hover {
  background: rgba(126, 211, 33, 0.5);
  transition: 0.3s;
}

main {
  text-align: center;
  width: 100%;
}

section {
  align-content: center;
  width: 100%;
}

section p {
  color: var(--secondary-text-color);
}

#Home {
  position: relative;
  height: 100vh;
  background-image: url("assets/fundo.png");
  background-size: cover;
  background-position: center;
}

.home_content {
  position: relative;
  height: 100%; /* Garante que o conteúdo ocupe a altura total */
  display: flex;
  flex-direction: column; /* Default: texto sobre a imagem */
  justify-content: flex-start; /* Alinha o texto ao topo */
}

.home_text {
  position: absolute; /* Mantém o texto sobre a imagem */
  top: 30vh; /* Ajusta a posição vertical */
  left: 3vw; /* Ajusta o deslocamento horizontal */
  width: 30vw;
  color: white; /* Garanta contraste adequado para o texto */
}

.home_text h1 {
  color: var(--primary-text-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.home_text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

#Beneficios {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-background-color), var(--secondary-background-color));
}

.box_beneficts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 3vh 4vw;
  color: var(--secondary-text-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  animation: fadeIn 1s ease-in;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  width: 90%;
}

.box_beneficts > div {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80%;
  max-height: 200px;
  min-height: 200px;
}

.box_beneficts > div:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.icon {
  background: linear-gradient(135deg, var(--primary-text-color), var(--secondary-background-color));
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.icon svg {
  width: 30px;
  height: 30px;
  fill: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.box_beneficts h2 {
  color: var(--primary-text-color);
  font-size: 1rem;
  margin: 10px 0 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.box_beneficts h1 {
  color: var(--secondary-text-color);
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#escolha {
  background-color: var(--primary-background-color);
  overflow: hidden;
  height: 130vh;
  text-align: center;
  background-image: url("assets/fundo2.png");
  background-size: cover;
  background-position: center;
}

.escolha-texto {
  line-height: 1.6;
  width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 60vw;
}

.procedimentos-conteudo {
  display: grid;
  flex-direction: column;
  grid-template-columns: repeat(4, auto);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

.procedimento {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
  margin: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.procedimento:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.procedimento img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.procedimento h3 {
  color: var(--primary-text-color);
  margin: 15px 0;
  font-size: 1.2rem;
}

.procedimento p {
  color: var(--secondary-text-color);
  font-size: 0.9rem;
  line-height: 1.4;
}

#local {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 500px;
}

#map {
  width: 800px;
  height: 400px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
  margin-right: 15px;
}

.map_container {
  display: flex;
  height: 400px;
  background: var(--primary-background-color);
  padding-right: 20px;
  border-radius: 20px;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
}

.address-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.logoFooter {
  color: rgb(255, 255, 255);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  margin-bottom: 30px;
}

.footer {
  background-color: #46475c;
  padding: 20px 0;
  text-align: center;
  border-top: 2px solid var(--border-color);
}

.footer p {
  color: rgb(180, 180, 180);
  font-size: 12px;
}

.social-media {
  margin: 10px 0;
}

.social-media a {
  text-decoration: none;
  font-size: 20px;
  color: rgb(255, 255, 255);
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-background-color);
}

.social-media a:hover {
  transform: scale(1.1);
  color: #fff;
}

.copyright {
  color: rgb(180, 180, 180);
  font-size: 12px;
  margin-top: 10px;
}

.cotato {
  background: linear-gradient(180deg, rgb(214, 255, 137), rgb(138, 165, 87));
  padding: 10px 40px;
  color: white;
  text-decoration: none;
  border-radius: 10px;
}

.cotato:hover {
  transform: scale(1.1);
  transition: 0.3s;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

#depoimentos {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--secondary-background-color), var(--primary-background-color));
}

#depoimentos h2 {
  text-align: center;
  color: var(--primary-text-color);
  font-size: 2rem;
  margin-bottom: 40px;
}

.depoimentos-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.depoimento-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.depoimento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.estrelas {
  color: #ffd700;
  font-size: 1.2rem;
  display: flex;
  gap: 5px;
}

.texto-depoimento {
  color: var(--secondary-text-color);
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  flex-grow: 1;
}

.autor-depoimento {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.autor-depoimento img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-text-color);
}

.info-autor h4 {
  color: var(--primary-text-color);
  margin: 0;
  font-size: 1.1rem;
}

.info-autor p {
  color: var(--secondary-text-color);
  margin: 5px 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  #Home {
    height: auto; /* Permite que o conteúdo cresça conforme necessário */
    background-image: none; /* Remove a imagem de fundo no mobile */
  }

  #escolha {
    height: auto;
    background-image: none !important;
    background: #555770;
  }

  .escolha_image {
    background-image: url("assets/fundo2.png");
    background-position: center;
    background-size: cover;
    background-position: center;
    width: 100%; /* Imagem ocupa a largura total */
    height: 40vh; /* Define uma altura fixa para a imagem */
  }

  .home_content {
    flex-direction: column; /* Imagem em cima e texto embaixo */
    align-items: center; /* Centraliza os itens no mobile */
    text-align: center; /* Texto centralizado */
  }

  .home_image {
    background-image: url("assets/fundo.png"); /* Define a imagem no mobile */
    background-size: cover;
    background-position: center;
    width: 100%; /* Imagem ocupa a largura total */
    height: 40vh; /* Define uma altura fixa para a imagem */
    margin-top: 15vh;
  }

  .home_text {
    position: static; /* Remove o posicionamento absoluto */
    top: auto;
    left: auto;
    margin: 20px 0; /* Ajusta o espaçamento no mobile */
    width: 90%; /* O texto ocupa a largura quase total da tela */
  }

  .home_text h1 {
    font-size: 2rem; /* Reduz o tamanho do texto */
  }

  .home_text p {
    font-size: 1rem;
  }

  .contato {
    padding: 10px 15px;
    font-size: 1rem;
  }

  nav {
    flex-direction: column;
    padding: 1rem;
  }

  .links {
    flex-direction: column;
    align-items: center;
  }

  .home_text {
    width: 80vw;
    margin-left: 10vw;
  }

  #Beneficios {
    padding: 30px 0;
  }

  .box_beneficts {
    grid-template-columns: 1fr;
    width: 80%;
  }

  .box_beneficts > div {
    min-height: 180px;
  }

  .icon {
    width: 50px;
    height: 50px;
    padding: 12px;
  }

  .icon svg {
    width: 25px;
    height: 25px;
  }

  .box_beneficts h2 {
    font-size: 0.9rem;
  }

  .box_beneficts h1 {
    font-size: 1.2rem;
  }

  .escolha-texto {
    width: 80vw;
    margin-left: 10vw;
  }

  .procedimentos-conteudo {
    grid-template-columns: repeat(2, auto);
    gap: 20px;
    padding: 0 20px;
  }

  #map {
    width: 90vw;
    height: 400px;
  }

  .map_container {
    display: flex;
    height: 500px;
    width: 90vw;
    flex-direction: column;
    background: var(--primary-background-color);
    border-radius: 20px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
  }

  #local {
    height: 600px;
  }
  
  .address-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(70, 71, 92, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 80px 20px;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .links.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .links a {
    margin: 15px 0;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  .links.active a {
    opacity: 1;
    transform: translateX(0);
  }

  .links a:nth-child(1) { transition-delay: 0.1s; }
  .links a:nth-child(2) { transition-delay: 0.2s; }
  .links a:nth-child(3) { transition-delay: 0.3s; }
  .links a:nth-child(4) { transition-delay: 0.4s; }

  .depoimentos-container {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .depoimento-card {
    padding: 20px;
  }

  #depoimentos h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .home_text {
    width: 90vw;
    margin-left: 5vw;
  }

  .escolha-texto {
    width: 90vw;
    margin-left: 5vw;
  }

  .procedimentos-conteudo {
    grid-template-columns: 1fr;
  }

  .procedimento img {
    width: 100%;
    height: 200px;
  }
}
