/* =============================================================================
   Estilos das páginas autônomas da Lirvo (/documentacao, /contato).
   Estas páginas não carregam o bundle React: são HTML servido direto, o que
   evita que o React Router as trate como rota desconhecida e renderize o 404.
   Os tokens repetem a identidade do site principal.
   ========================================================================== */

:root {
  --lv-blue: #1842B4;
  --lv-green: #0B7F58;
  --lv-purple: #783090;
  --lv-navy: #184884;
  --lv-bg: #FBFAF9;
  --lv-ink: #0E192A;
  --lv-muted: #5B6675;
  --lv-line: #E6E4E0;
  --lv-grad: linear-gradient(135deg, var(--lv-navy), var(--lv-purple));
  --lv-nav: 65px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lv-bg);
  color: var(--lv-ink);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--lv-blue); outline-offset: 3px; border-radius: 4px; }

.lv-wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Navegação ---------- */
.pg-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--lv-nav);
  background: rgba(251,250,249,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--lv-line);
}
.pg-nav .lv-wrap {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.pg-marca {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
  text-decoration: none;
}
.pg-marca img { width: 30px; height: 30px; }
.pg-links { display: flex; align-items: center; gap: 1.5rem; }
.pg-links a {
  font-size: .9rem; font-weight: 500; color: var(--lv-muted);
  text-decoration: none; transition: color .18s ease;
}
.pg-links a:hover { color: var(--lv-ink); }
.pg-links .pg-cta {
  background: var(--lv-green); color: #fff; font-weight: 600;
  padding: .6rem 1.1rem; border-radius: 10px;
}
.pg-links .pg-cta:hover { color: #fff; filter: brightness(1.12); }
@media (max-width: 720px) {
  .pg-links a:not(.pg-cta) { display: none; }
}

/* ---------- Cabeçalho da página ---------- */
.pg-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--lv-line);
  background: #fff;
}
.pg-migalha {
  font-size: .82rem; color: var(--lv-muted); margin: 0 0 1.1rem;
}
.pg-migalha a { color: var(--lv-blue); text-decoration: none; }
.pg-migalha a:hover { text-decoration: underline; }
.pg-hero h1 {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -.03em;
  margin: 0 0 1rem; max-width: 20ch;
}
.pg-hero p {
  font-size: 1.075rem; line-height: 1.6; color: var(--lv-muted);
  max-width: 62ch; margin: 0;
}

/* ---------- Corpo ---------- */
.pg-corpo { padding: 3.5rem 0 5rem; }
.pg-corpo h2 {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.025em;
  line-height: 1.2; margin: 3.25rem 0 .9rem;
}
.pg-corpo h2:first-child { margin-top: 0; }
.pg-corpo h3 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em;
  margin: 1.9rem 0 .5rem;
}
.pg-corpo p { margin: 0 0 1rem; max-width: 68ch; color: var(--lv-muted); }
.pg-corpo p strong, .pg-corpo li strong { color: var(--lv-ink); font-weight: 600; }
.pg-corpo ul { margin: 0 0 1.25rem; padding-left: 1.15rem; max-width: 68ch; color: var(--lv-muted); }
.pg-corpo li { margin-bottom: .5rem; }

/* Índice lateral */
.pg-layout { display: grid; gap: 3rem; grid-template-columns: 220px 1fr; align-items: start; }
.pg-indice { position: sticky; top: calc(var(--lv-nav) + 2rem); }
.pg-indice h2 {
  font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--lv-muted);
  margin: 0 0 .9rem; font-family: "DM Sans", sans-serif;
}
.pg-indice ol { list-style: none; margin: 0; padding: 0; counter-reset: i; }
.pg-indice li { counter-increment: i; }
.pg-indice a {
  display: block; padding: .42rem 0 .42rem 1.6rem; position: relative;
  font-size: .885rem; color: var(--lv-muted); text-decoration: none;
  border-left: 2px solid var(--lv-line); transition: color .18s ease, border-color .18s ease;
}
.pg-indice a::before {
  content: counter(i, decimal-leading-zero);
  position: absolute; left: .7rem; font-size: .68rem; font-weight: 700;
  color: var(--lv-purple); top: .58rem;
}
.pg-indice a:hover { color: var(--lv-ink); border-left-color: var(--lv-purple); }
@media (max-width: 900px) {
  .pg-layout { grid-template-columns: 1fr; gap: 2rem; }
  .pg-indice { position: static; }
  .pg-indice ol { display: flex; flex-wrap: wrap; gap: .4rem; }
  .pg-indice a { border-left: 0; border: 1px solid var(--lv-line); border-radius: 8px; padding: .4rem .7rem .4rem 1.9rem; background: #fff; }
  .pg-indice a::before { left: .65rem; top: .5rem; }
}

/* ---------- Cartões ---------- */
.pg-cards {
  display: grid; gap: 1.1rem; margin: 1.5rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.pg-card {
  background: #fff; border: 1px solid var(--lv-line);
  border-radius: 16px; padding: 1.6rem 1.5rem;
}
.pg-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.pg-card p { margin: 0; font-size: .91rem; line-height: 1.58; }
.pg-card .pg-ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--lv-grad); color: #fff;
}
.pg-card .pg-ico svg { width: 20px; height: 20px; }

/* ---------- Aviso ---------- */
.pg-aviso {
  background: #fff; border: 1px solid var(--lv-line);
  border-left: 3px solid var(--lv-purple);
  border-radius: 12px; padding: 1.25rem 1.4rem; margin: 1.75rem 0;
}
.pg-aviso p { margin: 0; font-size: .93rem; }

/* ---------- Botões ---------- */
.pg-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--lv-green); color: #fff; font-weight: 600; font-size: .95rem;
  text-decoration: none; padding: .82rem 1.5rem; border-radius: 11px;
  max-width: 100%; text-align: center;
  transition: filter .18s ease, transform .18s ease;
}
.pg-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.pg-btn svg { width: 16px; height: 16px; flex: none; }
.pg-btn-2 {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  color: var(--lv-blue); border-bottom: 1.5px solid rgba(24,66,180,.3);
  padding-bottom: 1px;
}
.pg-btn-2:hover { border-bottom-color: var(--lv-blue); }
.pg-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-top: 2rem; }

/* ---------- Contato ---------- */
.pg-contato-grid {
  display: grid; gap: 1.25rem; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.pg-canal {
  background: #fff; border: 1px solid var(--lv-line);
  border-radius: 18px; padding: 1.9rem 1.75rem;
  display: flex; flex-direction: column;
}
.pg-canal.is-destaque { background: var(--lv-grad); border-color: transparent; color: #fff; }
.pg-canal.is-destaque p { color: rgba(255,255,255,.82); }
.pg-canal.is-destaque .pg-btn { background: #fff; color: var(--lv-navy); }
.pg-canal.is-destaque .pg-btn:hover { filter: brightness(.94); }
.pg-canal h3 { margin: 0 0 .5rem; font-size: 1.12rem; }
.pg-canal p { margin: 0 0 1.5rem; font-size: .93rem; line-height: 1.6; }
.pg-canal .pg-btn, .pg-canal .pg-valor { margin-top: auto; }
.pg-valor {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em;
  text-decoration: none;
}

/* ---------- Rodapé ---------- */
.pg-rodape {
  border-top: 1px solid var(--lv-line); background: #fff;
  padding: 3rem 0 2rem; font-size: .9rem; color: var(--lv-muted);
}
.pg-rodape .lv-wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
.pg-rodape a { color: var(--lv-muted); text-decoration: none; }
.pg-rodape a:hover { color: var(--lv-ink); }
.pg-rodape nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pg-copy { margin: 2rem 0 0; font-size: .85rem; }

@media (max-width: 640px) {
  .pg-hero { padding: 3rem 0 2.25rem; }
  .pg-corpo { padding: 2.5rem 0 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
