/* JR Wealth Planning - Global Stylesheet
   Cores: Azul Escuro (Confiança/Segurança), Dourado (Riqueza/Premium), Branco (Clareza)
*/
:root {
    --primary-color: #002855; 
    --secondary-color: #D4AF37; 
    --accent-color: #C5A059; 
    --success-color: #27AE60; 
    --light-color: #F8F9FA; 
    --dark-color: #333333; 
    --text-color: #333333; 
    --text-light: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { line-height: 1.6; color: var(--text-color); background-color: #FFFFFF; display: flex; flex-direction: column; min-height: 100vh; }

/* HEADER & NAV */
header { background-color: var(--primary-color); color: var(--text-light); padding: 1rem 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 100; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--text-light); text-decoration: none; display: flex; align-items: center; }
.logo span { color: var(--secondary-color); }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 1.5rem; }
nav ul li a { color: var(--text-light); text-decoration: none; font-weight: 500; transition: color 0.3s; padding: 0.5rem 0; position: relative; }
nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--secondary-color); transition: width 0.3s; }
nav ul li a:hover { color: var(--secondary-color); }
nav ul li a:hover::after { width: 100%; }

/* BUTTONS */
.btn { display: inline-block; background-color: var(--secondary-color); color: var(--primary-color); padding: 0.8rem 1.8rem; border-radius: 5px; text-decoration: none; font-weight: 700; transition: all 0.3s; border: none; cursor: pointer; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.btn:hover { background-color: var(--accent-color); transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); color: #fff; }
.btn-secondary { background-color: transparent; border: 2px solid var(--secondary-color); color: var(--text-light); margin-left: 1rem; }
.btn-secondary:hover { background-color: rgba(212, 175, 55, 0.1); border-color: var(--secondary-color); color: var(--secondary-color); }

/* SECTIONS GLOBALS */
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: 2.2rem; color: var(--primary-color); position: relative; display: inline-block; padding-bottom: 0.8rem; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100px; height: 4px; background-color: var(--secondary-color); }

/* HERO SECTIONS */
.hero, .hero-bpo, .tools-hero { background: linear-gradient(135deg, var(--primary-color), #00152e); color: var(--text-light); padding: 6rem 0; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover; opacity: 0.15; z-index: 0; }
.hero .container, .hero-bpo .container { position: relative; z-index: 1; }
.hero h1, .hero-bpo h1, .tools-hero h1 { font-size: 2.8rem; margin-bottom: 1.5rem; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); }
.hero p, .hero-bpo p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2.5rem; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); }
.tools-hero { padding: 3rem 0; }

/* SERVICES & BENEFITS CARDS */
.services, .benefits, .tools { padding: 5rem 0; background-color: var(--light-color); }
.services-grid, .benefits-grid, .tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.service-card, .benefit-card, .tool-card { background-color: white; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; border-top: 4px solid var(--secondary-color); }
.service-card:hover, .benefit-card:hover, .tool-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); }
.service-img, .tool-icon { height: 200px; background-color: var(--primary-color); display: flex; align-items: center; justify-content: center; color: var(--secondary-color); font-size: 3.5rem; }
.tool-icon { height: 150px; font-size: 3rem; }
.service-content, .tool-content { padding: 2rem; }
.service-content h3, .tool-content h3, .benefit-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-color); }
.benefit-card { padding: 2rem; }
.benefit-card i { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 1.5rem; }

/* ABOUT & OTHERS */
.about, .what-is-bpo, .how-it-works { padding: 5rem 0; background-color: white; }
.about-content, .what-is-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 1.8rem; position: relative; padding-bottom: 0.8rem; }
.about-text h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 80px; height: 4px; background-color: var(--secondary-color); }
.about-image img, .what-is-image img { width: 100%; border-radius: 8px; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.steps { display: flex; justify-content: space-between; margin-top: 3rem; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; text-align: center; padding: 0 1rem; margin-bottom: 2rem; }
.step-number { width: 50px; height: 50px; background-color: var(--secondary-color); color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; margin: 0 auto 1rem; }

/* FORMS */
.contact { padding: 5rem 0; background-color: var(--light-color); }
.contact-form { max-width: 700px; margin: 0 auto; background-color: white; padding: 3rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); border-top: 4px solid var(--secondary-color); }
.form-group { margin-bottom: 1.8rem; }
.form-group label { display: block; margin-bottom: 0.8rem; font-weight: 600; color: var(--primary-color); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }
.form-group textarea { height: 150px; resize: vertical; }
.error-message { color: #E74C3C; font-size: 0.8rem; margin-top: 0.3rem; display: none; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.checkbox-group input { width: auto; margin-top: 5px; }

/* CALCULATOR */
.calculator { padding: 3rem 0; background-color: var(--light-color); }
.calculator-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.calculator-form { background-color: white; padding: 2rem; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); border-top: 4px solid var(--secondary-color); }
.calculator-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.result-card { background-color: white; padding: 1.5rem; border-radius: 8px; text-align: center; border-left: 4px solid var(--secondary-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.result-icon { font-size: 1.8rem; color: var(--secondary-color); margin-bottom: 1rem; }
.result-card h3 { font-size: 1.2rem; color: var(--primary-color); }
.result-card p { font-size: 1.8rem; font-weight: 700; color: var(--secondary-color); }
.result-card .result-description { font-size: 0.9rem; color: var(--dark-color); font-weight: normal; }
.chart-container { grid-column: span 2; height: 250px; background: white; padding: 1rem; border-radius: 8px; }
.btn.calculating::after { content: ""; display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: var(--primary-color); animation: spin 1s infinite; margin-left: 10px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* THANK YOU PAGE */
.thank-you-section { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 0; }
.thank-you-content i { font-size: 5rem; color: var(--success-color); margin-bottom: 2rem; }
.thank-you-content h1 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--primary-color); }

/* FOOTER */
footer { background-color: var(--primary-color); color: var(--text-light); padding: 4rem 0 1.5rem; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-column h3 { font-size: 1.3rem; margin-bottom: 1.8rem; position: relative; padding-bottom: 0.8rem; color: var(--secondary-color); }
.footer-column h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background-color: var(--secondary-color); }
.footer-column p { color: #ddd; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 1rem; }
.footer-column ul li a { color: #ddd; text-decoration: none; transition: all 0.3s; }
.footer-column ul li a:hover { color: var(--secondary-color); transform: translateX(5px); display: inline-block;}
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.1); border-radius: 50%; color: white; text-decoration: none; transition: all 0.3s; }
.social-links a:hover { background-color: var(--secondary-color); color: var(--primary-color); transform: translateY(-3px); }
.copyright { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #bbb; font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
    nav ul { margin-top: 1.5rem; justify-content: center; flex-wrap: wrap; }
    nav ul li { margin: 0.5rem; }
    .about-content, .what-is-content, .calculator-container, .calculator-results { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .btn { display: block; width: 100%; margin-bottom: 1rem; }
    .btn-secondary { margin-left: 0; }
    .chart-container { grid-column: span 1; }
}

/* TESTIMONIALS (Depoimentos) */
.testimonials { padding: 5rem 0; background-color: white; }
.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2.5rem; 
}
.testimonial-card { 
    background: var(--light-color); 
    padding: 2.5rem 2rem; 
    border-radius: 8px; 
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-card:hover { transform: translateY(-5px); }
.testimonial-content p { 
    font-style: italic; 
    margin-bottom: 2rem; 
    position: relative;
    z-index: 1;
}
.testimonial-content p::before {
    content: '"';
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.2); /* Dourado bem clarinho */
    position: absolute;
    top: -20px;
    left: -15px;
    z-index: -1;
    font-family: Georgia, serif;
}
.testimonial-user { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}
.testimonial-user img { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid var(--secondary-color);
}
.user-info h4 { color: var(--primary-color); margin-bottom: 2px; font-size: 1.1rem; }
.user-info span { font-size: 0.85rem; color: #777; }

/* --- Estilos para a Seção Dividida (Formulário + Calendly) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide a tela em duas partes iguais */
    gap: 40px; /* Espaçamento entre as colunas */
    align-items: start;
}

/* Ajustes no textarea para não empurrar o layout */
.contact-form textarea {
    resize: vertical;
}

/* Responsividade: Telas menores que 992px (Tablets e Celulares) */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Muda para 1 coluna (empilhado) */
        gap: 50px;
    }
    
    /* Centraliza os títulos no mobile */
    .contact-form-column h3, 
    .calendly-column h3 {
        text-align: center;
    }
}
