
:root {
  --color-bg: #f8f8f7;
  --color-text: #34322d;
  --color-black: #000;
  --color-white: #fff;
}

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  padding-top: 64px;
  overflow-x: hidden;
}

h1,h2,h3 {
  font-family: 'Archivo Black', sans-serif;
}
/* ===============================
   NOVA BARRA VERTICAL PROFISSIONAL
================================= */

/* ===============================
   BARRA VERTICAL MINIMALISTA
================================= */

.acessibilidade-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 6px 4px;

  background: rgba(0,0,0,0.85);
  border-radius: 10px 0 0 10px;
}

.acessibilidade-bar button {
  width: 38px;
  height: 38px;

  background: #ffd400;
  border: none;

  font-size: 14px;
  font-weight: bold;

  border-radius: 6px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s ease;
}

.acessibilidade-bar button:hover {
  background: #fff;
  transform: scale(1.08);
}

.acessibilidade-bar button:focus {
  outline: 2px solid #fff;
}

/* MOBILE */
@media (max-width: 768px) {

  .acessibilidade-bar {
    right: 8px;
    bottom: 20px;
    top: auto;
    transform: none;
    border-radius: 10px;
  }

}
}

/* MOBILE */
@media (max-width: 768px) {

  .acessibilidade-bar {
    right: 10px;
    bottom: 20px;
    top: auto;
    transform: none;
    border-radius: 12px;
  }

  .acessibilidade-bar button {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

}

/* ===============================
   ALTO CONTRASTE MELHORADO
================================= */
body.contraste {
  background: #000 !important;
  color: #fff !important;
}

body.contraste a {
  color: #ffd400 !important;
}

body.contraste .card,
body.contraste section {
  background: #000 !important;
  border-color: #fff !important;
}

/* ===============================
   FONTE MAIOR
================================= */
html.fonte1 { font-size: 110%; }
html.fonte2 { font-size: 125%; }
html.fonte3 { font-size: 140%; }

/* ===============================
   ESPAÇAMENTO DE LINHA
================================= */
body.espacamento p {
  line-height: 2;
}

/* ===============================
   FONTE PARA DISLEXIA
================================= */
body.dislexia {
  font-family: Arial, Verdana, sans-serif !important;
  letter-spacing: 0.08em;
}

/* ===============================
   REDUZIR ANIMAÇÕES
================================= */
body.sem-animacao * {
  animation: none !important;
  transition: none !important;
}

/* ===============================
   SKIP LINK PROFISSIONAL
================================= */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 10px;
}
/* ===============================
   MODO ALTO CONTRASTE CORRIGIDO
================================= */

body.contraste {
  background: #000 !important;
  color: #fff !important;
}

/* Força todos os textos a ficarem brancos */
body.contraste h1,
body.contraste h2,
body.contraste h3,
body.contraste h4,
body.contraste h5,
body.contraste h6,
body.contraste p,
body.contraste span,
body.contraste li,
body.contraste strong,
body.contraste blockquote {
  color: #fff !important;
}

/* Links em amarelo */
body.contraste a {
  color: #ffd400 !important;
}

/* Remove fundos claros */
body.contraste section,
body.contraste .card,
body.contraste .livro-card,
body.contraste .material-card,
body.contraste .citacao,
body.contraste .info-box {
  background: #000 !important;
  border-color: #fff !important;
}

/* Hero overlay mais escuro */
body.contraste .hero-overlay {
  background: #000 !important;
  opacity: 0.95 !important;
}

/* Remove sombras pretas que somem */
body.contraste .card,
body.contraste .livro-card,
body.contraste .material-card {
  box-shadow: 6px 6px 0 #fff !important;
}

@media (max-width: 768px) {

  .acessibilidade-bar {
    top: auto;
    bottom: 20px;
    right: 10px;
  }

  #acessibilidadeMenu {
    border-radius: 8px;
  }

  .acessibilidade-bar button {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

}