/* Camada premium do Nexus Barber (site, cadastro, painel e app do cliente): fundo vivo, toque,
   transições e a assinatura visual cromada da Nexus Digital (preto, cromo, Archivo largo). */

/* ---------------------------------------------------------------- tipografia da Nexus Digital */
@font-face { font-family: 'Archivo'; src: url(/site/fontes/archivo.woff2) format('woff2-variations'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/site/fontes/inter.woff2) format('woff2-variations'); font-weight: 100 900; font-display: swap; }
:root {
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font: var(--font-text);
}
/* Títulos largos e finos, palavra-chave em negrito (o mesmo desenho do site da Nexus) */
.cab h1, .entrar h1, .topo h1, .cartao h2, .painel__cab h2 { font-family: var(--font-display); font-stretch: 112%; letter-spacing: -0.012em; }
.cab h1, .entrar h1 { font-weight: 400; }
.cab h1 b, .entrar h1 b { font-weight: 700; }
.adm-marca span, .entrar__marca span { font-family: var(--font-display); font-stretch: 118%; font-weight: 500; letter-spacing: 0.01em; }
/* Telas de entrada/cadastro deixam o fundo vivo aparecer */
.entrar { background: radial-gradient(1200px 600px at 50% -10%, rgb(21 23 28 / 0.7) 0%, transparent 60%); }
.entrar__caixa { box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(217 221 227 / 0.04); }

/* ---------------------------------------------------------------- telas grandes (monitor 2K/4K e TV)
   O layout foi desenhado até ~1920 px; acima disso tudo cresce junto, como o zoom do navegador.
   --z divide as alturas "de tela cheia" (100dvh) para não dobrarem com o zoom. */
:root { --z: 1; }
@media (min-width: 2200px) { :root { --z: 1.25; } html { zoom: 1.25; } }
@media (min-width: 2500px) { :root { --z: 1.33; } html { zoom: 1.33; } }
@media (min-width: 3200px) { :root { --z: 1.67; } html { zoom: 1.67; } }
@media (min-width: 3600px) { :root { --z: 2; } html { zoom: 2; } }

/* ---------------------------------------------------------------- fundo vivo (canvas fixo atrás) */
canvas.fundo-vivo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
canvas.fundo-vivo.fundo-vivo--pronto { opacity: 1; }
canvas.fundo-vivo.fundo-vivo--suave.fundo-vivo--pronto { opacity: 0.55; }

/* ---------------------------------------------------------------- toque */
.toque-alvo { position: relative; overflow: hidden; isolation: isolate; }
.toque-onda {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--r);
  height: var(--r);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgb(255 255 255 / 0.42) 0%, rgb(217 221 227 / 0.18) 40%, transparent 70%);
  transform: scale(0);
  animation: toque-onda 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  z-index: 0;
}
@keyframes toque-onda {
  to { transform: scale(1); opacity: 0; }
}
:is(button, .btn, .opcao, .dia, .hora, .escolha-plano, .cartao--toque, [data-toque]) {
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
:is(button, .btn, .opcao, .dia, .hora, .escolha-plano, .cartao--toque, [data-toque]):not(:disabled):active { transform: scale(0.965); }
@media (hover: hover) {
  :is(.btn, .opcao, .escolha-plano, .cartao--toque):not(:disabled):hover {
    box-shadow: 0 0 0 1px rgb(217 221 227 / 0.35), 0 10px 30px -12px rgb(217 221 227 / 0.35);
  }
}

/* ---------------------------------------------------------------- transições entre telas */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.22s cubic-bezier(0.4, 0, 1, 1) both sai-tela; }
::view-transition-new(root) { animation: 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both entra-tela; }
@keyframes sai-tela { to { opacity: 0; transform: translateY(-6px) scale(0.995); } }
@keyframes entra-tela { from { opacity: 0; transform: translateY(10px) scale(1.005); filter: blur(4px); } }

/* Entrada dos blocos ao rolar */
[data-surgir] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-surgir].surgiu, .sem-surgir [data-surgir] { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- assinatura cromada */
.cromo-texto {
  background: linear-gradient(180deg, #ffffff 0%, #d9dde3 42%, #8d939c 52%, #eceef2 72%, #b9bec8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.emblema-brilho { filter: drop-shadow(0 0 24px rgb(217 221 227 / 0.18)); animation: emblema-entra 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes emblema-entra { from { opacity: 0; transform: scale(0.86) rotate(-8deg); filter: blur(6px); } }

@media (prefers-reduced-motion: reduce) {
  canvas.fundo-vivo { transition: none; }
  .toque-onda, .emblema-brilho { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  :is(button, .btn, .opcao, .dia, .hora, .escolha-plano, .cartao--toque, [data-toque]):active { transform: none; }
}

/* Troca de tela dentro do painel/app (sem travar enquanto os dados chegam) */
.tela-entra { animation: entra-tela 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) { .tela-entra { animation: none; } }

/* ---------------------------------------------------------------- celular e tablet (toque)
   Campos com 16 px (o iPhone não dá zoom ao tocar), alvos de toque de pelo menos 40 px e nada de
   texto menor que 12 px. */
@media (pointer: coarse), (max-width: 1024px) {
  /* !important: vários filtros do painel definem 13–14 px com seletores mais específicos. */
  input:not([type='checkbox']):not([type='radio']):not([type='range']), select, textarea, .entrada { font-size: 16px !important; }
  .seg button { min-height: 40px; padding: 0 14px; }
  .marcar { min-height: 40px; }
  .credito a, .rodape__credito a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
  .rodape nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .rodape nav { gap: 4px 22px; }
}
.credito, .rodape__credito { font-size: 12px; }
.abas a { font-size: 12px; }
.dia span { font-size: 12px; }
.adm-nav__grupo, .adm-selo, .selo-sim { font-size: 12px; }
