/* Arquivo: assets/css/style.css */

/* --- 1. CONFIGURAÇÕES GERAIS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

/* --- ATUALIZE O BODY E ADICIONE .main-content --- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f7fa;
    color: #444;
    line-height: 1.6;
    overflow-x: hidden;
    
    /* Mágica para o rodapé ficar embaixo */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1; /* Ocupa todo o espaço disponível, empurrando o footer */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza verticalmente o conteúdo se for pouco */
}

/* --- ESTILO PARA A TELA DE CADASTRO/LOGIN --- */
.auth-container {
    max-width: 450px;
    margin: 50px auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.auth-container h2 {
    color: #003366;
    margin-bottom: 30px;
}

.auth-container label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}

.auth-container input:focus {
    border-color: #f39c12; /* Cor Dourada ao clicar */
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 2. CABEÇALHO --- */
header {
    background-color: #003366;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite quebrar linha no mobile */
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar nav ul { display: flex; gap: 20px; }
.navbar nav a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 600; }
.navbar nav a:hover { color: #f39c12; } /* Hover Dourado */

.auth-buttons { display: flex; gap: 10px; align-items: center; }

.btn-entrar { color: #fff; font-weight: 600; font-size: 14px; }

.btn-comecar {
    background-color: #28a745;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    white-space: nowrap; /* Impede que o texto quebre dentro do botão */
}
.btn-comecar:hover { background-color: #218838; transform: translateY(-2px); }

/* --- 3. HERO (SESSÃO PRINCIPAL) --- */
.hero {
    background: linear-gradient(135deg, #003366 0%, #001f3f 100%);
    color: #fff;
    padding: 80px 0 120px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero h1 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 800; line-height: 1.2; }
.hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px auto; opacity: 0.9; }

/* --- 4. GRID DE FUNCIONALIDADES --- */
.section-pad { padding: 60px 0; }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { color: #003366; font-size: 2rem; margin-bottom: 10px; font-weight: 700; }
.section-title span { display: block; width: 50px; height: 4px; background: #f39c12; /* DOURADO */ margin: 0 auto; border-radius: 2px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduzi para 280px para caber em cel */
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }

.feature-icon {
    font-size: 1.8rem;
    color: #f39c12; /* DOURADO */
    min-width: 40px;
}

.feature-text h3 { color: #003366; font-size: 1.1rem; margin-bottom: 5px; font-weight: 700; }
.feature-text p { font-size: 0.9rem; color: #666; line-height: 1.5; }

/* --- 5. PLANOS (CARDS) --- */
.planos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.card-plano {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 340px; /* Largura máxima, mas encolhe no celular */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.card-plano.destaque { border: 2px solid #003366; transform: scale(1.05); z-index: 2; }
/* Destaque em Dourado */
.card-plano.destaque::before { content: "Mais Popular"; position: absolute; top: 0; right: 0; background: #f39c12; color: white; font-size: 10px; padding: 5px 10px; font-weight: bold; border-bottom-left-radius: 10px;}

.card-plano h3 { font-size: 1.4rem; color: #333; }
.preco { font-size: 2.2rem; color: #003366; font-weight: 800; margin: 15px 0; }
.card-plano ul { text-align: left; margin: 20px 0; padding-left: 0; }
.card-plano li { margin-bottom: 10px; color: #555; font-size: 0.9rem; list-style: none; }
.card-plano li i { color: #28a745; margin-right: 8px; }

.btn-assinar {
    display: block;
    padding: 12px;
    background: #003366;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}
.card-plano.destaque .btn-assinar { background: #f39c12; color: #fff; } /* Botão Dourado */

/* --- 6. FOOTER --- */
footer { background: #001f3f; color: #ccc; padding: 40px 0; text-align: center; font-size: 0.9rem; }


/* --- 7. AJUSTES MOBILE (AQUI ESTÁ A CORREÇÃO) --- */
@media (max-width: 768px) {
    /* Ajusta Menu */
    .navbar { flex-direction: column; gap: 15px; }
    .navbar nav ul { gap: 15px; font-size: 12px; }
    
    /* Ajusta Hero */
    .hero { padding: 50px 0 80px 0; }
    .hero h1 { font-size: 1.8rem; }
    
    /* Ajusta Grid */
    .features-grid { grid-template-columns: 1fr; } /* Uma coluna só */
    
    /* Ajusta Cards de Planos */
    .card-plano.destaque { transform: none; border-color: #f39c12; } /* Remove zoom no celular */
    
    /* Ajusta Padding geral */
    .container { width: 95%; }
}

/* Adicione isto antes de </style> */
        .btn-voltar {
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            color: #64748b; /* Cinza suave */
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 20px; /* Espaço para o título */
            transition: all 0.2s ease;
        }
        
        .btn-voltar:hover {
            color: #003366; /* Azul da marca */
            transform: translateX(-5px); /* Efeito de mover para trás */
        }