/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
:root {
    --brand: #7c3aed;
    --brand-dark: #5b21b6;
    --brand-light: #ede9fe;
    --text: #1e1b2e;
    --text-2: #4b5563;
    --text-3: #6b7280;
    --bg: #ffffff;
    --bg-2: #f9fafb;
    --bg-3: #f3f4f6;
    --border: #e5e7eb;
    --radius: 12px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Nav ── */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav-inner {
    max-width: 900px; margin: 0 auto;
    padding: 0 1.25rem;
    display: flex; align-items: center; gap: 1rem; height: 60px;
}
.nav-logo { font-size: 1.15rem; font-weight: 900; color: var(--brand); letter-spacing: -0.5px; }
.nav-logo span { color: var(--text); }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav-links a {
    font-size: 0.88rem; font-weight: 700; color: var(--text-2);
    padding: 0.35rem 0.75rem; border-radius: 8px; transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--brand-light); color: var(--brand); text-decoration: none; }
@media (max-width: 600px) { .nav-links { gap: 0; } .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.8rem; } }

/* ── Hero (homepage) ── */
.hero {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-bottom: 1px solid #ddd6fe;
    padding: 3.5rem 1.25rem 2.5rem;
    text-align: center;
}
.hero-badge { display: inline-block; background: var(--brand); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.8rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; color: var(--text); line-height: 1.2; margin-bottom: 0.75rem; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p { font-size: 1rem; color: var(--text-2); max-width: 520px; margin: 0 auto; }

/* ── Busca ── */
.search-wrap { max-width: 480px; margin: 1.5rem auto 0; position: relative; }
.search-wrap input {
    width: 100%; padding: 0.75rem 3rem 0.75rem 1.1rem;
    border: 2px solid #ddd6fe; border-radius: 999px;
    font-family: 'Nunito', sans-serif; font-size: 0.95rem; color: var(--text);
    outline: none; transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--brand); }
.search-wrap input::placeholder { color: var(--text-3); }
.search-wrap .ico { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }

/* ── Filtros ── */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; padding: 1.25rem 1.25rem 0; max-width: 900px; margin: 0 auto; }
.filter-btn { font-family: 'Nunito', sans-serif; font-size: 0.82rem; font-weight: 700; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--text-2); cursor: pointer; transition: all 0.15s; }
.filter-btn:hover, .filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Grid de artigos ── */
.section { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.section-title { font-size: 1.1rem; font-weight: 900; color: var(--text); margin-bottom: 1.5rem; border-left: 3px solid var(--brand); padding-left: 0.75rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
    background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem;
    transition: box-shadow 0.2s, transform 0.15s;
    text-decoration: none; color: inherit;
}
.card:hover { box-shadow: 0 4px 16px rgba(124,58,237,0.12); transform: translateY(-2px); text-decoration: none; }
.card-cat { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
.card h2 { font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.35; }
.card p { font-size: 0.85rem; color: var(--text-2); flex: 1; }
.card-meta { font-size: 0.75rem; color: var(--text-3); margin-top: auto; }
.card-arrow { font-size: 0.8rem; color: var(--brand); font-weight: 800; }

/* ── Paginação ── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.page-btn { padding: 0.4rem 0.9rem; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.88rem; cursor: pointer; color: var(--text-2); transition: all 0.15s; }
.page-btn.active, .page-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Artigo interno ── */
.art-hero { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 60%, #fdf4ff 100%); padding: 3rem 1.25rem 2rem; border-bottom: 1px solid #ddd6fe; }
.art-hero .cat { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 0.6rem; }
.art-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; color: var(--text); line-height: 1.25; max-width: 720px; }
.art-hero .meta { font-size: 0.83rem; color: var(--text-3); margin-top: 0.75rem; }
.art-body { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.art-body h2 { font-size: 1.35rem; font-weight: 800; color: var(--brand-dark); margin: 2rem 0 0.75rem; }
.art-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 0.5rem; }
.art-body p { font-size: 1rem; line-height: 1.8; color: var(--text-2); margin: 0 0 1rem; }
.art-body ul, .art-body ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.art-body li { font-size: 1rem; line-height: 1.8; color: var(--text-2); margin-bottom: 0.3rem; }
.art-body strong { color: var(--text); }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--brand); font-weight: 700; font-size: 0.9rem; margin-bottom: 1.5rem; }
.back-link:hover { text-decoration: underline; }

/* ── Caixas ── */
.tip-box { background: #f0fdf4; border-left: 4px solid #22c55e; border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.tip-box p { margin: 0; color: #166534; }
.warn-box { background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.warn-box p { margin: 0; color: #92400e; }
.info-box { background: #eff6ff; border-left: 4px solid #3b82f6; border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.info-box p { margin: 0; color: #1e40af; }
.step-card { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.step-num { font-size: 0.72rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.step-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }
.step-card p { margin: 0; font-size: 0.95rem; }

/* ── Tabela ── */
.age-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.age-table th { background: var(--brand-light); color: var(--brand-dark); font-weight: 800; padding: 0.75rem 1rem; text-align: left; }
.age-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-2); }
.age-table tr:last-child td { border-bottom: none; }

/* ── CTA box ── */
.cta-box { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-radius: 16px; padding: 1.75rem 1.5rem; text-align: center; margin: 2rem 0; }
.cta-box p { color: #ede9fe; margin-bottom: 1rem; }
.cta-btn { display: inline-block; background: #fff; color: var(--brand-dark); font-weight: 900; font-size: 0.95rem; padding: 0.7rem 1.5rem; border-radius: 999px; }
.cta-btn:hover { background: var(--brand-light); text-decoration: none; }

/* ── Artigos relacionados ── */
.related { background: var(--bg-2); border-top: 1px solid var(--border); padding: 2rem 1.25rem; }
.related-inner { max-width: 760px; margin: 0 auto; }
.related h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.related-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 0.4rem; transition: box-shadow 0.15s; }
.related-card:hover { box-shadow: 0 3px 12px rgba(124,58,237,0.1); text-decoration: none; }
.related-card .rcat { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
.related-card h4 { font-size: 0.9rem; font-weight: 800; color: var(--text); line-height: 1.3; }

/* ── Páginas internas (sobre, contato, etc.) ── */
.page-hero { background: var(--bg-3); border-bottom: 1px solid var(--border); padding: 2.5rem 1.25rem 2rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 900; color: var(--text); }
.page-hero p { color: var(--text-2); margin-top: 0.5rem; }
.page-body { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.page-body h2 { font-size: 1.25rem; font-weight: 800; color: var(--brand-dark); margin: 2rem 0 0.6rem; }
.page-body p { font-size: 1rem; line-height: 1.8; color: var(--text-2); margin: 0 0 1rem; }
.page-body ul { padding-left: 1.4rem; margin: 0 0 1rem; }
.page-body li { font-size: 1rem; line-height: 1.8; color: var(--text-2); margin-bottom: 0.3rem; }
.contact-form { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-top: 1.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 800; color: var(--text); margin-bottom: 0.35rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-family: 'Nunito', sans-serif; font-size: 0.95rem; color: var(--text);
    outline: none; transition: border-color 0.2s; background: #fff;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { background: var(--brand); color: #fff; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1rem; padding: 0.75rem 2rem; border: none; border-radius: 999px; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: var(--brand-dark); }

/* ── Footer ── */
footer { background: var(--text); color: rgba(255,255,255,0.6); text-align: center; padding: 2rem 1.25rem; font-size: 0.83rem; }
footer a { color: rgba(255,255,255,0.8); }
footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.75rem; }

/* ── AdSense placeholders ── */
.ad-slot { background: var(--bg-3); border: 1px dashed var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 0.75rem; min-height: 90px; margin: 1.5rem 0; text-align: center; overflow: hidden; }

/* ── Hidden (search filter) ── */
.card.hidden { display: none; }
