/* =====================================================================
   WCHAGAS TI - TEMA CLARO & MODERNO (LIGHT CORPORATE)
   Cores: Azul Corporativo (#0066cc), Fundo Leve (#f8fafc / #ffffff),
   Texto Escuro de Alta Legibilidade (#0f172a / #334155)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0066cc;
    --primary-hover: #0052a3;
    --primary-light: #e0f2fe;
    --primary-dark: #004080;
    
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --bg-surface-soft: #f8fafc;
    
    --border-color: #e2e8f0;
    --border-darker: #cbd5e1;
    --border-focus: #0066cc;
    
    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --success: #10b981;
    --success-bg: #ecfdf5;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --cyan: #0284c7;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 35px -8px rgba(15, 23, 42, 0.1);
    
    --font: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navegação */
.main-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 4.75rem;
}

/* Grupo de botoes do cabecalho (artigo) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav-list a {
    color: var(--text-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.nav-btn-highlight {
    background: var(--primary);
    color: #ffffff !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
    transition: all 0.2s ease;
}

.nav-btn-highlight:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.35);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.35);
}

.btn-outline {
    background: #ffffff;
    border-color: var(--border-darker);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-surface-alt);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

.header-actions .btn {
    white-space: nowrap;
}

.label-short { display: none; }

/* Hero Section (Fundo Claro com Iluminação Sutil) */
.hero-section {
    padding: 5.5rem 0 5.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-tag {
    display: inline-block;
    padding: 0.45rem 1.25rem;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-content h1 .highlight {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.75rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Faixa de Clientes Autorizados */
.clients-section {
    padding: 3.5rem 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.clients-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 800;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.client-card {
    text-decoration: none;
    display: block;
}

.client-card-inner {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    transition: all 0.25s ease;
}

.client-card:hover .client-card-inner {
    border-color: var(--primary);
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 102, 204, 0.15);
}

.client-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.client-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.client-segment {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0.6rem;
}

.client-link-hint {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
}

/* Seções Gerais */
.section {
    padding: 5.5rem 0;
}

.section-alt {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-dark {
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title-wrap {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.75rem;
}

.sub-badge {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.section-title-wrap h2 {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* Produtos SaaS (Cards Claros com Sombreamento Suave) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 2.5rem;
}

.product-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.highlighted-product {
    border-color: rgba(0, 102, 204, 0.4);
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 35%);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.product-icon-wrap {
    width: 62px;
    height: 62px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
}

.badge-saas {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.product-header h3 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
}

.product-summary {
    color: var(--text-body);
    font-size: 1.02rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.feature-item .check-icon {
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: 0.25rem;
}

.feature-item strong {
    display: block;
    color: var(--text-main);
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-action {
    margin-top: auto;
}

/* Custom Grid */
.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.custom-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.custom-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.custom-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.custom-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.custom-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.custom-cta {
    text-align: center;
}

.custom-cta p {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 1.25rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.about-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.about-icon {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.about-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Newsletter Section (Card Destacado Claro) */
.section-newsletter {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.newsletter-card {
    max-width: 840px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-darker);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-lg);
}

.newsletter-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.newsletter-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.newsletter-intro h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.newsletter-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.newsletter-form-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group-news {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group-news label {
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 700;
}

.input-news {
    background: #ffffff;
    border: 1px solid var(--border-darker);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.15rem;
    color: var(--text-main);
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-news:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.interests-block {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.interests-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 0.75rem;
}

.interest-chk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-body);
    cursor: pointer;
}

.consent-block {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.consent-chk {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.consent-chk a {
    text-decoration: underline;
    color: var(--primary);
}

.feedback-msg {
    margin-top: 1rem;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    display: none;
    text-align: center;
}

.feedback-msg.success {
    display: block;
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: #065f46;
}

.feedback-msg.error {
    display: block;
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: #991b1b;
}

/* Seção de Contato */
.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
}

.contact-form-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-select {
    background: #ffffff;
    border: 1px solid var(--border-darker);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.15rem;
    color: var(--text-main);
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    display: none;
    margin-top: 0.25rem;
}

.contact-info-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.contact-info-box h3 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.contact-lead {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 2rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.45rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.info-item strong {
    display: block;
    color: var(--text-main);
    font-size: 0.98rem;
}

.info-item p, .info-item a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-links-box h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* WhatsApp Flutuante */
.whatsapp-float-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25d366;
    color: #ffffff !important;
    width: 3.85rem;
    height: 3.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Footer */
.main-footer {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.copyright {
    color: var(--text-light);
    font-size: 0.88rem;
}

/* Cookie Banner (Claro) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 0;
    z-index: 1001;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

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

.cookie-content p {
    font-size: 0.92rem;
    color: var(--text-body);
}

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

/* Responsividade */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-list {
        display: none;
        position: absolute;
        top: 4.75rem;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-list.active {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .form-row, .form-row-news {
        grid-template-columns: 1fr;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   CARROSSEL DE CLIENTES (MARQUEE INFINITO DIREITA PARA ESQUERDA)
   ========================================================================== */
.clients-section {
    padding: 40px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}
.clients-title {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 45px;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.marquee-item:hover {
    transform: scale(1.08);
}
.client-logo-img {
    max-height: 55px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(15%) contrast(105%);
    transition: filter 0.3s ease;
}
.marquee-item:hover .client-logo-img {
    filter: none;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* Accordion FAQ Styling */
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary { list-style: none; }
details.faq-item[open] summary .faq-icon { transform: rotate(180deg); }
details.faq-item[open] { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); }


/* ==========================================================================
   ADMIN DASHBOARD LAYOUT: FIXED SIDEBAR ON DESKTOP & SCROLLABLE CONTENT
   ========================================================================== */
.admin-layout { display: flex; min-height: 100vh; background: #f8fafc; }
.admin-sidebar { width: 260px; background: #0f172a; color: #fff; padding: 2rem 1.25rem; display: flex; flex-direction: column; }
.admin-sidebar a { color: #94a3b8; display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; border-radius: 8px; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.4rem; text-decoration: none; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: #fff; background: #1e293b; }
.admin-main { flex: 1; padding: 2.5rem 3rem; }

@media (min-width: 992px) {
    .admin-layout { min-height: 100vh; }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow-y: auto;
        z-index: 1000;
        box-sizing: border-box;
    }
    .admin-main {
        margin-left: 260px;
        width: calc(100% - 260px);
        min-height: 100vh;
        box-sizing: border-box;
    }
}

@media (max-width: 991px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
    .admin-main { margin-left: 0; width: 100%; padding: 1.5rem; }
}

/* ==========================================================================
   PÁGINA DE ARTIGO (leitura) + AJUSTES PARA TELAS PEQUENAS
   ========================================================================== */
.article-main {
    padding: 3.5rem 1.5rem 6rem;
    max-width: 860px;
}

.article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3.5rem 3rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.article-head {
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.article-meta-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.article-title {
    font-size: 2.4rem;
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.article-cover {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.article-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Corpo do texto vindo do editor */
.article-content {
    color: var(--text-body);
    font-size: 1.08rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }

.article-content p { margin-bottom: 1.35rem; }

.article-content h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--text-main);
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-size: 1.22rem;
    line-height: 1.35;
    color: var(--text-main);
    font-weight: 700;
    margin: 2rem 0 0.85rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.35rem;
    padding-left: 1.35rem;
}

.article-content li { margin-bottom: 0.55rem; }

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 1.75rem auto;
}

.article-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary);
    background: var(--bg-surface-alt);
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-style: italic;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: break-word;
}

.article-content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.35rem;
}

.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    background: var(--bg-surface-alt);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

.article-content pre code { background: none; padding: 0; }

/* Tabelas do editor nao podem estourar a largura no celular */
.article-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin-bottom: 1.35rem;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.article-content iframe,
.article-content video {
    max-width: 100%;
    border-radius: 10px;
}

.article-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

/* --- Bloco final: convite para a newsletter --- */
.article-newsletter {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
}

.article-newsletter-icon {
    font-size: 1.6rem;
    color: var(--primary);
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    width: 3.1rem;
    height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-newsletter-text h3 {
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    text-wrap: balance;
}

.article-newsletter-text p {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.article-newsletter-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Bloco final: navegação pelos temas do blog --- */
.article-topics {
    background: var(--bg-surface-alt);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
}

.article-topics h3 {
    color: var(--text-main);
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.article-topics > p {
    color: var(--text-muted, #64748b);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.topic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.4rem 1rem;
    color: var(--text-main);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 22px -10px rgba(0, 102, 204, 0.35);
    color: var(--text-main);
}

.topic-card i {
    font-size: 1.4rem;
    color: var(--primary);
}

.topic-card strong {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.topic-card span {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.topics-all {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Grade de cards do blog: nunca estoura a largura da tela */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 2rem;
}

/* --- Telas até 768px --- */
@media (max-width: 768px) {
    .header-container {
        min-height: 4.25rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .logo-img { height: 34px; }

    .article-main { padding: 2rem 1rem 3.5rem; }

    .article-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .article-title { font-size: clamp(1.6rem, 6.2vw, 2.1rem); }

    .article-cover { margin-bottom: 1.75rem; }
    .article-cover img { max-height: 260px; }

    .article-content {
        font-size: 1rem;
        line-height: 1.75;
    }
    .article-content h2 { font-size: 1.3rem; margin: 2rem 0 0.85rem; }
    .article-content h3 { font-size: 1.1rem; margin: 1.6rem 0 0.7rem; }

    .article-divider { margin: 2.25rem 0; }

    /* empilha para o texto usar a largura inteira do card */
    .article-newsletter {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 0.85rem;
        padding: 1.5rem 1.25rem;
        text-align: left;
    }
    .article-newsletter-icon {
        font-size: 1.2rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    .article-newsletter-text h3 { font-size: 1.08rem; }
    .article-newsletter-text p { font-size: 0.9rem; }
    .article-newsletter-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.15rem;
    }

    .article-topics { padding: 1.5rem 1.15rem; }
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .topic-card {
        display: grid;
        grid-template-columns: 1.75rem 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 0.85rem;
        row-gap: 0.25rem;
        text-align: left;
        padding: 1rem 1.15rem;
    }
    .topic-card i {
        grid-column: 1;
        grid-row: 1 / span 2;
        font-size: 1.3rem;
        justify-self: center;
    }
    .topic-card strong { grid-column: 2; grid-row: 1; }
    .topic-card span { grid-column: 2; grid-row: 2; }
}

/* --- Telas até 560px: encurta rótulos do cabeçalho --- */
@media (max-width: 560px) {
    .header-actions { gap: 0.5rem; }
    .header-actions .btn-sm {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }
    .label-full { display: none; }
    .label-short { display: inline; }
}

/* ==========================================================================
   LISTAGEM DO BLOG
   ========================================================================== */
.blog-main {
    padding: 4rem 1.5rem 6rem;
}

.blog-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.blog-title {
    font-size: 2.6rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-subtitle {
    color: #64748b;
    font-size: 1.15rem;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
    .blog-main { padding: 2.25rem 1rem 3.5rem; }
    .blog-intro { margin-bottom: 2rem; }
    .blog-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
    .blog-subtitle { font-size: 1rem; }

    /* Filtros rolam lateralmente em vez de quebrar em varias linhas */
    .blog-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 2.25rem;
        padding-bottom: 0.25rem;
        /* sangra ate a borda da tela para indicar que ha mais itens */
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .blog-filters::-webkit-scrollbar { display: none; }
    .blog-filters .btn { white-space: nowrap; flex-shrink: 0; }

    .blog-grid { gap: 1.25rem; }
}

/* Botão do menu mobile: área de toque própria (funciona mesmo se o ícone não carregar) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: -0.5rem;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .hamburger:active { background: var(--bg-surface-alt); }
}

/* Cards de produto: respiro menor em telas pequenas */
@media (max-width: 768px) {
    .product-box { padding: 2rem 1.35rem; }
    .products-grid { gap: 1.5rem; }
}

/* Formulários em telas estreitas: caixas podem encolher e o card respira menos */
@media (max-width: 768px) {
    .newsletter-card { padding: 2rem 1.25rem; }
    .form-group-news,
    .form-group,
    .form-row,
    .form-row-news { min-width: 0; }
    .input-news,
    .form-control,
    .article-content { min-width: 0; }
    .input-news { width: 100%; }
}
