/* Efeitos Liquid Glass (22/11/2026, sessão 05). Só transform, opacity e filtros leves. Sem movimento com prefers-reduced-motion. */

:root { --mola: cubic-bezier(.34, 1.45, .5, 1); --suave: cubic-bezier(.2, .8, .2, 1); --topo-alt: 58px; }

/* ---------- 1. cartões: profundidade, brilho que segue o toque/mouse e borda de luz ---------- */
.atalho, .cartao-ir, .card-mini, .card-geral, .item, .foto, .tabela-vigente, .ind-cartao, .mp-item, .rel-total, .adm-total, .resumo-tab > div,
.sim-resumo > div, .rec-cartao, .rec-item, .ind-faixa, .usr, .lat-conta, .titulo-emp { position: relative; isolation: isolate; }
/* camadas de profundidade: sombra de contato + sombra difusa + luz de baixo */
.atalho, .cartao-ir, .card-mini, .card-geral, .ind-cartao, .mp-item, .rel-total, .sim-resumo > div {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(255,255,255,.07), inset 0 -18px 28px -22px rgba(255,190,205,.35),
    0 1px 2px rgba(8,2,6,.35), 0 10px 24px rgba(8,2,6,.28), 0 26px 48px -20px rgba(8,2,6,.5);
}
/* brilho especular (segue --mx/--my) */
.luz::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.32), rgba(255,235,240,.1) 40%, transparent 70%);
  mix-blend-mode: screen; animation: luz-entra .35s var(--suave) both;
}
@keyframes luz-entra { from { opacity: 0; } }
/* borda com refração: anel fino que acende perto do dedo/mouse, com leve arco-íris */
.anel {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 3; padding: 1.5px; opacity: 0;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.95), rgba(255,214,224,.55) 30%, rgba(160,210,255,.3) 48%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity .3s var(--suave);
}
.luz > .anel { opacity: 1; }
/* leve 3D e elevação (só com mouse; os valores vêm do efeitos.js) */
@media (hover: hover) and (pointer: fine) {
  .atalho, .cartao-ir, .card-mini, .card-geral, .ind-cartao, .mp-item, .rel-total, .foto, .resumo-tab > div, .sim-resumo > div, .rec-cartao, .ind-faixa {
    transition: transform .45s var(--suave), box-shadow .45s var(--suave), border-color .3s;
    transform-style: preserve-3d;
  }
  .luz:is(.atalho, .cartao-ir, .card-mini, .card-geral, .ind-cartao, .mp-item, .rel-total, .foto, .resumo-tab > div, .sim-resumo > div, .rec-cartao, .ind-faixa) {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -18px 28px -22px rgba(255,190,205,.45), 0 2px 4px rgba(8,2,6,.3), 0 18px 40px rgba(8,2,6,.38), 0 36px 70px -24px rgba(208,17,57,.35);
  }
  .card-mini > img, .foto img { transition: transform .6s var(--suave); }
  .card-mini.luz > img, .foto.luz img { transform: scale(1.05); }
}
.atalho:active, .cartao-ir:active, .card-mini:active, .card-geral:active, .mp-item:active { transform: scale(.975); transition: transform .12s; }

/* botões: reflexo que corre ao passar o mouse */
.botao { overflow: hidden; }
.botao::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg) translateX(0); opacity: 0;
}
@media (hover: hover) { .botao:hover::after { animation: reflexo .8s var(--suave); } }
.botao.tocou::after { animation: reflexo .7s var(--suave); }
@keyframes reflexo { 0% { opacity: 1; transform: skewX(-20deg) translateX(0); } 100% { opacity: 0; transform: skewX(-20deg) translateX(420%); } }

/* ---------- 2. barras de vidro: desfoque forte com "lente" (realce de luz nas bordas e reflexo que corre) ----------
   (o filtro SVG de refração no fundo fazia o Chrome perder o desfoque; a distorção é sugerida pela lente e pelo reflexo) */
.barra, .lateral {
  -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.04); backdrop-filter: blur(30px) saturate(200%) brightness(1.04);
}
.barra { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.08), inset 0 0 18px rgba(255,200,215,.12), inset 0 -10px 20px -12px rgba(160,210,255,.25), 0 14px 36px rgba(8,2,6,.55); }
.barra::before, .topo-cel::after, .lateral::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.16) 45%, rgba(255,255,255,.04) 52%, transparent 62%) 0 0 / 250% 100%;
  animation: brilho-barra 9s ease-in-out infinite;
}
@keyframes brilho-barra { 0%, 55% { background-position: 120% 0; } 85%, 100% { background-position: -40% 0; } }
.barra { isolation: isolate; }
.topo-cel { position: sticky; }

/* bolha de vidro que desliza até o item ativo */
.barra.com-bolha .nav-item.ativo, .nav-lat.com-bolha .nav-item.ativo { background: none; box-shadow: none; border-color: transparent; }
.bolha {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 20px;
  background: linear-gradient(180deg, rgba(232, 38, 79, .62), rgba(208, 17, 57, .34));
  border: 1px solid rgba(255, 170, 190, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -6px 12px -6px rgba(255,255,255,.25), 0 0 22px rgba(208, 17, 57, .5), 0 6px 16px rgba(8,2,6,.35);
  transition: transform .55s var(--mola), width .4s var(--suave), height .4s var(--suave), opacity .2s;
}
.bolha::after { content: ""; position: absolute; inset: 1px 14% auto; height: 34%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.28), transparent); }
.nav-lat .bolha { border-radius: 14px; }
.barra .nav-item, .nav-lat .nav-item { position: relative; z-index: 1; }
.barra, .nav-lat { position: relative; }
.barra { position: fixed; }

/* ---------- 3. ícones ---------- */
.nav-ic, .atalho-ic, .botao-ic, .seta-ir { display: inline-grid; transform-style: preserve-3d; }
.nav-ic svg, .atalho-ic svg, .botao-ic svg { transition: transform .35s var(--mola), filter .35s; transform-origin: 50% 60%; }
.atalho-ic { transition: transform .4s var(--mola), box-shadow .4s; }
@media (hover: hover) {
  .nav-item:hover .nav-ic svg, .botao-ic:hover svg { transform: translateY(-2px) scale(1.12); filter: drop-shadow(0 0 6px rgba(255,190,205,.85)); }
  .atalho:hover .atalho-ic, .cartao-ir:hover .atalho-ic { transform: perspective(300px) rotateY(-14deg) translateZ(14px) scale(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 22px rgba(208,17,57,.6); }
  .cartao-ir:hover .seta-ir { transform: translateX(4px); transition: transform .3s var(--mola); }
}
.nav-item.ativo .nav-ic svg { filter: drop-shadow(0 0 7px rgba(255,200,212,.9)); }
.nav-item.ativo .nav-ic { animation: pulo .55s var(--mola); }
.tocou .nav-ic, .tocou .atalho-ic, .tocou.botao-ic, .tocou.avatar { animation: pulo .55s var(--mola); }
@keyframes pulo { 0% { transform: scale(1); } 35% { transform: translateY(-5px) scale(1.14); } 65% { transform: translateY(1px) scale(.96); } 100% { transform: none; } }
/* microanimações por ícone (no hover e ao tocar) */
@media (hover: hover) {
  [data-ic="recados"]:hover svg, [data-ic="recados"] .nav-ic:hover svg { animation: sino .9s ease-in-out; }
  .busca button:hover svg { animation: lupa .7s var(--mola); }
  [data-ic]:hover [data-anim] { animation-play-state: running; }
}
.tocou[data-ic="recados"] svg { animation: sino .9s ease-in-out; }
.tocou[data-ic="indices"] svg { animation: sobe .7s var(--mola); }
.tocou[data-ic="preco"] svg { animation: balanca .8s ease-in-out; }
.tocou[data-ic="simulador"] svg { animation: tecla .5s var(--mola); }
.tocou[data-ic="ficha"] svg, .tocou[data-ic="tabela"] svg { animation: vira .6s var(--suave); }
.tocou[data-ic="predio"] svg { animation: cresce .6s var(--mola); }
.tocou[data-ic="ferramentas"] svg { animation: gira90 .6s var(--mola); }
.tocou[data-ic="inicio"] svg, .tocou[data-ic="conta"] svg, .tocou[data-ic="usuarios"] svg { animation: pulo .55s var(--mola); }
.tocou[data-ic="admin"] svg, .tocou[data-ic="enviar"] svg { animation: voa .6s var(--mola); }
.busca button.tocou svg { animation: lupa .7s var(--mola); }
@media (hover: hover) {
  [data-ic="indices"]:hover svg { animation: sobe .7s var(--mola); }
  [data-ic="preco"]:hover svg { animation: balanca .8s ease-in-out; }
  [data-ic="simulador"]:hover svg { animation: tecla .5s var(--mola); }
  [data-ic="ficha"]:hover svg, [data-ic="tabela"]:hover svg { animation: vira .6s var(--suave); }
  [data-ic="predio"]:hover svg { animation: cresce .6s var(--mola); }
  [data-ic="ferramentas"]:hover svg { animation: gira90 .6s var(--mola); }
  [data-ic="enviar"]:hover svg, [data-ic="admin"]:hover svg { animation: voa .6s var(--mola); }
}
@keyframes sino { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes lupa { 0% { transform: rotate(0) scale(1); } 60% { transform: rotate(-25deg) scale(1.18); } 100% { transform: rotate(0) scale(1); } }
@keyframes sobe { 0% { transform: translate(0, 0); } 40% { transform: translate(3px, -4px) scale(1.1); } 100% { transform: none; } }
@keyframes balanca { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 55% { transform: rotate(8deg); } 80% { transform: rotate(-3deg); } }
@keyframes tecla { 0% { transform: scale(1); } 40% { transform: scale(.86); } 100% { transform: scale(1); } }
@keyframes vira { 0% { transform: perspective(200px) rotateY(0); } 50% { transform: perspective(200px) rotateY(-40deg); } 100% { transform: perspective(200px) rotateY(0); } }
@keyframes cresce { 0% { transform: scaleY(1); transform-origin: 50% 100%; } 45% { transform: scaleY(1.16); transform-origin: 50% 100%; } 100% { transform: scaleY(1); transform-origin: 50% 100%; } }
@keyframes gira90 { 0% { transform: rotate(0); } 100% { transform: rotate(90deg); } }
@keyframes voa { 0% { transform: translate(0, 0); } 45% { transform: translate(3px, -3px) rotate(-8deg); } 100% { transform: none; } }

/* ---------- 4. rolagem ---------- */
/* topo do celular encolhe e ganha mais desfoque */
.topo-cel { transition: padding .35s var(--suave), background .35s, box-shadow .35s; }
.topo-cel .marca img, .topo-cel .marca span, .topo-acoes { transition: transform .35s var(--suave), opacity .35s; transform-origin: 0 50%; }
.rolou .topo-cel {
  padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px;
  background: linear-gradient(180deg, rgba(53, 15, 21, .9), rgba(53, 15, 21, .72));
  -webkit-backdrop-filter: blur(40px) saturate(220%); backdrop-filter: blur(40px) saturate(220%);
  box-shadow: 0 10px 30px rgba(8,2,6,.45), inset 0 -1px 0 rgba(255,255,255,.12);
}
.rolou .topo-cel .marca img { transform: scale(.84); }
.rolou .topo-cel .marca span { transform: translateX(-10px) scale(.9); opacity: .75; }
.rolou .topo-acoes { transform: scale(.88); transform-origin: 100% 50%; }
.rolou { --topo-alt: 48px; }
@media (max-width: 959px) { .abas { top: var(--topo-alt); transition: top .35s var(--suave); } }

/* abas que grudam no topo com vidro */
.abas { transition: background .3s, box-shadow .3s; }
.abas.grudada {
  background: linear-gradient(180deg, rgba(53,15,21,.78), rgba(53,15,21,.55));
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  box-shadow: 0 12px 28px rgba(8,2,6,.4), inset 0 -1px 0 rgba(255,255,255,.14);
}
@media (min-width: 960px) { .abas.grudada { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; } }

/* parallax na foto grande do empreendimento (o transform vem do efeitos.js) */
.heroi img { will-change: transform; transform-origin: 50% 0; }

/* cartões que aparecem com fade e subida */
.surge { opacity: 0; transform: translateY(18px) scale(.985); }
.surge.visivel { opacity: 1; transform: none; transition: opacity .6s var(--suave) var(--atraso, 0ms), transform .7s var(--mola) var(--atraso, 0ms); }
/* depois de surgir, o hover 3D volta a valer */
.surge.visivel.luz { transition: transform .45s var(--suave), box-shadow .45s var(--suave); }

/* ---------- sem movimento, impressão ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .surge { opacity: 1 !important; transform: none !important; }
  .heroi img { transform: none !important; }
  .luz:is(*) { transform: none !important; }
}
@media print { .surge { opacity: 1 !important; transform: none !important; } .anel, .luz::after, .bolha { display: none !important; } }
