/* ===============================
   RESET + BASE
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #faf7fb;
    color: #2b2b2b;
    line-height: 1.7;
}

/* ===============================
   CONTAINER
================================ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===============================
   HEADER
================================ */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e6e0eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo img {
    height: 90px;
}

/* ===============================
   MENU
================================ */
.nav {
    position: relative;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu > li {
    position: relative;
}

.menu li a {
    text-decoration: none;
    color: #2b2b2b;
    font-weight: 500;
    font-size: 0.95rem;
}

.menu li a:hover {
    color: #6b4fa1;
}

.menu .btn-cta {
    background: #4c5bd4;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
}

/* ===== SUBMENU ===== */

.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 999;
}

.has-submenu:hover > .submenu {
    display: block;
}

.submenu li a {
    padding: 10px 18px;
    display: block;
    color: #222;
}

.submenu li a:hover {
    background: #f2f2f2;
}

/* ===============================
   ACESSIBILIDADE
================================ */
.acessibilidade-bar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 6px 16px;
    background: #f1edf5;
}

.acessibilidade-bar button {
    padding: 6px 10px;
    border: none;
    background: #6b4fa1;
    color: #ffffff;
    cursor: pointer;
    border-radius: 4px;
}

/* ===============================
   HERO
================================ */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, #faf7fb 0%, #f2ecf7 100%);
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 2.5rem;
    color: #3a2d5f;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===============================
   BOTÕES
================================ */
.btn-primary {
    background: #4c5bd4;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary {
    border: 2px solid #4c5bd4;
    color: #4c5bd4;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* ===============================
   CARDS
================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: #faf7fb;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e6e0eb;
}

/* ===============================
   CURSOS / PILARES - CORRIGIDO
================================ */
.cursos-grid,
.pilares-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

/* 🔥 FORÇA CENTRALIZAÇÃO NA PÁGINA DE CURSOS */
.cursos-page .cursos-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 32px;
    flex-wrap: wrap;
}

.cursos-page .curso-card {
    max-width: 400px;
    width: 100%;
    flex: 0 0 auto;
}

/* Remove qualquer vestígio de grid */
.cursos-page .cursos-grid {
    grid-template-columns: none !important;
}

.curso-card,
.pilar-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    max-width: 400px;
    width: 100%;
    transition: transform 0.3s ease;
}

.curso-card:hover,
.pilar-card:hover {
    transform: translateY(-5px);
}

.curso-card img,
.pilar-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 10px;
}

.curso-card .curso-link {
    display: block;
    padding: 16px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: #3a2d5f;
    text-decoration: none;
}

.curso-card .curso-link:hover {
    text-decoration: underline;
}

/* ===============================
   WHATSAPP
================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    z-index: 9999;
}

.whatsapp-float img {
    width: 100%;
}

/* ===============================
   FOOTER
================================ */
.footer {
    background: #2d2347;
    color: #ffffff;
    padding: 32px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social img {
    width: 28px;
    height: 28px;
}

/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 900px) {

    .menu {
        display: none;
        flex-direction: column;
        background: #ffffff;
        position: absolute;
        top: 100%;
        right: 0;
        width: 220px;
        padding: 16px;
        border-radius: 8px;
        border: 1px solid #e6e0eb;
    }

    .menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .submenu {
        position: static;
        box-shadow: none;
    }
}

@media (max-width: 600px) {

    .hero h1 {
        font-size: 2rem;
    }

    .cursos-grid,
    .pilares-grid {
        gap: 24px;
    }

    .curso-card,
    .pilar-card {
        max-width: 100%;
    }
}

/* ===============================
   ACESSIBILIDADE REAL
================================ */
html {
    font-size: 100%;
}

/* Converter textos para REM */

body {
    font-size: 1rem;
}

p {
    font-size: 1rem;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

a {
    font-size: 1rem;
}

li {
    font-size: 1rem;
}

button {
    font-size: 1rem;
}

/* Alto contraste */

.alto-contraste {
    background: #000 !important;
    color: #fff !important;
}

.alto-contraste a {
    color: #00ffff !important;
}

.alto-contraste header,
.alto-contraste footer,
.alto-contraste section {
    background: #000 !important;
    color: #fff !important;
}

/* ==============================
   CORREÇÃO BOTÃO PILARES
============================== */

.section.destaque{
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
}

.section.destaque .btn-primary{
    position: static !important;
    display: inline-block;
    margin-top: 32px;
}

/* GARANTE ESPAÇO ANTES DO FOOTER */
main{
    padding-bottom: 80px;
}

.footer{
    margin-top: 0 !important;
}