/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 55rem;
  overflow-y: scroll;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   FOCO ACESSÍVEL (ASES 4.4 / WCAG 2.4.7)
========================= */

/* foco principal (navegadores modernos) */
:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 4px;
  border-radius: 6px;
}

/* fallback */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 3px solid #ffcc00;
  outline-offset: 4px;
  border-radius: 6px;
}

/* garante contexto visual */
a,
button,
input,
select,
textarea,
[tabindex] {
  position: relative;
}

/* área mínima clicável */
a,
button,
.btn {
  min-height: 44px;
}

/* select2 foco */
.select2-container--default .select2-selection--single:focus {
  outline: 3px solid #ffcc00 !important;
  outline-offset: 4px;
}

/* =========================
   LAYOUT PRINCIPAL
========================= */

.blocodeconteudo {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.blocodeconteudo.loaded {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================
   PRELOADER
========================= */

#preloader {
  position: fixed;
  inset: 0;
  background: #071a3a;

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

  z-index: 9999;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content img {
  max-height: 55px;
}

.preloader-content p {
  color: #ffffff;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

/* animação */
.bolas span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 0.8s infinite alternate;
}

.bolas span:nth-child(2) {
  animation-delay: 0.2s;
}

.bolas span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.6;
  }
  to {
    transform: scale(1.6);
    opacity: 1;
  }
}

/* =========================
   UTILITÁRIOS
========================= */

.hide {
  display: none;
}

.small-label {
  font-size: 12px;
  line-height: 12px;
  font-family: "Montserrat", sans-serif;
}

.is-required:before {
  content: "*";
  color: #d9534f;
}

/* =========================
   SELECT / FORMULÁRIOS
========================= */

.select-filtro,
.select-filtro2 {
  position: relative;
  width: 100%;
}

.select-filtro2 {
  width: 120px;
}

.minim-atura50 {
  min-height: 50px;
}

.carregando {
  color: #ff0000;
  display: none;
}

/* select2 ajustes */
.select2 {
  width: 100% !important;
}

.select2-selection__rendered {
  line-height: 34px !important;
}

.select2-container .select2-selection--single {
  height: 38px !important;
}

.select2-selection__arrow {
  height: 37px !important;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}

.topbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  text-align: center;
}

.topbar-text {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #444;
}

/* =========================
   FOOTER
========================= */

.footer-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

footer {
  padding: clamp(40px, 6vw, 50px) 0 clamp(20px, 4vw, 30px);
  color: #e0e6f5;
  background-color: #111930;
  font-size: clamp(12px, 2vw, 13px);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 5vw, 40px);
}

.footer-title {
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.dot {
  width: 6px;
  height: 6px;
  background: #86efac;
  border-radius: 50%;
  flex: 0 0 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #86efac;
  text-decoration: none;
}

.footer-links img {
  width: 16px;
  height: 16px;
}

.cnpj {
  color: #ffffff;
}

.footer-links a:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

/* =========================
   COOKIE
========================= */

.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;

  max-width: 900px;
  margin: 0 auto;

  background: #071a3a;
  color: #e0e6f5;

  padding: 20px;
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  z-index: 9999;

  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-consent button {
  align-self: flex-end;
  background: #86efac;
  color: #111930;
  border: none;
  padding: 10px 18px;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* =========================
   SKIP LINKS
========================= */

.atalhos {
  position: absolute;
  top: 0;
  left: 0;
  list-style: none;
}

.atalhos a {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
}

.atalhos a:focus {
  position: static;
  transform: translateY(0);
}

/* =========================
   NOSCRIPT
========================= */

.noscript {
  padding: 20px;
  background: #f8d7da;
  color: #842029;
}

/* =========================
   CARROSSEL (FOCO EXTRA)
========================= */

.avatars-track:focus-visible,
.btn-slide:focus-visible {
  outline: 3px solid #ffcc00;
  outline-offset: 4px;
}
