/* =========================================
   1. RESET E VARIÁVEIS GLOBAIS
   ========================================= */
:root {
    --primary: #215956;    /* Verde Escuro (Marca) */
    --secondary: #0192a5;  /* Azul Esverdeado (Destaque) */
    --accent: #25d366;     /* WhatsApp */
    --text: #333333;       /* Texto Escuro */
    --light: #f7f7f7;      /* Fundo Claro */
    --white: #ffffff;      /* Branco Puro */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Container Centralizado */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 20px;
}

p { margin-bottom: 15px; }

/* =========================================
   2. BARRA DE TOPO (TOP BAR)
   ========================================= */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    height: 40px;
    font-size: 13px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar a, .top-bar span {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar i { font-size: 14px; color: var(--secondary); }
.top-bar a:hover { color: var(--secondary); }

/* =========================================
   3. HEADER E NAVEGAÇÃO
   ========================================= */
.main-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo, .logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo h2 {
    margin: 0;
    font-size: 24px;
    color: var(--primary);
    line-height: 1;
    display: flex;
    align-items: center;
}

.logo span { color: var(--secondary); }

.desktop-menu ul { display: flex; align-items: center; gap: 30px; }
.desktop-menu a { font-weight: 600; color: var(--primary); font-size: 15px; }
.desktop-menu a:hover { color: var(--secondary); }

.desktop-menu .btn-nav {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 30px;
}
.desktop-menu .btn-nav:hover { opacity: 0.9; transform: translateY(-2px); }

.mobile-menu-icon { display: none; font-size: 24px; color: var(--primary); cursor: pointer; }

/* =========================================
   4. SLIDER HERO (100% TELA - HEADER)
   ========================================= */
/* RESET IMPORTANTE: O Slider é uma section, mas não pode ter o padding padrão */
.hero-slider {
    padding: 0 !important; /* Zera o padding para colar nas bordas */
    width: 100%;
    height: calc(100vh - 130px);
    min-height: 550px; 
    position: relative;
    background: #ddd;
    overflow: hidden;
}

.slider-container { width: 100%; height: 100%; position: relative; }

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 1;
}

.slide.active { opacity: 1; z-index: 2; }

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
    padding-left: 50px;
    color: var(--white);
}

.slide-content h1 { color: var(--white); font-size: 48px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.slide-content p { font-size: 18px; margin-bottom: 30px; color: #eee; }

.slider-controls {
    position: absolute; top: 50%; width: 100%;
    display: flex; justify-content: space-between; padding: 0 30px;
    z-index: 10; transform: translateY(-50%); pointer-events: none;
}

.prev-btn, .next-btn {
    pointer-events: auto;
    background: rgba(255,255,255,0.2);
    border: none; color: var(--white); font-size: 30px; padding: 15px;
    cursor: pointer; border-radius: 50%; transition: 0.3s; backdrop-filter: blur(5px);
}
.prev-btn:hover, .next-btn:hover { background: var(--secondary); }

/* =========================================
   5. SEÇÕES E DOBRAS (PADRÃO 50px)
   ========================================= */
section {
    padding: 50px 0; /* A REGRA DE OURO: 50px em cima, 50px embaixo */
}

/* Botões */
.btn-primary {
    background-color: var(--secondary); color: var(--white);
    padding: 12px 35px; border-radius: 50px; font-weight: 600;
    display: inline-block; border: 2px solid var(--secondary);
}
.btn-primary:hover { background-color: transparent; color: var(--secondary); }

.btn-secondary {
    background-color: transparent; color: var(--primary);
    border: 2px solid var(--primary); padding: 10px 30px;
    border-radius: 50px; font-weight: 600;
}
.btn-secondary:hover { background-color: var(--primary); color: var(--white); }

/* --- SEÇÃO SOBRE --- */
.section-sobre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px; 
}

.section-sobre .content-text { flex: 1; }
.section-sobre .content-img { flex: 1; }

.img-box {
    width: 100%;
    height: 450px;
    background: #e0e0e0;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    color: #666;
}

/* --- SEÇÃO DIFERENCIAIS --- */
.section-diferenciais { background: var(--white); text-align: center; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 30px;
}
.card {
    background: var(--light); padding: 40px 30px;
    border-radius: 15px; text-align: center; transition: 0.3s;
    border: 1px solid #eee;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card h3 { color: var(--secondary); font-size: 22px; margin-bottom: 15px; }

/* --- SEÇÃO EXAMES --- */
.section-exames {
    text-align: center;
    background: var(--primary);
    color: var(--white);
    /* Aqui mantemos o padding 50px do section global, mas adicionamos border-radius visual */
    border-radius: 20px;
}
.section-exames h2 { color: var(--white); }
.section-exames .btn-primary {
    background: var(--white); color: var(--primary); border-color: var(--white); margin-top: 30px;
}
.section-exames .btn-primary:hover { background: transparent; color: var(--white); }

/* =========================================
   6. FOOTER & WHATSAPP
   ========================================= */
.main-footer { background: #222; color: #ccc; padding: 60px 0 20px; font-size: 14px; }
.main-footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 40px; }
.main-footer h3 {
    color: var(--white); font-size: 18px; margin-bottom: 25px;
    border-bottom: 2px solid var(--secondary); display: inline-block; padding-bottom: 5px;
}
.main-footer a:hover { color: var(--secondary); margin-left: 5px; }
.main-footer li { margin-bottom: 12px; }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 20px; }

.whatsapp-float {
    position: fixed; bottom: 25px; right: 25px; z-index: 9999; transition: transform 0.3s;
}
.whatsapp-float img {
    width: 60px !important; height: 60px !important;
    border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* =========================================
   7. RESPONSIVIDADE
   ========================================= */
@media (max-width: 991px) {
    .hero-slider { height: 500px; } 
    .section-sobre { flex-direction: column; gap: 30px; text-align: center; }
    .section-sobre .content-img { width: 100%; }
    .img-box { height: 350px; }
}

@media (max-width: 768px) {
    .top-bar { height: auto; padding: 10px 0; }
    .top-bar .container { flex-direction: column; gap: 10px; }
    .tb-center { display: none; } 
    .desktop-menu { display: none; }
    .mobile-menu-icon { display: block; }
    .slide-content h1 { font-size: 28px; }
    .slide-content { padding-left: 0; text-align: center; padding: 20px; }
}

/* Page Header (Topo das páginas internas) */
.page-header {
    background-color: var(--primary);
    margin-bottom: 0; /* Cola na section de baixo ou mantém o fluxo */
}
.page-header h1 {
    font-size: 36px;
    font-weight: 700;
}
/* Ajuste Mobile */
@media (max-width: 768px) {
    .page-header { padding: 60px 0 !important; }
    .page-header h1 { font-size: 28px; }
}

/* =========================================
   8. PÁGINA FAQ (ACORDEÃO)
   ========================================= */
.faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.faq-question {
    width: 100%;
    background: #fff;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question.active {
    background: var(--light);
    color: var(--secondary);
}

.faq-question i {
    transition: transform 0.3s;
    font-size: 14px;
}

.faq-question.active i {
    transform: rotate(180deg); /* Gira a setinha */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out; /* Anima altura e padding */
    padding: 0 20px; /* Começa sem padding vertical */
    background: #fff;
    opacity: 0; /* Começa invisível */
}

/* Quando o botão anterior tem a classe active */
.faq-question.active + .faq-answer {
    border-top: 1px solid #f0f0f0;
    opacity: 1; /* Fica visível */
    /* O padding e height são controlados pelo JS inline */
}

/* =========================================
   9. PÁGINA DE CONTATO
   ========================================= */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info, .contact-form-box {
    flex: 1;
    min-width: 300px;
}

/* Lista de Contatos */
.info-list { margin-top: 30px; margin-bottom: 30px; }
.info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.info-list i {
    font-size: 24px;
    color: var(--secondary);
    margin-top: 5px;
}
.info-list strong { display: block; color: var(--primary); }

/* Mapa */
.map-box {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Formulário */
.contact-form-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background: #fbfbfb;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
    background: #fff;
}

/* Alertas (Mensagens de Sucesso/Erro) */
.alert {
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 5px;
    font-weight: 600;
}
.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsivo Contato */
@media (max-width: 768px) {
    .contact-wrapper { flex-direction: column; gap: 40px; }
    .contact-form-box { padding: 20px; }
}

/* =========================================
   10. POLÍTICA DE PRIVACIDADE
   ========================================= */
.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.policy-content h2 {
    font-size: 22px;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.policy-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: #555;
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: disc;
    color: #555;
}

.policy-content li {
    margin-bottom: 8px;
}

/* =========================================
   11. ESTILOS EXTRAS DA HOME (PASSO A PASSO)
   ========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto; /* Centraliza */
    box-shadow: 0 4px 10px rgba(1, 146, 165, 0.3);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary);
}

.step-card p {
    font-size: 15px;
    color: #666;
}
/* =========================================
   12. SEÇÃO QUEM SE BENEFICIA (NOVA)
   ========================================= */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.beneficio-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s;
}

.beneficio-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: rgba(1, 146, 165, 0.1); /* Cor secundária bem clarinha */
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 28px;
}

.beneficio-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

.beneficio-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* =========================================
   13. SEÇÃO SLOGAN (CHAMADA ENTRE DOBRAS)
   ========================================= */
.slogan-section {
    position: relative;
    background-color: var(--primary); /* Cor de fundo se a imagem falhar */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* EFEITO PARALLAX (Imagem parada) */
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

/* Overlay Escuro (para o texto ficar legível sobre a imagem) */
.slogan-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 89, 86, 0.55); /* Verde da marca com transparência */
    z-index: 1;
}

.slogan-section .content-box {
    position: relative;
    z-index: 2; /* Fica acima do overlay */
}

.slogan-section h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.slogan-section p {
    color: #eee;
    font-size: 18px;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Botão Branco Vazado */
.btn-outline-white {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsivo */
@media (max-width: 768px) {
    .slogan-section { padding: 60px 0; }
    .slogan-section h2 { font-size: 26px; }
    .slogan-section p { font-size: 16px; }
}

/* =========================================
   14. RODAPÉ FINAL E GSI SOLUTIONS
   ========================================= */
.footer-bottom {
    background-color: #1a1a1a; /* Mais escuro que o footer principal */
    padding: 20px 0;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #aaa;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.developer a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.developer a:hover {
    color: var(--secondary); /* Efeito hover na marca GSI */
    text-shadow: 0 0 10px rgba(1, 146, 165, 0.5);
}

/* Responsivo do Footer Bottom */
@media (max-width: 768px) {
    .bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   15. BANNER LGPD (COOKIES)
   ========================================= */
.lgpd-banner {
    position: fixed;
    bottom: -100%; /* Começa escondido lá embaixo */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 4px solid var(--secondary);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 9990; /* Abaixo do WhatsApp */
    transition: bottom 0.5s ease-in-out;
    backdrop-filter: blur(5px);
}

.lgpd-banner.show {
    bottom: 0; /* Sobe para a tela */
}

.lgpd-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.lgpd-text p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.lgpd-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lgpd-content {
        flex-direction: column;
        text-align: center;
    }
    .lgpd-banner {
        padding: 25px 20px; /* Mais espaço no mobile */
    }
}
/* =========================================
   RESPONSIVIDADE E MENU MOBILE
   ========================================= */
@media (max-width: 991px) {
    /* Tablet e Mobile */
    .hero-slider { height: 500px; }
    .section-sobre { flex-direction: column; gap: 30px; text-align: center; }
    .section-sobre .content-img { width: 100%; }
    .img-box { height: 350px; }
}

@media (max-width: 768px) {
    /* Top Bar Mobile */
    .top-bar { height: auto; padding: 10px 0; }
    .top-bar .container { flex-direction: column; gap: 10px; }
    .tb-center { display: none; } 
    
    /* --- MENU MOBILE CORRIGIDO --- */
    .mobile-menu-icon {
        display: block; /* Mostra o ícone */
        font-size: 28px;
        color: var(--primary);
        cursor: pointer;
        z-index: 1001;
    }

    .desktop-menu {
        display: none; /* Esconde por padrão */
        position: absolute;
        top: 100%; /* Cola logo abaixo do header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        border-top: 1px solid #eee;
        z-index: 1000;
    }

    /* Classe que o JS adiciona ao clicar */
    .desktop-menu.active {
        display: flex !important;
        animation: slideDown 0.3s ease forwards;
    }

    .desktop-menu ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        width: 100%;
    }
    
    .desktop-menu a {
        display: block;
        padding: 10px;
        font-size: 18px;
    }
    
    .desktop-menu .btn-nav {
        display: inline-block;
        margin-top: 10px;
    }

    /* Slider Mobile */
    .slide-content h1 { font-size: 28px; }
    .slide-content { padding-left: 0; text-align: center; padding: 20px; }

    /* Contato Mobile */
    .contact-wrapper { flex-direction: column; gap: 40px; }
    .contact-form-box { padding: 20px; }
    .lgpd-content { flex-direction: column; text-align: center; }
    
    /* Slogan Mobile */
    .slogan-section { padding: 60px 0; }
    .slogan-section h2 { font-size: 24px; }
}

/* Animação suave do menu descendo */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   16. LISTA DE BAIRROS (GEO SEO)
   ========================================= */
.bairros-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.bairro-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bairro-item:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .bairros-grid {
        gap: 10px;
    }
    .bairro-item {
        font-size: 13px;
        padding: 8px 15px;
    }
}