/* 3 Irmãs Cortinas, versão modelada na terminal-industries.com.
   Base do site: cores, tipografia, topo em pílula, abertura em filme, botões, painéis chanfrados, barra fixa.
   As áreas (entrada, provador, catalogo, prova, fim) têm CSS próprio e usam só estas variáveis e classes. */

:root {
  --noite: #0E0B08;            /* preto quente: filme e passagem */
  --cafe: #1D1610;             /* painéis e faixas escuras (o verde escuro da Terminal, na cor da marca) */
  --cafe-2: #2A2018;           /* degrau acima do café: cartão dentro de painel escuro */
  --papel: #F5F1EA;            /* base clara */
  --papel-2: #EBE5D9;          /* base clara alternada, cartões */
  --linho: #DDD3C2;            /* placas e bordas cheias */
  --tinta: #191511;
  --tinta-suave: #635A4E;
  --ouro: #E2BC72;             /* a única cor forte: botão principal e detalhes sobre escuro */
  --ouro-forte: #EDCB8A;
  --ouro-escuro: #80612C;      /* dourado para texto sobre fundo claro */
  --whats: #1F7A4D;
  --linha: rgba(25, 21, 17, .14);
  --linha-forte: rgba(25, 21, 17, .3);
  --linha-clara: rgba(245, 241, 234, .16);
  --branco: #fff;

  /* nomes antigos, mantidos para o CSS das áreas */
  --creme: var(--papel); --creme-2: var(--papel-2);
  --bronze: var(--ouro-escuro); --bronze-claro: var(--ouro);
  --acao: var(--tinta); --acao-hover: #3A3027;

  --sem: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serifa: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --largura: 1240px;
  --margem: clamp(18px, 4.4vw, 56px);
  --lado: var(--margem);
  --secao: clamp(72px, 9.5vw, 144px);
  --raio: 6px;
  --corte: clamp(16px, 2.2vw, 28px);   /* tamanho do chanfro dos painéis */
  --topo-altura: 74px;                 /* pílula do topo, para as âncoras */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--papel); scroll-padding-top: var(--topo-altura); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--sem); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sem); font-weight: 500; line-height: 1.02; margin: 0; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 96px); }
h2 { font-size: clamp(34px, 5vw, 68px); }
h3 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.12; letter-spacing: -.02em; }
h1 em, h2 em, h3 em, .frase em { font-family: var(--serifa); font-style: italic; font-weight: 400; letter-spacing: -.015em; font-size: 1.08em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ouro-escuro); outline-offset: 3px; border-radius: 2px; }
.fundo-escuro :focus-visible, .fundo-noite :focus-visible, .painel :focus-visible, .topo :focus-visible { outline-color: var(--ouro); }

.pular { position: absolute; left: -9999px; top: 0; background: var(--tinta); color: var(--papel); padding: 12px 16px; z-index: 200; }
.pular:focus { left: 8px; top: 8px; }

/* Rótulo pequeno em mono, com o quadradinho dourado (os rótulos da Terminal) */
.sobretitulo {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; font-weight: 500;
  color: var(--tinta-suave); display: inline-flex; align-items: center; gap: 9px;
}
.sobretitulo::before { content: ""; width: 7px; height: 7px; background: var(--ouro-escuro); flex: none; }
.fundo-escuro .sobretitulo, .fundo-noite .sobretitulo, .painel .sobretitulo { color: rgba(245, 241, 234, .72); }
.fundo-escuro .sobretitulo::before, .fundo-noite .sobretitulo::before, .painel .sobretitulo::before { background: var(--ouro); }
.rotulo {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid var(--linha-forte); border-radius: 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}

.secao { padding: var(--secao) var(--margem); position: relative; }
.secao-dentro { max-width: var(--largura); margin: 0 auto; }
.secao-cabeca { max-width: 860px; margin-bottom: clamp(32px, 4.6vw, 64px); }
.secao-cabeca.centro { margin-left: auto; margin-right: auto; text-align: center; }
.secao-cabeca .sobretitulo { margin-bottom: 18px; }
.secao-cabeca p:not(.sobretitulo) { margin-top: 20px; color: var(--tinta-suave); font-size: clamp(17px, 1.5vw, 20px); max-width: 38em; }
.secao-cabeca.centro p:not(.sobretitulo) { margin-left: auto; margin-right: auto; }
.fundo-2 { background: var(--papel-2); }
.fundo-escuro { background: var(--cafe); color: var(--papel); }
.fundo-noite { background: var(--noite); color: var(--papel); }
.fundo-escuro .secao-cabeca p:not(.sobretitulo), .fundo-noite .secao-cabeca p:not(.sobretitulo), .painel .secao-cabeca p:not(.sobretitulo) { color: rgba(245, 241, 234, .74); }

/* Painel chanfrado: a assinatura visual. Cantos cortados em cima à esquerda e embaixo à direita. */
.painel {
  background: var(--cafe); color: var(--papel);
  clip-path: polygon(var(--corte) 0, 100% 0, 100% calc(100% - var(--corte)), calc(100% - var(--corte)) 100%, 0 100%, 0 var(--corte));
}
.painel-claro { background: var(--papel-2); color: var(--tinta); clip-path: polygon(var(--corte) 0, 100% 0, 100% calc(100% - var(--corte)), calc(100% - var(--corte)) 100%, 0 100%, 0 var(--corte)); }
/* Seção escura com o entalhe no topo (a aba central das seções escuras da Terminal). Use numa seção inteira. */
.entalhe-topo {
  --aba: clamp(120px, 22vw, 300px); --dente: 26px;
  margin-top: calc(var(--dente) * -1);
  clip-path: polygon(0 var(--dente), calc(50% - var(--aba) - var(--dente)) var(--dente), calc(50% - var(--aba)) 0, calc(50% + var(--aba)) 0, calc(50% + var(--aba) + var(--dente)) var(--dente), 100% var(--dente), 100% 100%, 0 100%);
}

/* Botões: pequenos, em mono, como os da Terminal. O dourado é o principal. */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 22px; border-radius: var(--raio); text-align: center;
  font: 500 12.5px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.botao-ouro { background: var(--ouro); color: var(--tinta); }
.botao-ouro:hover { background: var(--ouro-forte); }
.botao-cheio { background: var(--tinta); color: var(--papel); }
.botao-cheio:hover { background: var(--acao-hover); }
.botao-linha { background: transparent; color: var(--tinta); border-color: var(--linha-forte); }
.botao-linha:hover { border-color: var(--tinta); }
.botao-whats { background: var(--whats); color: #fff; }
.botao-whats:hover { background: #17633E; }
.fundo-escuro .botao-cheio, .fundo-noite .botao-cheio, .painel .botao-cheio { background: var(--papel); color: var(--tinta); }
.fundo-escuro .botao-linha, .fundo-noite .botao-linha, .painel .botao-linha, .topo .botao-linha { color: var(--papel); border-color: rgba(245, 241, 234, .42); }
.fundo-escuro .botao-linha:hover, .fundo-noite .botao-linha:hover, .painel .botao-linha:hover, .topo .botao-linha:hover { border-color: var(--papel); }
.botao[disabled], .botao[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* Topo: faixa de prévia e menu em pílula, presos no alto */
.topo { position: fixed; left: 0; right: 0; top: 0; z-index: 80; pointer-events: none; }
.previa-faixa {
  margin: 0; background: var(--noite); color: rgba(245, 241, 234, .78); text-align: center; pointer-events: auto;
  font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px;
}
.topo-pilula {
  pointer-events: auto; position: relative; margin: 10px auto 0; width: min(calc(100% - 20px), 1080px);
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 6px 6px 6px 16px;
  background: rgba(29, 22, 16, .92); color: var(--papel); border: 1px solid var(--linha-clara); border-radius: 12px;
}
.marca { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; line-height: 1; padding: 0; margin-right: auto; white-space: nowrap; }
.marca-nome { font-family: var(--sem); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.marca-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ouro); }
.topo-pilula .botao { min-height: 44px; padding: 9px 14px; font-size: 11.5px; white-space: nowrap; }
.topo-whats { display: none; }
.menu-botao {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  background: rgba(245, 241, 234, .1); border: 0; border-radius: var(--raio); color: var(--papel); cursor: pointer;
}
.menu-botao-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.menu-botao-icone { position: relative; width: 18px; height: 10px; }
.menu-botao-icone::before, .menu-botao-icone::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s, top .25s;
}
.menu-botao-icone::before { top: 0; }
.menu-botao-icone::after { top: 8.5px; }
.menu-botao[aria-expanded="true"] .menu-botao-icone::before { top: 4px; transform: rotate(45deg); }
.menu-botao[aria-expanded="true"] .menu-botao-icone::after { top: 4px; transform: rotate(-45deg); }
.menu {
  display: none; position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); flex-direction: column;
  background: #1D1610; border: 1px solid var(--linha-clara); border-radius: 12px; padding: 8px 16px 16px;
}
.menu.aberto { display: flex; }
.menu a:not(.botao) { text-decoration: none; padding: 15px 0; border-bottom: 1px solid var(--linha-clara); font-size: 19px; letter-spacing: -.01em; }
.menu .menu-whats { margin-top: 16px; }

/* ===== Abertura: filme guiado pela rolagem (motor do kit, filme.js) =====
   Casa atual, com cortina alta iluminada. Frases em branco no pé da imagem; o título vem num cartão claro chanfrado. */
.filme { height: 400vh; position: relative; background: var(--cafe); color: #fff; }
.tela { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--cafe) url(/frames/v4/m/f_0001.webp) center/cover; }
#filme { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Véu fixo e curto no pé da imagem, só onde ficam as frases: a cortina e a luz ficam livres */
.veu { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(22, 15, 9, .72) 0%, rgba(22, 15, 9, .46) 20%, rgba(22, 15, 9, 0) 46%); }

.frase {
  position: absolute; left: var(--lado); right: var(--lado); bottom: calc(74px + env(safe-area-inset-bottom, 0px)); margin: 0;
  font-size: clamp(44px, 13.4vw, 80px); line-height: .98; font-weight: 500; letter-spacing: -.04em; text-wrap: balance;
  opacity: 0; text-shadow: 0 2px 30px rgba(22, 15, 9, .5); will-change: opacity, transform;
}
.frase::before { content: none; }

/* Fecho: cartão claro chanfrado com o título, o texto e os botões */
.fecho {
  position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-width: 720px;
  padding: 22px 20px 20px; background: var(--papel); color: var(--tinta);
  clip-path: polygon(var(--corte) 0, 100% 0, 100% calc(100% - var(--corte)), calc(100% - var(--corte)) 100%, 0 100%, 0 var(--corte));
  opacity: 0; visibility: hidden; will-change: opacity, transform;
}
.fecho .sobretitulo { margin-bottom: 12px; }
.fecho h1 { font-size: clamp(33px, 9.4vw, 60px); line-height: 1; }
.fecho p:not(.sobretitulo):not(.fecho-nota) { font-size: 16.5px; line-height: 1.42; margin-top: 12px; max-width: 33em; color: var(--tinta-suave); }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.acoes .botao { flex: 1 1 auto; }
.fecho-nota { margin-top: 14px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); }
.fecho-nota b { color: var(--ouro-escuro); font-weight: 500; }
.dica {
  position: absolute; left: var(--lado); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); margin: 0; display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: .9;
}
.dica::before { content: ""; width: 1px; height: 22px; background: var(--ouro); animation: dica 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes dica { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.filme-credito { position: absolute; right: 10px; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); margin: 0; font: 400 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }

/* Tela deitada (computador): quadros largos, frases e cartão embaixo à esquerda */
@media (min-aspect-ratio: 1/1) {
  .filme { height: 430vh; }
  .tela { background-image: url(/frames/v4/d/f_0001.webp); }
  .veu { background: radial-gradient(ellipse 62% 66% at 0% 100%, rgba(22, 15, 9, .7) 0%, rgba(22, 15, 9, .4) 46%, rgba(22, 15, 9, 0) 100%); }
  .frase { right: auto; bottom: clamp(64px, 12vh, 120px); max-width: min(52vw, 860px); font-size: clamp(48px, min(6vw, 11vh), 116px); text-wrap: initial; }
  .fecho { left: var(--lado); right: auto; bottom: clamp(28px, 6vh, 64px); width: min(46vw, 680px); padding: clamp(26px, 2.6vw, 40px); }
  .fecho h1 { font-size: clamp(38px, min(3.9vw, 7.4vh), 66px); }
  .fecho p:not(.sobretitulo):not(.fecho-nota) { font-size: clamp(16.5px, 1.2vw, 19px); }
  .acoes .botao { flex: 0 0 auto; }
  .dica { bottom: 30px; }
  .filme-credito { bottom: 12px; }
}

/* Telas baixas (celular pequeno, ou celular deitado): o cartão e as frases encolhem para caber abaixo do topo fixo */
@media (max-height: 640px) {
  .frase { font-size: clamp(36px, 11vw, 60px); }
  .fecho { padding: 16px 16px 14px; }
  .fecho .sobretitulo { margin-bottom: 8px; }
  .fecho h1 { font-size: clamp(27px, 8.2vw, 40px); }
  .fecho p:not(.sobretitulo):not(.fecho-nota) { font-size: 15px; line-height: 1.36; margin-top: 8px; }
  .acoes { margin-top: 12px; }
  .acoes .botao { min-height: 44px; padding: 9px 12px; }
  .fecho-nota { margin-top: 10px; }
}
@media (max-height: 480px) {
  .frase { font-size: clamp(30px, 6vw, 50px); bottom: 52px; }
  .fecho { width: min(64vw, 520px); padding: 14px 16px; bottom: 10px; }
  .fecho .sobretitulo, .fecho p:not(.sobretitulo):not(.fecho-nota), .fecho-nota { display: none; }
  .fecho h1 { font-size: clamp(24px, 4.4vw, 34px); }
  .acoes { flex-wrap: nowrap; margin-top: 10px; }
}

/* Reduzir movimento: pôster parado, frases escondidas, fecho visível */
.parado .filme { height: auto; }
.parado .tela { position: relative; height: 100vh; height: 100svh; background-image: url(/frames/v4/poster-m.webp); }
.parado .frase, .parado .dica, .parado #filme { display: none; }
.parado .fecho { opacity: 1; visibility: visible; }
@media (min-aspect-ratio: 1/1) { .parado .tela { background-image: url(/frames/v4/poster-d.webp); } }
/* Sem JavaScript o fecho também aparece */
.sem-js .frase, .sem-js .dica { display: none; }
.sem-js .filme { height: auto; }
.sem-js .tela { position: relative; }
.sem-js .fecho { opacity: 1; visibility: visible; }

/* Teclado: os links do fecho continuam focáveis fora do trecho em que aparecem (integracao.js leva a rolagem até lá) */
.fecho[style*="visibility: hidden"] { visibility: visible !important; pointer-events: none; }
.fecho:has(a:focus-visible) { opacity: 1 !important; transform: none !important; pointer-events: auto; }

/* Barra fixa do celular */
.barra-fixa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); background: rgba(14, 11, 8, .97); border-top: 1px solid var(--linha-clara);
  transform: translateY(110%); transition: transform .3s ease;
}
.barra-fixa.visivel { transform: none; }
.barra-fixa .botao { min-height: 46px; padding: 10px 8px; font-size: 11.5px; white-space: nowrap; }
.barra-fixa .botao-linha { color: var(--papel); border-color: rgba(245, 241, 234, .42); }
/* no celular o rodapé ganha a altura da barra fixa, para ela não cobrir a última linha */
@media (max-width: 899px) { footer.fim-rodape { padding-bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* Entrada discreta ao rolar: o conteúdo só fica escondido se o JavaScript marcar o html com .anima */
.anima [data-revelar] { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.anima [data-revelar].visto { opacity: 1; transform: none; }

@media (min-width: 900px) {
  body { font-size: 18px; }
  .barra-fixa { display: none; }
  .topo-whats { display: inline-flex; }
}
@media (min-width: 1080px) {
  .menu-botao { display: none; }
  .marca { margin-right: 18px; }
  .menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; border: 0; background: none; margin-right: auto; }
  .menu a:not(.botao) { border: 0; padding: 10px 9px; font-size: 14px; border-radius: var(--raio); white-space: nowrap; transition: background-color .2s; }
  /* 8 links desde 18/11/2026 (Escolas, Hotelaria e Blog): a pílula alarga um pouco e os links ficam mais justos */
  .topo-pilula { width: min(calc(100% - 20px), 1160px); }
  .menu { gap: 2px; }
  .menu a[aria-current] { background: rgba(245, 241, 234, .1); color: var(--ouro); }
  .menu a:not(.botao):hover { background: rgba(245, 241, 234, .1); }
  .menu .menu-whats { display: none; }
}
@media (max-width: 379px) {
  .marca-sub { display: none; }
  .topo-pilula .botao { padding: 9px 10px; font-size: 11px; letter-spacing: .04em; }
}

@media (prefers-reduced-motion: reduce) {
  .anima [data-revelar] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Botão redondo do WhatsApp (menu.js): sobe depois da primeira dobra; no celular fica acima da barra fixa quando ela aparece */
.whats-flutuante {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 75;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, bottom .3s ease, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.whats-flutuante.visivel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.whats-flutuante.sobre-barra { bottom: calc(80px + env(safe-area-inset-bottom)); }
.whats-flutuante.no-filme { bottom: calc(44px + env(safe-area-inset-bottom)); }
.whats-flutuante:hover { background: #1EBE5A; }
.whats-flutuante:focus-visible { outline: 3px solid var(--ouro, #C9A45C); outline-offset: 3px; }
html.provador-aberto .whats-flutuante { visibility: hidden; opacity: 0; }
@media (min-width: 900px) { .whats-flutuante { right: 28px; bottom: 28px; width: 62px; height: 62px; } .whats-flutuante.no-filme { bottom: 48px; } .whats-flutuante svg { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .whats-flutuante { transition: none; } }
