/* CNJA - camada de movimento (adicionada sobre o clone, sem alterar o layout original) */
html { scroll-behavior: smooth; }
::selection { background: #1f3a5f; color: #f3d27a; }

/* ---------- revelacao ao rolar ---------- */
.lx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.lx-reveal.lx-in { opacity: 1; transform: none; }

/* ---------- entrada do topo (hero) ---------- */
@keyframes lxFadeUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes lxZoomIn { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: scale(1); } }
.lx-hero-logo { animation: lxZoomIn 1s cubic-bezier(.22,.61,.36,1) both; }
.lx-hero-item { animation: lxFadeUp .9s cubic-bezier(.22,.61,.36,1) both; }

/* ---------- particulas flutuantes do hero ---------- */
.lx-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.lx-dot { position: absolute; bottom: -12px; border-radius: 9999px; opacity: 0; animation: lxFloat linear infinite; }
@keyframes lxFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  12% { opacity: .75; }
  55% { opacity: .5; }
  100% { transform: translateY(-92vh) translateX(26px) scale(.55); opacity: 0; }
}

/* ---------- cartoes: vida ao passar o mouse ---------- */
.lx-card { transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease; }
.lx-card:hover { transform: translateY(-7px); box-shadow: 0 22px 44px -18px rgba(15, 35, 65, .35); }
.lx-card:hover img { transform: scale(1.05); }
.lx-card img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }

/* ---------- botoes e links ---------- */
a, button { transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease; }
section a:hover, section button:hover { transform: translateY(-2px); }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: #c9a227; transition: width .35s ease; }
nav a:hover::after { width: 100%; }

/* ---------- cabecalho com sombra ao rolar ---------- */
.lx-header-shadow { box-shadow: 0 10px 30px -12px rgba(15, 35, 65, .35) !important; }

/* ---------- botao voltar ao topo ---------- */
#lx-topo { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 46px; height: 46px; border-radius: 9999px;
  background: #16283f; color: #f3d27a; border: 1px solid rgba(243,210,122,.5); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease, background .3s ease;
  box-shadow: 0 14px 30px -12px rgba(15,35,65,.55); }
#lx-topo.lx-show { opacity: 1; pointer-events: auto; transform: none; }
#lx-topo:hover { background: #1f3a5f; transform: translateY(-3px); }

/* ---------- selos e imagens com leve brilho ao passar o mouse ---------- */
footer img, section img { transition: transform .5s ease, filter .5s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lx-reveal { opacity: 1; transform: none; transition: none; }
  .lx-hero-logo, .lx-hero-item, .lx-dot { animation: none; }
  .lx-card:hover { transform: none; }
}
