/*
Theme Name: SmartMag Child PT-BR — Escritório Visível
Template: smart-mag
Version: 2.0.0
Author: Agner Rebouças
Description: Tema filho oficial em Português (Brasil) para o SmartMag com tradução completa da interface, identidade visual Escritório Visível (#0B1F0F, #2E4A1F, #556B2F, #D4AF7C, #F5E6C8) e alternância automática de logo sem fundo (branco em fundo escuro e escuro em fundo claro).
Text Domain: bunyad
*/
/* ==========================================================================
   ESCRITÓRIO VISÍVEL — IDENTIDADE VISUAL UNIVERSAL (ANY WORDPRESS TEMPLATE)
   Paleta Oficial:
   - Verde Floresta: #0B1F0F
   - Verde Oliva:    #2E4A1F
   - Verde Militar:  #556B2F
   - Bege Dourado:   #D4AF7C
   - Bege Claro:     #F5E6C8
   ========================================================================== */

:root {
  --ev-verde-floresta: #0B1F0F;
  --ev-verde-oliva: #2E4A1F;
  --ev-verde-militar: #556B2F;
  --ev-bege-dourado: #D4AF7C;
  --ev-bege-claro: #F5E6C8;
  --ev-branco: #FFFFFF;
  --ev-superficie-clara: #FAF7F0;

  /* Sobrescreve tokens de cor de SmartMag / Bunyad / Elementor / Astra / Kadence / GeneratePress */
  --c-main: #2E4A1F !important;
  --c-main-rgb: 46, 74, 31 !important;
  --c-headings: #0B1F0F !important;
  --c-contrast: #0B1F0F !important;
  --c-contrast-900: #0B1F0F !important;
  --c-contrast-800: #2E4A1F !important;
  --c-bg: #FFFFFF !important;
  --primary-color: #2E4A1F !important;
  --secondary-color: #556B2F !important;
  --accent-color: #D4AF7C !important;
}

/* Superfície global clara/branca para leitura limpa */
html,
body,
.site,
.site-content,
.main-wrap,
.content-wrap,
.entry-content,
.post-content,
.page-content,
.ts-contain {
  background-color: var(--ev-branco) !important;
  color: var(--ev-verde-floresta) !important;
}

/* Cabeçalhos, barras superiores, menus escuros e rodapés em Verde Floresta (#0B1F0F) */
header,
.site-header,
.main-header,
.header-wrap,
.smart-head,
.smart-head-top,
.smart-head-main,
.smart-head-bot,
.top-bar,
.mobile-header,
.off-canvas,
footer,
.site-footer,
.main-footer,
.footer-wrap,
.lower-footer,
.upper-footer {
  background-color: var(--ev-verde-floresta) !important;
  color: var(--ev-bege-claro) !important;
  border-color: var(--ev-verde-oliva) !important;
}

header a,
.site-header a,
.main-header a,
.smart-head a,
.top-bar a,
.off-canvas a,
footer a,
.site-footer a,
.main-footer a,
.lower-footer a,
.upper-footer a {
  color: var(--ev-bege-claro) !important;
}

header a:hover,
.site-header a:hover,
.main-header a:hover,
.smart-head a:hover,
footer a:hover,
.site-footer a:hover,
.main-footer a:hover {
  color: var(--ev-bege-dourado) !important;
}

/* Títulos e chamadas editoriais */
h1, h2, h3, h4, h5, h6,
.post-title,
.entry-title,
.page-title,
.block-head .heading,
.archive-head h1 {
  color: var(--ev-verde-floresta) !important;
}

.block-head,
.section-head {
  border-color: var(--ev-bege-dourado) !important;
}

/* Links em áreas claras */
main a,
article a,
.entry-content a,
.post-content a,
.sidebar a {
  color: var(--ev-verde-oliva);
}

main a:hover,
article a:hover,
.entry-content a:hover,
.post-content a:hover,
.sidebar a:hover {
  color: var(--ev-verde-militar);
}

/* Botões, categorias, badges e paginação */
button,
.button,
.btn,
.ts-button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.cat-label,
.post-cat,
.page-numbers.current,
.main-stars span:before {
  background-color: var(--ev-verde-oliva) !important;
  color: var(--ev-bege-claro) !important;
  border-color: var(--ev-bege-dourado) !important;
}

button:hover,
.button:hover,
.btn:hover,
.ts-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
  background-color: var(--ev-verde-militar) !important;
  color: var(--ev-branco) !important;
}

/* Caixas, widgets e cartões */
.widget,
.author-box,
.comments-area,
.ev-card-post {
  background-color: var(--ev-superficie-clara);
  border-color: rgba(46, 74, 31, 0.22);
}

/* Logos sem fundo (PNG transparente) */
.ev-logo-adaptativo {
  display: inline-block;
  max-height: 52px;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
}
