/* Variáveis Globais */
:root {
    --cor-principal: #841b24; 
    --cor-secundaria: #a32a35;
    --cor-fundo: #faf8f6;
    --cor-texto: #4a4a4a;
    --cor-texto-claro: #666;
    --cor-branco: #ffffff;
}

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--cor-principal);
}

/* Cabeçalho - Centrado */
header {
    background-color: var(--cor-branco);
    padding: 20px 5%;
    display: flex;
    flex-direction: column; /* Coloca o logótipo e o menu numa estrutura vertical */
    justify-content: center;
    align-items: center;
    gap: 15px; /* Espaçamento ideal entre o logótipo e os links */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    max-width: 160px; /* Tamanho ligeiramente ajustado para o centro */
    height: auto;
}

nav {
    display: flex;
    justify-content: center;
    gap: 25px; /* Espaçamento entre os links do menu */
}

nav a {
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--cor-principal);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to bottom, #ffffff, var(--cor-fundo));
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--cor-texto-claro);
    max-width: 600px;
    margin-bottom: 40px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Seção Sobre e Benefícios - Estrutura Simplificada e à Prova de Falhas */
.section-info {
    padding: 60px 5%;
    background-color: var(--cor-branco);
    /* Removido o display: flex daqui para garantir que o texto fique em cima naturalmente */
}

.about-text {
    width: 100%;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto; /* Centraliza a caixa de texto e dá um espaço de 50px para baixo */
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* Contêiner Exclusivo das Caixas */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centraliza as 3 caixas juntas no meio da página */
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Garante que o próprio contêiner fique no centro da tela */
}

.card {
    padding: 30px;
    border-radius: 15px;
    background-color: var(--cor-fundo);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    width: 100%;
    max-width: 340px; /* Mantém todas as caixas com a mesma largura */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2.5rem;
    color: var(--cor-principal);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Rodapé */
footer {
    background-color: #2a2a2a;
    color: #ccc;
    padding: 40px 5%;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-links button {
    background: none;
    border: none;
    color: #fff;
    text-decoration: underline;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links button:hover {
    color: var(--cor-fundo);
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Modais da LGPD */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--cor-branco);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 10px;
    padding: 40px;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--cor-texto);
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: var(--cor-texto);
}

.modal-content p, .modal-content ul {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--cor-texto-claro);
}

.modal-content ul {
    padding-left: 20px;
}

/* Responsividade total */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    nav a {
        margin: 0 10px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .modal-content {
        padding: 25px 20px;
    }
}