/* ===================================================================== */
/*               ARQUIVO style.css COMPLETO E RESTAURADO                 */
/* ===================================================================== */

/* --- Reset e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Um cinza bem claro para o fundo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header e Navegação --- */
.header {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px_10px rgba(0, 86, 179, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.btn-primary {
    background: #28a745;
    color: white;
}

.nav-link.btn-primary:hover {
    background: #218838;
}

/* --- Seção Hero (Página Inicial) --- */
.hero {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0056b3;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.steering-wheel {
    font-size: 8rem;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Botões --- */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #28a745;
    color: white;
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
}

.btn-secondary:hover {
    background: #0056b3;
    color: white;
}

/* --- Seções Genéricas --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 60px;
}

.features, .topics, .cta {
    padding: 80px 0;
}

.features {
    background: #ffffff;
}

/* --- Cards (Features, Topics) --- */
.features-grid, .topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card, .topic-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon, .topic-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3, .topic-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 15px;
}

.feature-card p, .topic-card p {
    color: #666;
    line-height: 1.6;
}

/* --- Seção CTA (Call to Action) --- */
.cta {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* --- Footer --- */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===================================================================== */
/*               MENU HAMBÚRGUER E RESPONSIVIDADE (CSS PURO)             */
/* ===================================================================== */

/* Esconde a checkbox de controle */
.menu-toggle-checkbox {
    display: none;
}

/* Estiliza o botão hambúrguer (a label) */
.mobile-menu-toggle {
    display: none; /* Escondido em telas grandes */
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle span:not(:last-child) {
    margin-bottom: 5px;
}

/* --- Media Query para Telas Pequenas (Ativa o Menu Hambúrguer) --- */
@media (max-width: 768px) {
    /* Esconde a navegação normal */
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Começa logo abaixo do header */
        left: 0;
        width: 100%;
        background: #004494; /* Um pouco mais escuro para diferenciar */
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    /* Mostra o botão hambúrguer */
    .mobile-menu-toggle {
        display: block;
    }

    /* Mágica: Quando a checkbox está marcada, mostra o menu */
    .menu-toggle-checkbox:checked ~ .nav {
        display: flex;
    }

    /* Animação do hambúrguer para virar um "X" */
    .menu-toggle-checkbox:checked ~ .mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle-checkbox:checked ~ .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-checkbox:checked ~ .mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Ajustes de layout para telas pequenas */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1; /* Coloca a imagem do carro em cima */
        margin-bottom: 40px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-stats {
        justify-content: center;
    }
    .features-grid, .topics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        width: 100%;
    }
}
