/* Variáveis CSS para cores e espaçamento */
:root {
    --clr-primary: #30478B; /* AZUL PRINCIPAL (cor da sua logo) */
    --clr-primary-dark: #1C397A; /* AZUL ESCURO para hover e títulos */
    --clr-secondary: #3b82f6; /* Azul complementar (mantido) */
    --clr-accent: #fcd34d; /* Amarelo para destaques (mantido) */
    --clr-bg-light: #f9fafb; /* Fundo mais claro */
    --clr-bg-dark: #1f2937; /* Fundo do rodapé */
    --clr-text-main: #374151; /* Cor principal do texto */
    --clr-text-light: #e5e7eb; /* Cor do texto claro */
    --clr-border: #e2e8f0; /* Cor de borda suave */

    --font-family-sans: "Inter", sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius-default: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset CSS e estilos base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-sans);
    background: var(--clr-bg-light);
    color: var(--clr-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Classes utilitárias */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-spacing {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: #fff;
}

.bg-primary-gradient {
    background: linear-gradient(115deg, var(--clr-primary) 0%, #4863A0 100%);
    color: #fff;
}

.text-white {
    color: #fff;
}

.text-center {
    text-align: center;
}

.highlight-text {
    color: var(--clr-accent);
}

.highlight-title {
    color: var(--clr-primary);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--clr-primary);
    line-height: 1; /* Alinha o texto na linha */
}

.logo-light {
    font-weight: 300;
    color: var(--clr-primary);
}

/* Estilo para a imagem da logo no header */
.header-logo {
    height: 40px; /* Ajuste a altura da logo. A largura será ajustada automaticamente para manter a proporção. */
    width: auto; /* Mantém a proporção original da imagem */
    display: block; /* Garante que não haja espaçamento extra abaixo da imagem */
}

.main-nav {
    display: none; /* Escondido por padrão no mobile */
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-main);
    transition: color 0.2s ease-in-out;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-default);
    font-weight: 600;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-out;
    white-space: nowrap; /* Impede quebras de linha indesejadas */
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--clr-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--clr-primary-dark);
}

.btn-secondary {
    background: #fff;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}

.btn-secondary:hover {
    background: var(--clr-bg-light);
    color: var(--clr-primary-dark);
    border-color: var(--clr-primary-dark);
}

.cta-header {
    margin-left: var(--spacing-md); /* Espaçamento entre o menu e o botão no desktop */
}

/* Hamburger Menu */
.hamburger-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-primary);
    cursor: pointer;
    display: block; /* Visível por padrão no mobile */
    z-index: 101; /* Garante que fique acima da navegação */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(115deg, var(--clr-primary) 0%, #4863A0 100%);
    color: #fff;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Para garantir que a imagem não vaze */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    max-width: 800px;
    font-weight: 700;
}

.hero-description {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 650px;
    margin-bottom: var(--spacing-md);
}

.hero-section .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.hero-image-wrapper {
    display: none; /* Escondido por padrão no mobile */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

.hero-image-wrapper img {
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease-in-out;
}

.hero-image-wrapper img:hover {
    transform: translateY(-5px);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--clr-primary-dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--clr-primary);
    border-radius: 2px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-default);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid var(--clr-border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-large {
    color: var(--clr-primary);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--clr-primary-dark);
    font-weight: 600;
}

.feature-card p {
    font-size: 1rem;
    color: var(--clr-text-main);
    opacity: 0.9;
}

/* How It Works Section */
.how-it-works-section .section-title {
    color: var(--clr-primary-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    padding-top: var(--spacing-md);
}

.step-item {
    text-align: center;
    position: relative;
    padding: var(--spacing-sm);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--clr-primary);
    color: #fff;
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-md);
    border: 3px solid #fff;
}

.step-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--clr-primary-dark);
    font-weight: 600;
}

.step-item p {
    color: var(--clr-text-main);
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section .section-title {
    color: #fff;
}

.testimonials-slider {
    overflow-x: auto;
    display: flex;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm); /* Espaço para a barra de rolagem */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Suaviza o scroll no iOS */
}

/* Esconder barra de rolagem para navegadores WebKit */
.testimonials-slider::-webkit-scrollbar {
    display: none;
}

/* Esconder barra de rolagem para Firefox */
.testimonials-slider {
    scrollbar-width: none;
}

.testimonial-card {
    flex: 0 0 340px; /* Largura fixa para cada card */
    background: #fff;
    padding: var(--spacing-md);
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--clr-primary);
}

.testimonial-author {
    font-weight: 600;
    color: var(--clr-primary-dark);
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    flex-grow: 1; /* Garante que o texto ocupe o espaço disponível */
}

/* FAQ Section */
.faq-section .section-title {
    color: var(--clr-primary-dark);
}

.faq-items {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius-default);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--clr-border);
    transition: box-shadow 0.2s ease-in-out;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    cursor: pointer;
    font-weight: 600;
    color: var(--clr-text-main);
    display: block; /* Garante que o summary ocupe toda a largura */
    padding-right: 30px; /* Espaço para o ícone */
    position: relative;
}

.faq-question::after {
    content: '\2b'; /* Sinal de mais (+) */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--clr-primary);
    transition: transform 0.2s ease-in-out;
}

.faq-item[open] .faq-question::after {
    content: '\2212'; /* Sinal de menos (-) */
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding-top: 1rem;
    border-top: 1px solid var(--clr-border);
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--clr-text-main);
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background-color: var(--clr-bg-light);
}

.cta-section .section-title {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
}

.cta-description {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--clr-text-main);
    opacity: 0.9;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-large i {
    margin-right: 0.75rem;
}

.small-print {
    font-size: 0.85rem;
    color: var(--clr-gray);
    margin-top: var(--spacing-md);
}

/* Footer */
.footer {
    background: var(--clr-bg-dark);
    color: var(--clr-text-light);
    padding: var(--spacing-lg) 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a, .contact-info a {
    color: var(--clr-text-light);
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover, .contact-info a:hover, .social-links a:hover {
    color: var(--clr-primary);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-info i {
    font-size: 1rem;
    color: var(--clr-primary);
    margin-top: 0.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--clr-text-light);
    font-size: 1.6rem;
    transition: color 0.2s ease-in-out;
}

.copyright {
    margin-top: var(--spacing-md);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* MODIFICAÇÃO WHATSAPP: Estilos para o botão lateral grande */
.whatsapp-button {
    /* REMOVIDO display: none; daqui, pois será controlado na media query */
    position: fixed;
    right: 20px;
    bottom: 30px; /* Posição acima do botão flutuante menor */
    background-color: #25d366; /* Mantém verde WhatsApp específico para o botão */
    color: #fff;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 1000; /* Garante que fique acima de outros elementos */
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.1s ease-out;
    white-space: nowrap; /* Evita quebra de linha do texto */
}

.whatsapp-button:hover {
    background-color: #128c7e; /* Verde escuro do WhatsApp no hover */
    transform: scale(1.02);
}

.whatsapp-button i { /* Este estilo era para ícone Font Awesome, mantido por garantia, mas a imagem o substitui */
    margin-right: 8px;
    font-size: 1.2rem;
}

.whatsapp-btn-icon { /* ESTILO PARA A IMAGEM DO ÍCONE WHATSAPP NO BOTÃO LATERAL */
    width: 28px; /* Ajuste o tamanho da imagem do ícone aqui */
    height: 28px;
    margin-right: 8px; /* Espaço entre o ícone e o texto */
    vertical-align: middle;
}

/* MODIFICAÇÃO WHATSAPP: Estilos para o botão flutuante (redondo) */
.whatsapp-float {
    /* REMOVIDO display: flex; daqui, pois será controlado na media query */
    position: fixed;
    width: 60px; /* Tamanho da área do botão */
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* Mantém verde WhatsApp específico para o botão */
    border-radius: 50px; /* Para que o botão seja redondo */
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    /* display: flex; REMOVIDO daqui */
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    overflow: hidden; /* Garante que a imagem não vaze do círculo */
}

.whatsapp-float:hover {
    background-color: #128c7e; /* Verde escuro do WhatsApp no hover */
    transform: scale(1.05);
}

.whatsapp-float-icon { /* ESTILO PARA A IMAGEM DO ÍCONE WHATSAPP NO BOTÃO FLUTUANTE */
    width: 100%; /* A imagem preenche a largura do botão */
    height: 100%; /* A imagem preenche a altura do botão */
    object-fit: contain; /* Reduz a imagem para caber no container sem cortar */
    border-radius: 50%; /* Garante que a imagem, se for quadrada, seja exibida como círculo */
    display: block; /* Remove espaços extras */
}

/* Responsividade */
@media (max-width: 767px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Ajuste conforme a altura do seu header */
        left: 0;
        background-color: #fff;
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md) 0;
        border-top: 1px solid var(--clr-border);
    }

    .main-nav.is-active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .nav-link {
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--clr-bg-light); /* Linha divisória para itens do menu */
    }

    .nav-link::after {
        display: none; /* Remove a linha de hover no mobile */
    }

    .cta-header {
        display: none; /* Oculta o botão de simular no header no mobile */
    }

    .hero-section {
        padding: var(--spacing-lg) 0;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-section .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 90%; /* Botões ocupam mais largura */
    }

    .testimonials-slider {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .testimonial-card {
        flex: 0 0 90%; /* Cards de depoimentos um pouco maiores no mobile */
    }

    .footer-grid {
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-col {
        padding-bottom: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-links, .contact-info, .social-links {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-info p {
        align-items: center;
    }

    /* MODIFICAÇÃO WHATSAPP: Controla a exibição dos botões no MOBILE */
    .whatsapp-button { /* Oculta o botão lateral grande no mobile */
        display: none;
    }

    .whatsapp-float { /* Exibe o botão flutuante no mobile */
        display: flex; /* Garante que seja exibido como flex para centralizar o ícone */
        bottom: 20px; /* Posição para o mobile */
        right: 20px;
        width: 50px; /* Tamanho para o mobile */
        height: 50px;
    }
}

@media (min-width: 768px) {
    .hamburger-menu {
        display: none; /* Oculta o hamburger no desktop */
    }

    .main-nav {
        display: block; /* Mostra o menu no desktop */
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 0;
    }

    .nav-list {
        flex-direction: row;
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero-text {
        flex: 1;
        padding-right: var(--spacing-md);
    }

    .hero-text h1 {
        font-size: 3rem; /* Tamanho maior para desktop */
    }

    .hero-description {
        font-size: 1.25rem;
    }

    .hero-section .btn-group {
        justify-content: flex-start;
    }

    .hero-image-wrapper {
        display: flex; /* Mostra a imagem no desktop */
        flex: 0 0 45%; /* Controla a largura da imagem */
        padding: 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .steps-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 colunas no desktop */
    }

    .testimonial-card {
        flex: 0 0 30%; /* Três cards por linha */
        max-width: 380px; /* Garante que os cards não fiquem muito largos */
    }

    /* MODIFICAÇÃO WHATSAPP: Controla a exibição dos botões no DESKTOP */
    .whatsapp-button { /* Exibe o botão lateral grande no desktop */
        display: inline-flex; /* ou 'block', 'flex' dependendo de como você quer o alinhamento */
    }

    .whatsapp-float { /* Posiciona o botão flutuante acima do botão lateral grande no desktop */
        display: flex; /* Garante que seja exibido como flex para centralizar o ícone */
        bottom: 90px; /* Acima do whatsapp-button */
        right: 20px;
    }
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}