/* ==========================================================================
   DREAM IT CAPACITA - SISTEMA DE DESIGN (STYLE.CSS)
   ========================================================================== */

/* 1. VARIÁVEIS E TOKENS DE DESIGN */
:root {
    --color-primary: #00487C;      /* Azul Escuro Corporativo (Confiança) */
    --color-secondary: #540D53;    /* Roxo Dream It (Identidade) */
    --color-accent: #00A3E0;       /* Azul Claro Vivo (Destaque) */
    --color-success: #22c55e;      /* Verde WhatsApp / Sucesso */
    --color-text-dark: #1e293b;    /* Texto Escuro (Slate 800) */
    --color-text-light: #64748b;   /* Texto Secundário (Slate 500) */
    --color-bg-white: #ffffff;
    --color-bg-light: #f8fafc;     /* Fundo Alternativo (Slate 50) */
    --color-bg-gradient: linear-gradient(135deg, #00487C 0%, #540D53 100%);
    
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Open Sans', 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. RESET E ESTILOS GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.post-body a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.post-body a:hover,
.post-body a:focus {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. ESTRUTURA E CONTAINERS */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--color-bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}

/* 4. BOTÕES E ELEMENTOS DE AÇÃO */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    box-shadow: 0 4px 14px rgba(0, 163, 224, 0.4);
}

.btn-primary:hover {
    background-color: #008cc0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 224, 0.5);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
    box-shadow: 0 4px 14px rgba(84, 13, 83, 0.3);
}

.btn-secondary:hover {
    background-color: #430a42;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 13, 83, 0.4);
}

.btn-white {
    background-color: #ffffff !important;
    color: #00487C !important;
}

.btn-white:hover {
    background-color: #f8fafc !important;
    color: #00487C !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* 5. NAVEGAÇÃO / HEADER */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-right {
    gap: 1rem !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 0;
}

.logo img {
    flex-shrink: 0;
}

.brand-name {
    display: block;
    max-width: 12.5rem;
    margin-left: 0.25rem;
    color: var(--color-secondary);
    font-family: var(--font-headings);
    font-size: clamp(0.86rem, 1.2vw, 1.05rem);
    font-weight: 700;
    line-height: 1.08;
}

.sidebar-brand-name {
    max-width: 11rem;
    font-size: 0.95rem;
}

.footer-brand-name {
    max-width: 13rem;
    color: #fff;
    font-size: 1.05rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-white);
    font-weight: bold;
    font-family: var(--font-headings);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-text span {
    color: var(--color-secondary);
}

.nav-menu {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.nav-btn {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

.nav-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
}

/* 6. HERO SECTION */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    background: var(--color-bg-gradient);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--color-bg-light);
    clip-path: polygon(100% 100%, 0% 100%, 100% 0%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--color-accent);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-container {
    position: relative;
}

.hero-img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* 7. CARDS E COMPONENTES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background-color: rgba(0, 72, 124, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* 8. CENÁRIO & MÓDULOS */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-section-cenario {
    grid-template-columns: 1.1fr 0.9fr;
}

.split-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.split-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.modules-list {
    margin-top: 1.5rem;
}

.module-item {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-sm);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-left: 4px solid var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-item:hover {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
    border-left-color: var(--color-accent);
}

.module-title {
    font-weight: 600;
    color: var(--color-primary);
}

/* 9. NÚMEROS E FORMATO */
.stats-bar {
    background: var(--color-bg-gradient);
    color: var(--color-bg-white);
    padding: 4rem 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat-item h2 {
    color: var(--color-accent);
    font-size: 3.5rem;
    margin-bottom: 0.25rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-family: var(--font-headings);
    font-weight: 500;
}

/* 10. TABELA DE INVESTIMENTO B2B */
.table-responsive {
    overflow-x: auto;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    background-color: var(--color-bg-white);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pricing-table th, .pricing-table td {
    padding: 1.25rem 2rem;
}

.pricing-table th {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
}

.pricing-table tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.pricing-table tr:hover {
    background-color: rgba(0, 163, 224, 0.03);
}

.pricing-table td {
    font-size: 1.05rem;
}

.pricing-table .highlight {
    font-weight: 700;
    color: var(--color-accent);
}

.pricing-table .total {
    font-weight: 700;
    color: var(--color-primary);
}

/* 11. BLOG / POST CARDS */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    position: relative;
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.post-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--color-primary);
}

.post-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-readmore {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-readmore:hover {
    color: var(--color-primary);
}

.post-readmore::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: pointer;
}

/* 12. CONTATO */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-list {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.25rem;
    color: var(--color-accent);
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--color-bg-light);
    padding: 3rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* 13. RODAPÉ */
.footer {
    background-color: #0b132b;
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem 0;
    border-top: 5px solid var(--color-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.footer-brand h3 span {
    color: var(--color-accent);
}

.footer-brand p {
    color: rgba(255,255,255,0.55);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4, .footer-newsletter h4 {
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-family: var(--font-headings);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-btn:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.footer-legal-links a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* 14. BOTÃO FLOATING WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--color-bg-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 10px rgba(0, 72, 124, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 72, 124, 0.45);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 72, 124, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 72, 124, 0);
    }
}

/* 15. COOKIE BANNER (LGPD COMPLIANT) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    z-index: 2000;
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--color-accent);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-cookie-accept:hover {
    background-color: var(--color-accent);
}

.btn-cookie-decline {
    background-color: transparent;
    color: #475569; /* Cinza escuro para melhor contraste e acessibilidade */
    border: 1px solid rgba(0,0,0,0.15);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-cookie-decline:hover {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

/* 16. RESPONSIVIDADE (MEDIA QUERIES) */
/* Botão de Contato Mobile */
.nav-btn-mobile {
    display: none;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 0.6rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-headings);
    transition: var(--transition-smooth);
}

.nav-btn-mobile:hover {
    background-color: var(--color-accent);
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .split-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .split-section-cenario {
        grid-template-columns: 1fr;
    }
    
    .split-image {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-btn-mobile {
        display: inline-flex;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .header-container {
        height: 70px;
    }

    .header-right {
        gap: 1rem !important;
    }

    .brand-name {
        max-width: 11.5rem;
        font-size: 0.82rem;
    }

    .logo img {
        max-height: 48px;
        width: auto;
    }

    /* Otimizações de fontes e espaçamentos no celular */
    .hero {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .hero-content h1 {
        font-size: 2.15rem;
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.65rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-buttons button {
        flex-grow: 1;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 52px;
        height: 52px;
        font-size: 1.85rem;
    }
}

@media (max-width: 1180px) and (min-width: 769px) {
    .brand-name {
        max-width: 11.5rem;
        font-size: 0.95rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .header-right {
        gap: 0.6rem !important;
    }

    .brand-name {
        max-width: 7.2rem;
        font-size: 0.72rem;
    }

    .logo {
        gap: 0.35rem;
    }

    .logo img {
        max-height: 44px;
    }
}

/* ==========================================================================
   NOVOS ESTILOS: LOGO WHITE E INVESTIMENTO B2B
   ========================================================================== */

.logo-white {
    filter: brightness(0) invert(1);
}

.b2b-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.b2b-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-primary);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.b2b-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--color-accent);
}

.b2b-card-title {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.b2b-card-subtitle {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 0;
}

.b2b-cta-container {
    text-align: center;
    margin-top: 1.5rem;
}

/* ==========================================================================
   WIDGET WHATSAPP ESTILO LEADSTER (BALÃO DE FRASES ROTATIVAS)
   ========================================================================== */

.whatsapp-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none; /* Permite que cliques passem pelo container vazio */
}

.whatsapp-container .whatsapp-float,
.whatsapp-bubble.show {
    pointer-events: auto; /* Ativa cliques apenas nos elementos reais do widget */
}

.whatsapp-bubble {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 280px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    opacity: 0;
    visibility: hidden; /* Evita que o balão oculto bloqueie cliques ou interações */
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.whatsapp-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.bubble-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

.avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
    border: 1.5px solid #ffffff;
}

.bubble-text-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    cursor: pointer;
    text-align: left;
}

.bubble-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-headings);
}

.bubble-msg {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: 0;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.bubble-close-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.15rem;
    cursor: pointer;
    align-self: flex-start;
    padding: 0;
    margin-left: 0.25rem;
    line-height: 1;
}

.bubble-close-btn:hover {
    color: var(--color-primary);
}

.whatsapp-container .whatsapp-float {
    position: static;
    box-shadow: 0 5px 15px rgba(0, 72, 124, 0.35);
}

@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.5rem;
    }
    .whatsapp-bubble {
        max-width: 200px;
        padding: 0.5rem 0.75rem;
    }
    .bubble-msg {
        font-size: 0.75rem;
    }
    .bubble-avatar {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   NOVOS ESTILOS: WIDGETS DA BARRA LATERAL (BLOG DESKTOP)
   ========================================================================== */

.sidebar-widgets-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: left;
}

.sidebar-widget-title {
    background-color: #1e293b; /* Fundo escuro como no blog do usuário */
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.25rem;
    font-family: var(--font-headings);
}

/* Widget Busca */
.sidebar-search-form {
    position: relative;
    width: 100%;
}

.sidebar-search-input {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.sidebar-search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.1);
}

.sidebar-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.sidebar-search-btn:hover {
    color: var(--color-accent);
}

/* Widget Artigos Populares */
.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-post-item {
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    padding-bottom: 1rem;
    transition: var(--transition-smooth);
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-item:hover {
    transform: translateX(3px);
}

.sidebar-post-category {
    font-size: 0.7rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-headings);
    letter-spacing: 0.3px;
    display: block;
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.35;
    margin: 0.25rem 0;
    display: block;
}

.sidebar-post-title:hover {
    color: var(--color-secondary);
}

.sidebar-post-meta {
    font-size: 0.75rem;
    color: var(--color-text-light);
    display: block;
}

/* Widget Categorias */
.sidebar-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    color: var(--color-text-dark);
    font-weight: 500;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.sidebar-category-item:hover {
    background-color: var(--color-bg-light);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
}

.sidebar-category-count {
    font-size: 0.8rem;
    color: var(--color-text-light);
    background-color: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.sidebar-category-item:hover .sidebar-category-count {
    background-color: var(--color-accent);
    color: #ffffff;
}

/* Widget Institucional */
.sidebar-about-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sidebar-about-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.sidebar-about-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-bg-gradient);
    color: #ffffff;
    padding: 0.7rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-headings);
    transition: var(--transition-smooth);
}

.sidebar-about-btn:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 72, 124, 0.2);
}


/* ==========================================================================
   SISTEMA DE TEMA ESCURO E MENU MOBILE HAMBURGER
   ========================================================================== */

/* Cores e Variáveis do Dark Mode */
[data-theme="dark"] {
    --color-primary: #93c5fd;      /* Azul claro corporativo */
    --color-secondary: #f472b6;    /* Roxo/rosa Dream It */
    --color-accent: #38bdf8;       /* Azul claro vivo */
    --color-text-dark: #f8fafc;    /* Texto Principal Claro (Slate 50) */
    --color-text-light: #94a3b8;   /* Texto Secundário (Slate 400) */
    --color-bg-white: #0f172a;     /* Fundo Principal Escuro (Slate 900) */
    --color-bg-light: #020617;     /* Fundo Secundário Escuro (Slate 950) */
    --color-bg-gradient: linear-gradient(135deg, #020617 0%, #1e1b4b 100%);
}

/* Ajustes Gerais para Dark Mode */
[data-theme="dark"] body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

[data-theme="dark"] p {
    color: var(--color-text-light);
}

[data-theme="dark"] .header {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .logo img:not(.logo-white) {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .cookie-banner {
    background-color: #0f172a;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    border-top-color: var(--color-accent);
}

[data-theme="dark"] .cookie-text {
    color: var(--color-text-dark);
}

[data-theme="dark"] .cookie-text a {
    color: var(--color-accent);
}

[data-theme="dark"] .btn-cookie-decline {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .btn-cookie-decline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

[data-theme="dark"] .card {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .card-icon {
    background-color: rgba(147, 197, 253, 0.1);
    color: var(--color-primary);
}

[data-theme="dark"] .module-item {
    background-color: #1e293b;
    border-left-color: var(--color-primary);
}

[data-theme="dark"] .module-item:hover {
    background-color: #0f172a;
    border-left-color: var(--color-accent);
}

[data-theme="dark"] .module-title {
    color: var(--color-primary);
}

[data-theme="dark"] .split-image {
    border-color: rgba(255, 255, 255, 0.05) !important;
    background-color: #1e293b !important;
}

[data-theme="dark"] #module-details {
    background-color: transparent !important;
}

[data-theme="dark"] #module-detail-title {
    color: var(--color-primary);
}

[data-theme="dark"] #module-detail-list li {
    color: var(--color-text-dark);
}

[data-theme="dark"] .b2b-card {
    background-color: #1e293b;
    border-top-color: var(--color-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .b2b-card:hover {
    border-top-color: var(--color-accent);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .b2b-card-title {
    color: var(--color-primary);
}

[data-theme="dark"] .b2b-card-subtitle {
    color: var(--color-accent);
}

[data-theme="dark"] .post-card {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .post-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .post-content h3 {
    color: var(--color-primary);
}

[data-theme="dark"] .post-readmore {
    color: var(--color-accent);
}

[data-theme="dark"] .post-readmore:hover {
    color: var(--color-primary);
}

[data-theme="dark"] .contact-info h3 {
    color: var(--color-primary);
}

[data-theme="dark"] .contact-item h4 {
    color: var(--color-primary);
}

[data-theme="dark"] .contact-form {
    background-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contact-form h3 {
    color: var(--color-primary);
}

[data-theme="dark"] .form-group label {
    color: var(--color-primary);
}

[data-theme="dark"] .form-control {
    background-color: #0f172a;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .whatsapp-bubble {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .whatsapp-bubble::after {
    border-color: transparent transparent transparent #1e293b;
}

[data-theme="dark"] .bubble-name {
    color: var(--color-primary);
}

[data-theme="dark"] .bubble-msg {
    color: #cbd5e1;
}

[data-theme="dark"] .bubble-close-btn {
    color: #94a3b8;
}

[data-theme="dark"] .bubble-close-btn:hover {
    color: var(--color-primary);
}

/* Estilos de Post Artigo (Blog) */
[data-theme="dark"] .post-article {
    background-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .post-title {
    color: var(--color-primary);
}

[data-theme="dark"] .post-body h2 {
    color: var(--color-secondary);
}

[data-theme="dark"] .post-body h3 {
    color: var(--color-primary);
}

[data-theme="dark"] .post-body p {
    color: #cbd5e1;
}

[data-theme="dark"] .post-body li {
    color: #cbd5e1;
}

[data-theme="dark"] .info-box {
    background-color: rgba(147, 197, 253, 0.05);
    border-left-color: var(--color-primary);
}

[data-theme="dark"] .info-box h4 {
    color: var(--color-primary);
}

[data-theme="dark"] .faq-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .faq-question {
    color: var(--color-primary);
}

[data-theme="dark"] .faq-answer {
    color: #94a3b8;
}

[data-theme="dark"] .expression-table th {
    background-color: #0f172a;
    color: var(--color-accent);
}

[data-theme="dark"] .expression-table td {
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

[data-theme="dark"] .expression-table td strong {
    color: var(--color-accent);
}

/* Sidebar Widgets no Dark Mode */
[data-theme="dark"] .sidebar-widget {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .sidebar-post-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sidebar-post-title {
    color: var(--color-primary);
}

[data-theme="dark"] .sidebar-post-title:hover {
    color: var(--color-secondary);
}

[data-theme="dark"] .sidebar-category-item:hover {
    background-color: #0f172a;
    color: var(--color-accent);
}

[data-theme="dark"] .sidebar-category-count {
    background-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

[data-theme="dark"] .sidebar-search-input {
    background-color: #0f172a;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sidebar-search-input:focus {
    border-color: var(--color-accent);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--color-text-dark);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    touch-action: manipulation;
}

.theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--color-accent);
    transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle-btn {
    color: #f1f5f9;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fbbf24; /* Sun light yellow */
}

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-dark);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 1010;
    touch-action: manipulation;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--color-accent);
}

[data-theme="dark"] .mobile-menu-toggle {
    color: #f1f5f9;
}

[data-theme="dark"] .mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Responsive navigation menu styling */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-white);
        padding: 2.5rem 1.5rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        gap: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        transform: translate3d(0, -180%, 0);
        -webkit-transform: translate3d(0, -180%, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
    }
    
    [data-theme="dark"] .nav-menu {
        background-color: #0f172a;
        border-top-color: rgba(255, 255, 255, 0.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    }
    
    .nav-menu.active {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }
    
    [data-theme="dark"] .nav-link {
        border-bottom-color: rgba(255, 255, 255, 0.03);
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        padding-bottom: 5.5rem; /* Push links above the floating WhatsApp widget */
    }
    .footer-legal-links {
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }
    .footer-legal-links a {
        display: inline-block;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        background-color: rgba(255, 255, 255, 0.03);
    }
}

/* ==================================================
   18. REPRODUTOR INTERATIVO KARAOKE E REFERÊNCIAS
   ================================================== */
.karaoke-block {
    background-color: var(--color-bg-alt, #f7fafc);
    border-left: 4px solid var(--color-primary, #00487c);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.karaoke-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.karaoke-lines {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.karaoke-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.25s ease, border-left 0.25s ease;
    border-left: 3px solid transparent;
}
.karaoke-line.active-line {
    background-color: rgba(0, 72, 124, 0.05);
    border-left-color: var(--color-accent, #00a3e0);
}
.karaoke-line .english-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark, #2d3748);
    transition: color 0.25s ease;
}
.karaoke-line.active-line .english-text {
    color: var(--color-primary, #00487c);
}
.karaoke-line .portuguese-text {
    font-size: 0.95rem;
    color: var(--color-text-light, #718096);
}

/* Referências Bibliográficas (Compacto e Discreto) */
.article-references-box {
    margin-top: 40px;
    padding: 18px;
    background-color: var(--color-bg-alt, #f9f9fb);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.6;
}
.references-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--color-text-title, #1a202c);
    font-size: 0.95rem;
    font-weight: 700;
}
.references-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.references-list li {
    margin-bottom: 8px;
    padding-left: 14px;
    position: relative;
    color: var(--color-text-muted, #4a5568);
}
.references-list li::before {
    content: "•";
    color: var(--color-primary, #00487c);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}
.ref-category {
    color: var(--color-text-bold, #2d3748);
}

/* Créditos e Legendas de Imagens */
.image-credit {
    font-size: 0.75rem;
    color: var(--color-text-light, #718096);
    text-align: right;
    margin-top: 6px;
    font-style: italic;
    line-height: 1.2;
    display: block;
}
.post-featured-figure, .post-image-figure {
    margin: 0 0 2rem 0;
    width: 100%;
}
.image-credit a {
    color: inherit;
    text-decoration: underline;
    transition: var(--transition-smooth);
}
.image-credit a:hover {
    color: var(--color-accent);
}
