/* ==========================================================================
   Estilos globais — Hub Político
   Paleta baseada no site oficial de Nikolas Ferreira (nikolasferreira.com.br):
   dourado como cor de marca, azul como acento secundário, verde reservado
   para status de "entregue/sucesso" nos cards de prestação de contas.
   ========================================================================== */

:root {
  --color-bg: #0279bb;
  --color-bg-alt: #056698;
  --color-navy: #04223d;
  --color-gold: #fbd216;
  --color-gold-dark: #e8b923;
  --color-gold-hi: #ffe45c;
  --color-blue: #2458a4;
  --color-blue-bright: #3572c4;
  --color-green: #22a651;
  --color-ink: #171717;
  --font-display: "Montserrat", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "Montserrat", "Plus Jakarta Sans", system-ui, sans-serif;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  background-color: var(--color-bg);
  position: relative;
}

/* ==========================================================================
   Faixas de seção — cada <section> assume uma cor chapada própria
   (em vez de um único fundo com gradiente atravessando a página toda).
   ========================================================================== */
.section-dark {
  background: var(--color-bg);
  position: relative;
}
.section-dark-alt {
  background: var(--color-bg-alt);
  position: relative;
}
.section-white {
  background: #ffffff;
  color: #14161d;
}
.section-gold {
  background: var(--color-gold);
  color: var(--color-ink);
}

/* Grão sutil sobre todo o site — cria profundidade sem pesar a página */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Rótulos, badges, números — tratamento monoespaçado para reforçar o tom "dados/transparência" */
.font-data {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

::selection {
  background-color: var(--color-gold);
  color: var(--color-ink);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* ==========================================================================
   Componentes
   ========================================================================== */

.glass {
  background: rgba(4, 34, 61, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-hover {
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.glass-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 210, 22, 0.35);
  background: rgba(4, 34, 61, 0.75);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-gold);
  color: var(--color-ink);
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 0 0 0 rgba(251, 210, 22, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--color-gold-hi);
  box-shadow: 0 10px 30px -8px rgba(251, 210, 22, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.06);
}

/* Botões para uso sobre a faixa dourada (.section-gold) */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-ink);
  color: var(--color-gold);
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn-dark:hover {
  transform: translateY(-2px);
  background-color: #2a2a2a;
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--color-ink);
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 23, 23, 0.35);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.btn-outline-dark:hover {
  border-color: rgba(23, 23, 23, 0.6);
  background-color: rgba(23, 23, 23, 0.08);
}

/* Cards claros — usados dentro de .section-white */
.glass-light {
  background: rgba(20, 22, 29, 0.03);
  border: 1px solid rgba(20, 22, 29, 0.08);
}
.glass-light-hover {
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.glass-light-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 88, 164, 0.35);
  background: rgba(20, 22, 29, 0.05);
}

/* Kicker do herói — linha editorial acima do título, sem cara de "badge de SaaS" */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  font-weight: 500;
}
.hero-kicker-bar {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-gold);
  flex-shrink: 0;
}
.hero-kicker strong {
  color: #fff;
  font-weight: 700;
}
.hero-kicker .kicker-number {
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==========================================================================
   Header — "dynamic island" flutuante no desktop
   No mobile permanece uma barra fixa de topo (fundo escuro, como antes).
   A partir de md, vira uma cápsula branca centralizada e destacada do topo.
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.site-header.is-hidden {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}
.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 5rem;
  padding: 0 1.5rem;
  background: rgba(4, 34, 61, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
}
.site-header__brand {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  z-index: 2;
}
.site-header__logo-img {
  width: 10rem;
  height: 10rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}
.site-header__nav {
  display: none;
}
.site-header__cta {
  display: none;
}
.site-header__right {
  display: contents;
}

/* Rótulo pequeno não-clicável + separador do menu (padrão nikolasferreira.com.br) */
.nav-kicker {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-blue);
  white-space: nowrap;
}
.nav-separator {
  width: 1px;
  height: 1.25rem;
  background: rgba(23, 23, 23, 0.15);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .site-header {
    top: 1.75rem;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
  }
  .site-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    width: max-content;
    max-width: 92vw;
    height: 3.75rem;
    padding: 0 0.75rem 0 1.5rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header__nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .site-header__nav--left {
    gap: 0.5rem;
    justify-content: flex-end;
  }
  .site-header__right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }
  .site-header__brand {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    align-self: flex-start;
    margin-top: -1.1rem;
    flex-shrink: 0;
    z-index: 5;
  }
  .island-link {
    color: var(--color-blue);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
  }
  .island-link:hover,
  .island-link.active {
    background: var(--color-gold);
    color: var(--color-ink);
  }
  .site-header__cta {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-transform: uppercase;
    background: var(--color-blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  .site-header__cta:hover {
    background: var(--color-gold);
    color: var(--color-ink);
    transform: translateY(-1px);
  }
}

/* Mapa de municípios (Prestação de Contas) — contornos reais (IBGE) */
.es-mun {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  stroke-linejoin: round;
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.es-mun:hover {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.4);
}
.es-mun--highlight {
  fill: var(--color-gold);
  fill-opacity: 0.85;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  cursor: pointer;
}
.es-mun--highlight:hover {
  fill-opacity: 1;
  stroke: var(--color-gold-hi);
}

/* Mapa de municípios (Prestação de Contas) */
.map-pin__dot {
  fill: var(--color-gold);
  stroke: var(--color-ink);
  stroke-width: 1.5;
  cursor: pointer;
  transition: r 0.15s ease;
}
.map-pin:hover .map-pin__dot {
  fill: var(--color-gold-hi);
}
.map-pin__pulse {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  opacity: 0.55;
  transform-origin: center;
  animation: pinPulse 2.4s ease-out infinite;
}
@keyframes pinPulse {
  0% { r: 7; opacity: 0.55; }
  100% { r: 20; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin__pulse { animation: none; opacity: 0; }
}

/* Badges de status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid;
}
/* Entregue / Sancionado — sucesso */
.badge-mint {
  color: var(--color-green);
  background: rgba(34, 166, 81, 0.12);
  border-color: rgba(34, 166, 81, 0.35);
}
/* Em execução / Em tramitação — pendente */
.badge-amber {
  color: var(--color-gold);
  background: rgba(251, 210, 22, 0.12);
  border-color: rgba(251, 210, 22, 0.35);
}
/* Aprovado — intermediário */
.badge-royal {
  color: #7fb2e8;
  background: rgba(4, 34, 61, 0.65);
  border-color: rgba(127, 178, 232, 0.45);
}

/* Placeholder de imagem (substituir por fotos reais) */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: repeating-linear-gradient(
    135deg,
    #04223d,
    #04223d 12px,
    #052a4a 12px,
    #052a4a 24px
  );
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

/* Nav (mobile menu) */
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #fff;
}
.nav-link.active {
  color: var(--color-gold);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Timeline (Minha História) */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
}
.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(251, 210, 22, 0.15);
}

/* Filtros (chips) */
.filter-chip {
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  background: rgba(4, 34, 61, 0.55);
}
.filter-chip:hover {
  border-color: rgba(251, 210, 22, 0.4);
  color: #fff;
}
.filter-chip.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
}

/* Botão flutuante do WhatsApp ("Victor Zap") */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsappPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 34px -8px rgba(37, 211, 102, 0.8);
}
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45), 0 12px 28px -8px rgba(37, 211, 102, 0.65); }
  50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), 0 12px 28px -8px rgba(37, 211, 102, 0.65); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(3px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Utilidade: esconder scrollbar em carrosséis horizontais, se usados */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   Título com acento em gradiente — usado nos H1 de cada página
   ========================================================================== */
.text-accent-gradient {
  background: linear-gradient(100deg, #ffffff 35%, var(--color-gold) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Entrada orquestrada do herói (page-load, CSS-only)
   Um único momento de alto impacto no carregamento é preferível a
   micro-interações espalhadas pela página.
   ========================================================================== */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-stagger > * {
  opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.18s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.32s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.46s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.6s; }

.hero-media {
  opacity: 0;
  animation: heroReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

/* Flutuação lenta das manchas de fundo — atmosfera, não distração */
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 3%) scale(1.05); }
}
.blob-float {
  animation: blobFloat 14s ease-in-out infinite;
}
.blob-float-slow {
  animation: blobFloat 20s ease-in-out infinite reverse;
}

@media (prefers-reduced-motion: reduce) {
  .hero-stagger > *,
  .hero-media,
  .blob-float,
  .blob-float-slow,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
