/* Fontes próprias do Leo Maia, servidas do próprio domínio.
   Ambas têm um peso só (400): a hierarquia do site é feita com tamanho, cor,
   caixa e espaçamento — nunca com negrito. Ver `font-synthesis: none` em styles.css. */

@font-face {
  font-family: 'FonteLeoMaia';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/fonteleomaia.woff2) format('woff2');
}

/* Cursiva, usada só nos detalhes. Não traz travessão (– —): o fallback para a
   FonteLeoMaia evita o quadradinho de glifo ausente. */
@font-face {
  font-family: 'FonteLeoMaia2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/fonteleomaia2.woff2) format('woff2');
}

/* =========================================================================
   souleomaia.com — folha de estilo única
   Tipografia: FonteLeoMaia em tudo; FonteLeoMaia2 (cursiva) só nos detalhes —
   a saudação, o "sou" do nome, os contadores do currículo e o menu do celular.
   Nenhuma das duas tem negrito: o destaque vem de tamanho, cor e caixa alta.
   Paleta: off-white quente + preto puro (o preto casa com o fundo da capa)
   ========================================================================= */

:root {
  --bg: #fafaf8;
  --bg-alt: #f2f1ed;
  --bg-dark: #000;
  --text: #16161a;
  --text-medium: #4a4a4a;
  --text-light: #8a8a8a;
  --text-muted: #b0b0b0;
  --border: #e2e0dc;
  --border-light: #ededeb;
  --white: #fff;
  --on-dark: rgba(255, 255, 255, .55);
  --sans: 'FonteLeoMaia', 'Helvetica Neue', Arial, sans-serif;
  /* Cursiva só nos detalhes; cai na sem serifa se faltar algum glifo. */
  --script: 'FonteLeoMaia2', 'FonteLeoMaia', cursive;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --transition: .4s cubic-bezier(.16, 1, .3, 1);
  --shell: 1200px;
  --gutter: 3rem;
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  /* As duas fontes têm um peso só: sem isto o navegador engorda a letra
     artificialmente e o traço empasta. A hierarquia vem de tamanho e cor. */
  font-synthesis: none;
}

b, strong { font-weight: 400 }

::selection { background: var(--text); color: var(--bg) }
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 3px }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter) }

.pular {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--text); color: var(--bg); padding: .8rem 1.2rem;
  font-size: .85rem; font-weight: 400; border-radius: 0 0 8px 0;
}
.pular:focus { left: 0 }

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none }
.preloader img { width: 92px; height: auto; opacity: 0; animation: preIn 1.4s var(--ease) forwards }
@keyframes preIn {
  0% { opacity: 0; transform: translateY(14px) }
  35% { opacity: 1; transform: translateY(0) }
  75% { opacity: 1 }
  100% { opacity: .35 }
}

/* ---------- CABEÇALHO ---------- */
/* z-index acima do .menu-mobile (150) para o botão de fechar seguir acessível. */
header.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 160;
  background: rgba(250, 250, 248, .88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
header.topo.scrolled { border-bottom-color: var(--border-light) }
.topo-inner {
  max-width: var(--shell); margin: 0 auto; padding: 1rem var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
.marca { display: flex; align-items: center }
.marca img { width: 66px; height: 33px; object-fit: contain }

.nav { display: flex; align-items: center; gap: 1.5rem; list-style: none; font-size: .74rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase }
/* Divide as seções da página dos negócios do Leo. */
.nav-sep { width: 1px; height: 13px; background: var(--border); flex-shrink: 0 }
.nav a { color: var(--text-medium); transition: color .3s; position: relative; white-space: nowrap }
.nav a:hover { color: var(--text) }
.nav a::after {
  content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1.5px;
  background: var(--text); transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100% }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 200; padding: 6px; background: none; border: 0 }
.hamburger span { width: 22px; height: 1.5px; background: var(--text); transition: all .3s var(--ease); display: block }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px) }
.hamburger.open span:nth-child(2) { opacity: 0 }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px) }

.menu-mobile {
  position: fixed; inset: 0; background: var(--bg); z-index: 150;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 5rem 1.5rem 2rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-mobile.open { opacity: 1; visibility: visible }
.menu-mobile a { font-family: var(--script); font-size: clamp(1.9rem, 7vw, 2.4rem); line-height: 1.15; text-align: center; color: var(--text); opacity: 0; transform: translateY(15px) }
.menu-sep { width: 48px; height: 1px; background: var(--border); opacity: 0; transform: translateY(15px) }
.menu-mobile.open a, .menu-mobile.open .menu-sep {
  animation: slideUp .4s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * .05s + .05s);
}
@keyframes slideUp { to { opacity: 1; transform: translateY(0) } }

/* ---------- HERO ---------- */
.hero { padding: 9.5rem 0 5rem }
.hero-inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center;
}
.hero-texto { opacity: 0; animation: fadeIn 1s var(--ease) 1.4s forwards }
.hero-ola { font-family: var(--script); font-size: clamp(1.9rem, 2.6vw, 2.4rem); color: var(--text-light); line-height: 1.1; margin-bottom: .2rem }
.hero-nome { font-family: var(--sans); font-size: clamp(2.8rem, 5.5vw, 4.4rem); font-weight: 400; line-height: 1.08; margin-bottom: .5rem }
/* A mão escreve "sou", a fonte da marca diz o nome. Corpo um pouco menor que o
   do nome, de propósito — a cursiva entra como sussurro, não como par. */
.hero-nome-prefixo { font-family: var(--script); font-size: .95em; color: var(--text-light); margin-right: .1em }
.hero-nome-completo { font-size: .76rem; font-weight: 400; letter-spacing: .1em; color: var(--text-light); margin-bottom: 1.6rem }
.hero-papel { font-size: 1.02rem; font-weight: 400; letter-spacing: .06em; color: var(--text); margin-bottom: .35rem }
.hero-sub { font-size: .85rem; font-weight: 400; letter-spacing: .05em; color: var(--text-light); line-height: 1.7 }

.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem }
.hero-meta span {
  display: inline-flex; padding: .38rem .9rem; background: var(--bg-alt); border-radius: 100px;
  font-size: .72rem; font-weight: 400; color: var(--text-medium); letter-spacing: .04em;
}
.hero-contatos { display: flex; flex-direction: column; gap: .55rem; margin-top: 1.8rem; padding-top: 1.8rem; border-top: 1px solid var(--border-light) }
.hero-contatos a { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text-medium); transition: color .3s; width: fit-content }
.hero-contatos a:hover { color: var(--text) }
.hero-contatos svg { width: 15px; height: 15px; color: var(--text-light); flex-shrink: 0 }

.hero-figura { position: relative; opacity: 0; animation: fadeIn 1s var(--ease) 1.6s forwards }
.retrato {
  border-radius: 20px; overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--bg-alt), #e7e5e0);
  display: flex; align-items: flex-end; justify-content: center;
  box-shadow: 0 0 0 1px var(--border-light), 0 24px 60px -28px rgba(0, 0, 0, .2);
}
.retrato picture { display: block; width: 100%; height: 100% }
/* Retrato de estúdio (fundo branco): preenche o card. */
.retrato img { width: 100%; height: 100%; object-fit: cover; object-position: center }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }

/* ---------- MARQUEE ---------- */
.faixa-rolante { padding: 1.6rem 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); overflow: hidden; background: var(--white) }
/* --faixa-dur vem do build, calculado a partir do tamanho do texto. */
.faixa-trilha { display: flex; width: max-content; animation: rolar var(--faixa-dur, 60s) linear infinite }
.faixa-trilha span {
  font-size: .78rem; font-weight: 400; letter-spacing: .03em;
  color: var(--text-light); flex-shrink: 0; display: flex; align-items: center; gap: 2.6rem; padding-right: 2.6rem;
  white-space: nowrap;
}
.faixa-trilha span::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0 }
@keyframes rolar { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- RÓTULOS DE SEÇÃO ---------- */
.rotulo { font-size: .76rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 1.2rem }
/* Título de seção: a mesma letra do rótulo — Manrope em caixa alta — só que
   grande e escura. O espaçamento entre letras diminui porque em corpo grande
   a mesma proporção abriria demais. */
.rotulo--titulo {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 3rem;
}

/* ---------- ATUAÇÃO ---------- */
.atuacao { padding: 6rem 0 }
.grupo { margin-bottom: 4.5rem }
.grupo:last-child { margin-bottom: 0 }
.grupo-nome {
  display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem;
  font-family: var(--sans); font-size: 1.5rem; font-weight: 400; letter-spacing: .02em;
}
.grupo-nome::after { content: ''; flex: 1; height: 1px; background: var(--border) }
.cartoes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem }

.cartao {
  display: flex; flex-direction: column; padding: 2.2rem; border-radius: 16px;
  background: var(--white); border: 1px solid var(--border-light); transition: all var(--transition);
}
.cartao:hover { border-color: var(--border); box-shadow: 0 8px 40px rgba(0, 0, 0, .06); transform: translateY(-2px) }
.cartao-nome { font-size: .74rem; font-weight: 400; letter-spacing: .12em; color: var(--text-light); margin-bottom: 1.4rem }
.servicos { list-style: none; margin-bottom: 1.8rem }
.servicos li {
  padding: .72rem 0; border-bottom: 1px solid var(--border-light);
  font-size: .88rem; color: var(--text-medium); line-height: 1.5;
  transition: color .3s, padding-left .3s var(--ease);
}
.servicos li:first-child { border-top: 1px solid var(--border-light) }
.servicos li:hover { color: var(--text); padding-left: .4rem }
.cartao-cta {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: auto;
  font-size: .82rem; font-weight: 400; color: var(--text); transition: gap .3s var(--ease); align-self: flex-start;
}
.cartao-cta svg { width: 14px; height: 14px }
.cartao-cta:hover { gap: .8rem }

/* ---------- FAIXA ESCURA (CAPA) ---------- */
.capa { background: var(--bg-dark); color: var(--bg); padding: 0; overflow: hidden }
.capa-figura { position: relative; max-width: 1440px; margin: 0 auto }
/* A foto termina em corte reto na base; a máscara dissolve o corpo no preto.
   O logotipo acaba em 64% da altura, então o fade só começa depois disso. */
.capa-figura img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 99%);
}
.capa-texto { text-align: center; padding: 3.5rem var(--gutter) 4.5rem; background: var(--bg-dark) }
.capa-texto h2 { font-family: var(--sans); font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 400; letter-spacing: .04em; margin-bottom: .8rem }
.capa-texto p { font-size: .82rem; font-weight: 400; letter-spacing: .1em; color: var(--on-dark) }

/* ---------- CONTATO ---------- */
.contato { background: var(--bg-dark); color: var(--bg); padding: 5.5rem 0 6rem; border-top: 1px solid rgba(255, 255, 255, .07) }
.contato .rotulo--titulo { color: var(--bg); margin-bottom: .9rem }
.contato-texto { font-size: 1.05rem; color: var(--on-dark); margin-bottom: 3rem; max-width: 36ch }
/* Preenche coluna a coluna: e-mail/WhatsApp/Telegram à esquerda, redes à direita. */
.contato-grade { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 1rem }
.canal {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  transition: all var(--transition); font-size: .9rem; font-weight: 400;
}
.canal:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .26) }
.canal svg { width: 19px; height: 19px; flex-shrink: 0; fill: currentColor }
.canal .seta { margin-left: auto; opacity: 0; transform: translateX(-8px); transition: all .3s var(--ease); fill: none; stroke: currentColor; stroke-width: 2 }
.canal:hover .seta { opacity: 1; transform: translateX(0) }
.canal-valor { color: var(--on-dark); font-weight: 400; font-size: .82rem; margin-left: auto }
.canal:hover .canal-valor { color: rgba(255, 255, 255, .8) }

/* ---------- RODAPÉ ---------- */
footer {
  background: var(--bg-dark); color: rgba(255, 255, 255, .38);
  padding: 2.2rem var(--gutter); border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: .76rem;
}
.rodape-inner { max-width: var(--shell); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap }
.rodape-marca { display: flex; align-items: center; gap: .8rem }
.rodape-marca img { width: 46px; height: 23px; object-fit: contain; opacity: .75 }
.rodape-dir { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap }
footer a { color: rgba(255, 255, 255, .5); transition: color .3s }
footer a:hover { color: rgba(255, 255, 255, .85) }

/* ---------- BOTÃO FLUTUANTE ---------- */
.fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; width: 54px; height: 54px;
  background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 90; box-shadow: 0 4px 15px rgba(37, 211, 102, .35);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 6px 25px rgba(37, 211, 102, .45) }
.fab svg { width: 26px; height: 26px; fill: #fff }

/* ---------- REVELAÇÃO AO ROLAR ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease) }
.reveal.visivel { opacity: 1; transform: translateY(0) }
.reveal-d1 { transition-delay: .08s }
.reveal-d2 { transition-delay: .16s }

/* =========================================================================
   SEÇÃO SOBRE (currículo), dentro da página única
   ========================================================================= */
.curriculo { padding: 5.5rem 0 5rem; background: var(--white); border-top: 1px solid var(--border-light) }
.cv-secao { padding: 3.2rem 0; border-top: 1px solid var(--border-light) }
.cv-inner { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start }
.cv-titulo { font-size: .76rem; font-weight: 400; letter-spacing: .12em; color: var(--text-light); position: sticky; top: 6rem }
.cv-contagem { display: block; margin-top: .3rem; font-family: var(--script); font-size: 2.5rem; line-height: 1; letter-spacing: 0; color: var(--border) }

.cv-lista { list-style: none }
.cv-lista li {
  display: flex; align-items: baseline; gap: 1.5rem; padding: .8rem 0;
  border-bottom: 1px solid var(--border-light); font-size: .92rem; line-height: 1.55;
  transition: padding-left .3s var(--ease);
}
.cv-lista li:first-child { border-top: 1px solid var(--border-light) }
.cv-lista li:hover { padding-left: .4rem }
/* Divide a lista em dois blocos só com vazio, sem fio. O vão vem da altura, não
   de margem: num elemento sem altura as margens de cima e de baixo colapsam numa
   só, e o respiro sai pela metade. A altura é a mesma do respiro no topo da seção
   (3.2rem), para o vão entre os dois fios ficar idêntico. */
.cv-lista .cv-sep, .cv-lista .cv-sep:hover {
  display: block; height: 3.2rem; padding: 0; margin: 0; background: none; border: 0;
}
/* O bloco de baixo recomeça com o próprio fio, como a primeira linha da lista —
   sem ele o vão terminava direto no texto, e não em outro fio. */
.cv-lista .cv-sep + li { border-top: 1px solid var(--border-light) }
/* Sem negrito disponível, o cargo se destaca por cor, não por peso. */
.cv-texto { color: var(--text-light); flex: 1 }
.cv-texto b { color: var(--text) }
.cv-periodo { flex-shrink: 0; font-size: .78rem; font-weight: 400; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums }

.cv-chips { display: flex; flex-wrap: wrap; gap: .55rem }
.cv-chips span {
  display: inline-flex; padding: .45rem 1rem; background: var(--white); border: 1px solid var(--border-light);
  border-radius: 100px; font-size: .82rem; color: var(--text-medium); transition: all .3s var(--ease);
}
.cv-chips span:hover { border-color: var(--border); color: var(--text); transform: translateY(-1px) }

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem }
  .hero-figura { max-width: 380px; margin: 0 auto; width: 100% }
  .cartoes { grid-template-columns: 1fr }
  .contato-grade { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row }
  .cv-inner { grid-template-columns: 1fr; gap: 1.2rem }
  .cv-titulo { position: static }
  .cv-contagem { display: inline; margin-left: .6rem; font-size: 1.1rem }
}

/* Com sete itens o menu horizontal pede ~970px. Abaixo disso vira hambúrguer,
   antes que "Bunker Digital Consultoria" quebre em três linhas. */
@media (max-width: 1000px) {
  .nav { display: none }
  .hamburger { display: flex }
}

@media (max-width: 768px) {
  :root { --gutter: 1.4rem }
  .hero { padding: 7.5rem 0 3.5rem }
  .curriculo { padding: 3.5rem 0 3rem }
  .atuacao { padding: 4rem 0 }
  .contato { padding: 4rem 0 4.5rem }
  .grupo { margin-bottom: 3rem }
  .cartao { padding: 1.6rem }
  .capa-texto { padding: 2.5rem var(--gutter) 3.5rem }
  /* Em tela estreita o 16:9 encolheria demais. O <picture> troca por uma versão
     vertical já enquadrada na figura — sem recorte por object-position, que alinha
     a sobra e não o ponto de interesse. */
  .capa-figura { aspect-ratio: 4/5 }
  .capa-figura picture { display: block; width: 100%; height: 100% }
  .capa-figura img { width: 100%; height: 100%; object-fit: cover }
  /* Sem o logotipo em quadro, o fade pode começar antes. */
  .capa-figura img {
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 99%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 99%);
  }
  .rodape-inner { flex-direction: column; text-align: center }
  .cv-lista li { flex-direction: column; align-items: flex-start; gap: .25rem }
  .cv-periodo { order: -1; font-size: .72rem }
  .fab { bottom: 1rem; right: 1rem; width: 50px; height: 50px }
  .fab svg { width: 24px; height: 24px }
}

@media (max-width: 420px) {
  .hero-nome { font-size: 2.3rem }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important }
  .reveal { opacity: 1; transform: none }
  .hero-texto, .hero-figura { opacity: 1; animation: none }
}
