@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

/* ===== VARIÁVEIS DE CORES (Controladas por JavaScript) ===== */
:root {
    /* Cores Primárias - Serão substituídas pelo tema */
    --cor-primaria: #667eea;
    --cor-secundaria: #764ba2;
    --cor-primaria-clara: #8b9dc3;
    --cor-primaria-escura: #5a67d8;
    
    /* Gradientes */
    --gradiente-principal: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradiente-primario: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    
    /* Cores de apoio */
    --cor-icone-bg: rgba(102, 126, 234, 0.1);
    --cor-hover-shadow: rgba(102, 126, 234, 0.2);
}

/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: #2d3748;
}

/* ===== CLASSES UTILITÁRIAS COM TEMA ===== */
.gradient-bg {
    background: var(--gradiente-principal);
}

.gradient-primary {
    background: var(--gradiente-primario);
}

.gradient-text {
    background: var(--gradiente-principal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-light {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: var(--cor-primaria);
    color: white;
}

.btn-primary:hover {
    background: var(--cor-primaria-escura);
}

.btn-text {
    color: var(--cor-primaria);
}

.bg-secondary {
    background: var(--cor-secundaria);
}

.border-primary {
    border-color: var(--cor-primaria);
}

.text-primary {
    color: var(--cor-primaria);
}

.bg-icon {
    background-color: var(--cor-icone-bg);
}

.icon-color {
    color: var(--cor-primaria);
}

.hover-link:hover {
    color: var(--cor-primaria);
}

.bg-gradient-primary {
    background: var(--gradiente-principal);
}

/* ===== ANIMAÇÕES E EFEITOS ===== */
.smooth-scroll {
    scroll-behavior: smooth;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--cor-hover-shadow);
}

.section-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MENU MOBILE ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradiente-principal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px var(--cor-hover-shadow);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }
}

/* ===== ESTILOS ESPECÍFICOS ===== */

/* Cards de Níveis com destaque */
.card-hover.border-2 {
    position: relative;
}

/* Ajustes para cards de preços */
.card-hover.border-primary:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

/* Linha do processo */
.gradient-primary {
    background: var(--gradiente-principal);
}

/* Ajustes de tipografia */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
}

/* Links suaves */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Botões com transição suave */
button,
.btn-primary,
a.btn-primary {
    transition: all 0.3s ease;
}

/* Sombras customizadas */
.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Efeito de hover em links do footer */
footer a:hover {
    color: var(--cor-primaria-clara) !important;
}

/* Ajustes de espaçamento */
section {
    scroll-margin-top: 80px;
}

/* Efeito nos ícones */
[data-lucide] {
    display: inline-block;
}

/* Animação suave para todos os elementos interativos */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Otimização de performance */
.card-hover,
.back-to-top,
.section-fade {
    will-change: transform, opacity;
}

/* Estilos para o badge "Recomendado" */
.bg-yellow-400 {
    background-color: #fbbf24;
}

.text-gray-800 {
    color: #1f2937;
}

/* Grid responsivo aprimorado */
@media (max-width: 1024px) {
    .grid.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid.lg\\:grid-cols-4,
    .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* ===== ALINHAMENTO DE BOTÕES NOS CARDS DE NÍVEIS ===== */
/* Força os cards a terem altura igual e botões alinhados no bottom */

/* Cards principais usam flex column e altura 100% */
#niveis-completos .grid > div,
#niveis-hibridos .grid > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Div de conteúdo (p-6) também usa flex column e ocupa espaço restante */
#niveis-completos .grid > div > div:last-child,
#niveis-hibridos .grid > div > div:last-child {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

/* Lista de itens ocupa espaço flexível */
#niveis-completos .grid > div > div:last-child > ul,
#niveis-hibridos .grid > div > div:last-child > ul {
    flex-grow: 1;
}

/* Garante que o botão sempre fique no bottom */
#niveis-completos .grid > div > div:last-child > a:last-child,
#niveis-hibridos .grid > div > div:last-child > a:last-child {
    margin-top: 0;
}