/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #1DA851;
    --dark-grey: #2c2c2c;
    --light-grey: #f4f4f4;
    --white-color: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-secondary); background-color: var(--white-color); color: var(--dark-grey); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-primary); font-weight: 700; color: var(--dark-grey); }
section { padding: 80px 5%; }

/* --- CABEÇALHO E NAVEGAÇÃO --- */
#header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: background-color 0.4s ease, padding 0.4s ease; }
#header.scrolled { background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; transition: padding 0.4s ease; }
#header.scrolled .navbar { padding: 10px 5%; }
.nav-logo { display: flex; align-items: center; text-decoration: none; color: var(--dark-grey); font-family: var(--font-primary); font-weight: 600; font-size: 1.2rem; }
.nav-logo img { height: 45px; margin-right: 15px; transition: height 0.4s ease; }
#header.scrolled .nav-logo img { height: 35px; }
.nav-menu { display: flex; list-style: none; }
.nav-item { margin-left: 30px; }
.nav-link { text-decoration: none; color: var(--dark-grey); font-weight: 500; position: relative; padding-bottom: 5px; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--whatsapp-green); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

/* --- BOTÕES --- */
.cta-button { display: inline-block; background: linear-gradient(145deg, var(--whatsapp-green), var(--whatsapp-green-dark)); color: var(--white-color); padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 700; font-family: var(--font-primary); margin-top: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); border: none; cursor: pointer; }
.cta-button i { margin-right: 10px; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }
.cta-button-outline { background: transparent; border: 2px solid var(--whatsapp-green); color: var(--whatsapp-green); padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: background-color 0.3s ease, color 0.3s ease; cursor: pointer; font-family: var(--font-primary); }
.cta-button-outline:hover { background-color: var(--whatsapp-green); color: var(--white-color); }
.cta-button-outline i { margin-right: 10px; }
.cta-button-outline.small-btn { padding: 10px 25px; font-size: 0.9rem; margin-top: 15px; }

/* --- SEÇÃO INICIAL (HERO) --- */
.hero { background-color: var(--light-grey); padding-top: 150px; min-height: 100vh; display: flex; align-items: center; }
.hero-container { display: flex; align-items: center; gap: 50px; width: 100%; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 2.8rem; line-height: 1.3; }
.hero-text h1 .whatsapp-text { color: var(--whatsapp-green); font-weight: 700; }
.hero-text p { font-size: 1.1rem; margin: 20px 0; }
.hero-video { flex: 1; aspect-ratio: 16 / 9; position: relative; }
#youtube-player { width: 100%; height: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
#video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--white-color); z-index: 5; transition: opacity 0.4s ease, visibility 0.4s ease; }
#video-overlay-content { cursor: pointer; text-align: center; }
#video-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#video-overlay i { font-size: 2.5rem; margin-bottom: 10px; }
#video-overlay span { font-family: var(--font-primary); font-weight: 600; }
.video-overlay-close-btn { position: absolute; top: 10px; right: 10px; background: transparent; border: 2px solid rgba(255,255,255,0.7); color: rgba(255,255,255,0.7); width: 35px; height: 35px; border-radius: 50%; font-size: 1.5rem; line-height: 31px; cursor: pointer; text-align: center; padding: 0; transition: all 0.3s ease; }
.video-overlay-close-btn:hover { background: var(--white-color); color: var(--dark-grey); }

/* --- SEÇÃO DE SERVIÇOS --- */
.services { text-align: center; }
.services h2 { font-size: 2.2rem; margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 50px; }
.service-card { background: var(--white-color); padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-card i { font-size: 3rem; color: var(--whatsapp-green); margin-bottom: 20px; }
.service-card h3 { font-size: 1.1rem; font-weight: 600; }

/* --- SEÇÃO DE DESTAQUE R$ --- */
.alert-rs { background-color: var(--whatsapp-green); color: var(--white-color); text-align: center; padding: 40px 5%; }
.alert-rs h2 { font-size: 2.5rem; margin: 0; text-transform: uppercase; letter-spacing: 2px; }

/* --- SEÇÃO SOBRE --- */
.about { background-color: var(--light-grey); text-align: center; }
.about-container h2 { font-size: 2.5rem; margin-bottom: 50px; }
.about-content { display: flex; align-items: center; gap: 50px; margin-bottom: 40px; text-align: left; }
.about-image { flex: 0 0 40%; max-width: 40%; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 15px solid white; }
.about-text { flex: 1; }
.about-text p { margin-bottom: 15px; }

/* --- SEÇÃO "POR QUE CONFIAR" --- */
.trust-section { margin: 80px 0; padding: 60px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.trust-section h3 { font-size: 2.2rem; color: var(--whatsapp-green); margin-bottom: 50px; }
.trust-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; text-align: center; }
.trust-point i { font-size: 2.5rem; color: var(--dark-grey); margin-bottom: 15px; }
.trust-point h4 { font-size: 1.3rem; margin-bottom: 10px; }

/* --- SEÇÃO CONSULTA OAB --- */
.oab-section { margin-top: 60px; padding: 40px; background: var(--white-color); border-radius: 10px; box-shadow: 0 5px 20px rgba(36, 28, 28, 0.05); }
.oab-section h4 { font-size: 1.5rem; margin-bottom: 15px; }
.oab-link { display: inline-block; margin-top: 15px; margin-right: 15px; font-weight: 600; color: var(--whatsapp-green); text-decoration: underline; }

/* --- SEÇÃO EQUIPE --- */
.team-image { width: 100%; max-width: 700px; margin: 0 auto 40px auto; display: block; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 15px solid white; }
.team-section { margin-top: 80px; }
.team-section h3 { font-size: 2.2rem; color: var(--whatsapp-green); margin-bottom: 10px; }
.team-intro { max-width: 700px; margin: 0 auto 40px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; }
.team-member { background: var(--white-color); padding: 20px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.team-member:hover { transform: translateY(-5px); }
.team-member img { width: 100%; height: 200px; object-fit: cover; object-position: center 25%; border-radius: 50%; margin-bottom: 15px; border: 4px solid var(--light-grey); }
.team-member h4 { font-family: var(--font-primary); font-size: 1.2rem; margin-bottom: 5px; }
.team-member span { color: #777; font-size: 0.9rem; }

/* --- SEÇÃO PASSO A PASSO --- */
.steps { text-align: center; }
.steps h2 { font-size: 2.5rem; margin-bottom: 60px; }
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.step-card { position: relative; }
.step-icon { background: var(--whatsapp-green); color: white; width: 80px; height: 80px; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 20px; font-size: 2.5rem; }
.step-card h3 { margin-bottom: 10px; }
.step-card:not(:last-child)::after { content: '→'; font-size: 2rem; color: var(--whatsapp-green); position: absolute; top: 30px; right: -25px; transform: translateY(-50%); }

/* --- SEÇÃO REDES SOCIAIS --- */
.social-media { background-color: var(--light-grey); text-align: center; }
.social-media h2 { font-size: 2.2rem; margin-bottom: 30px; }
.social-links { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.social-links a { text-decoration: none; color: var(--dark-grey); font-size: 1.2rem; font-weight: 600; transition: color 0.3s ease; }
.social-links a:hover { color: var(--whatsapp-green); }
.social-links i { font-size: 2rem; margin-right: 10px; vertical-align: middle; }
.social-links .fa-instagram { color: #C13584; }
.social-links .fa-tiktok { color: #000000; }
.social-links .fa-facebook { color: #1877F2; }

/* --- SEÇÃO FAQ --- */
.faq h2 { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; font-size: 1.2rem; font-weight: 600; font-family: var(--font-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question i { transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 0 20px; }
.cta-button-faq { display: inline-block; background: var(--dark-grey); color: var(--white-color); padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; margin: 10px 0 20px; }

/* --- SEÇÃO IMPORTÂNCIA E SENTENÇAS --- */
.importance { background-color: var(--light-grey); text-align: center; }
.importance h2 { font-size: 2.5rem; margin-bottom: 30px; }
.importance-content { max-width: 800px; margin: 0 auto; }
.importance-content p { margin-bottom: 15px; }
#open-modal-btn { margin-top: 20px; }

/* --- SEÇÃO CADA SEGUNDO IMPORTA --- */
.time-matters { background: var(--dark-grey); color: var(--white-color); text-align: center; }
.time-matters-content { max-width: 700px; margin: 0 auto; }
.time-matters i { font-size: 4rem; color: var(--whatsapp-green); margin-bottom: 20px; display: inline-block; animation: pulse 2s infinite; }
.time-matters h2 { font-size: 2.5rem; color: var(--white-color); }
.time-matters p { margin: 15px 0; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* --- SEÇÃO AVALIAÇÕES --- */
.stars-ini { color: #fbbc05; }
.h3-star { color: var(--whatsapp-green); }
.testimonials { text-align: center; background-color: #f8f9fa; }
.testimonials h2 { font-size: 2.5rem; margin-bottom: 40px; }
.testimonial-slider { position: relative; max-width: 700px; margin: 0 auto 40px; transition: min-height 0.4s ease-in-out; }
.testimonial-card { position: absolute; width: 100%; background: var(--white-color); padding: 20px; border-radius: 8px; border: 1px solid #dadce0; box-shadow: none; opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease; visibility: hidden; text-align: left; transform: translateX(20px); }
.testimonial-card.active { opacity: 1; visibility: visible; transform: translateX(0); }
.testimonial-header { display: flex; align-items: center; margin-bottom: 15px; position: relative; }
.testimonial-author-img { width: 40px; height: 40px; border-radius: 50%; margin-right: 15px; }
.testimonial-author-info h4 { font-family: var(--font-secondary); font-size: 1rem; font-weight: 600; margin: 0; }
.stars { color: #fbbc05; font-size: 0.9rem; }
.google-icon { position: absolute; top: 0; right: 0; font-size: 1.5rem; color: #4285F4; }
.testimonial-body p { font-style: normal; font-size: 0.95rem; color: #3c4043; line-height: 1.5; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--white-color); border: 1px solid #dadce0; border-radius: 50%; width: 45px; height: 45px; cursor: pointer; color: var(--dark-grey); z-index: 10; display: flex; justify-content: center; align-items: center; box-shadow: 0 1px 6px rgba(0,0,0,0.1); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.slider-btn:hover { background-color: #f1f3f4; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.slider-btn i { font-size: 1rem; }
.slider-btn.prev { left: -25px; }
.slider-btn.next { right: -25px; }
.testimonials h3 { margin-bottom: 20px; }

/* --- SEÇÃO CONTADOR --- */
.counter-section { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(https://images.unsplash.com/photo-1555421689-d68471e189f2?q=80&w=2070) no-repeat center center/cover; color: var(--white-color); text-align: center; }
.counter-number { font-size: 5rem; font-weight: 700; font-family: var(--font-primary); }
.counter-container p { font-size: 1.2rem; margin-bottom: 30px; }

/* --- SEÇÃO ATENDIMENTO BRASIL --- */
.nationwide-service { background-color: var(--whatsapp-green); color: var(--white-color); text-align: center; padding: 40px 5%; }
.nationwide-service h2 { font-size: 2.5rem; margin: 0; text-transform: uppercase; letter-spacing: 2px; }

/* --- RODAPÉ --- */
.footer { background-color: var(--dark-grey); color: var(--light-grey); padding-top: 60px; }
.footer-container { display: flex; justify-content: space-between; gap: 50px; padding: 0 5% 40px; }
.footer-info { flex-basis: 50%; }
.footer-info img { max-width: 350px; margin-bottom: 20px; }
.contact-details p { margin-bottom: 10px; }
.contact-details i { color: var(--whatsapp-green); margin-right: 10px; }
.footer-map { flex-basis: 50%; }
.footer-map iframe { border-radius: 8px; }
.footer-bottom { text-align: center; padding: 20px 5%; border-top: 1px solid #444; }
.footer-links { margin: 15px 0; }
.footer-links a { color: #ccc; text-decoration: underline; margin: 0 10px; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--whatsapp-green); }
.disclaimer { font-size: 0.8rem; color: #888; max-width: 700px; margin: 15px auto; line-height: 1.4; }
.developer-credit { font-size: 0.85rem; color: #aaa; margin-top: 10px; }

/* --- MODAIS --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { position: relative; background: var(--white-color); padding: 25px; border-radius: 10px; max-width: 95%; max-height: 90vh; width: 600px; transform: scale(0.9); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-image-container { overflow: hidden; position: relative; }
.modal-image { width: 100%; display: none; }
.modal-image.active { display: block; }
.modal-close { position: absolute; top: -15px; right: -15px; background: var(--white-color); border: none; font-size: 2rem; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); z-index: 10; line-height: 40px; text-align: center; padding: 0; }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; font-size: 2rem; cursor: pointer; padding: 10px 15px; border-radius: 5px; }
.modal-nav.prev { left: 10px; }
.modal-nav.next { right: 10px; }
.text-modal-scroll-area { text-align: left; overflow-y: auto; padding-right: 15px; /* Evita que a barra de rolagem cole no texto */ }
.text-modal-scroll-area h2, .text-modal-scroll-area h3 { margin-top: 20px; margin-bottom: 10px; color: var(--whatsapp-green); }
.text-modal-scroll-area p, .text-modal-scroll-area li { margin-bottom: 15px; }
.text-modal-scroll-area ul { padding-left: 20px; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero-container, .about-content { flex-direction: column; }
    .hero-video { width: 100%; max-width: 560px; margin-top: 40px; }
    .hero-text { text-align: center; }
    .hero-text p { text-align: left; }
    .about-text { text-align: left; }
    .about-text p { text-align: left; }
    .about-image { max-width: 60%; margin: 0 auto 30px; }
    .footer-container { flex-direction: column; }
    .step-card:not(:last-child)::after { display: none; }
    .step-card p { text-align: center; }
    .trust-point p { text-align: center; }
    .team-intro { text-align: left; }
    .importance-content p { text-align: left; }
    .time-matters-content p { text-align: center; }
    .faq-answer p { text-align: left; }
    .testimonial-body p { text-align: left; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-text h1 { font-size: 2.2rem; text-align: left;}
    .hero-text p { text-align: left; }
    .about-text p { text-align: left; }
    .about-text { text-align: left; }
    .oab-section p { text-align: left; }
    .oab-section { text-align: left; }
    .oab-section a { text-align: left; display: inline-block; }
    .team-section p { text-align: left; }
    .team-intro { text-align: left; }
    .importance p { text-align: left; }
    .importance-content { text-align: left; }
    .importance-content p { text-align: left; }
    .time-matters-content p { text-align: center; }
    .trust-point p { text-align: center; }
    .step-card p { text-align: center; }
    .faq-answer { text-align: left; }
    .faq-answer p { text-align: left; }
    .testimonial-body p { text-align: left; }
    .contact-details p { text-align: left; }
    .footer-bottom p { text-align: left; }
    .disclaimer { text-align: left; }
    .developer-credit { text-align: left; }
    .text-modal-scroll-area { text-align: left; }
    .text-modal-scroll-area p { text-align: left; }
    .text-modal-scroll-area li { text-align: left; }
    .counter-container p { text-align: left; }
    section { padding: 60px 5%; }
    .services-grid, .team-grid, .steps-container { grid-template-columns: 1fr; }
    .slider-btn { display: none; }
    .about-image { max-width: 80%; }
    .team-image { border-width: 10px; }
    .nationwide-service h2 { font-size: 1.8rem; }
}

