/* Fonte Outfit hospedada no próprio site (fonte variável, pesos 400 a 800) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Guinada Digital — estilos complementares ao Tailwind (utilitário via CDN) */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Garante que nada estoure a largura da tela no mobile */
img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Área de toque mínima (44x44) para links/botões de navegação e CTAs */
.tap-target {
  min-height: 44px;
  min-width: 44px;
}

/* Sublinhado animado nos links do menu principal (desktop) */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  transition: right 0.25s ease;
}
.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  right: 0;
}

/* Barra de consentimento LGPD */
#consent-bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#consent-bar[hidden] {
  display: none !important;
}

/* Menu mobile: evita flash de conteúdo antes do Alpine iniciar */
[x-cloak] {
  display: none !important;
}

/* Foco visível acessível */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #FE6C0E;
  outline-offset: 2px;
}

/* Accordion do FAQ */
.faq-icon {
  transition: transform 0.2s ease;
}

/* Header: sombra sutil aparece só depois de rolar a página (feedback de profundidade) */
header {
  transition: box-shadow 0.25s ease;
}
header.is-scrolled {
  box-shadow: 0 4px 16px -4px rgba(5, 42, 110, 0.12);
}

/* Entrada única do Hero ao carregar a página (um só momento autoral, não repetido) */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-rise {
  animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-rise-1 { animation-delay: 0s; }
.hero-rise-2 { animation-delay: 0.08s; }
.hero-rise-3 { animation-delay: 0.16s; }
.hero-rise-4 { animation-delay: 0.24s; }

/* Mockup flutuante do Hero: leve balanço contínuo, dá sensação de "vivo" */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-float {
  animation: hero-float 5s ease-in-out infinite;
}
.hero-float-badge {
  animation: hero-float 5s ease-in-out infinite;
  animation-delay: 0.4s;
}

/* Glows de fundo do Hero: pulso bem sutil */
@keyframes hero-orb-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}
.hero-orb {
  animation: hero-orb-pulse 8s ease-in-out infinite;
}
.hero-orb-2 {
  animation-delay: 2s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-rise,
  .hero-float,
  .hero-float-badge,
  .hero-orb {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* Scrollbar horizontal só onde for realmente necessário (tabelas) */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* ---------- Números da busca local (home) ---------- */
.stat-pre .stat-icon { opacity: 0; transform: rotate(-200deg) scale(0.4); }
.stat-in .stat-icon {
  animation: stat-spin-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both, stat-float 3.6s ease-in-out 1s infinite;
}
@keyframes stat-spin-in {
  from { opacity: 0; transform: rotate(-200deg) scale(0.4); }
  to   { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes stat-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .stat-in .stat-icon { animation: none; }
}
