/* ==========================================================
   Carlos Maurício — Consultoria Empresarial
   Paleta: preto, branco e tons de azul / azul escuro
   ========================================================== */
:root {
  --black: #0A0A0A;
  --ink: #0A0A0A;          /* títulos */
  --deep: #071528;         /* azul escuro — seções escuras */
  --deep-2: #04101F;       /* azul escuro — barras */
  --accent: #1A5FC8;       /* azul — sobre fundo claro */
  --accent-dark: #12478F;  /* azul — hover */
  --accent-light: #5B9BF5; /* azul claro — sobre fundo escuro */
  --paper: #F2F6FC;
  --surface: #FFFFFF;
  --surface-2: #F7FAFD;
  --line: #DCE5F0;
  --muted: #55657D;
  --soft: #8A9AB2;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* evita que o iOS aumente a fonte ao girar o aparelho */
  -webkit-text-size-adjust: 100%;
}
/* impede que o cabeçalho fixo cubra o título ao navegar pelas âncoras */
section[id],
footer[id] {
  scroll-margin-top: 72px;
}
@media (min-width: 1024px) {
  section[id],
  footer[id] { scroll-margin-top: 88px; }
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--deep);
  overflow-x: clip;          /* sem barra de rolagem lateral */
  overscroll-behavior-x: none;
}
/* nada pode furar a largura da tela */
img,
video,
svg,
iframe {
  max-width: 100%;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: .55;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(26, 95, 200, .10), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(7, 21, 40, .09), transparent 28%),
    radial-gradient(circle at 50% 96%, rgba(26, 95, 200, .07), transparent 32%);
}
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
}
.soft-shadow {
  box-shadow: 0px 0px 0px 1px rgba(7, 21, 40, .07), 0px 1px 1px -.5px rgba(7, 21, 40, .06), 0px 3px 3px -1.5px rgba(7, 21, 40, .06), 0px 6px 6px -3px rgba(7, 21, 40, .06), 0px 12px 12px -6px rgba(7, 21, 40, .06), 0px 24px 24px -12px rgba(7, 21, 40, .06);
}
.deep-shadow {
  box-shadow:
    0 18px 45px rgba(7, 21, 40, .16),
    0 4px 12px rgba(7, 21, 40, .09);
}
.grid-paper {
  background-image: linear-gradient(rgba(7, 21, 40, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(7, 21, 40, .05) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ================================
   VÍDEO DO HERO
   Em qualquer largura, só as bordas esquerda e direita são
   desfocadas até sumirem — topo e base ficam sempre nítidos e
   colados nos elementos vizinhos (indicadores acima, marquee abaixo
   no mobile; topo/base da seção a partir de 1024px).
   ================================ */
.hero-video-col {
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .hero-video-col { max-width: 330px; }
}
@media (min-width: 1024px) {
  .hero-video-col {
    position: absolute;
    top: 0;
    right: 50px;
    bottom: 0;
    width: 34%;
    max-width: 500px;
    margin: 0;
    pointer-events: none;
  }
}
.hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
}
@media (min-width: 1024px) {
  .hero-video-frame {
    height: 100%;
    aspect-ratio: auto;
  }
}
.hero-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* dissolve só as bordas esquerda/direita — fallback para navegadores sem mask-composite */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
/* halo suave atrás do vídeo, reforçando a fusão com o fundo */
.hero-video-frame::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(26, 95, 200, .07), rgba(255, 255, 255, 0) 68%);
  filter: blur(18px);
}

/* ================================
   PAINÉIS DE FOTO
   ================================ */
.photo-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.photo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
}
.photo-panel:hover::before {
  transform: scale(1.06);
}
.photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 21, 40, .93), rgba(7, 21, 40, .45), rgba(7, 21, 40, .05));
}

/* ================================
   SISTEMA DE IMAGENS — UMA CLASSE POR SLOT
   Troque cada URL de forma independente.
   Todas as fotos vêm do Instagram @consultor.cmauricio
   ================================ */
/* Serviços */
.serv-img-pessoas::before {
  background-image: url("../img/reuniao-multimais.jpg");
  background-position: 42% center;
}
.serv-img-processos::before {
  background-image: url("../img/analise-indicadores.jpg");
}
.serv-img-lideranca::before {
  background-image: url("../img/reuniao-executiva.jpg");
}
/* Reconhecimento */
.rec-img-cidadania::before {
  background-image: url("../img/titulo-cidadania.jpg");
}
.rec-img-emater::before {
  background-image: url("../img/carlos-palestra-emater.jpg");
  background-position: center 25%;
}
.rec-img-multimais::before {
  background-image: url("../img/reuniao-multimais.jpg");
}
/* Sobre o consultor — sem texto por cima, então dispensa o gradiente escuro */
.sobre-img-consultor::before {
  background-image: url("../img/carlos-retrato.jpg");
  background-position: center 18%;
}
.sobre-img-consultor::after {
  background: linear-gradient(to top, rgba(7, 21, 40, .22), transparent 40%);
}

/* ================================
   ANIMAÇÕES
   ================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(22px);
}
/* O padding-top compensado por margin-top negativa dá espaço para acentos
   (Ã, Ó, Ê) sem que a máscara da animação corte o topo das letras. */
.reveal-line {
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
  margin-right: .25em;
  padding-top: .16em;
  margin-top: -.16em;
}
.reveal-word {
  display: inline-block;
  transform: translateY(112%);
}
.section-reveal-line {
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
  gap: .25em;
  max-width: 100%;
  padding-top: .14em;
  margin-top: -.14em;
}
.section-reveal-word {
  display: inline-block;
  transform: translateY(112%);
}
.marquee {
  animation: marquee 32s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================================
   BOTÃO FLUTUANTE DE WHATSAPP
   ================================ */
.whats-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--deep);
  color: #fff;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 30px rgba(7, 21, 40, .32);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .3s;
}
.whats-float:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .whats-float {
    padding: 13px;
    right: 14px;
    bottom: 14px;
  }
  .whats-float span.whats-label { display: none; }
}

/* ================================
   AJUSTES DE TIPOGRAFIA EM TELAS PEQUENAS
   ================================ */
/* Em telas estreitas os títulos precisam quebrar linha livremente.
   A revelação por palavra depende de inline-flex + overflow hidden, que corta
   o texto quando ele não cabe — abaixo de 640px o título vira texto normal. */
@media (max-width: 640px) {
  .section-reveal-line {
    display: inline;
    overflow: visible;
  }
  .section-reveal-word {
    display: inline;
    transform: none;
  }
  .section-reveal-word + .section-reveal-word::before {
    content: " ";
  }
}
@media (max-width: 400px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  .fade-in-up { opacity: 1; transform: none; }
  .reveal-word,
  .section-reveal-word { transform: none; }
  #bg-canvas { display: none; }
  .photo-panel:hover::before { transform: none; }
}
