/* ==========================================================================
   DocVia Assessoria — style.css
   Camada de estilo customizada que complementa o Tailwind.
   Mantida enxuta de propósito: tudo que o Tailwind resolve fica no HTML.
   ========================================================================== */

:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #123a6b;
  --navy-600: #1b4f9c;
  --gold-500: #f5b400;
  --gold-400: #ffc726;
  --ink: #16202e;
  --muted: #5b6b7f;
  --line: #e2e8f0;
}

/* --------------------------------------------------------------------------
   Base / tipografia
   Stack de fonte do sistema: zero requisição de rede, zero FOUT.
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Compensa o header fixo ao navegar por âncoras */
section[id] { scroll-margin-top: 92px; }

/* Acessibilidade: foco visível e consistente */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --------------------------------------------------------------------------
   Identidade visual institucional
   -------------------------------------------------------------------------- */

/* Faixa tricolor fina no topo — assinatura "administrativa/governamental" */
.gov-stripe {
  height: 4px;
  background: linear-gradient(
    to right,
    var(--navy-800) 0 33.333%,
    #ffffff 33.333% 66.666%,
    var(--gold-500) 66.666% 100%
  );
}

/* Textura discreta de grid sobre o azul marinho do hero */
.grid-texture {
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Brilho dourado atrás do cartão do hero */
.gold-glow::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 180, 0, .28) 0%, transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

/* Marcador lateral dourado usado em títulos de seção */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--gold-500);
  vertical-align: middle;
  margin-right: 10px;
}

/* --------------------------------------------------------------------------
   Cards de serviço
   -------------------------------------------------------------------------- */
.service-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-500);
  box-shadow: 0 22px 44px -22px rgba(11, 37, 69, .45);
}

/* --------------------------------------------------------------------------
   FAQ — <details>/<summary> nativo (acordeão sem JavaScript)
   -------------------------------------------------------------------------- */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .chevron { transition: transform .22s ease; }
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-item[open] { border-color: var(--navy-700); }
.faq-item[open] summary { color: var(--navy-800); }

.faq-item[open] .faq-answer {
  animation: faqReveal .22s ease-out;
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Prints de conversa (mock de WhatsApp em HTML puro — sem imagens pesadas)
   -------------------------------------------------------------------------- */
.chat-shell {
  background: #e9e1d8;
  background-image:
    radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px);
  background-size: 18px 18px;
}
.bubble {
  position: relative;
  max-width: 86%;
  padding: 8px 11px 16px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
  word-break: break-word;
}
.bubble-in  { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.bubble-out { background: #d9fdd3; align-self: flex-end;  border-top-right-radius: 2px; }
.bubble time {
  position: absolute;
  right: 9px;
  bottom: 4px;
  font-size: 10px;
  color: #667781;
}
.bubble-out time::after {
  content: " ✓✓";
  color: #53bdeb;
  letter-spacing: -1px;
}

/* --------------------------------------------------------------------------
   Botão flutuante do WhatsApp
   -------------------------------------------------------------------------- */
.wa-float {
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .6);
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float:hover { animation-play-state: paused; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .6), 0 0 0 0 rgba(37, 211, 102, .45); }
  55%      { box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .6), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* --------------------------------------------------------------------------
   Revelação em scroll (progressive enhancement via IntersectionObserver)
   Sem JS, o conteúdo já nasce visível — nada depende do script.
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease-out, transform .55s ease-out;
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Utilidades de página de oferta
   -------------------------------------------------------------------------- */
.ticker-digit {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.strike-soft {
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, .85);
  text-decoration-thickness: 2px;
}

/* Scrollbar discreta nos carrosséis horizontais do mobile */
.scroll-x {
  scrollbar-width: thin;
  scrollbar-color: var(--navy-700) transparent;
}
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--navy-700); border-radius: 99px; }

@media print {
  .no-print, .wa-float, header, footer { display: none !important; }
}
