/* Estrutura da página. Cores, fontes e arranjos do tema escuro ficam em tema-b.css. */

@font-face { font-family: 'Anton'; src: url('../fontes/anton-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bebas Neue'; src: url('../fontes/bebas-neue-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fontes/archivo-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fontes/archivo-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fontes/archivo-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fontes/fraunces-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fontes/fraunces-latin-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }

:root { --largura: 1200px; }
*, *::before, *::after { box-sizing: border-box; }
/* Largura travada no celular: nada passa para os lados (o Safari do iPhone só respeita a trava no html). clip, ao contrário
   de hidden, não cria área de rolagem. */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; font-family: 'Archivo', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55; overflow-x: clip; }
/* Toque duplo em botão ou link não dá zoom. */
a, button { touch-action: manipulation; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
.topo-foto { pointer-events: none; }
a { color: inherit; }

/* Largura do conteúdo. */
.secao, .topo-barra, .rodape { padding-inline: max(1.25rem, calc((100% - var(--largura)) / 2)); }
.secao { padding-block: clamp(2.75rem, 8vw, 6rem); }
.secao-cabeca { margin-bottom: 2rem; }
.rotulo { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .6rem; }
h2 { font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.02; }
h3 { font-size: 1.35rem; line-height: 1.1; }

/* Botões e links de ação. */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.botao:hover { filter: brightness(1.06); }
.servico-zap, .dica-ver { font-weight: 800; font-size: .95rem; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* Sobre: foto e texto. */
/* No celular, foto e texto um embaixo do outro; lado a lado só no computador. */
.sobre { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: end; }
.sobre-texto p { margin-bottom: 1rem; }
.sobre-texto h2 { margin-bottom: 1rem; }
/* Registro e formação do Alex. */
.sobre-cref { display: inline-block; padding: .3rem .75rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.formacao { display: grid; gap: .8rem; margin-bottom: 1.25rem; }
.formacao li { display: grid; gap: .1rem; padding-left: .9rem; border-left: 2px solid currentColor; line-height: 1.4; }
.formacao-tipo { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.locais li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; }
.local-texto { display: grid; gap: .15rem; }
.local-mapa { flex-shrink: 0; padding-block: .6rem; font-weight: 800; font-size: .9rem; text-decoration: none; }
.local-mapa:hover { text-decoration: underline; }
/* Nome do lugar que leva à página dele (personal-trainer-*/). */
.local-pagina { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
/* Passos para começar, nas páginas de cada lugar. */
.passos { counter-reset: passo; display: grid; gap: 1rem; margin-top: 2rem; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .9rem; align-items: baseline; }
.passos li::before { content: counter(passo, decimal-leading-zero); grid-row: 1 / span 2; font-weight: 800; }
.passos span { grid-column: 2; }
.rodape-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-block: .4rem; }
a.topo-assinatura { display: inline-block; }
.topo-logo { display: block; height: 2.4rem; width: auto; }
.rodape-logo { width: 11rem; height: auto; margin-bottom: 1rem; }

.contato { text-align: center; }
.contato h2 { margin-bottom: 1.5rem; }
.contato-numero { font-size: 1.25rem; }
.contato-insta { margin-top: 1.2rem; }

.rodape { padding-block: 2rem 6rem; font-size: .9rem; display: grid; gap: .3rem; }
.rodape-credito { opacity: .8; font-size: .8rem; margin-top: .6rem; }

/* WhatsApp flutuante: só no celular. */
.zap-flutuante { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
@media (min-width: 900px) { .zap-flutuante { display: none; } }


@media (min-width: 900px) {
  .local-texto { grid-template-columns: 17rem 1fr; align-items: baseline; gap: 1rem; }
  .topo-logo { height: 2.8rem; }
  .sobre { grid-template-columns: 360px 1fr; gap: 3rem; }
}

/* Animações (js/animacoes.js). O estado escondido só existe depois que o módulo marca html.anima e sem pedido de menos
   movimento: sem JS, com o módulo falhando ou com prefers-reduced-motion, tudo aparece parado. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .botao:hover { transform: translateY(-2px); }
  .anima .revelar { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .anima .revelar.visivel { opacity: 1; transform: none; }
  /* Itens de uma lista entram em cascata. */
  .anima .revelar:nth-child(2) { transition-delay: .12s; }
  .anima .revelar:nth-child(3) { transition-delay: .24s; }
  /* Títulos das seções sobem por trás de uma máscara. */
  .anima .secao-cabeca h2, .anima .sobre-texto h2, .anima .contato h2 { clip-path: inset(0 0 100% 0); translate: 0 .35em; transition: clip-path .9s cubic-bezier(.2, .7, .2, 1) .1s, translate .9s cubic-bezier(.2, .7, .2, 1) .1s; }
  .anima .visivel h2 { clip-path: inset(-.2em -.2em -.3em -.2em); translate: 0 0; }
  /* Faixa rolante e barra de leitura. */
  .faixa-rolante-trilho { animation: rolar-faixa 38s linear infinite; }
  @supports (animation-timeline: scroll()) {
    .progresso { display: block; animation: ler-pagina linear both; animation-timeline: scroll(root); }
  }
  .js .topo-foto { animation: entrar-foto 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .js .topo-texto { animation: entrar-texto .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes entrar-foto { from { opacity: 0; scale: .94; } }
@keyframes entrar-texto { from { opacity: 0; translate: 0 16px; } }

/* WhatsApp flutuante: com JS, fica guardado até o topo sair da tela. */
.anima .zap-flutuante:not(.aparece) { transform: translateY(140%); opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .zap-flutuante { transition: transform .35s ease, opacity .35s ease, visibility .35s; }
}

/* Faixa que roda logo abaixo do topo, com o que o Alex faz. Decorativa: o conteúdo já está na página. */
.faixa-rolante { overflow: hidden; white-space: nowrap; }
.faixa-rolante-trilho { display: flex; width: max-content; }
.faixa-rolante span { padding-inline: 1.4rem; }
@keyframes rolar-faixa { to { transform: translateX(-50%); } }

/* Barra fina no alto que cresce com a leitura (só onde o navegador sabe animar pela rolagem). */
.progresso { display: none; position: fixed; inset: 0 0 auto; height: 3px; z-index: 40; transform-origin: 0 50%; transform: scaleX(0); }
@keyframes ler-pagina { to { transform: scaleX(1); } }
