/* Estilos customizados para o Vértice ERP */
/* A paleta está no tailwind.config, no index.html */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }

/* Barra de rolagem */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Campo de formulário padrão */
.v-input {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 0.5rem;
    background: #FFFFFF;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    color: #1C1E26;
    transition: border-color .15s, box-shadow .15s;
}
.v-input:focus { outline: none; border-color: #FF6B35; box-shadow: 0 0 0 3px rgba(255, 107, 53, .18); }
.v-input::placeholder { color: #94A3B8; }

:focus-visible { outline: 2px solid #FF6B35; outline-offset: 2px; }

/* Aviso flutuante */
#toast { animation: subir .25s ease-out; }
@keyframes subir { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #toast { animation: none; }
}

/* Utilitário extra */
.glass-effect { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); }

/* Impressão do termo de responsabilidade: só o documento sai no papel */
@media print {
    body * { visibility: hidden !important; }
    #termoImpressao, #termoImpressao * { visibility: visible !important; }
    #termoImpressao { position: absolute; left: 0; top: 0; width: 100%; border: none !important; padding: 0 !important; }
    @page { margin: 18mm; }
}

/* ------------------------------------------------------------------
   Home: movimento e detalhes visuais
   ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
[data-rv] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
[data-rv].is-in { opacity: 1; transform: none; }
[data-rv].ja { transition: none; }

.site-cabecalho .barra { background: transparent; }
.site-cabecalho.rolou .barra { max-width: 64rem; margin-top: .75rem; height: 3.5rem; border-radius: 9999px; background: rgba(28,30,38,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); }

.grade-fundo { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 60% 35%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse at 60% 35%, #000 25%, transparent 72%); }
.texto-contorno { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.14); }
.texto-contorno-escuro { color: transparent; -webkit-text-stroke: 1.5px #1C1E26; }

@keyframes marquee { to { transform: translateX(-50%); } }
.marquee { animation: marquee 42s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.flutua { animation: flutua 6.5s ease-in-out infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(255,107,53,.55); } 100% { box-shadow: 0 0 0 22px rgba(255,107,53,0); } }
.ponto-pulso { animation: pulso 1.8s ease-out infinite; }
.sublinhado path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: traco 1.3s .7s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes traco { to { stroke-dashoffset: 0; } }
.fluxo-linha { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: traco-fluxo 2.4s ease-out forwards; }
@keyframes traco-fluxo { to { stroke-dashoffset: 0; } }
/* Ícones dos módulos se redesenham ao passar o mouse */
.ico-vivo svg * { stroke-dasharray: 90; stroke-dashoffset: 0; }
.group:hover .ico-vivo svg * { animation: desenha 1.1s ease forwards; }
@keyframes desenha { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }
.tilt-alvo { transition: transform .4s ease-out; transform-style: preserve-3d; }
[data-escala] { transform-origin: center top; will-change: transform; }
[data-galeria], [data-hero-camada], [data-gigante] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-rv] { opacity: 1; transform: none; transition: none; }
    .marquee, .flutua, .ponto-pulso, .sublinhado path, .fluxo-linha, .group:hover .ico-vivo svg * { animation: none; stroke-dashoffset: 0; }
}
