/* ================================================= */
/* ==== ESTILOS PARA CAPTACAO-IMOBILIARIA.HTML ===== */
/* ================================================= */

/* Seção 1: Hero Section com Vídeo de Fundo */
#hero-captacao {
    position: relative;
    height: 80vh; /* Altura da primeira dobra da tela */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden; 
        font-family: 'Montserrat', sans-serif; /* Garante a fonte correta */
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Impede que o mouse interaja com o vídeo */
}

.hero-background-video iframe {
    /* Faz o vídeo do YouTube cobrir toda a área */
    width: 100vw;
    height: 56.25vw; /* Proporção 16:9 */
    min-height: 100vh;
    min-width: 177.77vh; /* Proporção 16:9 para telas verticais */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.hero-overlay-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../../img/background-home.png) no-repeat center center / cover;
    opacity: 0.80; /* Controla a visibilidade do vídeo por baixo */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

#hero-captacao h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

#hero-captacao p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Seção 2: Diferencial com Imagem (NOVO) */
#diferencial-section {
    padding: 100px 20px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5em; /* Espaçamento entre texto e imagem */
}

#diferencial-section .text-content {
    max-width: 500px;
    text-align: left;
}

/* Estilos de texto reutilizados da div2 da home */
#diferencial-section .text-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: 400;
    line-height: 1.1;
    color: #000;
    margin-bottom: 0.5em;
}
#diferencial-section .text-content h2 span {
    font-weight: 800;
    color: #150024;
}
#diferencial-section .text-content p {
    font-family: 'Montserrat', sans-serif;
    color: #140024;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}


#diferencial-section .image-content {
    width: 280px;
    height: 480px;
    border-radius: 17px;
    background: url('https://images.pexels.com/photos/210617/pexels-photo-210617.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2') no-repeat center center / cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Responsividade da Seção Diferencial */
@media (max-width: 992px) {
    #diferencial-section {
        flex-direction: column-reverse; /* Imagem fica em cima no mobile */
        gap: 40px;
        text-align: center;
    }
    #diferencial-section .text-content {
        text-align: center;
    }
     #diferencial-section .text-content h2,
     #diferencial-section .text-content p {
        text-align: center;
    }
    #diferencial-section .image-content {
        width: 100%;
        max-width: 350px;
        height: 400px;
    }
}

/* --- AJUSTES NOS CARDS E ÍCONES DA DIV3 --- */

/* Sobrescreve o estilo dos cards para esta página */
#div3 #divfilha1,
#div3 #divfilha2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Adicione esta regra ao seu arquivo CSS para controlar o tamanho dos ícones */
#div3 .servico-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px; /* Ajuste o espaçamento inferior se necessário */
}

.servico-icon path {
    fill: #57ae6c;
}

/* Ajustes nos textos dentro dos cards para o fundo escuro */
#div3 #Text1Filha1 {
    color: #FFFFFF;
    font-size: 22px;
}

#div3 #Text2Filha1,
#div3 #Text2Filha2 {
    color: #E0E0E0;
    font-size: 16px;
    line-height: 1.7;
}

/* ========================================================== */
/* ==== ESTILOS PARA O NOVO PORTFÓLIO (VÍDEOS DIRETO NA PÁGINA) ===== */
/* ========================================================== */

#portfolio-section {
    padding: 100px 20px;
    background-color: #ffffff;
    text-align: center;
}

#portfolio-section .section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #140024;
    margin-bottom: 15px;
}

#portfolio-section .section-title p {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #555;
    max-width: 600px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.portfolio-filters {
    margin-bottom: 40px;
}

.filter-btn {
    font-family: 'Montserrat', sans-serif;
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #555;
    padding: 10px 20px;
    border-radius: 50px;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #57AE6C;
    color: white;
    border-color: #57AE6C;
}

.portfolio-grid-direct {
    display: grid;
    /* Define o layout da grade responsiva */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item-direct {
    text-align: left;
}

.portfolio-item-direct h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
    padding-left: 5px;
}

/* Estilo do Iframe do Vídeo */
.portfolio-item-direct iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16; /* Força a proporção vertical */
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Responsividade */
@media (max-width: 768px) {
    #hero-captacao h1 { font-size: 36px; }
    #hero-captacao p { font-size: 16px; }
    #portfolio-section .section-title h2 { font-size: 32px; }
    #portfolio-section { padding: 60px 20px; }
}

@media (max-width: 400px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}


/* Adicionar ao final do arquivo captacao-imobiliaria.css */
.portfolio-category-content {
    display: none; /* Esconde todas as categorias por padrão */
}

.portfolio-category-content.active {
    display: block; /* Mostra apenas a categoria ativa */
}

/* ========================================================== */
/* ==== ESTILOS PARA O MODAL DE PROJETOS (Pop-up) ===== */
/* ========================================================== */

/* A janela escura de fundo do modal */
.modal-property {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

/* O conteúdo branco dentro do modal */
.modal-property-content {
    background-color: #fefefe;
    margin: auto;
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.4s;
    display: flex;
    flex-direction: column;
}

/* O botão 'X' para fechar */
.modal-property-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-property-close:hover {
    color: #333;
}

/* Container principal da mídia (vídeo ou imagem grande) */
#modal-media-display {
    width: 100%;
    aspect-ratio: 16/9; /* Proporção da mídia principal */
    background-color: #000;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

#modal-video-container,
#modal-main-image-container {
    width: 100%;
    height: 100%;
}

#modal-video-container iframe,
#modal-main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
}

/* A galeria de miniaturas rolável */
#modal-gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 2px; /* Espaço para a sombra e a barra de rolagem */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}
/* Estilos da barra de rolagem para navegadores Webkit */
#modal-gallery-container::-webkit-scrollbar { height: 8px; }
#modal-gallery-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px;}
#modal-gallery-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px;}
#modal-gallery-container::-webkit-scrollbar-thumb:hover { background: #999; }

.gallery-item {
    flex-shrink: 0; /* Impede que as imagens encolham */
    width: 120px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-item.active {
    border-color: #57AE6C; /* Destaque verde para o item ativo */
}

/* Estilo para a miniatura do vídeo */
.video-thumb {
    position: relative;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-thumb::after {
    content: '▶';
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
}


/* Animação de entrada do modal */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

/* ========================================================== */
/* ==== ESTILOS PARA A NOVA GALERIA DE IMÓVEIS (CORREÇÃO) ===== */
/* ========================================================== */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.property-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.property-card-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.property-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    box-sizing: border-box;
}

.property-card-title {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    margin: 0;
}

/* ========================================================== */
/* ==== ESTILOS PARA O MODAL (POP-UP) INTERATIVO  ===== */
/* ========================================================== */

/* A janela escura de fundo do modal */
.modal-property {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

/* O conteúdo branco dentro do modal */
.modal-property-content {
    background-color: #fefefe;
    margin: auto;
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 0.4s;
    display: flex;
    flex-direction: column;
}

/* O botão 'X' para fechar */
.modal-property-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-property-close:hover {
    color: #333;
}

/* Container principal da mídia (vídeo ou imagem grande) */
#modal-media-display {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

#modal-media-display iframe,
#modal-media-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* A galeria de miniaturas rolável */
#modal-gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 2px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}
#modal-gallery-container::-webkit-scrollbar { height: 8px; }
#modal-gallery-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px;}
#modal-gallery-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px;}
#modal-gallery-container::-webkit-scrollbar-thumb:hover { background: #999; }

.gallery-item {
    flex-shrink: 0;
    width: 120px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-item.active {
    border-color: #57AE6C;
}

.video-thumb {
    position: relative;
    background-color: #000;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-thumb::after {
    content: '▶';
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    transition: transform .2s ease;
}
.video-thumb:hover::after {
    transform: scale(1.2);
}

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