/* Base geral */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fcf3e3;
    color: #333;
    margin: 0;
    padding: 0;
}

h2 {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    color: white;
    background: #023970;
}


/* Cabeçalho base */
.header {
  color: white;
  position: relative;
}

/* Logo e navegação */
.conteudo {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.5rem 2rem;
  margin: 0 2rem;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  gap: 0.8rem;
}

.logo-img {
  height: 130px;
  width: auto;
}

/* Links do menu */
.menu a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3rem;
}

.menu a:hover {
  text-decoration: underline;
}

/* Botão sanduíche */
.menu-toggle {
  margin-left: auto;
  align-self: center;
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Header com imagem */
.header.com-imagem {
  background: url('../img/casa.png') no-repeat center center/cover;
  height: 380px;
  overflow: hidden;
}

/* Overlay escuro no menu */
.menu-container-home {
  /*background: rgba(0, 0, 0, 0.4);*/
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
}

.menu-container-detalhe {
  background: #023970;
}

.menu-container-contato {
  background: rgba(0, 0, 0, 0.65);
}

/* Frase de destaque */
.headline {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
}

.headline h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}



/* Seção de busca */
.busca {
    background: #fcf3e3;
    padding: 2rem 1rem;
    text-align: center;
}

.busca input[type="text"] {
    padding: 0.8rem;
    width: 60%;
    max-width: 500px;
    border: none;
    border-radius: 5px;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.busca button {
    padding: 0.8rem 1.2rem;
    background: #fff;
    color: #004080;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.busca button:hover, 
.filtros form button:hover {
    background: #e6e6e6;
}

/* Filtros */
.filtros {
    background: #fcf3e3;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
    margin: 0 4rem;
}

.filtros form select, .filtros form button {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-width: 140px;
    font-size: 0.9rem;
}

.filtros form button {
    background-color: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    margin-left: 1rem;
}


/* Filtros aplicados */
.filtros-aplicados {
    width: 100%;
    background-color: #f9ecd4;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(188, 212, 243, 0.05);
    text-align: center;
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

.filtros-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.filtros-tags span {
    background-color: #f6daa8;
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.filtros-tags span a {
    text-decoration: none;
    font-weight: bold;
    color: #666;
    margin-left: 4px;
    transition: color 0.2s;
}

.filtros-tags span:hover {
    background-color: white;
}

.filtros-tags span a:hover {
    color: #c00;
}

.filtros input[type="number"] {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  max-width: 110px;
  font-size: 0.9rem;
}


/* Cards de imóveis */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: auto;
}

.selo-destaque {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(90deg, #ff9800, #ffc107);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.destaques .card {
  border: 2px solid #ffa500;
}

.card {
    position: relative; /* necessário para posicionar o selo */
    background: #fff;
    border-radius: 10px;
    border: 2px solid #00e1ff;
    box-shadow: 0 5px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 320px; /* Limita o tamanho máximo */
    width: 100%;       /* Permite responsividade */
    margin: 0 auto;    /* Centraliza quando sobram colunas */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    font-size: 1.2rem;
    margin: 0.8rem;
}

.card p {
    padding: 0 0.8rem;
    font-size: 0.95rem;
    color: #555;
}

.card a {
    display: block;
    margin: 0.8rem;
    text-align: center;
    color: #007acc;
    font-weight: bold;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.titulo {
    border-bottom: 1px solid rgb(230, 230, 230);
    text-align: center;
}
.titulo span {
    font-size: 1.3rem;
    color: #003366;
    font-weight: 600;
}

.detalhes-imovel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.5rem;
}

.detalhes-imovel span {
  margin-right:0.5rem;
}

.detalhes-imovel i {
  margin-right: 0.2rem;
  color: #007acc;
}

.valor-imovel {
    font-weight: bold;
    color: darkblue;
    font-size: 1.2rem;
    padding: 1rem;
}


/* Paginação */
.paginacao {
  text-align: center;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.paginacao a,
.paginacao span {
  margin: 0 0.3rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  color: #007acc;
  background-color: #fff;
  transition: all 0.2s;
}

.paginacao a:hover {
  background-color: #e6f4ff;
}

.paginacao .pagina-atual {
  background-color: #007acc;
  color: white;
  border-color: #007acc;
}

/* redes sociais */

.social a {
    margin-left: 2rem;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}


.social a:hover {
    transform: scale(1.2);
    color: #ffd700;
}

/* rodapé */

.footer {
    background: #023970;
    color: #fff;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-menu {
    margin-bottom: 1rem;
}

.footer-menu a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}

.footer p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}


/* Página de detalhes dos imóveis */

.imagem-capa {
    max-width: 50%;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.imagem-capa img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

.secao-imovel {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.secao-imovel h2 {
    margin-top: 0;
}

.galeria-imagens {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.galeria-imagens img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.galeria-imagens img:hover {
    transform: scale(1.03);
}
.btn-voltar {
    display: inline-block;
    margin-left: 2rem;
    padding: 0.6rem 1rem;
    background: #fadaa2;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    margin-bottom: 1rem;
}
.btn-voltar:hover{
    background: black;
    color: white;
}

/* Sobre a empresa */

.empresa-sobre,
.empresa-socios,
.empresa-galeria {
  padding: 1rem;
  background-color: #fff;
  text-align: center;
}

.empresa-sobre p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 0.7rem;
}

.socios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  margin-top: 2rem;
}

.socio {
  max-width: 500px;
}


.socio img {
  max-width: 300px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.socio h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #003366;
}

.socio span {
  font-size: 0.8rem;
}

.socio p {
  font-size: 0.95rem;
  color: #555;
  text-align: justify;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 2rem auto 0 auto; /* ⬅️ centraliza horizontalmente */
  max-width: 1000px;
}

.galeria-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}



/* Contato */

body.pagina-contato {
  overflow-y: hidden;
}

/* HEADER fixo com fundo transparente */
.header.contato {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.2); /* fundo escuro translúcido */
}

/* Espaço para o conteúdo não ficar atrás do menu */
.contato-section {
  min-height: 100vh;
  background: url("../img/contato-fundo.jpg") no-repeat center center/cover;
  padding-top: 100px; /* altura do menu fixo */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: rgb(255, 255, 255);
}

/* Sobreposição suave para leitura */
.contato-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 0 2rem 2rem 2rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto e links centralizados */
.contato-conteudo {
  max-width: 700px;
  text-align: center;
}

.contato-conteudo h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contato-conteudo p {
  font-size: 1.4rem;
}

.contato-info {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato-info a {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.5s ease;
}

.contato-info a:hover {
  color: #ffd700;
}



.contato-corretor {
    background: #f1f1f1;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.contatos-wrap {
    display: flex;
    justify-content: center;
    gap: 10px; /* espaço entre botões */
    flex-wrap: wrap; /* permite quebrar linha no mobile */
    margin-top: 10px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; /* evita quebra do texto dentro do botão */
}

.btn-whatsapp:hover {
    background: #1ebe5d;
}







/* Telas menores */


@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
    }

    .grid {
        flex-direction: column;
        align-items: center;
    }

    .footer-menu {
        margin-top: 1rem;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0;
    }

    .menu a {
        margin: 0.5rem 0;
        text-align: left;
        font-size: 1rem;
    }

    .menu.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .conteudo {
        margin: 0 1rem;
        padding: 0.5rem 1rem;
    }
    .logo-img {
        height: 100px;
    }

    .headline h1 {
        font-size: 1rem;
        padding: 0.3rem;
    }
    .header.com-imagem {
        height: 300px;
        }

    .filtros form button {
        margin-left: 0;
    }
    .filtros {
        text-align: center;
        margin: 0 2rem;
    }
}
