/* ===========================================================
   CliqBio Single — Página pública
   Vídeo de fundo, efeitos de botão e responsividade.
   =========================================================== */

:root {
  --bg: #0f172a;
  --txt: #ffffff;
  --btn: #ef6438;
  --btn-txt: #ffffff;
  --raio: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;   /* full-bleed (100vw) não cria rolagem lateral */
}

.pagina {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* ---------- HERO (topo) ---------- */
.hero {
  position: relative;
  width: 100%;
  text-align: center;
  overflow: hidden;
}

/* Mídia de fundo (img ou vídeo) */
.hero__media {
  display: block;
  width: 100%;
  z-index: 0;
}

/* MODO LARGURA (padrão): o vídeo/imagem ocupa a LARGURA TOTAL da tela.
   O box é travado em 16:9 e a mídia preenche com object-fit:cover —
   assim NÃO sobra faixa preta nas laterais (pillarbox) do vídeo. */
.hero--largura {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);   /* full-bleed: vai de ponta a ponta */
  background: transparent;
  padding: 0;
  display: block;
}
.hero--largura .hero__media {
  width: 100%;
  aspect-ratio: 16 / 9;            /* widescreen */
  height: auto;
  object-fit: cover;               /* preenche o box, sem barras pretas */
  background: transparent;
}
.hero--largura .hero__conteudo {
  position: relative;
  z-index: 2;
  padding: 0 24px 8px;             /* conteúdo fica ABAIXO do vídeo */
}
/* Avatar sobe um pouco e encosta na borda do vídeo (visual mais bonito) */
.hero--largura .avatar {
  margin-top: -52px;
}
/* Sem vídeo claro por baixo do texto: nome/bio ficam no fundo da página */
.hero--largura .nome,
.hero--largura .bio {
  text-shadow: none;
}

/* MODO PREENCHER: vídeo cobre a tela inteira (pode cortar as laterais/topo).
   Bom pra vídeo vertical ou quando você quer efeito de tela cheia. */
.hero--preencher {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 32px 24px 36px;
}
.hero--preencher .hero__media {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;       /* preenche cortando o excesso */
}
.hero--preencher .hero__conteudo {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Efeito pulsar (respiração suave) no vídeo/imagem do topo */
.hero__media--pulsar { animation: hero-respira 4s ease-in-out infinite; transform-origin: center; }
@keyframes hero-respira {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.hero__conteudo {
  position: relative;
  z-index: 2;
  width: 100%;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  margin: 0 auto 14px;
  display: block;
}

.nome {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,.6), 0 4px 18px rgba(0,0,0,.7);
}

.bio {
  font-size: .95rem;
  opacity: .95;
  margin-top: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 12px rgba(0,0,0,.7);
}

/* ---------- BOTÕES ---------- */
.botoes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px 8px;
}

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--raio);
  background: var(--btn);
  color: var(--btn-txt);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.botao:hover { transform: translateY(-2px) scale(1.015); filter: brightness(1.06); }
.botao:active { transform: scale(.98); }
.botao__icone { font-size: 1.2rem; line-height: 1; }
.botao__img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Botão = imagem inteira (sem texto), ocupando a largura total da tela */
.botao-img {
  display: block;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);   /* full-bleed, igual ao vídeo do topo */
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.botao-img img { display: block; width: 100%; height: auto; }
.botao-img:hover { filter: brightness(1.05); }
.botao-img:active { transform: scale(.99); }

/* ===== Efeito PULSAR (vale pra botão normal E botão-imagem) =====
   Usa a propriedade `scale` (independente de transform) pra conviver
   com a animação de "aparecer ao rolar". Sem anel de cor. */
.botao.ef-pulsar,
.botao-img.ef-pulsar {
  animation: pulsar 1.5s ease-in-out infinite;
}
@keyframes pulsar {
  0%, 100% { scale: 1; }
  50%      { scale: 1.05; }
}

/* ===== Aparecer ao rolar (scroll reveal) ===== */
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal {
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Efeito BRILHO (linha metálica passando) — os dois tipos ===== */
.botao.ef-brilho,
.botao-img.ef-brilho { position: relative; overflow: hidden; }
.botao.ef-brilho::after,
.botao-img.ef-brilho::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: brilho 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes brilho {
  0%   { left: -120%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

/* ---------- BLOCOS ao longo da página (vídeo / imagem / texto) ---------- */
.blocos { padding: 18px 22px; display: flex; flex-direction: column; gap: 22px; }

.bloco { width: 100%; }

.bloco__midia {
  width: 100%;
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  background: rgba(255,255,255,.04);
}
.bloco__midia img,
.bloco__midia video {
  display: block;
  width: 100%;
  height: auto;
}

.bloco__texto {
  background: rgba(255,255,255,.06);
  border-radius: var(--raio);
  padding: 18px 20px;
  font-size: 1rem;
  text-align: center;
}

/* Placeholder enquanto o vídeo (lazy) não carregou */
.video-lazy {
  position: relative;
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 9;
}
.video-lazy::before {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: rgba(255,255,255,.7);
  opacity: 0;            /* só decorativo; some quando carrega */
  pointer-events: none;
}

/* ---------- WhatsApp flutuante ---------- */
.whats-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
  z-index: 50;
  animation: pulsar-whats 2s ease-in-out infinite;
  text-decoration: none;
}
@keyframes pulsar-whats {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.whats-fab svg { width: 30px; height: 30px; fill: #fff; }

.rodape {
  text-align: center;
  font-size: .78rem;
  opacity: .55;
  padding: 22px 0 10px;
}
.rodape a { color: inherit; }

/* ---------- Acessibilidade: respeita "reduzir movimento" ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 600px) {
  .pagina { box-shadow: none; }
}
