/*
Theme Name: Mundo Financeiro
Author: Programador de Sites
Description: Tema institucional B2B completo.
Version: 4.0
*/

/* --- 1. VARIÁVEIS E RESET --- */
:root {
    --mf-blue: #0A2342;
    --mf-silver: #F3F4F6;
    --mf-gray: #374151;
    --mf-gold: #C5A059;
    --mf-gold-hover: #b08d4b;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--mf-gray);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4 { font-family: var(--font-heading); }
a { text-decoration: none; transition: all 0.3s ease; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- 2. UTILITÁRIOS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-silver { background-color: var(--mf-silver); }
.bg-blue { background-color: var(--mf-blue); color: var(--white); }
.bg-blue p { color: #d1d5db; }

/* --- 3. HEADER & MENU --- */
header.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* Logo */
.logo-wrapper .custom-logo { max-height: 50px; width: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; color: var(--mf-blue); font-size: 1.2rem; }
.logo-symbol { width: 40px; height: 40px; background-color: var(--mf-blue); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 4px; }

/* Menu */
.nav-links { display: flex; gap: 30px; align-items: center; margin: 0; }
.nav-links li a { color: var(--mf-gray); font-weight: 600; font-size: 0.95rem; }
.nav-links li a:hover { color: var(--mf-blue); }

/* --- 4. HERO SECTION (HOME) --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(10, 35, 66, 0.9), rgba(10, 35, 66, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}
.hero-content { max-width: 800px; }
.hero h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; font-weight: 700; color: white; }
.hero p { font-size: 1.2rem; color: #e0e0e0; margin-bottom: 40px; font-weight: 300; }
.hero-buttons { display: flex; gap: 15px; }

/* --- 5. BOTÕES --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-primary { background-color: var(--mf-gold); color: var(--white); border: 1px solid var(--mf-gold); }
.btn-primary:hover { background-color: var(--mf-gold-hover); transform: translateY(-2px); }
.btn-outline-white { border: 2px solid var(--white); color: var(--white); }
.btn-outline-white:hover { background-color: var(--white); color: var(--mf-blue); }
.btn-header { background-color: var(--mf-blue); color: var(--white); padding: 10px 20px; font-size: 0.85rem; }

/* --- 6. SEÇÕES DA HOME --- */
.authority-strip { background-color: #fafafa; border-bottom: 1px solid #e5e7eb; padding: 40px 0; }
.authority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 2rem; color: var(--mf-blue); font-weight: 700; }

.section-title { margin-bottom: 60px; text-align: center; }
.section-title h2 { font-size: 2.2rem; color: var(--mf-blue); font-weight: 700; }
.divider { width: 80px; height: 4px; background-color: var(--mf-gold); margin: 20px auto 0; border-radius: 2px; }

.pain-grid, .method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pain-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.icon-circle { width: 70px; height: 70px; background-color: #fef2f2; color: #991b1b; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.pain-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--mf-gray); font-weight: 700; }

.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card { background-color: var(--white); padding: 35px; border-radius: 4px; border-left: 4px solid var(--mf-blue); box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-header { display: flex; align-items: center; margin-bottom: 15px; }
.card-header i { color: var(--mf-gold); font-size: 1.5rem; margin-right: 15px; }
.card-header h3 { color: var(--mf-blue); font-size: 1.25rem; font-weight: 700; }
.card-link { color: var(--mf-blue); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }

/* Box Personalizado (Home) */
.custom-track-box { margin-top: 50px; background-color: var(--mf-blue); border-radius: 4px; padding: 40px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.custom-track-box::after { content: ''; position: absolute; top: -50px; right: -50px; width: 300px; height: 300px; background-color: rgba(255,255,255,0.05); border-radius: 50%; pointer-events: none; }
.custom-content { display: flex; align-items: center; position: relative; z-index: 2; width: 70%; }
.custom-icon { font-size: 2.5rem; color: var(--mf-gold); margin-right: 25px; }
.custom-text h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 8px; font-weight: 700; }
.custom-text p { color: #d1d5db; font-size: 1rem; }
.custom-action { position: relative; z-index: 2; }

/* --- 7. BLOG & PÁGINAS INTERNAS --- */
.page-header { background-color: var(--mf-blue); color: white; padding: 120px 0 60px; text-align: center; }
.page-content { padding: 60px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.post-card { background: white; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.post-content { padding: 20px; }
.post-title { font-size: 1.2rem; margin-bottom: 10px; color: var(--mf-blue); font-weight: 700; }
.read-more { color: var(--mf-gold); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }

/* --- 8. MATERIAIS RICOS (ACF) --- */
.materiais-section { margin-top: 50px; border-top: 1px solid #eee; padding-top: 40px; }
.materiais-title { font-family: var(--font-heading); color: var(--mf-blue); font-size: 1.5rem; margin-bottom: 20px; border-left: 5px solid var(--mf-gold); padding-left: 15px; }
.media-box { background-color: var(--mf-silver); padding: 30px; border-radius: 8px; margin-bottom: 30px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.ebook-box { display: flex; align-items: center; background-color: var(--mf-blue); color: white; padding: 30px; border-radius: 8px; position: relative; overflow: hidden; }
.ebook-icon { font-size: 3rem; color: var(--mf-gold); margin-right: 25px; }
.ebook-content h4 { font-size: 1.2rem; margin-bottom: 5px; color: white; }
.ebook-content p { color: #d1d5db; font-size: 0.9rem; margin-bottom: 15px; }
.btn-download { background-color: var(--mf-gold); color: white; padding: 10px 20px; border-radius: 4px; font-weight: 700; text-transform: uppercase; border: none; cursor: pointer; }

.podcast-box { background: linear-gradient(45deg, #0A2342, #183B66); padding: 20px; border-radius: 8px; }
.podcast-label { color: var(--mf-gold); font-weight: 700; margin-bottom: 10px; display: block; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* --- 9. FOOTER --- */
.footer-cta { background-color: var(--white); padding: 100px 0; }
.footer-cta h2 { color: var(--mf-blue); font-size: 2.5rem; margin-bottom: 20px; font-weight: 700; }
.main-footer { background-color: #f9fafb; border-top: 1px solid #e5e7eb; padding: 30px 0; text-align: center; font-size: 0.9rem; color: #6b7280; }
.social-icons a { color: #9ca3af; margin: 0 10px; font-size: 1.2rem; }
.social-icons a:hover { color: var(--mf-blue); }

/* --- 10. RESPONSIVO --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .authority-grid, .pain-grid, .solutions-grid, .method-grid { grid-template-columns: 1fr; gap: 40px; }
    .custom-track-box, .ebook-box { flex-direction: column; text-align: center; padding: 30px; }
    .custom-content { flex-direction: column; width: 100%; margin-bottom: 25px; }
    .custom-icon, .ebook-icon { margin-right: 0; margin-bottom: 15px; }
    .stat-item { padding: 15px 0; border-bottom: 1px solid #eee; }
}