/* ============================================================
   Central do Pão · a padaria como estação central
   Cores e arco tirados da logo; painel de plaquinhas giratórias
   ============================================================ */
:root {
  --preto: #0C0A08;
  --painel: #17130F;
  --placa: #231D17;
  --creme: #F0DFBD;
  --ouro: #DDA143;
  --ouro-esc: #8A5218;
  --apagado: #B5A58A;
  --fio: rgba(221, 161, 67, .26);

  --f-tit: "Marcellus", Georgia, serif;
  --f-painel: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-txt: "Barlow", system-ui, sans-serif;

  --lado: clamp(16px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --topo: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--preto); color: var(--creme);
  font: 400 1.125rem/1.55 var(--f-txt);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Antes e depois da inauguração */
:root:not(.inaugurou) .so-depois, .inaugurou .so-antes { display: none !important; }

.titulo { font: 400 clamp(2.4rem, 5.6vw, 5rem)/1.04 var(--f-tit); letter-spacing: -.015em; text-wrap: balance; }
.lead { color: var(--apagado); font-size: clamp(1.1rem, 1.5vw, 1.3rem); margin-top: .9rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .7em 1.6em;
  border: 1.5px solid var(--ouro); border-radius: 8px;
  background: var(--ouro); color: #1B1005;
  font: 600 1.08rem/1.1 var(--f-txt); text-decoration: none; text-align: center;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: #F0BE6A; border-color: #F0BE6A; }
.btn--p { min-height: 44px; padding: .5em 1.1em; font-size: 1rem; }
.btn--vazado { background: transparent; color: var(--creme); }
.btn--vazado:hover { background: var(--creme); border-color: var(--creme); color: #1B1005; }
.link { font-weight: 500; text-decoration-color: var(--ouro); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
a:focus-visible, input:focus-visible { outline: 2px solid var(--ouro); outline-offset: 4px; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.acoes--centro { justify-content: center; gap: 14px; }

/* ---------- Cabeçalho ---------- */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--topo);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--lado);
  background: rgba(12, 10, 8, .92); border-bottom: 1px solid var(--fio);
}
.topo__logo img { height: 58px; width: auto; }
.topo__status { margin-right: auto; display: flex; align-items: center; gap: .55em; font-size: 1rem; color: var(--apagado); white-space: nowrap; }
.luz { width: 9px; height: 9px; border-radius: 50%; background: var(--ouro); animation: pisca 1.6s steps(2, jump-none) infinite; }
.inaugurou .luz { background: #4CC274; animation: none; }
@keyframes pisca { from { opacity: 1; } to { opacity: .25; } }

/* ---------- Plaquinhas giratórias ---------- */
.placas { display: inline-flex; gap: var(--vao, 3px); --h: 1.36em; font: 600 var(--t, 3rem)/1 var(--f-painel); }
.pl { position: relative; display: block; width: var(--w, .72em); height: var(--h); perspective: 300px; color: var(--creme); }
.pl > b { position: absolute; left: 0; right: 0; height: calc(50% - .5px); overflow: hidden; text-align: center; font-weight: 600; background: var(--placa); backface-visibility: hidden; }
.pl .a { top: 0; line-height: var(--h); border-radius: .08em .08em 0 0; background: #2A231C; }
.pl .b { bottom: 0; line-height: 0; border-radius: 0 0 .08em .08em; }
.pl .fa { transform-origin: 50% 100%; visibility: hidden; }
.pl .fb { transform-origin: 50% 0; visibility: hidden; }
.pl.gira .fa { visibility: visible; animation: cai var(--d, .22s) ease-in both; }
.pl.gira .fb { visibility: visible; animation: pousa var(--d, .22s) ease-out both; }
@keyframes cai { 0% { transform: rotateX(0); } 50%, 100% { transform: rotateX(-90deg); } }
@keyframes pousa { 0%, 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }

.painel { background: var(--painel); border: 1px solid var(--fio); border-radius: 12px; padding: clamp(12px, 1.5vw, 20px); }
.painel__linha { display: flex; justify-content: space-between; gap: 12px; font: 500 clamp(1rem, 1.3vw, 1.2rem)/1.2 var(--f-painel); color: var(--ouro); margin-bottom: 12px; }
.painel__linha span:last-child { color: var(--creme); }

/* ---------- Cena 1 ---------- */
.abertura {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 5vw, 88px); align-items: end;
  padding: calc(var(--topo) + clamp(28px, 5vh, 64px)) var(--lado) 0;
}
.abertura__texto { align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 3vh, 32px); padding-bottom: clamp(32px, 6vh, 72px); }
.abertura__titulo { font: 400 clamp(2.7rem, 5.7vw, 5.6rem)/1.02 var(--f-tit); letter-spacing: -.02em; text-wrap: balance; }
.abertura__sub { max-width: 44ch; color: var(--apagado); font-size: clamp(1.1rem, 1.4vw, 1.25rem); }
.painel--conta { width: min(100%, 560px); }
.conta { display: flex; justify-content: space-between; gap: 10px; }
.conta > div { display: flex; flex-direction: column; gap: 6px; }
.conta .placas { --t: clamp(2.9rem, 5.4vw, 4.9rem); }
.conta small { font: 500 1rem/1 var(--f-painel); color: var(--apagado); }

/* O arco da logo vira a janela da estação */
.arco { position: relative; padding: 14px 14px 0; border: 3px solid var(--ouro); border-bottom: 0; border-radius: 999px 999px 0 0; max-width: 600px; width: 100%; justify-self: end; }
.arco img { width: 100%; height: min(72svh, 700px); object-fit: cover; border-radius: 999px 999px 0 0; }

/* ---------- Cena 2 ---------- */
.paradas { padding: clamp(88px, 12vw, 170px) var(--lado) clamp(60px, 8vw, 120px); border-top: 3px solid var(--ouro); }
.paradas__topo { margin-bottom: clamp(36px, 6vw, 90px); }
.paradas__topo .titulo { max-width: 16ch; }
.paradas__grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 80px); align-items: start; }
.paradas__fixo { position: sticky; top: calc(var(--topo) + 32px); }
.placas--nome { --t: clamp(1.9rem, 3.35vw, 3.5rem); --w: .74em; display: flex; justify-content: space-between; }
.lista-paradas { list-style: none; margin-top: 26px; }
.lista-paradas a { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--fio); text-decoration: none; color: var(--apagado); font: 500 1.22rem/1.2 var(--f-painel); transition: color .25s, padding .35s var(--ease); }
.lista-paradas a::after { content: "balcão"; opacity: .0; transition: opacity .25s; color: var(--ouro); }
.lista-paradas a:hover { color: var(--creme); }
.lista-paradas a.ativa { color: var(--creme); padding-left: 14px; }
.lista-paradas a.ativa::after { content: "chegando"; opacity: 1; }

.paradas__fotos { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 110px); }
.parada img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.parada:nth-child(even) { width: 84%; align-self: flex-end; }
.parada:nth-child(even) img { aspect-ratio: 1 / 1; }
.parada:first-child img { border-radius: 999px 999px 4px 4px; aspect-ratio: 1 / 1; }
.parada div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-top: 16px; }
.parada h3 { font: 400 clamp(1.7rem, 2.4vw, 2.3rem)/1.1 var(--f-tit); }
.parada p { color: var(--apagado); }

/* ---------- Cena 3 (creme) ---------- */
.horas { background: var(--creme); color: #21150A; padding: clamp(80px, 11vw, 150px) var(--lado); }
.horas__visor { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px clamp(20px, 4vw, 60px); margin: clamp(20px, 4vw, 48px) 0 clamp(20px, 3vw, 36px); }
.horas__hora { font: 400 clamp(7rem, 25vw, 23rem)/.8 var(--f-tit); letter-spacing: -.05em; font-variant-numeric: tabular-nums; min-width: 2.05em; }
.horas__resp { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; max-width: 22ch; min-height: 4.05em; }
.horas__resp strong { display: block; font: 400 clamp(2rem, 3.6vw, 3.2rem)/1.1 var(--f-tit); color: #8A4A0C; }
.horas__barra { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0; background: transparent; cursor: grab; }
.horas__barra::-webkit-slider-runnable-track { height: 3px; background: #21150A; }
.horas__barra::-moz-range-track { height: 3px; background: #21150A; }
.horas__barra::-webkit-slider-thumb { -webkit-appearance: none; width: 64px; height: 40px; margin-top: -19px; border-radius: 999px; border: 0; background: #8A4A0C; }
.horas__barra::-moz-range-thumb { width: 64px; height: 40px; border-radius: 999px; border: 0; background: #8A4A0C; }
.horas__barra:focus-visible { outline-color: #8A4A0C; }
.horas__regua { display: flex; justify-content: space-between; font: 500 1.05rem/1 var(--f-painel); }
.horas__nota { margin-top: 22px; color: #5E4730; }

/* ---------- Cena 4 · Bilhete ---------- */
.convite { position: relative; display: flex; flex-direction: column; align-items: center; gap: 36px; padding: clamp(90px, 12vw, 170px) var(--lado); isolation: isolate; overflow: hidden; }
.convite__fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .5; }
.bilhete { display: grid; grid-template-columns: 1fr 270px; width: min(100%, 980px); color: #21150A; filter: drop-shadow(0 26px 40px rgba(0,0,0,.5)); }
.bilhete__corpo, .bilhete__canhoto { --r: 14px; background: var(--creme); }
/* picotes: furos na junção do canhoto */
.bilhete__corpo { padding: clamp(24px, 4vw, 48px); border-radius: 6px 0 0 6px; -webkit-mask: radial-gradient(circle var(--r) at 100% 0, #0000 98%, #000) top/100% 51% no-repeat, radial-gradient(circle var(--r) at 100% 100%, #0000 98%, #000) bottom/100% 51% no-repeat; mask: radial-gradient(circle var(--r) at 100% 0, #0000 98%, #000) top/100% 51% no-repeat, radial-gradient(circle var(--r) at 100% 100%, #0000 98%, #000) bottom/100% 51% no-repeat; }
.bilhete__canhoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--preto); color: var(--creme); border-left: 2px dashed var(--ouro); border-radius: 0 6px 6px 0; }
.bilhete__canhoto img { width: 180px; }
.bilhete__canhoto p { font-size: 1rem; line-height: 1.35; max-width: 18ch; }
.bilhete__titulo { font: 400 clamp(1.9rem, 3.8vw, 3.2rem)/1.06 var(--f-tit); text-wrap: balance; }
.bilhete dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: clamp(22px, 3vw, 34px); }
.bilhete .largo { grid-column: 1 / -1; }
.bilhete dt { font: 500 1rem/1 var(--f-painel); color: #7A4A14; }
.bilhete dd { font: 600 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--f-painel); margin-top: 5px; }

/* ---------- Cena 5 · Visite ---------- */
.visite { display: grid; grid-template-columns: 1fr 1.1fr; border-top: 3px solid var(--ouro); }
.visite__info { padding: clamp(64px, 9vw, 130px) clamp(24px, 4vw, 64px) clamp(64px, 9vw, 130px) var(--lado); }
.dados { margin: 34px 0; }
.dados div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--fio); }
.dados div:last-of-type { border-bottom: 1px solid var(--fio); }
.dados dt { color: var(--apagado); }
.visite__mapa { min-height: 460px; background: var(--painel); }
.visite__mapa iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: sepia(.35) saturate(.8); }

.rodape { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 64px var(--lado) 44px; border-top: 1px solid var(--fio); color: var(--apagado); }
.rodape img { width: min(260px, 60vw); margin-bottom: 14px; }
.rodape__peq { font-size: .95rem; }

.barra { display: none; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  :root { --topo: 64px; }
  .topo .btn { display: none !important; }
  .topo__logo img { height: 52px; }
  .topo__status { margin: 0 0 0 auto; }
  .abertura { grid-template-columns: 1fr; padding-top: calc(var(--topo) + 28px); gap: 8px; }
  .abertura__texto { padding-bottom: 28px; }
  .arco { justify-self: center; padding: 10px 10px 0; }
  .arco img { height: auto; aspect-ratio: 1 / 1.05; }
  .painel--conta { width: 100%; }
  .conta .placas { --t: clamp(2.35rem, 11.4vw, 4rem); }

  .paradas__grade { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .paradas__fixo { top: calc(var(--topo) + 8px); z-index: 5; }
  .painel--produto { box-shadow: 0 0 0 10px var(--preto), 0 18px 20px 6px rgba(12, 10, 8, .8); }
  .placas--nome { --t: clamp(1.75rem, 7.9vw, 3rem); --w: .72em; --vao: 2px; }
  .lista-paradas { display: none; }
  .parada:nth-child(even) { width: 100%; }

  .bilhete { grid-template-columns: 1fr; }
  .bilhete__corpo { border-radius: 6px 6px 0 0; -webkit-mask: none; mask: none; }
  .bilhete__canhoto { border-left: 0; border-top: 2px dashed var(--ouro); border-radius: 0 0 6px 6px; }
  .visite { grid-template-columns: 1fr; }
  .visite__info { padding: 72px var(--lado) 48px; }
  .acoes, .acoes .btn { width: 100%; }
  .horas__visor { row-gap: 46px; }

  .barra { position: fixed; inset: auto 0 0; z-index: 60; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(12, 10, 8, .95); border-top: 1px solid var(--fio); }
  .barra .btn { flex: 1; padding: .6em .5em; font-size: 1.04rem; }
  .rodape { padding-bottom: 120px; }
}

.reduz *, .reduz *::before, .reduz *::after { animation: none !important; transition: none !important; }
