/* =========================================================
   VARIABLES
========================================================= */

:root {
  --brand:#081240;
  --brand-soft:#1e2a6b;
  --muted:#6b7280;
  --bg:#eef2f8;
  --card-bg:#ffffff;
  --radius:14px;
  --shadow:0 12px 30px rgba(0,0,0,.08);
  --gold:#b89403;
}

/* =========================================================
   RESET
========================================================= */

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:Inter,Segoe UI,sans-serif;
  background:var(--bg);
  color:#111827;
  padding-top:82px;
}

img{
  width:100%;
  display:block;
}

.container{
  max-width:1150px;
  margin:auto;
  padding:0 20px;
}

/* =========================================================
   HEADER
========================================================= */

header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:white;
  z-index:999;
  box-shadow:0 4px 14px rgba(0,0,0,.05);
}

.navrow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:82px;
}

.brand h1{
  font-size:1.1rem;
  color:var(--brand);
}

.small{
  font-size:.75rem;
  color:var(--muted);
}

nav ul{
  display:flex;
  gap:22px;
  list-style:none;
}

nav a{
  text-decoration:none;
  color:#111827;
  font-weight:600;
  font-size:.9rem;
}

nav a:hover{
  color:var(--brand);
}

/* hamburger */

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.hamburger span{
  width:25px;
  height:3px;
  background:#111;
  border-radius:4px;
}

/* =========================================================
   HERO / BANNER
========================================================= */
.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Banner Desktop */
.hero-img-wrapper img.desktop-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Banner Mobile */
.hero-img-wrapper img.mobile-banner {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Texto sobre o banner */
.hero-banner-text h1 {
    color: white;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem); /* menor */
    font-weight: 500;
    margin-bottom: 4px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-banner-text p {
    color: var(--gold);
    font-size: clamp(1.2rem, 2.8vw, 1.8rem); /* maior */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.hero-banner-text {
    position: absolute;
    top: 45%;
    right: 5%; /* controla distância da borda direita */
    transform: translateY(-50%);
    text-align: center; /* mantém textos centralizados */
    max-width: 480px;
    z-index: 10;
}

/* Desktop */
.banner-text-desktop {
    display: block;
}
.banner-text-mobile {
    display: none;
}


/* Créditos */
.credito {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    background: rgba(255,255,255,0.6);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
}

/* =========================================================
   FILTROS
========================================================= */

.filtros-section{
  margin-top:40px;
}

.titulo-secao{
  font-size:1.5rem;
  font-weight:800;
  color:var(--brand);
}

.titulo-secao {
  text-align: center;
}

.filtros-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
  margin-top:18px;
}

.filtros-grid select,
.filtros-grid input{
  padding:12px;
  border-radius:10px;
  border:1px solid #d1d5db;
  font-size:.95rem;
}

.btn-primary{
  background:var(--brand);
  color:white;
  border:none;
  border-radius:10px;
  padding:12px;
  font-weight:600;
  cursor:pointer;
}

.btn-secondary{
  background:#e5e7eb;
  border:none;
  border-radius:10px;
  padding:12px;
  font-weight:600;
  cursor:pointer;
}

/* =========================================================
   GRID VITRINE
========================================================= */

.vitrine-section{
  margin-top:35px;
  margin-bottom:60px;
}

.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:20px;
}

/* =========================================================
   CARD
========================================================= */

.card-imovel{
  background:white;
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:.35s;
  display:flex;
  flex-direction:column;
  position:relative;
}

.card-imovel:hover{
  transform:translateY(-8px);
  box-shadow:0 18px 45px rgba(0,0,0,.12);
}

.card-imovel img{
  height:220px;
  object-fit:cover;
}

.selo-oportunidade{
  position:absolute;
  top:14px;
  left:14px;
  background:var(--gold);
  color:white;
  font-size:.7rem;
  font-weight:700;
  padding:6px 10px;
  border-radius:8px;
}

.card-conteudo{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.card-conteudo h3{
  font-size:1.1rem;
  color:var(--brand);
  font-weight:700;
}

.card-dados{
  font-size:.85rem;
  color:var(--muted);
}

.card-preco{
  font-size:1.65rem;
  font-weight:900;
  color:var(--brand);
  margin-top:10px;
}
.card-diferencial{
  font-size:.85rem;
  color:var(--brand);
  font-weight:600;
}

.card-resumo{
  font-size:.8rem;
  color:var(--muted);
}

/* BOTÕES CARD */

.card-botoes{
  display:flex;
  gap:12px;
  margin-top:14px;
}

.card-botoes a,
.card-botoes button{
  flex:1;
  padding:12px;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  text-align:center;
  cursor:pointer;
  border:none;
  color:white;
  transition:.25s;
}

.btn-detalhes{background:#3b82f6;}
.btn-detalhes:hover{background:#2563eb;}

.btn-card-whats{background:#16a34a;}
.btn-card-whats:hover{background:#0f7a37;}

/* =========================================================
   MODAL
========================================================= */

.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  justify-content:center;
  align-items:center;
  z-index:1000;
}

.modal-box-imovel{
  max-width:820px;
  width:92%;
  max-height:88vh;
  overflow-y:auto;
  padding:22px;
  background:white;
  border-radius:14px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.modal-analise{
  background:#f3f4f6;
  border-left:4px solid var(--gold);
  padding:12px;
  border-radius:8px;
  font-size:.9rem;
}

/* TITULO */

.modal-titulo{
  font-size:1.45rem;
  font-weight:800;
  text-align:center;
}

.modal-subtitulo{
  text-align:center;
  color:var(--muted);
}

/* GALERIA */

.modal-galeria{
  position:relative;
}

.modal-galeria img{
  max-height:380px;
  object-fit:cover;
  border-radius:10px;
  cursor:pointer;
}

.seta-esq,
.seta-dir{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,.4);
  color:white;
  border:none;
  font-size:2rem;
  width:40px;
  height:40px;
  border-radius:50%;
  cursor:pointer;
}

.seta-esq{left:10px;}
.seta-dir{right:10px;}

/* INFOS */

.modal-infos{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.info-box{
  flex:1 1 45%;
  background:#e6f0ff;
  border-radius:10px;
  padding:10px;
  font-weight:600;
  text-align:center;
}

.modal-preco-box{
  flex:1 1 100%;
  background:var(--gold);
  color:white;
  font-size:1.7rem;
  font-weight:900;
  text-align:center;
  padding:14px;
  border-radius:12px;
}

/* ENDEREÇO / MAPA */

.modal-endereco{
  font-weight:600;
  text-align:center;
}

.modal-mapa{
  width:100%;
  height:220px;
  border:0;
  border-radius:12px;
}

/* FORM */

.lead-form input{
  padding:12px;
  border-radius:10px;
  border:1px solid #d1d5db;
  width:100%;
  margin-bottom:10px;
}

.lead-form button{
  background:#3b82f6;
  color:white;
  border:none;
  border-radius:10px;
  padding:12px;
  font-weight:600;
  cursor:pointer;
}

/* WHATS MODAL */

#cta-modal-whats{
  margin-top:10px;
  display:block;
  text-align:center;
  padding:12px;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  color:white;
  background:#16a34a;
}

/* =========================================================
   FOOTER
========================================================= */

.footer-site{
  background:#081240;
  color:white;
  padding:40px 0;
  margin-top:60px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:30px;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media(max-width:1200px){
  .cards-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:700px){

  nav ul{
    position:absolute;
    top:82px;
    right:0;
    background:white;
    flex-direction:column;
    padding:20px;
    display:none;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
  }

  nav ul.active{display:flex;}
  .hamburger{display:flex;}

  .desktop-banner{display:none;}
  .mobile-banner{display:block;}

  .cards-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .card-imovel img{
    height:190px;
  }

}
#nav-links a {
  position: relative;
  padding: 8px 10px;
  transition: 0.3s ease;
}

/* BOX HOVER */
#nav-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: 8px;
  opacity: 0;
  transition: 0.3s ease;
}

#nav-links a:hover::before {
  opacity: 1;
  transform: scale(1.05);
}
@media(max-width:700px){

  .hero-banner-text {
    top: 50%;
    left: 50%;
    right: auto; /* remove conflito */
    transform: translate(-50%, -50%);

    width: 90%;
    max-width: 320px;

    text-align: center;
    padding: 0 10px;
  }

  .hero-banner-text h1 {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .hero-banner-text p {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .banner-text-desktop {
    display: none;
  }

  .banner-text-mobile {
    display: block;
  }

}
@media(max-width:700px){
  .hero-banner-text {
    display: none;
  }
}