@charset "UTF-8";

/* ============================================================
   main.css — Base global do projeto Estratégia Digital
   Contém: variáveis, reset, tipografia, utilitários,
           header, footer, preloader e tokens do sistema.
   Animações: keyframes.css (importado abaixo).
   Responsividade: responsive.css.
   Estilos de página: arquivos CSS dedicados por blade.
   ============================================================ */

@import url("keyframes.css");

/* ============================================================
   Variáveis globais
   ============================================================ */
:root {
  /* Tipografia — famílias */
  --fonte-padrao: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-titulo: "Quicksand", sans-serif;
  --fonte-nav: "Poppins", sans-serif;

  /* Tipografia — escala fluida com clamp() */
  --tipo-xs: clamp(0.68rem, 0.64rem + 0.20vw, 0.750rem);
  /* labels, badges */
  --tipo-sm: clamp(0.75rem, 0.70rem + 0.25vw, 0.875rem);
  /* subtextos, datas */
  --tipo-body: clamp(0.82rem, 0.70rem + 0.60vw, 1.100rem);
  /* texto secundário */
  --tipo-base: clamp(0.90rem, 0.85rem + 0.25vw, 1.063rem);
  /* leitura padrão */
  --tipo-md: clamp(1.00rem, 0.95rem + 0.30vw, 1.200rem);
  /* h5, destaques */
  --tipo-lg: clamp(1.15rem, 1.05rem + 0.55vw, 1.500rem);
  /* h4 */
  --tipo-xl: clamp(1.25rem, 1.10rem + 0.75vw, 1.750rem);
  /* h3, subtítulos */
  --tipo-2xl: clamp(1.50rem, 1.20rem + 1.10vw, 2.250rem);
  /* h2, section-title */
  --tipo-3xl: clamp(1.75rem, 1.30rem + 1.75vw, 2.750rem);
  /* h1, hero */
  --tipo-4xl: clamp(2.00rem, 1.50rem + 2.40vw, 3.500rem);
  /* hero ultrawide */

  /* Tipografia — altura de linha */
  --lh-compacto: 1.25;
  /* headings */
  --lh-base: 1.55;
  /* texto corrido */
  --lh-amplo: 1.70;
  /* parágrafos longos */

  /* Paleta principal */
  --cor-fundo: #05071e;
  --cor-texto: #e8e7f7;
  --cor-titulo: #e8e7f7;
  --cor-destaque: #023e73;
  --cor-superficie: #131428;
  --cor-contraste: #ffffff;

  /* Navegação */
  --nav-cor: #c8c6e3;
  --nav-cor-hover: #ffffff;
  --nav-fundo-mobile: #03051f;
  --nav-dropdown-fundo: #1f2240;
  --nav-dropdown-cor: #c8c6e3;
  --nav-dropdown-cor-hover: #ffffff;

  /* Espaçamentos fluidos */
  --espaco-secao-y: clamp(3rem, 5vw, 6rem);
  /* padding vertical de seções */
  --espaco-gap: clamp(2.5rem, 4vw, 4.5rem);
  /* gap entre seções */
  --espaco-titulo: clamp(1.5rem, 3vw, 3rem);
  /* gap abaixo dos títulos */
  --offset-header: clamp(5rem, 6vw, 7.5rem);
  /* compensação do header fixo */

  /* Compatibilidade — aliases legados usados em blades e JS existentes */
  --default-font: var(--fonte-padrao);
  --heading-font: var(--fonte-titulo);
  --nav-font: var(--fonte-nav);
  --type-xs: var(--tipo-xs);
  --type-sm: var(--tipo-sm);
  --type-body: var(--tipo-body);
  --type-base: var(--tipo-base);
  --type-md: var(--tipo-md);
  --type-lg: var(--tipo-lg);
  --type-xl: var(--tipo-xl);
  --type-2xl: var(--tipo-2xl);
  --type-3xl: var(--tipo-3xl);
  --type-4xl: var(--tipo-4xl);
  --lh-tight: var(--lh-compacto);
  --lh-relaxed: var(--lh-amplo);
  --background-color: var(--cor-fundo);
  --default-color: var(--cor-texto);
  --heading-color: var(--cor-titulo);
  --accent-color: var(--cor-destaque);
  --surface-color: var(--cor-superficie);
  --contrast-color: var(--cor-contraste);
  --section-padding-y: var(--espaco-secao-y);
  --section-gap: var(--espaco-gap);
  --title-gap: var(--espaco-titulo);
  --header-offset: var(--offset-header);

  scroll-behavior: smooth;
}

/* ============================================================
   Variantes de tema
   ============================================================ */
.light-background {
  --cor-fundo: #0c114a;
  --cor-superficie: #131b76;
  --background-color: #0c114a;
  --surface-color: #131b76;
}

.dark-background {
  --cor-fundo: #01020e;
  --cor-texto: #ffffff;
  --cor-titulo: #ffffff;
  --cor-superficie: #252525;
  --cor-contraste: #ffffff;
  --background-color: #01020e;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* ============================================================
   Reset e base
   ============================================================ */
html {
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--cor-texto);
  background-color: var(--cor-fundo);
  font-family: var(--fonte-padrao);
}

/* Grade de partículas animada no fundo — abrange toda a página */
body .hero-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, #1482bd, transparent 75%) 2px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.1) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.1) 100%);
  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;
  animation: ondaLuz 4s linear infinite;
  z-index: 0;
}

a {
  color: var(--cor-destaque);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--cor-destaque), transparent 25%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--cor-titulo);
  font-family: var(--fonte-titulo);
}

/* ============================================================
   Seções globais
   ============================================================ */
section {
  padding: var(--espaco-secao-y) 0;
  overflow: hidden;
}

/*
  Compensação do header fixo nas páginas secundárias (tudo exceto a home).
  Aplique a classe .pagina-interna no <main> das blades que não são home.
*/
.pagina-interna {
  /* padding-top: var(--offset-header); */
}

/* ============================================================
   Títulos de seção — base unificada
   Variantes: .section-title (centralizado), .section-title-obj (inline),
              .section-titulo (esquerda sem flex)
   ============================================================ */
.section-title h2,
.section-title h1,
.section-title-obj h2,
.section-title-obj h1,
.section-titulo h1,
.section-titulo h2 {
  font-size: var(--tipo-2xl);
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--fonte-titulo);
  line-height: var(--lh-compacto);
}

.section-title p,
.section-title-obj p,
.section-titulo p {
  font-size: var(--tipo-body);
  line-height: var(--lh-amplo);
  margin-bottom: 0;
}

/* Variante 1: centralizado / alinhado à esquerda */
.section-title {
  padding-bottom: var(--espaco-titulo);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.section-title p {
  max-width: 100%;
  text-align: start;
}

/* Variante 2: inline com elemento à direita (ex: constelação) */
.section-title-obj {
  padding-bottom: var(--espaco-titulo);
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.section-title-obj p {
  width: 35dvw;
}

/* ============================================================
   Utilitários compartilhados
   ============================================================ */

/* Legenda de status (tabelas, roadmap) */
.status-legend {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

/* Badge padrão do projeto */
.badge {
  color: #04c4d9;
  background: #04c4d938;
  border-color: #04C4D9;
}

span.badge {
  align-items: center;
  font-size: var(--tipo-xs);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid;
  white-space: nowrap;
}

/* Tabelas dark */
.table,
.table th,
.table td {
  background-color: var(--cor-superficie) !important;
  color: var(--cor-texto) !important;
  border-color: #2c2c4a;
}

.table thead th {
  background-color: #1f1f3b !important;
  color: var(--cor-contraste) !important;
}

/* Descrição auxiliar com ênfase */
.desc {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--cor-texto), transparent 30%);
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.desc strong {
  font-weight: bold;
  display: inline;
}

/* Cores de status */
.color-laranja {
  background-color: rgba(198, 88, 9, 0.49);
  color: #d65f0a;
}

.color-verde {
  background-color: #00db7845;
  color: #00db7896;
}

.color-amarelo {
  background-color: #ffd33261;
  color: #ffd332a7;
}

.color-vermelho {
  background-color: #9c1c057f;
  color: #e13a1d;
}

.color-azul {
  background-color: rgba(4, 196, 217, 0.12);
  color: #a8f0f7;
  border-color: rgba(4, 196, 217, 0.35);
}

/* Estado oculto — controlado via JS */
.is-hidden {
  display: none !important;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  color: var(--cor-texto);
  transition: all 0.4s ease;
  justify-content: center;
  position: relative;
  height: 4.5rem;
}

.header .header-container {
  position: fixed;
  background: rgba(5, 10, 35, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  /* width: clamp(37.5rem, 49%, 56.25rem); */
  gap: clamp(0.2rem, 3vw, 2.75rem);
  margin-top: 20px;
  padding: 0 26px;
  z-index: 1000;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* Fio de luz superior — glow ciano suave */
.header .header-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(to right, transparent, rgba(4, 196, 217, 0.35), transparent);
  pointer-events: none;
}

.header .logo {
  line-height: 1;
  flex-shrink: 0;
  min-width: 0;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo .sitename {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
  color: rgba(232, 231, 247, 0.9);
  font-family: var(--fonte-titulo);
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ============================================================
   Footer
   ============================================================ */
#footer {
  position: relative;
}

.footer-links {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.footer a.text-white {
  font-size: 1rem;
  text-decoration: none;
}

.footer-details {
  background-color: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.footer .bi {
  vertical-align: middle;
}

.footer-back {
  background-color: #02345f;
  z-index: 1000;
}

.footer-logo {
  max-width: 350px;
  height: auto;
}

.footer-gap {
  gap: 80px;
}

.footer-p {
  max-width: 190px;
}

/* Coração animado no rodapé */
.heart-icon {
  color: red;
  transition: transform 0.3s, color 0.3s;
  cursor: pointer;
  display: inline-block;
}

.heart-icon:hover {
  animation: pulse 1s infinite;
}

/* ============================================================
   Preloader
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--cor-fundo);
  transition: all 0.6s ease-out;
}

#preloader::before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--cor-destaque) transparent var(--cor-destaque) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}