@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #003366;
    --secondary-color: #002244;
    --accent-color: #f5c207; /* Amarelo */
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background-color: var(--white); color: var(--text-color); line-height: 1.6; }

/* HEADER */
.main-header {
    background: var(--primary-color);
    padding: 0 5%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo { font-size: 1.5rem; font-weight: 700; color: white; letter-spacing: 1px; }
.desktop-nav a { color: rgba(255,255,255,0.8); text-decoration: none; margin-left: 20px; font-weight: 500; transition: 0.3s; }
.desktop-nav a:hover, .desktop-nav a.active { color: white; }
.btn-contato { background: var(--accent-color); color: var(--primary-color) !important; padding: 8px 20px; border-radius: 20px; font-weight: 600 !important; }

/* HERO */
/* --- HERO IMPACT (NOVO) --- */
.hero-impact {
    position: relative;
    height: 650px;
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%); /* Azul profundo */
    overflow: hidden; /* Importante para os ícones não vazarem */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Texto Principal */
.relative-z { position: relative; z-index: 10; }
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}
.highlight-text { color: var(--accent-color); } /* Amarelo */
.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Destaque para o small "SOBRE A RC INVEST" */
.about-text small {
    background-color: #003366;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Botões Modernos */
.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.btn-hero-primary {
    background: var(--accent-color); color: var(--primary-color);
    padding: 15px 40px; font-weight: 700; border-radius: 50px;
    text-decoration: none; transition: 0.3s; box-shadow: 0 10px 20px rgba(255, 204, 0, 0.3);
}
.btn-hero-primary:hover { transform: translateY(-3px); background: #e6b800; }

.btn-hero-outline {
    border: 2px solid rgba(255,255,255,0.3); color: white;
    padding: 15px 40px; font-weight: 700; border-radius: 50px;
    text-decoration: none; transition: 0.3s;
}
.btn-hero-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* --- EFEITO PARALLAX (ÍCONES DE FUNDO) --- */
.parallax-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.05); /* Bem transparente */
    font-size: 4rem;
    pointer-events: none; /* Mouse ignora eles */
    transition: transform 0.1s linear; /* Movimento suave */
}

/* Posições iniciais dos ícones flutuantes */
.p-1 { top: 15%; left: 10%; font-size: 5rem; transform: rotate(-15deg); }
.p-2 { top: 20%; right: 15%; font-size: 3rem; color: rgba(255, 204, 0, 0.1); } /* Amarelinho */
.p-3 { bottom: 30%; left: 20%; font-size: 4rem; }
.p-4 { bottom: 10%; right: 10%; font-size: 6rem; transform: rotate(10deg); }

/* --- CARDS GLASSMORPHISM --- */
.features-impact {
    position: relative;
    margin-top: -100px; /* Sobe para cima da Hero */
    z-index: 20;
    padding-bottom: 60px;
}
.features-grid-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card-glass {
    background: rgba(255, 255, 255, 0.95); /* Quase sólido para leitura */
    backdrop-filter: blur(10px); /* Efeito de desfoque atrás */
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: 0.3s;
}
.feature-card-glass:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}
.icon-box {
    width: 70px; height: 70px;
    background: #eef2f5;
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: 0.3s;
}
.feature-card-glass:hover .icon-box {
    background: var(--primary-color); color: var(--accent-color);
}

/* Forma Curva (Wave) */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: -1px; /* Remove aquela linha branca fininha que as vezes aparece */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg); /* O PULO DO GATO: Isso inverte a onda para ela ficar convexa */
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px; /* Aumentei de 100px para 150px para ficar mais suave */
}

.custom-shape-divider-bottom .shape-fill {
    fill: #f8f9fa; /* Tem que ser a MESMA cor do fundo do site */
}

/* Ajuste importante para os cards não ficarem em cima do texto */
.features-impact {
    position: relative;
    margin-top: -120px; /* Puxa um pouco mais para cima para compensar a nova onda */
    z-index: 20;
    padding-bottom: 60px;
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .features-impact { margin-top: -50px; }
}

.hero {
    background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.6)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}
.hero h1 { font-size: 3rem; margin-bottom: 10px; font-weight: 700; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; opacity: 0.9; }
.btn-hero { background: var(--accent-color); color: var(--primary-color); padding: 12px 30px; text-decoration: none; font-weight: 700; border-radius: 5px; text-transform: uppercase; transition: 0.3s; }
.btn-hero:hover { background: #e6b800; transform: translateY(-2px); }

/* SEÇÃO DE SERVIÇOS (Diferenciais) */
.features-section { padding: 60px 20px; background: var(--white); margin-top: -50px; position: relative; z-index: 2; }
.features-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-box {
    background: white; padding: 30px; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center;
    transition: transform 0.3s; border-bottom: 3px solid var(--accent-color);
}
.feature-box:hover { transform: translateY(-5px); }
.feature-box i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.feature-box h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-color); }
.feature-box p { font-size: 0.9rem; color: var(--text-light); }

/* SEÇÃO SOBRE (Institucional) */
.about-section { padding: 80px 20px; background: var(--bg-light); }
.about-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text small { color: var(--accent-color); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.about-text h2 { font-size: 2.5rem; color: var(--primary-color); margin: 10px 0 20px; line-height: 1.2; }
.about-text p { margin-bottom: 20px; color: var(--text-light); }
.link-arrow { color: var(--primary-color); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent-color); }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* SEÇÃO IMÓVEIS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.destaques { padding: 80px 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 10px; }

.grid-imoveis { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

.card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); border: 1px solid #eee; transition: 0.3s; max-width: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.card-img { height: 220px; background-size: cover; background-position: center; position: relative; }
.card-tag { position: absolute; top: 15px; left: 15px; background: var(--accent-color); color: var(--primary-color); padding: 5px 12px; font-size: 0.8rem; font-weight: 700; border-radius: 4px; text-transform: uppercase; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--primary-color); }
.price { color: #27ae60; font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; }
.btn-card { display: block; width: 100%; text-align: center; padding: 10px; border: 1px solid var(--primary-color); color: var(--primary-color); text-decoration: none; border-radius: 5px; font-weight: 600; transition: 0.3s; }
.btn-card:hover { background: var(--primary-color); color: white; }

.btn-outline { display: inline-block; padding: 12px 30px; border: 2px solid var(--primary-color); color: var(--primary-color); text-decoration: none; font-weight: 700; border-radius: 5px; transition: 0.3s; }
.btn-outline:hover { background: var(--primary-color); color: white; }

/* CTA Newsletter */
.cta-section { background: var(--primary-color); color: white; padding: 60px 20px; text-align: center; }
.cta-section h2 { font-size: 2rem; margin-bottom: 10px; }
.inline-form { margin-top: 30px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.inline-form input { padding: 12px 20px; border-radius: 50px; border: none; width: 300px; }
.inline-form button { padding: 12px 30px; border-radius: 50px; border: none; background: var(--accent-color); color: var(--primary-color); font-weight: 700; cursor: pointer; }

/* --- MODAL (POP-UP) --- */
.modal-overlay {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fundo escuro */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Efeito de vidro borrado */
}

.modal-box {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}
.close-modal:hover { color: red; }

/* Barra de Progresso Visual */
.progress-bar {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}
.progress-step {
    flex: 1;
    padding: 10px;
    text-align: center;
    color: #ccc;
    font-weight: 600;
}
.progress-step.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
}

/* Campos do Modal */
.modal-box label { display: block; margin: 10px 0 5px; font-weight: 600; color: #333; }
.modal-box input, .modal-box select {
    width: 100%; padding: 12px;
    border: 1px solid #ddd; border-radius: 6px;
    margin-bottom: 10px;
}

/* Lógica de Etapas (Esconde/Mostra) */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.5s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Botões do Modal */
.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.btn-next, .btn-finish {
    background: var(--primary-color);
    color: white;
    border: none; padding: 12px 25px;
    border-radius: 5px; cursor: pointer; font-weight: bold; width: 100%;
}
.btn-back {
    background: #eee; color: #333;
    border: none; padding: 12px 20px;
    border-radius: 5px; cursor: pointer; font-weight: bold;
}
.btn-finish { background: #25D366; } /* Verde WhatsApp */

/* --- FORMULÁRIO DE PERFIL (QUIZ) --- */
.profile-form {
    background: rgba(0, 51, 102, 0.8); /* Fundo azul translúcido */
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left; /* Alinha perguntas à esquerda */
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.question-block {
    margin-bottom: 25px;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
}

.q-title {
    display: block;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-color); /* Amarelo */
    font-size: 1.1rem;
}

/* Estilo das Opções (Radio) */
.radio-box {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 300;
    transition: 0.2s;
}

.radio-box:hover {
    color: var(--accent-color);
}

.radio-box input {
    margin-right: 10px;
    transform: scale(1.2); /* Aumenta a bolinha */
}

/* Grid para opções curtas (Sim/Não) */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Lista para opções longas */
.options-list {
    display: flex;
    flex-direction: column;
}

/* Responsivo */
@media (max-width: 768px) {
    .profile-form { padding: 15px; }
    .options-grid { grid-template-columns: 1fr; } /* Uma coluna no celular */
}


/* --- RODAPÉ PROFISSIONAL --- */
.main-footer {
    background-color: #002244; /* Azul mais escuro que o header */
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
    margin-top: 0; /* Remove margem para colar na seção anterior */
    font-size: 0.95rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Títulos das colunas */
.footer-logo {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

/* Tracinho amarelo embaixo dos títulos */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

/* Links */
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}
.footer-col ul li a:hover {
    color: var(--accent-color); /* Amarelo ao passar o mouse */
    padding-left: 5px; /* Efeitinho de movimento */
}

/* Lista de Contatos com Ícones */
.contact-list i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Redes Sociais */
.social-icons { display: flex; gap: 15px; }
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}
.social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Copyright Final */
.footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    background-color: #001a33; /* Um tom quase preto */
}
.footer-bottom p { margin: 5px 0; }

/* Responsivo para o Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Uma coluna no celular */
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%; /* Centraliza o tracinho */
        transform: translateX(-50%);
    }
    .social-icons { justify-content: center; }
}

/* --- SLIDER DA SEÇÃO SOBRE --- */

/* O Container do Slider (Lado Direito) */
.about-image-slider {
    position: relative;
    width: 100%;
    height: 400px; /* Altura fixa para alinhar com o texto */
    border-radius: 10px;
    overflow: hidden; /* Corta o que passar do tamanho */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Cada Slide Individual */
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Começa invisível */
    transition: opacity 1s ease-in-out; /* Transição suave de 1 segundo */
    z-index: 1;
}

/* O Slide que tem a classe .active fica visível */
.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha tudo sem esticar */
}

/* Bolinhas de Navegação (Dots) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: var(--accent-color); /* Amarelo */
    transform: scale(1.2);
}

/* --- Botões do Slider (Setas) --- */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 51, 102, 0.5); /* Azul translúcido */
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10; /* Fica acima das imagens */
    transition: 0.3s;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: var(--accent-color); /* Amarelo ao passar o mouse */
    color: var(--primary-color);
}

/* Posição Esquerda/Direita */
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Ajuste Mobile: Botões menores */
@media (max-width: 768px) {
    .slider-btn { width: 35px; height: 35px; font-size: 1rem; padding: 0; }
}

/* Responsivo para Celular */
@media (max-width: 768px) {
    .about-image-slider {
        height: 300px; /* Menor no celular */
        margin-top: 30px;
    }
}


/* MOBILE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .features-section { margin-top: 0; }
    .about-container { grid-template-columns: 1fr; }
    .desktop-nav { display: none; }
    .mobile-menu-icon { display: block; color: white; font-size: 1.5rem; }
}

/* --- Barra de Título das Páginas Internas --- */
.page-title-bar {
    background-color: var(--primary-color); /* Fundo Azul */
    color: white;
    padding: 60px 0;
    text-align: center;
    /* Imagem de fundo sutil para diferenciar */
    background-image: linear-gradient(rgba(0,51,102,0.9), rgba(0,51,102,0.9)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.page-title-bar h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-title-bar p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ===== MODAL COMPLETO ===== */
.modal-lg {
    max-width: 700px !important;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px !important;
}

.question-block-modal {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #ffcc00;
}

.q-title-modal {
    display: block;
    font-weight: 700;
    margin-bottom: 15px;
    color: #003366;
    font-size: 1rem;
}

.options-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.options-list-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-box-modal {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
}

.radio-box-modal:hover {
    background: #fff9e6;
    border-color: #ffcc00;
}

.radio-box-modal input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #003366;
    transform: scale(1.1);
}

/* Scroll personalizado */
.modal-box.modal-lg::-webkit-scrollbar {
    width: 8px;
}

.modal-box.modal-lg::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-box.modal-lg::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 10px;
}

.modal-box.modal-lg::-webkit-scrollbar-thumb:hover {
    background: #002244;
}

/* Responsivo */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95% !important;
        padding: 20px !important;
    }
    
    .options-grid-modal {
        grid-template-columns: 1fr;
    }
    
    .question-block-modal {
        padding: 12px;
    }
}