/*
 Theme Name:   Bootscore Child
 Description:  Bootscore Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/* 
All style editing is done via /assets/scss/_bootscore_custom.scss
*/


/* --- ESTILO GLOBAL NSEVEN --- */


/* --- IMPORTAÇÃO DA FONTE INTER (Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* Aplicação Global */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, textarea {
    font-family: 'Inter', sans-serif !important;
}

/* Refinamento de leitura */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em; /* Levemente mais compacto, estilo moderno */
}


/* Gradiente Roxo Nseven (Baseado no seu Logo) */
.bg-nseven-gradient {
    background: rgb(58,12,163);
    background: linear-gradient(135deg, rgba(58,12,163,1) 0%, rgba(36,0,70,1) 100%);
}

/* Utilitário para cantos arredondados "High End" */
.rounded-xl {
    border-radius: 1.5rem !important; /* Arredondamento mais suave que o padrão */
}

/* Ajuste de Botões para ficarem com a cor da marca */
.btn-primary {
    background-color: #560bad;
    border-color: #560bad;
}
.btn-primary:hover {
    background-color: #3a0ca3;
    border-color: #3a0ca3;
}

/* Correção da Navbar para centralizar menu */
@media (min-width: 992px) {
    .navbar-collapse {
        justify-content: space-between;
    }
    .navbar-nav {
        margin: 0 auto; /* Centraliza o menu */
    }
    .header-actions {
        display: flex;
        gap: 15px;
    }
}


/* --- RODAPÉ NSEVEN (SOLUÇÃO FINAL) --- */

/* 1. Aplica o Fundo Degradê no Container Principal e na Barra de Info */
#footer, 
footer, 
footer.bootscore-footer,
.bootscore-info {
    background-image: linear-gradient(135deg, rgba(58,12,163,1) 0%, rgba(36,0,70,1) 100%) !important;
    background-color: rgb(58,12,163) !important;
    border: 0 !important;
}

/* 2. Força TODO texto dentro do rodapé a ser branco */
#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6,
#footer p, #footer span, #footer li, #footer small, 
.bootscore-info, .bootscore-info span, .bootscore-info small {
    color: #ffffff !important;
}

/* 3. Links: Branco com transparência e Hover Branco Puro */
#footer a, 
.bootscore-info a {
    color: rgba(255,255,255, 0.7) !important;
    text-decoration: none !important;
}

#footer a:hover, 
.bootscore-info a:hover {
    color: #ffffff !important;
}

/* 4. Remove o fundo cinza padrão se existir na área de widgets */
.bootscore-footer {
    background-color: transparent !important;
}

/* 5. Linha divisória sutil entre widgets e copyright */
.bootscore-info {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding-top: 20px;
    padding-bottom: 20px;
}




/* --- CORREÇÃO DO BOTÃO TO-TOP --- */
.to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 9999 !important;
    width: 50px !important;    /* Força tamanho fixo */
    height: 50px !important;   /* Força altura igual a largura */
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important; /* Deixa perfeitamente redondo */
    padding: 0 !important;     /* Remove preenchimento que causa o formato de barra */
    opacity: 0.9;
}

.to-top:hover {
    transform: translateY(-5px); /* Pequeno efeito de elevação ao passar o mouse */
    opacity: 1;
}

/* --- OCULTAR TÍTULO PADRÃO NA HOME --- */
/* Remove o cabeçalho padrão (Título H1) apenas na página inicial */
.home .entry-header {
    display: none !important;
}

/* Caso o Bootscore use container específico para o título na home */
.home .bootscore-page-title {
    display: none !important;
}

/* Remove margem superior extra que sobrava após sumir o título */
.home #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* --- CONTROLE DE TAMANHO DO LOGO (SVG) --- */
.navbar-brand img {
    height: 55px !important; /* Ajuste este valor conforme seu gosto (45px a 60px é o ideal) */
    width: auto !important;  /* Garante que não distorça */
    max-width: 250px;        /* Trava de segurança para largura */
}

/* Ajuste específico para Mobile se necessário */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 40px !important; /* Um pouco menor no celular */
    }
}

/* --- BLOG & CASES STYLING (VIVACIDADE) --- */

/* Cards de Post mais robustos */
.card.post-card, 
.blog .card, 
.archive .card {
    border: none !important;
    border-radius: 1rem !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Sombra suave inicial */
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Efeito Hover (Elevação) */
.card.post-card:hover, 
.blog .card:hover, 
.archive .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30,0,80,0.15); /* Sombra roxa no hover */
}

/* Imagem de Destaque */
.card-img-top {
    height: 220px; /* Padroniza altura */
    object-fit: cover;
}

/* Título do Post */
.card-title a {
    color: #1e0050; /* Cor escura da marca */
    font-weight: 700;
    text-decoration: none;
}
.card-title a:hover {
    color: #560bad; /* Roxo vibrante no hover */
}

/* Categoria (Badge) */
.badge.bg-primary {
    background-color: #560bad !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}
.hover-opacity-100:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
    transition: all 0.3s ease;
}
/* --- REMOÇÃO CIRÚRGICA DE TÍTULOS E MARGENS (PÁGINAS N7) --- */
/* IDs: Compliance (24771), Contato (24774), Cases (24836), Soluções (24888), Sobre (24891) */

/* 1. Ocultar o Título H1 Padrão e o Container do Título */
.page-id-24771 .entry-header,
.page-id-24774 .entry-header,
.page-id-24836 .entry-header,
.page-id-24888 .entry-header,
.page-id-24891 .entry-header,
.page-id-24911 .entry-header,
.page-id-24771 .bootscore-page-title,
.page-id-24774 .bootscore-page-title,
.page-id-24836 .bootscore-page-title,
.page-id-24888 .bootscore-page-title,
.page-id-24911 .bootscore-page-title,
.page-id-24891 .bootscore-page-title {
    display: none !important;
}

/* 2. Zerar margens superiores (Para o Hero colar no topo) */
.page-id-24771 #content, .page-id-24771 #primary,
.page-id-24774 #content, .page-id-24774 #primary,
.page-id-24836 #content, .page-id-24836 #primary,
.page-id-24888 #content, .page-id-24888 #primary,
.page-id-24911 #content, .page-id-24888 #primary,
.page-id-24891 #content, .page-id-24891 #primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* --- LIMPEZA DO BLOG --- */

/* Esconde o título padrão APENAS na página de Blog */
.blog .bootscore-page-title,
.blog .entry-header {
    display: none !important;
}

/* Ajusta espaçamento superior para o Hero colar no menu */
.blog #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}