/*
 * Index — acabamento editorial alinhado ao Libryon Fiscal.
 * Carregado DEPOIS do <style> inline de index.html.
 * Substitui o antigo index-dash-theme.css (tema azul de dashboard).
 */

/* Mesma assinatura dourada usada em fiscal-editorial.css */
:root {
    --fisc-accent: #C08A2E;
    --fisc-accent-deep: #8A5F1C;
    --fisc-accent-soft: #E9B980;
    --fisc-accent-wash: #F7ECDA;
}
html[data-theme="dark"] {
    --fisc-accent: #E0B15E;
    --fisc-accent-deep: #F0CB8E;
    --fisc-accent-soft: #E9B980;
    --fisc-accent-wash: #3A2B20;
}

html[data-theme] body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
}

/* Acentos de texto e detalhes combinando com o Fiscal */
html[data-theme] .label,
html[data-theme] .h2 em,
html[data-theme] .nav-links a:hover,
html[data-theme] #mobile-menu a:hover,
html[data-theme] .value i,
html[data-theme] .product-visual .tag,
html[data-theme] .product-visual.erp .tag,
html[data-theme] .product-visual.fiscal .tag,
html[data-theme] .product-visual.financeiro .tag,
html[data-theme] .product-visual.ide .tag,
html[data-theme] .product-visual.certificado .tag,
html[data-theme] .product:hover,
html[data-theme] .foot-col h4,
html[data-theme] .foot-col ul a:hover,
html[data-theme] .foot-col .contact a:hover,
html[data-theme] .foot-col .contact i {
    color: var(--fisc-accent) !important;
}
html[data-theme] .hero-copy .label,
html[data-theme] .hero h1 em,
html[data-theme] .hero-strip i {
    color: var(--fisc-accent-soft) !important;
}

/* ---------------------------------------------------------------
   1. Logo completa, trocada conforme o tema (padrão do curso)
---------------------------------------------------------------- */
html[data-theme] header .brand img {
    height: 68px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
}
/* A logo clara tem menos area transparente: ajuste para ficar do mesmo tamanho */
html[data-theme] header .brand img[src="logo-claro.png"] {
    height: 57px !important;
}
html[data-theme] .foot-brand img {
    height: 44px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain;
}
html[data-theme] .foot-brand img[src="logo-claro.png"] {
    height: 37px !important;
}
html[data-theme] header .nav { height: 92px; }

@media (max-width: 767px) {
    html[data-theme] header .brand img {
        height: 56px !important;
        max-width: 120px !important;
    }
    html[data-theme] header .brand img[src="logo-claro.png"] {
        height: 47px !important;
    }
    html[data-theme] .foot-brand img {
        height: 38px !important;
        max-width: 100px !important;
    }
    html[data-theme] .foot-brand img[src="logo-claro.png"] {
        height: 32px !important;
    }
    html[data-theme] header .nav { height: 78px; }
}

/* A logo completa ja traz o nome: nao repetir o texto separado */
html[data-theme] .foot-brand b { display: none; }

/* ---------------------------------------------------------------
   2. Botoes de acao em dourado — mesma regra do Libryon Fiscal
---------------------------------------------------------------- */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-copper,
html[data-theme="light"] .btn-green {
    background: var(--fisc-accent) !important;
    border-color: var(--fisc-accent) !important;
    color: #FFFFFF !important;
}
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .btn-copper:hover,
html[data-theme="light"] .btn-green:hover {
    background: var(--fisc-accent-deep) !important;
    border-color: var(--fisc-accent-deep) !important;
    filter: none !important;
}
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-copper,
html[data-theme="dark"] .btn-green,
html[data-theme="dark"] .btn-accent,
html[data-theme="dark"] .btn-ide {
    color: #14232F !important;
}
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-copper,
html[data-theme="dark"] .btn-green {
    background: var(--fisc-accent) !important;
    border-color: var(--fisc-accent) !important;
}
html[data-theme] .btn-outline:hover {
    border-color: var(--fisc-accent) !important;
    color: var(--fisc-accent) !important;
}

/* ---------------------------------------------------------------
   3. Hero imponente — foto forte, scrim escuro e acento cobre
---------------------------------------------------------------- */
html[data-theme] .hero {
    background-color: #0B141D !important;
    background-image:
        linear-gradient(90deg, rgba(11,20,29,.97) 0%, rgba(11,20,29,.86) 52%, rgba(11,20,29,.34) 100%),
        url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&q=85') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
html[data-theme] .hero::before { display: none !important; }
html[data-theme] .hero-grid { z-index: 1; }

html[data-theme] .hero h1,
html[data-theme] .hero h1 em { color: #E9EEF3 !important; }
html[data-theme] .hero h1 em { color: var(--fisc-accent-soft) !important; }
html[data-theme] .hero .label { color: var(--fisc-accent-soft) !important; }
html[data-theme] .hero .lead { color: #C3D0DA !important; }
html[data-theme] .hero .hero-note { color: #A9B8C4 !important; }
html[data-theme] .hero .hero-note i { color: #E0B15E !important; }

html[data-theme] .hero-card {
    background: rgba(18,32,44,.9) !important;
    border-color: rgba(224,177,94,.28) !important;
}
html[data-theme] .hero-card .card-top small { color: #A9B8C4 !important; }
html[data-theme] .hero-card-kicker { color: #E0B15E !important; }
html[data-theme] .hero-line { border-color: rgba(233,238,243,.12) !important; }
html[data-theme] .hero-line i { color: #E0B15E !important; }
html[data-theme] .hero-line b { color: #E9EEF3 !important; }
html[data-theme] .hero-line small { color: #A9B8C4 !important; }
html[data-theme] .hero .pill.blue,
html[data-theme] .hero .pill.green,
html[data-theme] .hero .pill.copper {
    background: rgba(224,177,94,.12) !important;
    color: #E0B15E !important;
}
html[data-theme] .hero-badge {
    background: #C08A2E !important;
    color: #FFFFFF !important;
}
html[data-theme] .hero .btn-primary {
    background: #C08A2E !important;
    color: #FFFFFF !important;
}
html[data-theme] .hero .btn-outline {
    border-color: rgba(233,238,243,.38) !important;
    color: #E9EEF3 !important;
}

/* ---------------------------------------------------------------
   4. Faixa de numeros e CTA — mesmos blocos escuro/dourado do Fiscal
---------------------------------------------------------------- */
html[data-theme] .numbers {
    background: #14232F !important;
    color: #F7F5F0 !important;
    border-block: 0 !important;
}
html[data-theme="dark"] .numbers {
    background: #08121A !important;
    color: #F2F0EA !important;
}
html[data-theme] .cta-inner {
    background: var(--green) !important;
    color: #FFFFFF !important;
}
html[data-theme] .cta-inner .label { color: #FFFFFF !important; }
html[data-theme="dark"] .cta-inner,
html[data-theme="dark"] .cta-inner .label {
    color: #FFFFFF !important;
}
html[data-theme] .cta-inner .btn {
    background: #FFFFFF !important;
    color: #14232F !important;
}
