/* Página inicial nova do Freguês: abertura (cena 1). Paleta Brew & Bean: espresso, chocolate, âmbar, caramelo, latte e creme. */
:root {
  --espresso: #170e09; --espresso-2: #1f140d; --chocolate: #2b1a10; --ambar: #6b4420;
  --caramelo: #b07a45; --dourado: #c9965a; --marrom: #a26c42; --latte: #eadccb; --creme: #f7efe6;
  --tinta: #2b1a10;
  --fonte: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Didot", "Bodoni 72", Georgia, serif;
  --topo: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { font: 16px/1.55 var(--fonte); color: var(--creme); background: var(--espresso-2); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; border-radius: 6px; }

/* ---------- topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--topo);
  display: flex; align-items: center; gap: 12px;
  padding: 0 max(20px, calc((100vw - 1600px) / 2 + 32px)); padding-top: env(safe-area-inset-top);
  color: var(--tinta); transition: color .35s, background-color .35s;
}
.topo.escuro { color: var(--creme); background-color: rgb(23 14 9 / 82%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 17px; }
.marca-icone { width: 34px; height: 34px; flex: none; }
.marca small { display: block; font-weight: 500; font-size: 11px; opacity: .72; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.topo-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topo-links .link { text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px; opacity: .85; white-space: nowrap; }
.topo-links .link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.btn-contorno {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 12px; white-space: nowrap;
  border: 1.5px solid currentColor; font-weight: 700; font-size: 14px; text-decoration: none;
}
.btn-contorno:hover { background: rgb(201 150 90 / 18%); }
@media (max-width: 560px) { .so-largo { display: none; } .marca small { display: none; } .topo-links .link { padding: 10px 6px; } .btn-contorno { padding: 0 12px; } }

/* ---------- abertura ---------- */
.abertura { position: relative; height: 330vh; height: 330svh; }
.palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #e9c7a2; }
.plano { position: absolute; left: 0; top: 0; pointer-events: none; }
.camada { overflow: visible; transform-origin: 0 0; }
.fundo { inset: -15%; will-change: transform; transform-origin: 0 0; }
.fundo > div { position: absolute; inset: 0; }
.parede { background: radial-gradient(60% 50% at 30% 30%, #f7e4cc 0%, transparent 70%), linear-gradient(180deg, #f2dcc1 0%, #e6bf96 60%, #d6a679 100%); }
/* luz de janela: sombras diagonais suaves dos caixilhos na parede */
.janela {
  background:
    linear-gradient(118deg, transparent 0 18%, rgb(122 70 32 / 15%) 22% 27%, transparent 31% 46%, rgb(122 70 32 / 13%) 50% 54%, transparent 58% 100%),
    linear-gradient(28deg, transparent 0 40%, rgb(122 70 32 / 9%) 43% 45%, transparent 48% 100%);
}
/* a mesma parede quando a fumaça sobe: escura e quente, com luz âmbar no canto */
.noite { opacity: 0; background: radial-gradient(55% 55% at 82% 14%, #6b4420 0%, #3a2414 45%, transparent 75%), linear-gradient(180deg, #2b1a10, #170e09); }

.derrame { width: 100%; height: 100%; inset: 0; }

/* ---------- texto ---------- */
.texto {
  position: absolute; z-index: 5;
  left: max(52vw, calc((100vw - 1600px) / 2 + 860px)); right: max(5vw, calc((100vw - 1600px) / 2 + 32px));
  top: 50%; transform: translateY(-46%);
  max-width: 640px;
}
h1 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; line-height: 1.02; }
.linha { display: block; overflow: hidden; padding-bottom: .08em; }
.linha > span { display: inline-block; }
h1 .linha:first-child { font-size: clamp(56px, 7.2vw, 128px); color: var(--creme); }
.linha-2 { font-size: clamp(32px, 3.5vw, 60px); color: var(--dourado); font-weight: 400; margin-top: .1em; }
.apoio { margin: 22px 0 0; max-width: 34em; font-size: clamp(17px, 1.3vw, 20px); color: #e3d3c0; }
.acoes { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn-cheio {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 14px;
  background: var(--dourado); color: var(--espresso); font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 55%); transition: background-color .2s, transform .2s;
}
.btn-cheio:hover { background: #d9a86c; }
.btn-cheio:active { transform: translateY(1px); }
.link-demo { font-weight: 600; text-decoration: none; padding: 12px 4px; color: var(--latte); }
.link-demo:hover { text-decoration: underline; text-underline-offset: 5px; }

/* celular e tablet em pé: xícara em cima, texto embaixo */
@media (max-width: 899px) {
  .texto { left: 20px; right: 20px; top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); transform: none; max-width: 620px; }
  h1 .linha:first-child { font-size: clamp(46px, 12vw, 76px); }
  .linha-2 { font-size: clamp(27px, 7.2vw, 44px); }
  .apoio { margin-top: 14px; font-size: 16px; }
  .acoes { margin-top: 20px; gap: 6px 18px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  h1 .linha:first-child { font-size: 42px; }
  .linha-2 { font-size: 26px; }
  .apoio { font-size: 15px; line-height: 1.45; }
  .acoes { margin-top: 14px; }
  .btn-cheio { min-height: 50px; }
}

/* fumaça viva depois que o café está pronto (só com movimento) */
.vivo .fio-vapor { animation: sobe 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.vivo .v2 { animation-duration: 6.2s; animation-delay: -1.4s; }
.vivo .v3 { animation-duration: 4.6s; animation-delay: -2.6s; }
@keyframes sobe { 0%, 100% { transform: translate(0, 0) skewX(0); } 50% { transform: translate(2px, -6px) skewX(-6deg); } }

/* ---------- rodapé ---------- */
.rodape {
  width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 40px max(20px, calc((100vw - 1600px) / 2 + 32px)) calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(201 150 90 / 22%); color: #cbb59c; font-size: 14px;
}
.rodape a { color: var(--dourado); }
.rodape .empresa { flex-basis: 100%; font-size: 13px; overflow-wrap: anywhere; }

/* sem JavaScript: cena parada com o título à vista */
html:not(.js) .abertura { height: auto; }
html:not(.js) .palco { position: relative; min-height: 100vh; }
html:not(.js) .camada, html:not(.js) .derrame { display: none; }
html:not(.js) .noite { opacity: 1; }
html:not(.js) .topo { color: var(--creme); }

/* menos movimento: a cena fica parada no café pronto, com o título; sem trilho de rolagem */
@media (prefers-reduced-motion: reduce) {
  .abertura { height: 100vh; height: 100svh; }
  .topo, .btn-cheio { transition: none; }
}
