/**
 * Evolua - Identidade Visual & Design System
 * Baseado na paleta oficial do logótipo:
 * - Primário (Azul Elétrico): #0E7AE6
 * - Secundário (Azul Marinho / Navy): #0A1F44
 * - Destaque (Ciano / Turquesa): #0093BD (Dark) / #38D6F5 (Light)
 * - Cobalto: #1452E0
 * - Neutro Escuro (Texto Tagline): #4A5A75
 * - Neutro Claro: #F4F7FC / #FFFFFF
 */

:root {
    --evolua-navy: #0A1F44;
    --evolua-blue: #0E7AE6;
    --evolua-cyan: #0093BD;
    --evolua-cyan-light: #38D6F5;
    --evolua-cobalt: #1452E0;
    --evolua-slate: #4A5A75;
    --evolua-bg-light: #F8FAFC;
    --evolua-border: #E2E8F0;
    --evolua-radius: 1rem;
    --evolua-shadow: 0 10px 30px -10px rgba(10, 31, 68, 0.08);
    --evolua-shadow-hover: 0 20px 40px -15px rgba(14, 122, 230, 0.18);
}

/* 1. Logótipo no Cabeçalho */
.astroid-logo img,
.astroid-logo-default,
.astroid-logo-sticky,
.astroid-logo-mobile {
    max-height: 52px !important;
    width: auto !important;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.astroid-logo:hover img {
    transform: scale(1.02);
}

/* 2. Topbar com as cores da identidade */
.astroid-section#ts-551539321230222 {
    background: var(--evolua-navy) !important;
    color: #E2E8F0 !important;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.astroid-section#ts-551539321230222 a {
    color: #FFFFFF !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.astroid-section#ts-551539321230222 a:hover {
    color: var(--evolua-cyan-light) !important;
}

.astroid-section#ts-551539321230222 i {
    color: var(--evolua-cyan-light) !important;
    margin-right: 0.35rem;
}

.astroid-social-icons a {
    color: #CBD5E1 !important;
    transition: all 0.2s ease;
}

.astroid-social-icons a:hover {
    color: var(--evolua-cyan-light) !important;
    transform: translateY(-2px);
}

/* 3. Navegação Principal (Header) */
.astroid-header-section {
    background: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(10, 31, 68, 0.04);
}

.astroid-nav .nav-link {
    color: var(--evolua-navy) !important;
    font-weight: 600 !important;
    font-size: 0.98rem;
    padding: 0.6rem 1.1rem !important;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.astroid-nav .nav-link:hover {
    color: var(--evolua-blue) !important;
    background-color: rgba(14, 122, 230, 0.06);
}

.astroid-nav .nav-item.nav-item-active .nav-link,
.astroid-nav .nav-link.active {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, var(--evolua-blue) 0%, var(--evolua-cobalt) 100%) !important;
    box-shadow: 0 4px 12px rgba(14, 122, 230, 0.28);
}

/* 4. Tipografia e Títulos */
h1, h2, h3, h4, h5, h6 {
    color: var(--evolua-navy);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p, .lead, li {
    color: #334155;
}

/* 5. Estilo Decorativo: Barras Tríplices da Evolua */
.evolua-brand-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    vertical-align: middle;
}
.evolua-brand-bars .bar-1 { width: 36px; height: 6px; border-radius: 3px; background: #0093BD; }
.evolua-brand-bars .bar-2 { width: 27px; height: 6px; border-radius: 3px; background: #0E7AE6; }
.evolua-brand-bars .bar-3 { width: 18px; height: 6px; border-radius: 3px; background: #1452E0; }

/* 6. Botões Evolua */
.btn-primary {
    background: linear-gradient(135deg, var(--evolua-blue) 0%, var(--evolua-cobalt) 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(14, 122, 230, 0.35);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--evolua-cyan) 0%, var(--evolua-blue) 100%) !important;
    box-shadow: 0 6px 20px rgba(14, 122, 230, 0.45);
    transform: translateY(-2px);
    color: #FFFFFF !important;
}

.btn-outline-primary {
    border: 2px solid var(--evolua-blue) !important;
    color: var(--evolua-blue) !important;
    font-weight: 600;
    background: transparent !important;
    transition: all 0.25s ease;
}

.btn-outline-primary:hover {
    background: var(--evolua-blue) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 122, 230, 0.25);
}

/* 7. Cartões e Caixas */
.card, .p-4.bg-light.rounded-4 {
    border-radius: var(--evolua-radius) !important;
    border: 1px solid var(--evolua-border) !important;
    box-shadow: var(--evolua-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover, .p-4.bg-light.rounded-4:hover {
    transform: translateY(-4px);
    box-shadow: var(--evolua-shadow-hover);
    border-color: rgba(14, 122, 230, 0.25) !important;
}

/* 8. Badges */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--evolua-cyan) 0%, var(--evolua-blue) 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 9. Botão Back to Top */
#astroid-backtotop {
    background: var(--evolua-blue) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(14, 122, 230, 0.4);
    transition: all 0.2s ease;
}

#astroid-backtotop:hover {
    background: var(--evolua-navy) !important;
    transform: translateY(-3px);
}

/* 10. Ocultar título duplicado do Joomla no artigo principal */
.com-content-article .item-title > h1:first-child {
    display: none;
}
.com-content-article .item-title > h2[itemprop="headline"]:first-child {
    display: none;
}
