/* Reset e estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  padding-top: 70px;
}

/* Navbar fixa */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Logo como imagem */
.navbar-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 50px;
  width: auto;
}

/* Menu de navegação */
.navbar-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
}

.navbar-menu a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: #6367ed;
}


/* Ícones e botões na direita */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-icon {
  font-size: 18px;
  cursor: pointer;
  color: #333;
}

.portal-link {
  text-decoration: none;
  color: #333;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.enter-btn {
  background-color: #85adff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.enter-btn:hover {
  background-color: #6196ff;
}

/* Menu hambúrguer */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s;
}

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

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

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

/* Ajuste para conteúdo (margem top para compensar navbar fixa) */
.content {
  margin-top: 70px;
  padding: 40px 30px;
}

/* Responsivo */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: nowrap;
    padding: 10px 15px;
    z-index: 1200;
  }

  .navbar-logo img {
    height: 40px;
  }

  .hamburger {
    display: flex;
    z-index: 1200;
    padding: 8px;
  }

  .navbar-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    z-index: 1100;
    display: none;
  }

  .navbar-menu.active {
    display: flex;
    max-height: 1000px;
    opacity: 1;
  }

  .navbar-menu a {
    font-size: 14px;
  }

  .navbar-right {
    display: none;
  }

  .navbar-right.mobile-show {
    display: flex;
    position: absolute;
    top: 70px;
    right: 15px;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .hero-imoveis {
    min-height: 450px;
    padding-top: 80px;
    align-items: flex-start;
  }

  .hero-imoveis h1 {
    font-size: 2.2rem;
  }

  .search-box {
    display: flex;
    flex-direction: column;
    width: min(100%, 420px);
    gap: 10px;
    padding: 15px;
  }

  .btn {
    width: 100%;
    padding: 14px 16px;
  }

  .content {
    margin-top: 70px;
  }

a {
  text-decoration: none;
}

}
