/* ==========================================================================
   HRC Inteligência Empresarial — hrc.dev.br
   Paleta oficial: laranja #F8780F sobre preto #0B0A08.
   Todos os pares de cor usados aqui foram medidos em >= 4.5:1 (texto)
   e >= 3:1 (bordas de controle e ícones), conforme WCAG 2.1 AA.
   ========================================================================== */

:root {
  --bg:           #0B0A08;
  --surface:      #16130F;
  --surface-2:    #0F0D0B;
  --line:         #332C24;   /* separador decorativo */
  --line-strong:  #6E6357;   /* borda de campo — 3.4:1 sobre --surface */
  --text:         #F5F1EC;   /* 17.6:1 */
  --muted:        #C7BEB3;   /* 10.3:1 */
  --brand:        #F8780F;   /* 7.2:1 */
  --brand-ink:    #12100E;   /* texto sobre laranja — 6.9:1 */
  --brand-soft:   rgba(248, 120, 15, .14);
  --radius:       14px;
  --radius-lg:    22px;
  --wrap:         1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* brilho difuso do fundo — puramente decorativo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46rem 26rem at 50% -8rem, rgba(248,120,15,.16), transparent 70%),
    radial-gradient(38rem 30rem at 108% 106%, rgba(248,120,15,.10), transparent 70%);
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); }
a:hover { color: #FF9440; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* --------------------------------------------------------------------------
   Acessibilidade — foco, leitura por leitor de tela, pular navegação
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--brand-ink);
  padding: 12px 18px; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: var(--brand-ink); }

/* Anel de foco visível em qualquer elemento interativo.
   Laranja sobre preto dá 7.2:1 — bem acima do mínimo de 3:1. */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
/* mantém o anel legível quando o elemento está sobre fundo laranja */
.btn-primary:focus-visible { outline-color: #FFFFFF; }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */

h1, h2, h3 { line-height: 1.18; margin: 0; letter-spacing: -.015em; }

h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.4rem);
  font-weight: 800;
  margin-top: 14px;
}
h1 .hl { color: var(--brand); display: inline-block; }

h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); font-weight: 700; margin-top: 10px; }
h3 { font-size: 1rem; font-weight: 700; }

.eyebrow {
  margin: 0;
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid rgba(248,120,15,.42);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 13px;
}

.lead { margin: 18px 0 0; max-width: 40ch; font-size: 1.08rem; color: var(--muted); }
.section-lead { margin: 12px 0 0; max-width: 62ch; color: var(--muted); }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,10,8,.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-hrc { font-weight: 800; letter-spacing: .12em; font-size: .96rem; }
.brand-full { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }

.nav-desktop { margin-left: auto; }
.nav-desktop ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  color: var(--muted); text-decoration: none; font-size: .93rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-desktop a:hover { color: var(--text); border-bottom-color: var(--brand); }

.header-cta { margin-left: 4px; }

.menu-toggle {
  display: none; align-items: center; gap: 8px;
  margin-left: auto;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 9px 13px; font: inherit; font-size: .9rem; cursor: pointer;
}
.menu-toggle:hover { background: rgba(255,255,255,.05); }

.nav-mobile { display: none; border-top: 1px solid var(--line); }
.nav-mobile.aberto { display: block; }
.nav-mobile ul {
  list-style: none; margin: 0; padding: 12px 20px 18px;
  display: grid; gap: 8px; max-width: var(--wrap); margin-inline: auto;
}
.nav-mobile a {
  display: block; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 16px; font-size: .95rem;
}
.nav-mobile a:hover { background: rgba(255,255,255,.05); }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--radius);
  padding: 12px 20px;
  font: inherit; font-size: .95rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  min-height: 46px;               /* alvo de toque confortável */
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #FF9026; color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--text); }
.btn-block { width: 100%; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding: 68px 0 62px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 46px; align-items: center; }

.pillars {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 22px;
  font-size: .86rem; color: var(--muted);
}
.pillars li { display: flex; align-items: center; gap: 8px; }
.pillars .ico { color: var(--brand); }

.hero-media img {
  width: 100%; display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 60px rgba(0,0,0,.55);
}

/* --------------------------------------------------------------------------
   Seções e cartões
   -------------------------------------------------------------------------- */

.band { padding: 62px 0; border-bottom: 1px solid var(--line); }
.band-last { border-bottom: 0; }

.two-col { display: grid; gap: 42px; align-items: center; }

.cards { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
}
.card:hover { border-color: rgba(248,120,15,.5); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card-sm h3 { color: var(--text); }

.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.card-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bullets { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; color: var(--muted); }
.bullets li { position: relative; padding-left: 17px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.bullets-2 { grid-template-columns: 1fr; }

.panel {
  background: linear-gradient(150deg, var(--surface), #100E0B);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.panel h3 { margin-bottom: 4px; }

.stats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 12px; text-align: center;
}
.stats strong { display: block; font-size: 1.12rem; }
.stats span { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* --------------------------------------------------------------------------
   Contato e formulário
   -------------------------------------------------------------------------- */

.contato-dados {
  margin-top: 30px; font-style: normal;
  font-size: .9rem; color: var(--muted); line-height: 1.8;
}
.contato-dados strong { color: var(--text); }

.campo { display: grid; gap: 6px; margin-top: 16px; }
.campo label { font-size: .88rem; font-weight: 600; color: var(--text); }
.campo .opt { font-weight: 400; color: var(--muted); }

.campo input,
.campo textarea {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit; font-size: .95rem;
  min-height: 46px;
}
.campo textarea { resize: vertical; line-height: 1.55; }
.campo input:hover, .campo textarea:hover { border-color: #877A6B; }

/* validação: nunca só pela cor — o texto de status também é anunciado */
.campo input[aria-invalid="true"],
.campo textarea[aria-invalid="true"] { border-color: #FF8A6B; border-width: 2px; }

.form-nota { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }

.form-status { margin: 12px 0 0; font-size: .88rem; min-height: 1.2em; }
.form-status.erro { color: #FFA98F; font-weight: 600; }
.form-status.ok   { color: #8BE39B; font-weight: 600; }

.aviso {
  background: var(--brand-soft); border: 1px solid rgba(248,120,15,.42);
  border-radius: var(--radius); padding: 13px 16px; font-size: .88rem; color: var(--text);
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.footer-inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.brand-footer img { height: 30px; }
.footer-legal { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.75; }
.footer-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--muted); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Banner de consentimento (LGPD)
   Fica no rodapé da janela, não cobre o conteúdo em telas normais e os dois
   botões têm o mesmo peso visual — recusar não pode ser mais difícil que aceitar.
   -------------------------------------------------------------------------- */

.consentimento {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  padding: 14px;
  background: rgba(11,10,8,.97);
  border-top: 2px solid var(--brand);
  box-shadow: 0 -14px 40px rgba(0,0,0,.6);
}
.consentimento-caixa {
  max-width: var(--wrap); margin-inline: auto;
  display: grid; gap: 12px; align-items: center;
}
.consentimento h2 { font-size: 1rem; margin: 0; }
.consentimento p { margin: 0; font-size: .86rem; color: var(--muted); max-width: 78ch; }
.consentimento-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.consentimento .btn { padding: 10px 18px; min-height: 44px; }

@media (min-width: 900px) {
  .consentimento-caixa { grid-template-columns: 1fr auto; column-gap: 28px; }
  .consentimento h2 { grid-column: 1; }
  .consentimento p  { grid-column: 1; }
  .consentimento-acoes { grid-column: 2; grid-row: 1 / span 2; }
}

/* --------------------------------------------------------------------------
   Páginas de texto (privacidade, termos, 404)
   -------------------------------------------------------------------------- */

.doc { padding: 56px 0 72px; max-width: 74ch; }
.doc h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); }
.doc h2 { font-size: 1.15rem; margin-top: 36px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc .voltar { display: inline-flex; margin-top: 36px; }
.doc .atualizado { font-size: .82rem; }

.erro-404 { text-align: center; padding: 90px 0 100px; }
.erro-404 .cod { font-size: 4rem; font-weight: 800; color: var(--brand); line-height: 1; }

/* --------------------------------------------------------------------------
   Layout responsivo
   -------------------------------------------------------------------------- */

@media (min-width: 760px) {
  .hero-grid, .two-col { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .bullets-2 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; text-align: left; }
  .footer-legal { text-align: center; }
  .footer-nav { justify-self: end; }
}

@media (min-width: 1060px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 759px) {
  .nav-desktop, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding: 44px 0 40px; }
  .band { padding: 46px 0; }
  .stats { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Animação de entrada — desligada para quem pede menos movimento
   -------------------------------------------------------------------------- */

/* O conteúdo NUNCA depende do JavaScript para aparecer: só escondemos o bloco
   depois que o script confirma que consegue revelá-lo (classe .pronto no <html>).
   Sem JS, sem suporte a IntersectionObserver ou com o script bloqueado, tudo
   permanece visível. */
@media (prefers-reduced-motion: no-preference) {
  .pronto .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
  .pronto .reveal.visivel { opacity: 1; transform: none; }
}

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

/* --------------------------------------------------------------------------
   Alto contraste e impressão
   -------------------------------------------------------------------------- */

@media (forced-colors: active) {
  .btn, .card, .panel, .campo input, .campo textarea { border: 1px solid ButtonBorder; }
  .ico, .card-ico svg { forced-color-adjust: auto; }
}

@media print {
  body::before, .site-header, .nav-mobile, .hero-media, .form-status { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .panel { border: 1px solid #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
