* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Aplica a fonte Montserrat ao site todo */
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  padding-top: 80px;
}

/* Garante que o menu usa a mesma fonte e peso */
nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-decoration: none;
  color: #000;
}

.header {
    position: fixed;          /* Mantém sempre visível */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);

  height: 80px;             /* fixa a altura → impede menus de caírem para 2ª linha */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  white-space: nowrap;      /* impede quebrar para a linha de baixo */
}


p{
  text-align: left;
}

.p1{
  text-align: center;
  color: black;
}
.logo {
  font-weight: 700;
  color: #0b3d91;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0px;
}

.logo img {
  height: 50px; /* ajusta o tamanho conforme o logotipo */
  width: auto;
  margin-left: 0;
}

.logo span {
  font-weight: 700;
  color: #0b3d91;
  font-size: 1.4rem;
  margin-left: 0;
}

.nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #0b3d91;
}

/* Desktop Navigation */
.nav {
  display: flex;
  gap: 20px;
}

/* Responsive behavior */
@media (max-width: 900px) {
  .menu-mobile-button img {
    display: block; /* mostra no mobile */
  }
}

  /* Hide desktop nav */
  .nav {
    display: none;
  }

  /* Show hamburger */
  .menu-mobile-button img {
    display: block;
  }

/* Make mobile menu visible when active */
.menu-mobile.active {
  display: flex;
}
/* --- HERO SECTION --- */
.hero {
  background-image: url('imagens/parque das nações.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  position: absolute;
  bottom: 0;
  right: 15px;
  width: 430px;
  height: 500px;
  opacity: 0.9;
  display: none; /* Hide on mobile */
}

.hero-logo2 {
  position: absolute;
  bottom: 0;
  right: -200px; /* Off-screen on mobile */
  width: 320px;
  height: 430px;
  opacity: 1.5;
  display: none;
}

@media (min-width: 1200px) {
  .hero-logo {
    display: block;
  }

  .hero-logo2 {
    display: block;
    right: 0;
  }
}

/* Conteúdo */
.hero-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0;
}

/* Imagem decorativa */
.hero-icon {
  width: 320px;
  height: auto;
  object-fit: contain;
  margin-left: 0;
  position: relative;
  margin-top: -10px;
}
/* Mobile Hero */
@media (max-width: 768px) {
  .hero {
    background-position: center;
    min-height: 50vh;
    padding: 1rem;
    justify-content: center;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-icon {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-test h1 {
    font-size: 1.6rem;
  }

  .hero-test p {
    font-size: 0.95rem;
  }

  /* show Valentyna "bola" on mobile */
  .hero-logo {
    display: block !important;
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 10005;
  }

  /* hide the larger decorative logo on small screens */
  .hero-logo2 {
    display: none !important;
  }
}

/* Texto */
.hero-test h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: rgb(255, 0, 0);
}

.hero text h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: rgb(51, 51, 51);
}

.hero-test p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: rgb(255, 0, 0);
    text-align: center;
  }
/* small-screen subtitle tweak removed */

.p2{
    text-align: center;
    color: white;
}
/* Botão */
.btn {
  background-color: #0b3d91;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
  display: block; /* Garante que o botão se comporte como um bloco */
  margin: 0 auto; /* Centraliza horizontalmente */
  width: 180px;   /* Define uma largura */
  text-align: center;
}


.btn:hover {
  background-color: #092e6d;
}


/* Secções */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.section h2 {
  color: #0b3d91;
  margin-bottom: 1rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: center;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 2rem;
  width: 280px;
  transition: transform 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-5px);
}

/* Rodapé */
.footer {
  background: #0b3d91;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.casas-lista {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.casas-lista h2 {
  text-align: center;
  color: #0b3d91;
  margin-bottom: 40px;
}

.casa {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 25px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.casa:hover {
  transform: scale(1.02);
}

.casa img {
  width: 45%;
  height: 240px;
  object-fit: cover;
}

.casa-info {
  padding: 20px 25px;
  flex: 1;
}

.casa-info h3 {
  color: #0b3d91;
  margin-bottom: 8px;
}

.casa-info .localizacao,
.casa-info .preco {
  font-weight: 600;
  margin-bottom: 6px;
}

.casa-info .descricao {
  color: #555;
  margin-bottom: 15px;
}

.btn-detalhes {
  display: inline-block;
  padding: 8px 16px;
  background: #0b3d91;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-detalhes:hover {
  background: #082c6d;
}

@media (max-width: 768px) {
  .casa {
    flex-direction: column;
  }

  .casa img {
    width: 100%;
    height: 220px;
  }

  .casa-info {
    padding: 15px;
  }
}

/* Página Casas */
.casas-section {
  padding: 80px 10%;
  background-color: #f5f8ff;
  text-align: center;
}

.casas-section h1 {
  font-size: 2.2em;
  color: #002b7f;
  margin-bottom: 40px;
}

.casas-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.casa-card {
  display: flex;
  align-items: center;
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.casa-card:hover {
  transform: translateY(-5px);
}

.casa-card img {
  width: 40%;
  height: 250px;
  object-fit: cover;
}

.casa-info {
  padding: 20px;
  text-align: left;
  width: 60%;
}

.casa-info h2 {
  font-size: 1.5em;
  color: #002b7f;
}

.casa-info .localizacao {
  color: #555;
  font-weight: 500;
  margin: 5px 0;
}

.casa-info .preco {
  font-weight: 600;
  color: #0073e6;
  margin: 10px 0;
}

.casa-info .descricao {
  color: #444;
  font-size: 0.95em;
}

/* Responsivo */
@media (max-width: 900px) {
  .casa-card {
    flex-direction: column;
  }

  .casa-card img {
    width: 100%;
    height: 200px;
  }

  .casa-info {
    width: 100%;
    text-align: center;
  }
}

.btn-detalhes {
  display: inline-block;
  background-color: #002D72;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.btn-detalhes:hover {
  background-color: #0044a3;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
  padding: 0 20px;
}

.galeria img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.03);
}


.foto {
  text-align: center;
}

  .legenda {
  margin-top: 6px;
  font-size: 16px;
  color: #666;
  font-style: italic;
}

.descricao-video {
  text-align: center;
  margin-top: 8px;
  color: #555;
  font-size: 1rem;
}

.imagem-casa {
  position: relative;
  width: 40%;          /* igual aos outros cards */
  height: 250px;
  overflow: hidden;
}

.imagem-casa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ✅ Faixa pequena “VENDIDO” */
.vendido-faixa {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: red;
  color: white;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-feedback {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-feedback input,
.form-feedback textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.form-feedback button {
  background-color: #0056b3;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.form-feedback button:hover {
  background-color: #003d80;
}

.licenca {
  display: block;           /* Garante que ocupa uma linha completa */
  text-align: center;       /* Centraliza horizontalmente */
  font-weight: bold;        /* Negrito */
  color: #0b3d91;           /* Cor bonita e consistente */
  margin-bottom: 20px;      /* Espaço entre o texto e os cards */
  font-size: 1rem;          /* Tamanho confortável */
}

@media (max-width: 768px) {
  .hero {
    background-position: top center;
    min-height: 60vh; /* um pouco mais pequena se quiseres */
  }

  .hero-test h1 {
    font-size: 1.8rem;
  }

  .hero-test p {
    font-size: 1rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}
/* Mostra o hambúrguer no desktop e no mobile */
.menu-mobile-button {
  display: block;
  cursor: pointer;
}

.menu-mobile-button img {
  width: 35px;
  height: auto;
}

/* Menu Mobile (escondido por padrão) */
.menu-mobile {
  display: none;
  flex-direction: column;
  background: white;
  width: 100%;
  padding: 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  position: absolute;
  top: 80px;
  right: 0;
  z-index: 9998;
}

.menu-mobile a {
  padding: 12px 1rem;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  text-align: right;
}

.menu-mobile.open {
  display: flex;
}


.logo img {
  height: 45px;
}

/* Restore hero logo visibility and avoid clipping on desktop */
@media (min-width: 1000px) {
  .hero-logo {
    display: block !important;
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 430px;
    height: 500px;
    opacity: 0.95;
    z-index: 1000;
  }
  .hero {
    overflow: visible; /* allow logo to be visible if positioned outside */
  }
}

/* Ensure a visible small hero logo on mid-size desktops */
@media (min-width: 768px) and (max-width: 999px) {
  .hero-logo {
    display: block !important;
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  .hero {
    overflow: visible;
  }
}

/* Mobile-specific: move woman left, center buttons, show Valentyna icon */
@media (max-width: 900px) {
  .hero-content {
    position: relative;
  }

  .hero-icon {
    position: absolute;
    left: -8%; /* push woman left to reveal building */
    bottom: 0;
    width: 46%;
    max-width: 280px;
    height: auto;
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
  }

  .hero-test {
    position: relative;
    z-index: 3;
    max-width: 640px;
    margin: 0 auto; /* center content */
    padding-top: 18px;
    text-align: center;
  }

  .hero-test .btn {
    width: 240px;
    margin: 0.8rem auto; /* center buttons */
    display: block;
  }

  /* ensure Valentyna icon is visible on phones */
  .hero-logo {
    display: block !important;
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 1005;
  }
}
