/* docs/style.css */

/* ===================================================================
   1. VARIÁVEIS E RESET
   =================================================================== */
:root {
    --primary-color: #007f4e;   /* Verde Institucional */
    --primary-dark: #005f3a;    /* Verde Escuro (Hover) */
    --secondary-color: #2c3e50; /* Azul Escuro/Cinza */
    --bg-light: #f9f9f9;
    --text-color: #333;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Rede de segurança para imagens */
img {
    max-width: 100%;
    display: block;
}

a { text-decoration: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================================================
   2. BARRA DE NAVEGAÇÃO
   =================================================================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo:hover { transform: scale(1.05); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary-color); }

/* ===================================================================
   3. BOTÕES (ESTILOS COMPARTILHADOS)
   =================================================================== */
/* Base para botões */
.btn-download, .btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

/* Variações */
.btn-download {
    background: var(--primary-color);
    color: var(--white);
}
.btn-download:hover { background: var(--primary-dark); }

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px; /* Ligeiramente maior na Hero */
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 12px 25px;
}
.btn-secondary:hover { background: #e8f5e9; }

/* Acessibilidade: Foco visível */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ===================================================================
   4. HERO SECTION (CAPA)
   =================================================================== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Evita quebra em telas médias */
}

.placeholder-img {
    background-image: url("assets/place-hoder.png");
    background-position: right top;
    height: 320px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: #777;
    font-weight: bold;
}

/* ===================================================================
   5. SEÇÕES E CARDS
   =================================================================== */
section { padding: 80px 0; }

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.section-light { background: var(--white); }
.section-dark { background: var(--bg-light); }

/* Grid de Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    /* Garante alinhamento do conteúdo */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* ===================================================================
   6. SOBRE O AUTOR
   =================================================================== */
.content-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.content-wrapper p { margin-bottom: 15px; font-size: 1.1rem; }

.author-box {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary-color);
}

.author-info h3 { font-size: 1.5rem; margin-bottom: 5px; }
.author-info .role {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* ===================================================================
   7. FAQ E LEGAL (Perguntas e Privacidade)
   =================================================================== */
.section-legal {
    background: #f4f4f4;
    border-top: 1px solid #e0e0e0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.privacy-link-box {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.privacy-link-box p {
    margin-bottom: 15px;
    color: #666;
}

/* Página de Privacidade Específica */
.privacy-page-container {
    padding-top: 100px; /* Espaço para a navbar fixa */
    padding-bottom: 60px;
    max-width: 800px;
}

.privacy-page-container h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.privacy-page-container .subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.privacy-page-container .date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.legal-content p {
    margin-bottom: 15px;
    color: #444;
    text-align: justify;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    color: #444;
}

/* ===================================================================
   8. RODAPÉ
   =================================================================== */
footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ===================================================================
   9. RESPONSIVIDADE
   =================================================================== */
@media (max-width: 768px) {
    /* Navbar Simplificada para Mobile */
    .nav-links { display: none; }
    
    /* Ajustes Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 { font-size: 2rem; }
    
    .hero-buttons {
        justify-content: center;
    }
}