/* ========================================
   CUSTOM CSS - SITE FUNIL IMOBILIÁRIO
   ======================================== */

/* VARIÁVEIS CSS - ALTERE AQUI AS CORES PRINCIPAIS */
:root {
    --primary-color: #2563eb;        /* Azul principal - ALTERE AQUI */
    --primary-dark: #1d4ed8;         /* Azul escuro */
    --primary-light: #3b82f6;        /* Azul claro */
    --secondary-color: #64748b;      /* Cinza secundário */
    --success-color: #25D366;         /* Verde WhatsApp */
    --warning-color: #f59e0b;         /* Amarelo */
    --danger-color: #ef4444;          /* Vermelho */
    --light-color: #f8fafc;          /* Cinza claro */
    --dark-color: #1e293b;           /* Cinza escuro */
    --white: #ffffff;
    --black: #000000;
    
    /* Fontes */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* BOTÕES PERSONALIZADOS */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    transition: var(--transition);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.8)),
                url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1920&h=1080&fit=crop') center/cover;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(59, 130, 246, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title .text-primary {
    color: #10b981 !important; /* Verde harmonioso */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #059669, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Fallback para navegadores que não suportam background-clip */
@supports not (-webkit-background-clip: text) {
    .hero-title .text-primary {
        color: #10b981 !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        font-weight: 800;
    }
}

.typewriter-text {
    display: inline-block;
    border-right: 3px solid var(--white);
    animation: blink 1s infinite;
    min-height: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
}

@keyframes blink {
    0%, 50% {
        border-color: var(--white);
    }
    51%, 100% {
        border-color: transparent;
    }
}

.typewriter-cursor {
    border-right: 3px solid var(--white);
    animation: blink 1s infinite;
}

/* Responsividade para o efeito de digitação */
@media (max-width: 768px) {
    .typewriter-text {
        border-right: 2px solid var(--white);
    }
}

@media (max-width: 576px) {
    .typewriter-text {
        border-right: 1px solid var(--white);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* SEÇÕES GERAIS */
section {
    position: relative;
    z-index: 2;
}

/* Garantir que as seções após o hero não sejam sobrepostas */
section:not(.hero-section) {
    margin-top: 0;
    clear: both;
}

/* BENEFÍCIOS SECTION */
#beneficios {
    background: var(--white);
    position: relative;
    z-index: 2;
}

.benefit-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.benefit-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.benefit-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* MODALIDADES SECTION */
#modalidades {
    background: var(--light-color);
    position: relative;
    z-index: 2;
}

.modalidade-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modalidade-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.modalidade-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.modalidade-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.modalidade-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modalidade-body {
    padding: 2rem;
}

.modalidade-features {
    list-style: none;
    margin-bottom: 2rem;
}

.modalidade-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.modalidade-features i {
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.modalidade-highlight {
    background: var(--light-color);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.highlight-label {
    display: block;
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.highlight-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* SIMULADOR SECTION */
#simulador {
    background: var(--white);
    position: relative;
    z-index: 2;
}

.simulator-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Seção do formulário (lado esquerdo) */
.simulator-form-section {
    padding-right: 1.5rem;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.form-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.form-help i {
    color: var(--primary-color);
}

/* Seção de resultados (lado direito) */
.simulator-result-section {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.result-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.result-summary {
    background: var(--light-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.highlight {
    background: var(--primary-color);
    color: var(--white);
    margin: 0 -1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
}

.result-item.highlight .result-label,
.result-item.highlight .result-value-large {
    color: var(--white);
}

.result-label {
    font-weight: 500;
    color: var(--dark-color);
}

.result-value {
    font-weight: 600;
    color: var(--primary-color);
}

.result-value-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Detalhes expandidos */
.simulation-details {
    margin-top: 1.5rem;
}

.details-toggle {
    text-align: center;
    margin-bottom: 1rem;
}

.details-toggle .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.details-toggle .btn-link:hover {
    color: var(--primary-dark);
}

.details-content {
    background: var(--light-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--dark-color);
}

.detail-value {
    font-weight: 600;
    color: var(--primary-color);
}

.custos-adicionais {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.observacoes {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.observacoes h6 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

#observacoes-texto {
    white-space: pre-line;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.simulator-result {
    margin: 2rem 0;
    text-align: center;
}

.result-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1rem;
}

.result-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.result-info {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

.simulator-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* DEPOIMENTOS SECTION */
#depoimentos {
    background: var(--light-color);
    position: relative;
    z-index: 2;
}

.depoimento-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin: 0 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.depoimento-content {
    text-align: center;
}

.depoimento-stars {
    color: var(--warning-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.depoimento-content p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--dark-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.depoimento-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark-color);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--primary-dark);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

/* FAQ SECTION */
#faq {
    background: var(--white);
    position: relative;
    z-index: 2;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--white);
    border: none;
    font-weight: 500;
    color: var(--dark-color);
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* FORMULÁRIO DE CAPTURA */
.lead-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lead-form .form-control,
.lead-form .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--dark-color);
}

.lead-form .form-control:focus,
.lead-form .form-select:focus {
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.lead-form .form-label {
    color: var(--white);
    font-weight: 500;
}

.lead-form .form-check-label {
    color: var(--white);
}

/* FOOTER */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-section h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: var(--white);
}

.footer-contact p,
.footer-hours p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #94a3b8;
}

.footer-contact i,
.footer-hours i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 20px;
}

.footer-badge {
    margin-top: 1rem;
}

.trust-badge {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.footer-divider {
    border-color: #374151;
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: #94a3b8;
    margin: 0;
    text-align: center;
}

/* ANIMAÇÕES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.count-up {
    animation: countUp 0.6s ease-out;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        margin-bottom: 1rem;
    }
    
    .simulator-actions {
        flex-direction: column;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .depoimento-card {
        margin: 0 0.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Corrigir background-attachment em dispositivos móveis */
    .hero-section {
        background-attachment: scroll;
    }
    
    /* Simulador responsivo */
    .simulator-form-section {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .simulator-result-section {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 2rem;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .result-item.highlight {
        margin: 0;
        border-radius: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .benefit-card,
    .modalidade-card,
    .simulator-card {
        padding: 1.5rem;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .lead-form {
        padding: 1.5rem;
    }
}

/* UTILITÁRIOS */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* LOADING STATES */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ACESSIBILIDADE */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FOCUS VISIBLE */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
    .whatsapp-float,
    .scroll-indicator,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    .hero-section {
        background: var(--primary-color) !important;
    }
    
    .hero-overlay {
        display: none !important;
    }
}
