/*
 Theme Name:   Hello Elementor Child - SP Negócios
 Description:  Child theme com barra de acessibilidade e Hand Talk
 Author:        Notiva
 Template:     hello-elementor
 Version:      1.0
*/

/* ============================================================
   BARRA DE ACESSIBILIDADE
============================================================ */

.spn-topbar {
  width: 100%;
  background-color: #1b2f4e;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  position: relative;
  z-index: 9999;
}

.spn-topbar .spn-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  box-sizing: border-box;
}

/* Skip links */
.spn-topbar .spn-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.spn-topbar .spn-left a {
  color: #c9d6e2;
  margin-right: 14px;
  text-decoration: none;
  font-size: 12px;
}

.spn-topbar .spn-left a:hover,
.spn-topbar .spn-left a:focus {
  color: #fff;
  text-decoration: underline;
}

/* Controles */
.spn-topbar .spn-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.spn-topbar .spn-contrast-label {
  color: #8eafc8;
  font-size: 12px;
}

.spn-topbar .spn-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8eafc8;
  font-weight: 500;
}

/* Bolinhas de contraste — igual ao tema original */
.spn-topbar .contrast-circle {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  vertical-align: middle;
  transition: border-color 0.2s;
}

.spn-topbar .contrast-circle:hover,
.spn-topbar .contrast-circle.active {
  border-color: #fff;
}

.spn-topbar .contrast-circle.white {
  background: #fff;
}

.spn-topbar .contrast-circle.black {
  background: #111;
}

/* Botões de fonte */
.spn-topbar .spn-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 3px;
  line-height: 1.6;
  font-family: inherit;
  transition: background 0.15s;
}

.spn-topbar .spn-btn:hover {
  background: rgba(255,255,255,0.15);
}

.spn-topbar a.spn-accessibility-link {
  color: #8eafc8;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.spn-topbar a.spn-accessibility-link:hover {
  color: #fff;
}

/* ============================================================
   TEMA BRANCO (padrão)
   body.theme-white = normal, sem alterações
============================================================ */

body.theme-white {
  /* estado padrão — sem overrides */
}

/* Estilos para navegação no tema branco */
body.theme-white .elementor-nav-menu .elementor-item {
  color: #1b2f4e; /* Cor padrão dos itens do menu */
}

body.theme-white .elementor-nav-menu .elementor-item:hover,
body.theme-white .elementor-nav-menu .elementor-item:focus {
  color: #39b785; /* Cor no hover/focus */
}

body.theme-white .elementor-nav-menu .elementor-item.elementor-item-active {
  color: #39b785; /* Cor do item ativo */
}

/* ============================================================
   TEMA PRETO (alto contraste)
   Replica exatamente o comportamento do tema spnegocios original.
   O global-scripts.js adiciona body.theme-black ao clicar
   na bolinha preta; estas regras definem o visual.
============================================================ */

body.theme-black {
  background-color: #0a1929 !important;
  color: #fff !important;
}

/* Header */
body.theme-black header,
body.theme-black .elementor-location-header,
body.theme-black .site-header {
  background-color: #0a1929 !important;
  border-bottom-color: #1b2f4e !important;
}

/* Nav / menu */
body.theme-black nav,
body.theme-black .elementor-nav-menu--main,
body.theme-black .elementor-nav-menu--layout-horizontal {
  background-color: #0a1929 !important;
}

body.theme-black .elementor-nav-menu .elementor-item {
  color: #fff !important;
  border-bottom: 3px solid transparent !important;
}

body.theme-black .elementor-nav-menu .elementor-item:focus,
body.theme-black .elementor-nav-menu .elementor-item:hover {
  color: #39b785 !important;
  border-bottom-color: #39b785 !important;
}

body.theme-black .elementor-nav-menu .elementor-item.elementor-item-active {
  color: #39b785 !important;
  border-bottom-color: #39b785 !important;
}

/* Seções Elementor */
body.theme-black .elementor-section,
body.theme-black .elementor-top-section,
body.theme-black .e-con,
body.theme-black .e-con-inner {
  background-color: #0a1929 !important;
}

/* Seções com fundo específico (inline style) — removido via JS */

/* Títulos */
body.theme-black h1,
body.theme-black h2,
body.theme-black h3,
body.theme-black h4,
body.theme-black h5,
body.theme-black h6,
body.theme-black .elementor-heading-title {
  color: #ffffff !important;
}

/* Textos */
body.theme-black p,
body.theme-black li,
body.theme-black td,
body.theme-black th,
body.theme-black label,
body.theme-black span:not(.spn-contrast-label):not(.spn-label) {
  color: #fff !important;
}

/* Links */
body.theme-black a:not(.spn-btn):not(.contrast-circle):not(.spn-left a):not(.elementor-item) {
  color: #39b785 !important;
}

body.theme-black a:not(.spn-btn):not(.contrast-circle):not(.spn-left a):hover {
  color: #4dd99f !important;
}

/* Botões Elementor */
body.theme-black .elementor-button,
body.theme-black .elementor-button-wrapper .elementor-button {
  background-color: #1b2f4e !important;
  color: #fff !important;
  border-color: #39b785 !important;
}

body.theme-black .elementor-button:hover,
body.theme-black .elementor-button-wrapper .elementor-button:hover {
  background-color: #39b785 !important;
  color: #0a1929 !important;
  border-color: #39b785 !important;
}

/* Cards / widgets */
body.theme-black .elementor-widget-container {
  background-color: transparent !important;
}

/* Inputs e formulários */
body.theme-black input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),
body.theme-black textarea,
body.theme-black select {
  background-color: #1a2f47 !important;
  color: #fff !important;
  border-color: #1b2f4e !important;
}

/* Footer */
body.theme-black footer,
body.theme-black .elementor-location-footer {
  background-color: #0a1929 !important;
}

/* Imagens — preto e branco como no site original */
body.theme-black img {
  filter: grayscale(100%) brightness(0.85) contrast(1.1);
}

/* A barra não muda */
body.theme-black .spn-topbar {
  background-color: #1b2f4e !important;
}

body.theme-black .spn-topbar * {
  filter: none !important;
}

/* ============================================================
   TAMANHO DE FONTE
   Replica body.font-size-{12..20} do tema original.
   O JS incrementa/decrementa de 2 em 2 como o original.
============================================================ */

body.font-size-12 { font-size: 12px !important; }
body.font-size-13 { font-size: 13px !important; }
body.font-size-14 { font-size: 14px !important; }
body.font-size-15 { font-size: 15px !important; }
body.font-size-16 { font-size: 16px !important; } /* padrão */
body.font-size-17 { font-size: 17px !important; }
body.font-size-18 { font-size: 18px !important; }
body.font-size-19 { font-size: 19px !important; }
body.font-size-20 { font-size: 20px !important; }

/* Propaga para os widgets do Elementor via em */
body.font-size-12 .elementor-widget-container,
body.font-size-12 .elementor-heading-title,
body.font-size-12 h1, body.font-size-12 h2, body.font-size-12 h3,
body.font-size-12 h4, body.font-size-12 h5, body.font-size-12 h6,
body.font-size-12 p, body.font-size-12 li,
body.font-size-12 a { font-size: 0.75em; }

body.font-size-13 .elementor-widget-container,
body.font-size-13 .elementor-heading-title,
body.font-size-13 h1, body.font-size-13 h2, body.font-size-13 h3,
body.font-size-13 h4, body.font-size-13 h5, body.font-size-13 h6,
body.font-size-13 p, body.font-size-13 li,
body.font-size-13 a { font-size: 0.8125em; }

body.font-size-14 .elementor-widget-container,
body.font-size-14 .elementor-heading-title,
body.font-size-14 h1, body.font-size-14 h2, body.font-size-14 h3,
body.font-size-14 h4, body.font-size-14 h5, body.font-size-14 h6,
body.font-size-14 p, body.font-size-14 li,
body.font-size-14 a { font-size: 0.875em; }

body.font-size-15 .elementor-widget-container,
body.font-size-15 .elementor-heading-title,
body.font-size-15 h1, body.font-size-15 h2, body.font-size-15 h3,
body.font-size-15 h4, body.font-size-15 h5, body.font-size-15 h6,
body.font-size-15 p, body.font-size-15 li,
body.font-size-15 a { font-size: 0.9375em; }

body.font-size-17 .elementor-widget-container,
body.font-size-17 .elementor-heading-title,
body.font-size-17 h1, body.font-size-17 h2, body.font-size-17 h3,
body.font-size-17 h4, body.font-size-17 h5, body.font-size-17 h6,
body.font-size-17 p, body.font-size-17 li,
body.font-size-17 a { font-size: 1.0625em; }

body.font-size-18 .elementor-widget-container,
body.font-size-18 .elementor-heading-title,
body.font-size-18 h1, body.font-size-18 h2, body.font-size-18 h3,
body.font-size-18 h4, body.font-size-18 h5, body.font-size-18 h6,
body.font-size-18 p, body.font-size-18 li,
body.font-size-18 a { font-size: 1.125em; }

body.font-size-19 .elementor-widget-container,
body.font-size-19 .elementor-heading-title,
body.font-size-19 h1, body.font-size-19 h2, body.font-size-19 h3,
body.font-size-19 h4, body.font-size-19 h5, body.font-size-19 h6,
body.font-size-19 p, body.font-size-19 li,
body.font-size-19 a { font-size: 1.1875em; }

body.font-size-20 .elementor-widget-container,
body.font-size-20 .elementor-heading-title,
body.font-size-20 h1, body.font-size-20 h2, body.font-size-20 h3,
body.font-size-20 h4, body.font-size-20 h5, body.font-size-20 h6,
body.font-size-20 p, body.font-size-20 li,
body.font-size-20 a { font-size: 1.25em; }

/* ============================================================
   RESPONSIVO
============================================================ */

@media (max-width: 768px) {
  .spn-topbar .spn-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
  }

  .spn-topbar .spn-left a {
    font-size: 11px;
    margin-right: 8px;
  }
}