/* =========================================================
   MODELOS.CSS
   O que os modelos (salão, casa de ração e padaria) têm em comum:
   abertura que anda com a rolagem, menu, botões e espaçamento.
   As cores e as letras de cada um ficam no CSS dele
   (salao.css, casa-de-racao.css e padaria.css).
   ========================================================= */

/* ---------- 1. BASE ---------- */
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sem-js .so-js { display: none !important; }

:root {
  --margem: clamp(22px, 5.5vw, 88px);
  --respiro: clamp(80px, 11vw, 160px);
  --curva: cubic-bezier(.2, .7, .2, 1);
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font: 400 clamp(1rem, .96rem + .2vw, 1.125rem)/1.65 var(--texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 60ch; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--titulo); font-weight: var(--peso-titulo, 400); text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 1.5rem + 5vw, 6.2rem); line-height: 1; letter-spacing: -.02em; }
h2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 4rem); line-height: 1.06; letter-spacing: -.015em; }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); line-height: 1.2; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 4px; }

.secao { padding: var(--respiro) var(--margem); }
.secao > h2 { margin-bottom: clamp(36px, 5vw, 64px); }
.suave { color: var(--suave); }
/* Faixa escura: troca as cores de tudo que está dentro */
.escuro { --fundo: var(--noite); --tinta: var(--sobre-noite); --suave: var(--suave-noite); --acento: var(--acento-noite); --linha: var(--linha-noite); background: var(--fundo); color: var(--tinta); }


/* ---------- 2. AVISO E MENU ---------- */
.aviso { position: relative; z-index: 31; max-width: none; margin: 0; padding: 8px var(--margem); background: var(--noite); color: var(--sobre-noite); font-size: .8125rem; line-height: 1.5; text-align: center; }
.aviso a { text-underline-offset: 3px; }

.topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); height: 76px; padding: 0 var(--margem); color: var(--topo-tinta); transition: background-color .4s; }
.com-cine .topo { margin-bottom: -76px; }
.topo.rolou, body:not(.com-cine) .topo, .menu-aberto .topo { background: var(--topo-fundo); }
.marca { margin-right: auto; font: var(--peso-titulo, 400) 1.5rem/1 var(--titulo); text-decoration: none; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.menu a { padding: 10px 0; font-size: .9375rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 85% / 0 1px no-repeat; transition: background-size .5s var(--curva); }
.menu a:hover, .menu a[aria-current] { background-size: 100% 1px; }
.menu-botao { display: none; }


/* ---------- 3. BOTÕES ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1px solid currentColor; border-radius: var(--raio); background: transparent; color: inherit; font: 600 .9688rem/1 var(--texto); text-decoration: none; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.botao:hover { background: var(--tinta); border-color: var(--tinta); color: var(--fundo); }
.botao--cheio { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento); }
.topo .botao { min-height: 44px; padding: 0 18px; }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.seta { display: inline-block; padding: 6px 0; font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.seta:hover { color: var(--acento); }


/* ---------- 4. ABERTURA (o vídeo anda com a rolagem) ---------- */
.cine { position: relative; height: 100svh; }
.cine.toca { height: 420vh; }
.palco { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--noite) center / cover; }
.palco canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.palco::after { content: ""; position: absolute; inset: 0; background: var(--veu); }
.momento { position: absolute; z-index: 2; left: var(--margem); right: var(--margem); bottom: clamp(44px, 8vh, 88px); color: var(--cine-tinta); opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .7s var(--curva), transform .7s var(--curva), visibility 0s .7s; }
.momento.ativo { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.momento h1 { max-width: 10em; }
.momento p { max-width: 44ch; margin: 20px 0 0; }
.momento .frase { max-width: 15em; margin: 0; font: var(--peso-titulo, 400) clamp(2rem, 1.3rem + 3vw, 4.2rem)/1.06 var(--titulo); letter-spacing: -.015em; text-wrap: balance; }
.momento .botoes { margin-top: 28px; }


/* ---------- 5. PEÇAS QUE SE REPETEM ---------- */
/* Lista de preços: nome de um lado, valor do outro */
.precos div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--linha); }
.precos div:last-child { border-bottom: 1px solid var(--linha); }
.precos dd { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.onde { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 48px; }
.onde h3 { margin-bottom: 10px; }
.onde p { margin: 0; }

details { border-top: 1px solid var(--linha); }
details:last-child { border-bottom: 1px solid var(--linha); }
summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--acento); transition: rotate .3s var(--curva); }
details[open] summary::after { rotate: 45deg; }

.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding: 52px var(--margem); border-top: 1px solid var(--linha); font-size: .9375rem; }
.rodape p { margin: 0 0 6px; }
.rodape .marca { display: inline-block; margin-bottom: 16px; }

.js .revelar { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--curva), transform .9s var(--curva); }
.js .revelar.visto { opacity: 1; transform: none; }


/* ---------- 6. CELULAR ---------- */
@media (max-width: 860px) {
  .menu-botao { display: block; min-height: 44px; padding: 0 4px; border: 0; background: none; color: inherit; font: 600 1rem/1 var(--texto); cursor: pointer; }
  .menu { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 90px var(--margem) 40px; background: var(--topo-fundo); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .menu-aberto .menu { opacity: 1; visibility: visible; }
  .menu-aberto { overflow: hidden; }
  .menu a { font: var(--peso-titulo, 400) 2.3rem/1.15 var(--titulo); }
  .topo > .botao { padding: 0 14px; }
  .marca { font-size: 1.3rem; }
  .momento { bottom: 84px; }
}

/* ---------- 7. MENOS MOVIMENTO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .revelar { opacity: 1; transform: none; }
}
