/* Arquivo principal que importa todos os estilos */
@import url('base/reset.css');
@import url('base/typography.css');
@import url('utils/variables.css');
@import url('components/buttons.css');
@import url('components/cards-imoveis.css');
@import url('components/search-bar.css');
@import url('components/pagina-sobre.css');
@import url('components/pagina-contato.css');

/* Estilos gerais do site */

/* Estilo de transição para fade (já existente) */


body.loaded {
  opacity: 1;
}

body.unloading {
  opacity: 0;
}

body {
  color: var(--text-color);
  background: #e6dfdf85;
  font-family: 'Arial', sans-serif;
  padding-top: 118px;
}

header {
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 100px;
  z-index: 1000;
  align-items: center;
} 

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  height: 100px;
  background-color: #FEFEFE;
  box-shadow: 0 2px 5px rgba(8, 8, 8, 0.39);
}

/* Estilo do menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* Estilo do logo */
header .logo img { 
  height: 90px;
}

header nav .logo {
  padding-top: 5px;
  padding-bottom: 1px;
}

header nav a img {
  transition: transform 0.2s ease;
}

header nav a img:hover {
  transform: scale(1.1);
}

.header-nav ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
}

.header-nav a {
  color: var(--text-color-link-menu);
  text-decoration: none;
  padding: 10px;
}

header nav .icone-rede-social {
  display: flex;
  gap: 10px;
}

header nav .botao-social {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 2px;
}

header nav .nav-menu li {
  border-radius: 8px;
  text-align: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 5px 0px;
}


.header-nav .nav-menu ul li a.active {
  color: #C7473C !important; /* Vermelho para destacar */
  font-weight: bold !important;
  background-color: #d99f5967 !important;
  box-shadow: 0px 1px 5px rgba(153, 1, 1, 0.63); 
  border-radius: 8px !important;
  padding: 5px 10px !important;
}

/* Efeito hover */
header .botao-social:hover {
  transform: scale(1.2);
  box-shadow: 0px 4px 10px rgba(153, 1, 1, 0.63);
  /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); */
}

header .nav-menu li:hover {
  transform: scale(1.1);
  background-color: #d99f5967
  /*box-shadow: 0px 4px 10px rgba(153, 1, 1, 0.63);*/
}

.nav-menu li a {
  text-decoration: none;
  font-weight: 700;
}

/* Estilo do menu hambúrguer */
.hamburger {
  display: none; /* Escondido por padrão */
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color:#D09D5B;
  padding: 5px;
}

/* Ícone de "X" quando o menu está aberto */
.hamburger.active i::before {
  content: '\f00d'; /* Ícone de "X" do Font Awesome */
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg);
  /*background: url('../assets/img/office-bg.jpg') no-repeat center/cover;*/
  background-image: url(/nova-terra-adm/assets/img/imagem_home.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: rgb(245, 245, 245);
  text-align: center;
  height: 100vh;
  justify-content: center;
}

section.hero h1 {
  color: #f7f6f5;
  font-size: 2em;
  margin: auto;
  margin-top: 500px;
  text-shadow: 2px 2px 4px #000000;
}

section.hero h2 {
  color: #D99F59;
  font-size: 1.5em;
  margin-bottom: 40px;
  margin-top: 30px;
  text-shadow: 2px 2px 4px #000000;
}

/* 👇 HOME ABAIXO DO HERO */
.container {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.beneficios h2, .servicos h2, .cta-final h2 {
  text-align: center;
  color: #C7473C;
  margin-bottom: 30px;
}

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

.card {
  flex: 1;
  min-width: 250px;
  background-color: #f5e5d9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #D09D5B;
}

/* Serviços */
.servicos ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0;
  font-size: 1.1rem;
}

.servicos li::before {
  content: "✔️ ";
  margin-right: 5px;
  color: #40916c;
}

.cta-final {
  background: linear-gradient(to right, #eaf4f4, #f9fbfb);
  padding: 60px 20px;
  text-align: center;
  color: #003333;
}

.cta-final .container {
  max-width: 900px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: 2rem;
  color: #D09D5B;
  margin-bottom: 20px;
  font-weight: bold;
}

.cta-final p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333;
}

.cta-final div.container p strong {
  color: #D09D5B;
}

.cta-final em {
  display: block;
  text-align: center;
  color: #C7473C;
  font-style: italic;
  margin-top: 15px;
  font-size: 1rem;
}

.btn.grande {
  background-color: #f1ded5;
  color: #C7473C;
  margin-top: 30px;
  padding: 15px 30px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  text-align: center;
}

.cta-final .btn.grande:hover {
  background-color: #ecd2b7;
}

section div.container a.btn:hover {
  color: #C7473C;
  transform: scale(1.05);
}

.btn-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  
}




/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 400px;
  }

  .servicos ul {
    grid-template-columns: 1fr;
  }

  .cta-final {
    padding: 40px 15px;
  }

  .cta-final h2 {
    font-size: 1.5rem;
  }

  .cta-final p {
    font-size: 1rem;
  }

  .cta-final .btn.grande {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }
}


@media (max-width: 480px) {
  .card h3 {
    font-size: 1rem;
  }

  .servicos li {
    font-size: 1rem;
  }

  .container {
    padding: 40px 15px;
  }

  .cta-final h2 {
    font-size: 1.3rem;
  }

  .cta-final p {
    font-size: 0.95rem;
    text-align: justify;
  }

  .cta-final .btn.grande {
    padding: 12px;
    font-size: 0.95rem;
  }
}

/* 👆 HOME ABAIXO DO HERO */



.imoveis-container {
  padding: var(--spacing-lg);
  padding-top: 50px;
  text-align: center;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg);
}

section.mapa-container {
  padding: var(--spacing-lg);
  text-align: center;
  border-radius: 8px;
}

section.mapa-container iframe{
  border-radius: 8px;
}

/* 👇 ===================================== FOOTER =======================*/
/* Estilo geral do footer */
.footer {
  background-color: #FEFEFE;
  color: #272424;
  padding: 40px 20px 20px;
  font-family: 'Arial', sans-serif;
}

.footer div.footer-section ul {
  list-style-position: inside;
}


.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #D09D5B;
}

.footer-section p,
.footer-section li,
.footer-section a {
  font-size: 14px;
  line-height: 1.6;
  color: #181414;
}

.footer-section a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #C7473C;
}

/* Redes sociais */
.footer-section .icons a {
  margin-right: 10px;
  color: #D09D5B;
  font-size: 18px;
  transition: transform 0.3s, color 0.3s;
}

.footer-section .icons a:hover {
  transform: scale(1.2);
  color: #C7473C;
}

/* Rodapé inferior */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #8d8888;
  padding-top: 15px;
  font-size: 13px;
  color: #777;
}

.footer-bottom .dev-credit {
  margin-top: 5px;
  font-size: 13px;
  color: #999;
}

.footer-bottom .dev-credit a {
  color: #05b4ac;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom .dev-credit a:hover {
  color: #3f729b;
}
/* 👆 FOOTER */


.whatsapp-icon {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  /* background: #25d366; */
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); */
}

.whatsapp-icon img {
  width: 40px;
  height: 40px;
}

.whatsapp-icon:hover {
  transform: scale(1.15);
  opacity: 0.9;
  
}



@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.whatsapp-icon {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.whatsapp-icon {
  animation: pulse 1.5s infinite ease-in-out;
}

/*  👇  ///  RESPOSIVIDADE  ✔ */

/* Responsividade */
@media (max-width: 768px) {

/* Estilo do logo */
  .hamburger {
    display: block;/* Exibe o ícone do hambúrguer */
  }

  header nav .botao-social {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 2px;
    margin: 1px;
  }

  .nav-menu {
    display: none; /* Esconde o menu por padrão */
    position: absolute;
    top: 100%; /* Abaixo do header */
    left: 0;
    width: 100%;
    flex-direction: initial;
    padding: 5px;
    margin-top: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.212);
    z-index: 1000;
    background-color: #FEFEFE;
  }

  .nav-menu.active {
    display: flex !important; /* Exibe o menu quando ativo */
  }

  .nav-menu li {
    margin: 10px 0;
  }

  /* Exibir os botões das redes sociais dentro do menu em telas pequenas */
   .social-links-mobile {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  /* Esconder os botões das redes sociais fora do menu em telas pequenas */
  .social-links-desktop {
    display: none;
  }

  .hero, .destaques, .search-bar {
    padding: var(--spacing-md);
  }

  .hero {
    height: 400px;
  }

  .header-nav ul {
    /* flex-direction: column; */ 
    text-align: center;
  }

  .whatsapp-icon {
    display: none;
    width: 12vw;
    height: 12vw;
    max-width: 60px;
    max-height: 60px;
    animation: fadeIn 0.5s ease-in-out;
  }

  .whatsapp-icon img {
    width: 60%;
    height: 60%;
  }
  
  .whatsapp-icon {
    width: 50px;
    height: 50px;
    animation: pulse 2s infinite ease-in-out; /* Ajuste para ser mais suave em mobile */
  }
  .whatsapp-icon img {
    width: 35px;
    height: 35px;
  }

  .sobre-conteiner {
    width: 90%;

  /* Responsivo */
  footer div.footer-container {
    padding: 2px;
    margin: 5px;
  }


  .footer-section {
    text-align: center;
  }

  .footer-section .icons {
    justify-content: center;
  }
}
}