/* --- Global Styles & Variables --- */
:root {
    --primary-color: #D97706; /* Laranja Queimado */
    --secondary-color: #1E3A8A; /* Azul Escuro */
    --light-gray-color: #F3F4F6; /* Cinza Claro */
    --dark-gray-color: #111827; /* Cinza Escuro para fundos */
    --text-color-light: #ffffff;
    --text-color-dark: #374151;
    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
    --navbar-height: 80px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height); /* Compensa a altura do menu fixo */
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--light-gray-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.small-container {
    max-width: 800px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

section {
    padding: 4rem 0;
}

.section-light { background-color: #ffffff; }
.section-dark { background-color: var(--dark-gray-color); color: var(--text-color-light); }
.section-dark h2, .section-dark h3 { color: var(--text-color-light); }
.section-clients { background-color: var(--light-gray-color); padding: 4rem 0;}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
}
.cta-button:hover {
    transform: translateY(-3px);
    background-color: #b96505;
}
.cta-button.large { padding: 15px 40px; font-size: 1.1rem; }
.cta-button i { margin-right: 8px; }

/* --- Menu de Navegação --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--navbar-height);
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.navbar.scrolled {
    background-color: var(--dark-gray-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* CORREÇÃO DEFINITIVA: Container ocupa 100% da altura e alinha os itens */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.navbar-brand img {
    max-height: 50px; 
    width: auto; /* Mantém a proporção */
    transition: transform var(--transition-speed);
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-menu {
    display: none; /* Escondido em mobile por padrão */
}

.navbar-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}
.nav-cta:hover {
    background-color: #b96505;
    transform: translateY(-2px);
}
.nav-cta::after {
    display: none; /* Remove o efeito de sublinhado do botão */
}

/* --- Estilos do Menu Mobile (Toggler) --- */
.navbar-toggler {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Fica acima do menu */
}

.toggler-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color-light);
    margin: 5px 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.navbar-toggler.active .toggler-icon:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-toggler.active .toggler-icon:nth-child(2) {
    opacity: 0;
}
.navbar-toggler.active .toggler-icon:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Animações de Scroll --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in { transform: translateY(20px); }
.fade-in-up { transform: translateY(50px); }
.fade-in-down { transform: translateY(-50px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Botão Flutuante WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    z-index: 999; /* Abaixo do menu */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float .whatsapp-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    white-space: nowrap;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-gray-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.whatsapp-float:hover .whatsapp-tooltip {
    visibility: visible;
    opacity: 1;
}

/* --- 1. Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    overflow: hidden; /* Garante que o vídeo não ultrapasse a seção */
}
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cobre todo o espaço, cortando se necessário */
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(30, 58, 138, 0.7), rgba(17, 24, 39, 0.7));
    z-index: -1;
}
.hero-content { 
    position: relative; 
    z-index: 2; 
    padding-top: var(--navbar-height); 
}
.hero-section h1 {
    color: var(--text-color-light);
    margin-bottom: 1rem;
    font-weight: 700;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.subheadline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* --- 2. Quem Somos --- */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- 3. Como Funciona --- */
.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}
.step {
    text-align: center;
    max-width: 250px;
}
.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- 4. Benefícios --- */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.benefit-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform var(--transition-speed) ease;
}
.benefit-card:hover {
    transform: translateY(-5px);
}
.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- 5. Clientes Carousel --- */
.client-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 2rem;
}
.client-carousel::before, .client-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.client-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--light-gray-color), rgba(243, 244, 246, 0));
}
.client-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--light-gray-color), rgba(243, 244, 246, 0));
}
.client-logos {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}
.client-logos img {
    height: 40px;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter var(--transition-speed), opacity var(--transition-speed);
}
.client-logos:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 6. Regiões Atendidas --- */
#regioes .container {
    text-align: center;
}
.map-image {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
    border-radius: 8px;
}

/* --- 7. Condições para Aderir --- */
.conditions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}
.condition-item {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.condition-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

/* --- 8. FAQ --- */
.faq-accordion { margin-top: 2rem; }
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color-dark);
}
.faq-question i {
    transition: transform var(--transition-speed) 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-bottom: 1.5rem;
}

/* --- 9. Final CTA & Condições --- */
.final-cta-section {
    padding: 4rem 0;
    background-image: url('../assets/images/final-cta-background.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--text-color-light);
}
.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(30, 58, 138, 0.85), rgba(17, 24, 39, 0.85));
}
.final-cta-section .container { 
    position: relative; 
    z-index: 2; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
.final-cta-section h2 { color: var(--text-color-light); margin-bottom: 2rem; }
.conditions-box {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(217, 119, 6, 0.5);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    width: 100%;
}
.conditions-box h3 { color: var(--primary-color); margin-bottom: 1rem; }
.conditions-box ul { list-style: none; margin-bottom: 1rem; }
.conditions-box li { margin-bottom: 0.5rem; }
.conditions-box i { color: var(--primary-color); margin-right: 10px; }
.transparency-focus { font-style: italic; opacity: 0.8; font-size: 0.9rem; }

/* --- 10. Footer --- */
.footer {
    background-color: var(--dark-gray-color);
    color: var(--text-color-light);
    padding: 3rem 0 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}
.footer-logo { max-width: 180px; margin-bottom: 0.5rem; }
.slogan { color: var(--light-gray-color); opacity: 0.8; }
.footer-links a {
    color: var(--text-color-light);
    text-decoration: none;
    margin: 0 10px;
    transition: color var(--transition-speed);
}
.footer-links a:hover { color: var(--primary-color); }
.footer-social a {
    color: var(--text-color-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color var(--transition-speed);
}
.footer-social a:hover { color: var(--primary-color); }
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #374151;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Menu de Navegação - Correções para Mobile --- */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0 15px; /* Adiciona padding para evitar que os elementos encostem nas bordas */
    }
    
    .navbar-container {
        padding: 0; /* Remove qualquer padding extra */
    }
    
    .navbar-brand img {
        max-height: 40px; /* Reduz um pouco o tamanho da logo em mobile */
        width: auto;
    }
    
    .navbar-toggler {
        padding: 10px; /* Aumenta a área clicável */
    }
    
    .toggler-icon {
        width: 25px;
        height: 3px; /* Faz as linhas um pouco mais grossas para melhor visibilidade */
        background-color: var(--text-color-light);
        transition: all 0.3s ease;
    }
    
    .navbar-menu {
        padding-top: var(--navbar-height); /* Garante espaço para a navbar */
    }
    
    /* Garante que o menu não fique muito largo em telas pequenas */
    .navbar-menu {
        width: 85%;
        max-width: 300px;
    }
}

/* Ajustes adicionais para telas muito pequenas */
@media (max-width: 480px) {
    .navbar-brand img {
        max-height: 35px; /* Tamanho um pouco menor para telas muito pequenas */
    }
    
    .navbar-toggler {
        margin-left: auto; /* Empurra o botão para a direita */
    }
    
    .hero-section h1 {
        font-size: 2rem; /* Reduz o tamanho do título em telas muito pequenas */
    }
    
    .subheadline {
        font-size: 1rem; /* Reduz o subtítulo também */
    }
}

@media (min-width: 768px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.5rem; }

    .benefits-grid { grid-template-columns: repeat(3, 1fr); }
    .conditions-grid { grid-template-columns: repeat(4, 1fr); }
    .condition-item p { font-size: 0.9rem; }
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    .footer-info, .footer-links, .footer-social {
        flex: 1;
    }
    .footer-social { text-align: right; }
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none; /* Esconde o botão hamburger no desktop */
    }
    .navbar-menu {
        display: block; /* Mostra o menu de links no desktop */
    }
}

@media (min-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(5, 1fr); }
}
