/* Estrutura comum aos dois temas. Cores, fontes de cada direção e arranjos ficam em tema-b.css e tema-c.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; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Archivo', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55; overflow-x: hidden; }
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; }

/* Elementos de um tema só. */
[data-tema="b"] .so-c, [data-tema="c"] .so-b { display: none !important; }

/* 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; }

/* Material que o Alex ainda vai mandar. */
.espera { border: 1.5px dashed currentColor; border-radius: 12px; padding: 1rem 1.2rem; font-size: .9rem; text-align: center; opacity: .62; }

/* 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 { transform: translateY(-2px); 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; }

.locais li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.locais + .espera, .secao-cabeca + .espera { margin-top: 1.5rem; }

.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: .6; 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; } }

/* Troca de tema: só aparece em desenvolvimento (js/tema.js). */
.troca-tema { position: fixed; right: .75rem; top: 3.6rem; z-index: 30; padding: .45rem .8rem; border-radius: 999px; border: 2px solid #fff; background: #e4007c; color: #fff; font: 800 .8rem/1 'Archivo', sans-serif; letter-spacing: .06em; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }

@media (min-width: 900px) {
  .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) {
  .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); } }
