/* ============================================
   COMECE DO ZERO HOJE MESMO — ESTILO.CSS
   Mobile-first | CSS3 puro | Sem frameworks
   ============================================ */

/* ============ VARIÁVEIS ============ */
:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --secondary: #1a2744;
    --secondary-light: #2a3b5f;
    --text: #333;
    --text-light: #666;
    --light: #f5f5f5;
    --white: #ffffff;
    --error: #e74c3c;
    --success: #2ecc71;
    --border: #e0e0e0;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --max-width: 1200px;
    --radius: 8px;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* ============ RESET ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    font-size: 16px;
}

/* ============ UTILITÁRIOS ============ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.py-60 { padding: 60px 0; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mr-10 { margin-right: 10px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-green { color: var(--success); }
.text-red { color: var(--error); }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--secondary); color: var(--white); }
.bg-primary { background-color: var(--primary); color: var(--white); }
.bg-green-light { background-color: #d4edda; }
.bg-red-light { background-color: #f8d7da; }
.rounded { border-radius: var(--radius); }
.italic { font-style: italic; }
.font-bold { font-weight: 700; }
.small { font-size: 0.875rem; }
.lead { font-size: 1.15rem; color: var(--text-light); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-dashed { border: 2px dashed var(--border); }
.border-primary { border: 2px solid var(--primary); }
.cursor-pointer { cursor: pointer; }
.gap-60 { gap: 60px; }
.content-narrow { max-width: 720px; margin: 0 auto; }

/* ============ SKIP LINK ============ */
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--primary); color: var(--white);
    padding: 10px 20px; z-index: 1000;
    text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ============ FOCUS VISIBLE ============ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============ HEADER E NAV ============ */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo a {
    font-weight: 700; font-size: 1.1rem;
    color: var(--secondary); text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-menu ul { display: flex; list-style: none; gap: 25px; }
.nav-menu a {
    text-decoration: none; color: var(--secondary);
    font-weight: 500; transition: var(--transition);
    font-size: 0.95rem;
}
.nav-menu a:hover { color: var(--primary); }

/* Checkbox hack para mobile */
.nav-toggle-input { display: none; }
.nav-toggle-label { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle-label span {
    width: 25px; height: 3px; background: var(--secondary);
    border-radius: 2px; transition: var(--transition);
}

/* ============ BOTÕES ============ */
.btn {
    display: inline-block; padding: 12px 30px;
    border-radius: var(--radius); text-decoration: none;
    font-weight: 600; transition: var(--transition);
    cursor: pointer; border: none; font-size: 1rem;
    font-family: var(--font-main);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--secondary); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-full { display: block; width: 100%; text-align: center; }
.btn-filter {
    display: inline-block; padding: 8px 20px;
    border-radius: 20px; text-decoration: none;
    background: var(--light); color: var(--text);
    font-size: 0.9rem; transition: var(--transition);
    margin: 0 5px;
}
.btn-filter.active, .btn-filter:hover {
    background: var(--primary); color: var(--white);
}

/* ============ GRID ============ */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* ============ CARDS ============ */
.card {
    background: var(--white); padding: 30px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white); padding: 100px 0; text-align: center;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.2; }
.hero .subtitle { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px; opacity: 0.9; }
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ============ PILARES ============ */
.pilar-card { text-align: center; }
.pilar-card .icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.pilar-card h3 { margin-bottom: 10px; color: var(--secondary); }
.pilar-card p { color: var(--text-light); margin-bottom: 15px; }

/* ============ PASSOS ============ */
.step-card { text-align: center; position: relative; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    font-size: 1.5rem; font-weight: 700; margin-bottom: 15px;
}
.step-card h3 { margin-bottom: 10px; color: var(--secondary); }

/* ============ DEPOIMENTOS ============ */
.depoimento-card { text-align: center; }
.depoimento-card .avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; margin: 0 auto 15px;
}
.depoimento-card h4 { margin-bottom: 10px; }
.depoimento-card p { color: var(--text-light); font-style: italic; }

/* ============ BLOG CARDS ============ */
.blog-card h3 a { color: var(--secondary); text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card .meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.link-more { color: var(--primary); text-decoration: none; font-weight: 600; }
.link-more:hover { text-decoration: underline; }

/* ============ TAGS ============ */
.tag {
    display: inline-block; padding: 4px 12px;
    border-radius: 15px; font-size: 0.8rem;
    font-weight: 600; margin-bottom: 10px;
    background: var(--light); color: var(--text);
}
.tag-mentalidade { background: #e3f2fd; color: #1565c0; }
.tag-carreira { background: #e8f5e9; color: #2e7d32; }
.tag-financas { background: #fff3e0; color: #e65100; }
.tag-recomeco { background: #f3e5f5; color: #7b1fa2; }
.tag-completo { background: #e0f7fa; color: #00838f; }

/* ============ PRODUTO CARDS ============ */
.produto-card { overflow: hidden; padding: 0; }
.produto-card .product-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}
.produto-card h3 { color: var(--secondary); margin-bottom: 10px; }
.produto-card .short-desc { color: var(--text-light); margin-bottom: 10px; }
.produto-card .price { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; }

/* ============ PÁGINA DE PRODUTO ============ */
.produto-layout { align-items: start; }
.product-hero-img {
    height: 250px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: var(--radius);
}
.price-large { font-size: 2rem; font-weight: 700; color: var(--primary); margin: 10px 0; }
.list-modulos, .list-inclui { list-style: none; }
.list-modulos li, .list-inclui li { padding: 8px 0; }
.check { color: var(--primary); font-weight: 700; margin-right: 10px; }
.garantia-box { border-radius: var(--radius); }
.cta-group { display: flex; gap: 15px; flex-wrap: wrap; }
.depoimento-produto { border-left: 3px solid var(--primary); padding-left: 15px; }

/* ============ FAQ ============ */
.faq-item { border-radius: var(--radius); }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::before { content: "− "; }

/* ============ LAYOUT SIDEBAR ============ */
.layout-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget h4 { margin-bottom: 15px; color: var(--secondary); }
.list-clean { list-style: none; }
.list-clean li { padding: 5px 0; }
.list-clean a { color: var(--text); text-decoration: none; transition: var(--transition); }
.list-clean a:hover { color: var(--primary); }

/* ============ PAGINAÇÃO ============ */
.pagination { display: flex; gap: 10px; justify-content: center; }
.pagination a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--light); color: var(--text);
    text-decoration: none; transition: var(--transition);
}
.pagination a.active, .pagination a:hover { background: var(--primary); color: var(--white); }

/* ============ POST INDIVIDUAL ============ */
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.post-content { font-size: 1.05rem; line-height: 1.8; }
.post-content h2 { margin: 30px 0 15px; color: var(--secondary); }
.post-content h3 { margin: 25px 0 10px; color: var(--secondary); }
.post-content p { margin-bottom: 15px; }
.post-content ul, .post-content ol { margin: 15px 0; padding-left: 25px; }
.post-content li { margin-bottom: 8px; }
.author-box { display: flex; align-items: center; gap: 20px; border-radius: var(--radius); }
.author-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; flex-shrink: 0;
}
.post-nav { display: flex; justify-content: space-between; gap: 20px; }
.post-nav-link { text-decoration: none; color: var(--text); }
.post-nav-link span { font-size: 0.9rem; color: var(--primary); }

/* ============ FORMULÁRIOS ============ */
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 5px; font-weight: 600; font-size: 0.95rem; }
.form-control {
    padding: 12px 15px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 1rem;
    font-family: var(--font-main); transition: var(--transition);
    width: 100%;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1); }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 500px; margin: 0 auto; }
.form-inline .form-control { flex: 1; min-width: 200px; }

/* ============ ALERTAS ============ */
.alert { border-radius: var(--radius); font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============ FOOTER ============ */
.main-footer { background: #111; color: #ccc; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-col a { color: #ccc; text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; }
.footer-legal a { color: #999; text-decoration: none; margin-left: 15px; }
.footer-legal a:hover { color: var(--primary); }

/* ============ ANIMAÇÕES ============ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card, .hero .container, .section .container > * { animation: fadeIn 0.6s ease-out; }

/* ============ RESPONSIVO ============ */
@media (max-width: 768px) {
    .nav-toggle-label { display: flex; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); padding: 20px;
        box-shadow: var(--shadow); display: none;
        border-top: 1px solid var(--border);
    }
    .nav-toggle-input:checked ~ .nav-menu { display: block; }
    .nav-menu ul { flex-direction: column; gap: 15px; }
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1rem; }
    .layout-sidebar { grid-template-columns: 1fr; }
    .post-nav { flex-direction: column; }
    .cta-group { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .layout-sidebar { grid-template-columns: 1fr 250px; }
}

/* ============ PRINT ============ */
@media print {
    .main-header, .main-footer, .nav-menu, .hero-btns, .cta-group, .filters, .sidebar, .pagination { display: none; }
    body { font-size: 12pt; color: #000; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}