/* =========================================
   1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS DE COR
   ========================================= */

:root {
    --primary-color: #005A9C; /* Azul corporativo */
    --secondary-color: #212529; /* Cinza escuro/preto */
    --accent-color: #F39C12; /* Dourado/laranja */
    --success-color: #28a745; /* Verde */
    --light-gray: #f8f9fa; /* Fundo de seções */
    --medium-gray: #e9ecef; /* Cinza um pouco mais escuro */
    --border-color: #dee2e6; /* Bordas suaves */
    --text-color: #343a40; /* Cor padrão para texto */
    --text-light: #6c757d; /* Cor para texto secundário */
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,0.175);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    background-color: #ffffff;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
}
.container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Títulos de Seção Padrão (Home) */
.section-title {
    text-align: center;
    font-size: 2.5rem; 
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--secondary-color);
    position: relative;
}
.section-title::after { 
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0 auto;
    border-radius: 2px;
}

/* Título escondido para acessibilidade */
.section-title-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; 
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* =========================================
   2. BOTÕES GLOBAIS
   ========================================= */

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 8px; 
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn i { 
    margin-right: 0.5rem;
    vertical-align: middle; 
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #004a80; 
    color: #ffffff;
    transform: translateY(-2px); 
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
}
.btn-secondary:hover {
    background-color: #23272b;
    color: #ffffff;
    transform: translateY(-2px); 
    box-shadow: var(--shadow-md);
}

.btn-success { 
    background-color: var(--success-color);
    color: #ffffff;
}
.btn-success:hover {
    background-color: #218838;
    color: #ffffff;
    transform: translateY(-2px); 
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
}
.btn-full-width { 
    width: 100%;
    display: block;
}

/* Margem Top Utility */
.mt-3 {
    margin-top: 1rem;
}

/* =========================================
   3. HEADER
   ========================================= */

.main-header {
    background-color: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.8rem; 
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem; 
}
.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    font-size: 1.05rem; 
}
.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px; 
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.main-nav a:not(.btn):hover::after {
    width: 100%;
}

.main-nav .btn-primary {
    padding: 0.6rem 1.2rem;
    margin-left: 1rem;
}
.main-nav .btn-primary i {
    margin-right: 0.4rem;
}

/* =========================================
   4. SEÇÃO HERO (Home)
   ========================================= */

.hero-section {
    position: relative;
    padding: 8rem 0; 
    background-color: #34495e;
    background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center;
    color: #ffffff;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); 
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: 3.5rem; 
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.35rem; 
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.5;
}

/* =========================================
   5. FORMULÁRIO DE FILTRO (Home)
   ========================================= */

.filter-form {
    display: grid; 
    grid-template-columns: 1fr 1fr auto; 
    gap: 1.5rem;
    background-color: rgba(255, 255, 255, 0.98); 
    padding: 2.5rem; 
    border-radius: 12px;
    box-shadow: var(--shadow-lg); 
    width: 100%;
    max-width: 900px; 
    margin: 0 auto;
}

.filter-form .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.filter-form .form-group label {
    font-size: 0.95rem; 
    font-weight: 700;
    color: var(--secondary-color); 
    margin-bottom: 0.6rem; 
}
.filter-form .form-group input,
.filter-form .form-group select {
    width: 100%;
    padding: 0.9rem; 
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.05rem; 
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
}
.filter-form .btn-search {
    align-self: end; 
    padding: 0.9rem 1.8rem;
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.filter-form .btn-search .icon-search { /* Adapte a classe se usar outra lib de ícones */
    font-size: 1.2rem;
}

/* =========================================
   6. SEÇÃO CATEGORIAS RÁPIDAS (Home)
   ========================================= */

.quick-categories {
    padding: 5rem 0; 
    background-color: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem; 
}
.category-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 3rem; 
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--border-color); 
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg); 
}
.category-card i {
    font-size: 3.5rem; 
    color: var(--primary-color);
    margin-bottom: 1.8rem; 
}
.category-card h3 {
    font-size: 1.6rem; 
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--secondary-color);
}
.category-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   7. IMÓVEL DESTAQUE (Home)
   ========================================= */

.highlight-property {
    padding: 5rem 0; 
    background-color: #fff;
}
.highlight-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 3rem; 
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg); 
    overflow: hidden;
    align-items: center;
    border: 1px solid var(--border-color);
}
.highlight-image {
    position: relative;
}
.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 450px; 
    border-right: 1px solid var(--border-color);
}
.highlight-body {
    padding: 2.5rem 3rem; 
}
.highlight-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.4rem 1rem; 
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.highlight-body h3 {
    font-size: 2.2rem; 
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.highlight-location {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}
.highlight-desc {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.7;
    /* Limita a descrição a N linhas (opcional) */
    /* display: -webkit-box; 
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;  
    overflow: hidden; */
}
.highlight-price {
    font-size: 2rem; 
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}
.highlight-body .btn-primary {
    padding: 0.9rem 2rem;
}

/* =========================================
   8. LISTA DE EMPREENDIMENTOS (Home)
   ========================================= */

.featured-properties {
    padding: 5rem 0;
    background-color: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
}
.lista-empreendimentos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.empty-message {
    text-align: center;
    width: 100%;
    font-size: 1.2rem;
    color: var(--text-light);
    grid-column: 1 / -1; 
    padding: 3rem 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* Card de Imóvel Refinado */
.card-imovel {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.card-imovel:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.card-imovel .card-imagem-link {
    position: relative;
    display: block;
}
.card-imovel .card-imagem-link img {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
}
.card-imovel .card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.75); 
    color: #fff;
    padding: 0.35rem 0.9rem; 
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10;
}
.card-imovel .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}
.card-imovel .card-titulo {
    font-size: 1.35rem; 
    margin-bottom: 0.6rem;
    font-weight: 700;
    line-height: 1.4; 
    min-height: calc(1.4em * 2); 
}
.card-imovel .card-titulo a {
    color: var(--secondary-color);
}
.card-imovel .card-localizacao {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.card-imovel .card-localizacao i { 
    color: var(--primary-color);
}

.card-imovel .card-precos {
    margin-bottom: 1.5rem; 
    font-size: 1.2rem;
    font-weight: 700;
}
.card-imovel .preco-venda {
    color: var(--primary-color);
}
.card-imovel .preco-aluguel {
    color: var(--success-color);
}
.card-imovel .btn-detalhes {
    margin-top: auto; 
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.card-imovel .btn-detalhes:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* =========================================
   9. NOSSOS NÚMEROS (Home)
   ========================================= */

.trust-section {
    padding: 5rem 0;
    background-color: var(--secondary-color);
    color: #fff;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    text-align: center;
}
.trust-stat h3 {
    font-size: 3.5rem; 
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.7rem;
}
.trust-stat p {
    font-size: 1.15rem; 
    color: rgba(255,255,255,0.85);
}

/* =========================================
   10. DEPOIMENTOS (Home)
   ========================================= */

.testimonials-section {
    padding: 5rem 0;
    background-color: #fff;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.testimonial-card {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
}
.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.8rem;
    position: relative;
    flex-grow: 1; 
}
.testimonial-card p::before {
    content: '“';
    font-family: serif; 
    font-size: 5rem; 
    color: var(--border-color);
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
    z-index: 0;
    opacity: 0.4;
    line-height: 1;
}
.testimonial-author {
    font-weight: 700;
    color: var(--secondary-color);
    text-align: right;
    position: relative;
    z-index: 1; 
}

/* =========================================
   11. SEÇÃO CTA (Home)
   ========================================= */

.cta-section {
    background-color: var(--light-gray);
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--medium-gray);
}
.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
}
.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-light);
    line-height: 1.6;
}

/* =========================================
   12. FOOTER
   ========================================= */

.main-footer {
    background-color: var(--secondary-color);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 3rem 0;
    font-size: 0.95rem;
}

/* =========================================
   13. RESPONSIVIDADE (Site Público - Home)
   ========================================= */

@media (max-width: 992px) {
    .filter-form {
        grid-template-columns: 1fr; 
    }
    .filter-form .btn-search {
        width: 100%;
    }
    
    .category-grid,
    .lista-empreendimentos,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .highlight-card {
        grid-template-columns: 1fr; 
    }
    .highlight-image img {
        min-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .main-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .main-nav a {
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
    }
    .main-nav .btn-primary {
        margin-left: 0;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem; /* Ajuste para mobile */
    }
     .hero-content p {
        font-size: 1.15rem; /* Ajuste para mobile */
    }
    
    .category-grid,
    .lista-empreendimentos,
    .testimonials-grid,
    .trust-grid {
        grid-template-columns: 1fr; 
    }
    .testimonial-card p::before { 
        font-size: 4rem;
        top: -0.5rem;
        left: -0.5rem;
    }
}

/* Estilos específicos que antes estavam em main_style.css para detalhes foram movidos para detalhe_empreendimento_style.css */