/* ==========================================================================
   BOMBAR — BIO
   Paleta extraída da logo (marca, destaque) e de 8 fotos do acervo
   (fundo, superfície, texto). Todos os pares passam WCAG AA.
   ========================================================================== */

/* ------------------------------------------------------------------ fontes */

@font-face {
  font-family: 'Abril Fatface';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/abril-fatface-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Abril Fatface';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/abril-fatface-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ tokens */

:root {
  /* Cor. Os seis primeiros saíram do k-means; os três últimos existem
     porque o teste de contraste exigiu. Não acrescente cor fora daqui. */
  --fundo:       #1B1409;
  --superficie:  #2A2114;
  --texto:       #F5EDE2;
  --texto-2:     #AD9C85;
  --marca:       #044A4A;
  --destaque:    #FFA81A;
  --linha:       #7A6A4E;
  --marca-clara: #3E9E8C;
  --tinta:       #140F08;

  --superficie-alta: #332818;
  --sombra: 0 18px 40px -22px rgba(0, 0, 0, .9);

  /* Tipografia */
  --display: 'Abril Fatface', Georgia, 'Times New Roman', serif;
  --texto-fonte: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Espaço */
  --col: 640px;          /* largura da coluna de conteúdo */
  --borda: clamp(1.15rem, 5vw, 2rem);
  --secao: clamp(2.75rem, 7vw, 4.25rem);

  --r: 10px;
  --topo-h: 56px;

  --curva: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 900px) {
  :root { --topo-h: 64px; }
}

/* -------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--texto-fonte);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--destaque); }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--destaque);
  outline-offset: 3px;
  border-radius: 4px;
}

.pular {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--destaque);
  color: var(--tinta);
  padding: .7rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
}
.pular:focus { left: 8px; top: 8px; }

.oculto {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.envelope {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: var(--borda);
}

/* -------------------------------------------------------------------- topo */

.topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--topo-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 260ms var(--curva), border-color 260ms var(--curva);
  border-bottom: 1px solid transparent;
}

.topo.rolou {
  background: rgba(27, 20, 9, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: rgba(122, 106, 78, .32);
}

.topo__interno {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: var(--borda);
  display: flex;
  align-items: center;
  gap: .55rem;
}

.topo__marca {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--texto);
}

.topo__espiga {
  height: 22px;
  width: auto;
  fill: var(--destaque);
  flex: none;
}

.topo__nome {
  height: 15px;
  width: auto;
  fill: currentColor;
  flex: none;
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  margin-top: 0;
  background: var(--fundo);
}

.vitrine {
  position: relative;
  overflow: hidden;
}

.vitrine__trilho {
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.vitrine__trilho::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.04) brightness(.97);
}

/* No desktop o hero deixa de sangrar até a borda. Full-bleed em 1440px
   deixa a foto com 810px de altura e joga os botões abaixo da dobra, que
   é justamente o que a página existe para mostrar. Teto de 960px também
   aproxima a foto da coluna de 640px do conteúdo. */
@media (min-width: 760px) {
  .vitrine {
    max-width: 960px;
    margin-inline: auto;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
  }
  .slide img { aspect-ratio: 16 / 9; }
}

/* Véu inferior: o bloco de identidade senta em cima da foto. */
.vitrine::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to bottom,
              rgba(27, 20, 9, 0) 0%,
              rgba(27, 20, 9, .55) 55%,
              var(--fundo) 100%);
  pointer-events: none;
}

/* setas: só no ponteiro fino */
.vitrine__seta {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 3;
  width: 44px; height: 44px;
  display: none;
  place-items: center;
  border: 1px solid rgba(245, 237, 226, .3);
  border-radius: 50%;
  background: rgba(20, 15, 8, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--texto);
  cursor: pointer;
  transition: background 200ms var(--curva), border-color 200ms var(--curva);
}
.vitrine__seta:hover {
  background: rgba(20, 15, 8, .8);
  border-color: var(--destaque);
}
.vitrine__seta--ant { left: 14px; }
.vitrine__seta--prox { right: 14px; }
.vitrine__seta svg { width: 17px; height: 17px; }

@media (hover: hover) and (pointer: fine) and (min-width: 760px) {
  .vitrine__seta { display: grid; }
}

/* logo acima do distintivo circular, que invade os 46px de baixo da foto */
.vitrine__pontos {
  position: absolute;
  left: 0; right: 0;
  bottom: 42px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0;
}

@media (min-width: 760px) {
  .vitrine__pontos { bottom: 58px; }
}

/* O botão inteiro é o alvo de toque (24x40). O ponto visível é o ::before,
   então o alvo cresce sem que a bolinha engorde. */
.ponto {
  display: grid;
  place-items: center;
  width: 24px; height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.ponto::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(245, 237, 226, .38);
  transition: background 200ms var(--curva), width 200ms var(--curva);
}
.ponto[aria-current="true"]::before {
  background: var(--destaque);
  width: 20px;
  border-radius: 4px;
}

/* -------------------------------------------------------------- identidade */

.identidade {
  position: relative;
  z-index: 5;
  margin-top: -46px;
  text-align: center;
  padding-bottom: var(--secao);
}

@media (min-width: 760px) {
  .identidade { margin-top: -58px; }
}

.distintivo {
  width: 92px; height: 92px;
  margin: 0 auto .95rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--marca);
  border: 2px solid var(--destaque);
  box-shadow: var(--sombra);
}
.distintivo__espiga { height: 46px; width: auto; fill: var(--destaque); }

@media (min-width: 760px) {
  .distintivo { width: 112px; height: 112px; }
  .distintivo__espiga { height: 56px; }
}

/* ---- ASSINATURA: o letreiro ---------------------------------------------
   Aceso quando o bar está aberto, apagado quando está fechado. O estado
   vem do mesmo relógio que calcula a frase de status, no fuso de São
   Paulo. Sem JavaScript, nasce aceso.
   ------------------------------------------------------------------------ */

.letreiro {
  position: relative;
  display: inline-block;
  color: var(--destaque);
  line-height: 0;
  transition: color 700ms var(--curva), filter 700ms var(--curva);
  /* Um drop-shadow só. Três empilhados sobre um path de 528 curvas custavam
     4,2s de rasterização na CPU estrangulada do Lighthouse. O brilho largo
     vem do gradiente em ::before, que é barato. */
  filter: drop-shadow(0 0 12px rgba(255, 168, 26, .5));
}

.letreiro svg {
  display: block;
  width: min(66vw, 330px);
  height: auto;
  fill: currentColor;
}

/* o halo atrás das letras */
.letreiro::before {
  content: '';
  position: absolute;
  inset: -80% -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
              rgba(255, 168, 26, .18) 0%,
              rgba(255, 168, 26, .07) 42%,
              transparent 72%);
  opacity: 1;
  transition: opacity 700ms var(--curva);
  pointer-events: none;
}

/* apagado: 4,54:1 sobre o fundo, ainda legível como título */
.letreiro.apagado {
  color: #9A7A3C;
  filter: none;
}
.letreiro.apagado::before { opacity: 0; }

.bio {
  max-width: 30ch;
  margin: .85rem auto 0;
  color: var(--texto-2);
  font-size: .97rem;
  line-height: 1.5;
}

.redes {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.15rem;
}

.rede {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--linha);
  border-radius: 50%;
  background: var(--superficie);
  color: var(--texto);
  text-decoration: none;
  transition: border-color 200ms var(--curva), background 200ms var(--curva),
              color 200ms var(--curva);
}
.rede:hover { border-color: var(--destaque); color: var(--destaque); }
.rede svg { width: 21px; height: 21px; }

/* ------------------------------------------------------------------ status */

.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.15rem;
  padding: .5rem .95rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  background: var(--superficie);
  font-size: .84rem;
  font-weight: 500;
  color: var(--texto-2);
}

.status__ponto {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--linha);
  flex: none;
}
.status.aberto .status__ponto { background: var(--marca-clara); }
.status.aberto strong { color: var(--texto); }
.status strong { font-weight: 700; }

/* uma pulsação, uma vez, na carga */
@keyframes acende {
  0%   { box-shadow: 0 0 0 0 rgba(72, 155, 117, .55); }
  100% { box-shadow: 0 0 0 11px rgba(72, 155, 117, 0); }
}
.status.aberto .status__ponto { animation: acende 1.6s var(--curva) 1; }

/* ------------------------------------------------------------------ seções */

.secao { padding-block: 0 var(--secao); }

.secao__titulo {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.35rem;
  font-family: var(--texto-fonte);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--destaque);
}
.secao__titulo::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--linha), transparent);
}

/* ----------------------------------------------------------------- botões */

.grade {
  display: grid;
  gap: .7rem;
  grid-template-columns: 1fr;
  padding-bottom: var(--secao);
}

@media (min-width: 620px) {
  .grade { grid-template-columns: 1fr 1fr; }
}

.botao {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  min-height: 68px;
  padding: .85rem 1rem;
  border: 1px solid var(--linha);
  border-radius: var(--r);
  background: var(--superficie);
  color: var(--texto);
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 200ms var(--curva), background 200ms var(--curva),
              transform 200ms var(--curva);
}

.botao:hover {
  background: var(--superficie-alta);
  border-color: var(--destaque);
  transform: translateY(-2px);
}

.botao:active { transform: translateY(0); }

/* o primeiro botão é o que a página quer que aconteça */
.botao--principal {
  background: var(--marca);
  border-color: var(--marca-clara);
}
.botao--principal:hover {
  background: #034A32;
  border-color: var(--destaque);
}

/* botão ainda sem destino: mesma aparência, sem ação */
.botao[data-sem-destino] { cursor: default; }
.botao[data-sem-destino]:hover {
  transform: none;
  background: var(--superficie);
  border-color: var(--linha);
}

.botao__icone {
  flex: none;
  width: 22px; height: 22px;
  color: var(--destaque);
}
.botao__icone svg { width: 100%; height: 100%; }

.botao__texto { min-width: 0; }

.botao__label {
  display: block;
  font-weight: 700;
  font-size: .97rem;
  line-height: 1.25;
  letter-spacing: -.005em;
}

.botao__sub {
  display: block;
  margin-top: .1rem;
  font-size: .8rem;
  line-height: 1.3;
  color: var(--texto-2);
}
.botao--principal .botao__sub { color: #C7B7A0; }


/* --------------------------------------------------------------- galeria */

.galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .45rem;
}

@media (min-width: 620px) {
  .galeria { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
}

.galeria__item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--superficie);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.galeria__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--curva), filter 600ms var(--curva);
  filter: contrast(1.04) saturate(1.03) brightness(.95);
}
.galeria__item:hover img { transform: scale(1.05); filter: none; }

/* -------------------------------------------------------------- lightbox */

.caixa {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 15, 8, .95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.caixa[open], .caixa.ativa { display: grid; }

.caixa__figura {
  margin: 0;
  max-width: min(92vw, 760px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.caixa__figura img {
  width: auto; height: auto;
  max-width: 100%;
  max-height: 74vh;
  margin-inline: auto;
  border-radius: 6px;
  object-fit: contain;
}

.caixa__legenda {
  color: var(--texto-2);
  font-size: .85rem;
  text-align: center;
  line-height: 1.4;
}

.caixa__btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--linha);
  border-radius: 50%;
  background: var(--superficie);
  color: var(--texto);
  cursor: pointer;
  transition: border-color 200ms var(--curva), color 200ms var(--curva);
}
.caixa__btn:hover { border-color: var(--destaque); color: var(--destaque); }
.caixa__btn svg { width: 19px; height: 19px; }
.caixa__fechar { top: 1rem; right: 1rem; }
.caixa__ant { left: .6rem; top: calc(50% - 24px); }
.caixa__prox { right: .6rem; top: calc(50% - 24px); }

@media (min-width: 760px) {
  .caixa__ant { left: 2rem; }
  .caixa__prox { right: 2rem; }
}

body.travado { overflow: hidden; }

/* ----------------------------------------------------------------- sobre */

.sobre p {
  color: var(--texto-2);
  font-size: .99rem;
  line-height: 1.68;
  max-width: 62ch;
}
.sobre p + p { margin-top: .85rem; }

/* --------------------------------------------------------------- horário */

.horario {
  border: 1px solid var(--linha);
  border-radius: var(--r);
  background: var(--superficie);
  overflow: hidden;
}

.horario__linha {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem 1rem;
  border-bottom: 1px solid rgba(122, 106, 78, .22);
  font-size: .93rem;
}
.horario__linha:last-child { border-bottom: 0; }

.horario__dia { color: var(--texto-2); }

.horario__hora {
  font-family: var(--display);
  font-size: 1.06rem;
  color: var(--texto);
  letter-spacing: .01em;
}

.horario__linha--fechado .horario__hora {
  font-family: var(--texto-fonte);
  font-size: .88rem;
  font-weight: 500;
  color: var(--texto-2);
}

/* o dia de hoje */
.horario__linha--hoje {
  background: rgba(217, 166, 72, .07);
  box-shadow: inset 3px 0 0 var(--destaque);
}
.horario__linha--hoje .horario__dia {
  color: var(--destaque);
  font-weight: 600;
}
.horario__linha--hoje .horario__hora { color: var(--texto); }

.horario__hoje {
  margin-left: .5rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--destaque);
}

/* --------------------------------------------------------------- prático */

.pratico { display: grid; gap: .55rem; }

@media (min-width: 620px) {
  .pratico { grid-template-columns: 1fr 1fr; }
}

.pratico__item {
  display: flex;
  gap: .7rem;
  padding: .85rem 1rem;
  border: 1px solid var(--linha);
  border-radius: var(--r);
  background: var(--superficie);
}
.pratico__icone { flex: none; width: 19px; height: 19px; color: var(--destaque); }
.pratico__rot {
  display: block;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--texto-2);
  margin-bottom: .12rem;
}
.pratico__val { font-size: .93rem; color: var(--texto); line-height: 1.4; }

/* -------------------------------------------------------------- endereço */

.endereco__texto {
  font-style: normal;
  color: var(--texto-2);
  font-size: .99rem;
  line-height: 1.6;
  margin-bottom: 1.05rem;
}
.endereco__texto strong {
  display: block;
  color: var(--texto);
  font-weight: 600;
}

.rotas { display: grid; gap: .55rem; grid-template-columns: 1fr 1fr; }

.rota {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: .8rem 1rem;
  border-radius: var(--r);
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 200ms var(--curva), filter 200ms var(--curva),
              border-color 200ms var(--curva);
}
.rota svg { width: 17px; height: 17px; flex: none; }
.rota:hover { transform: translateY(-2px); }

.rota--maps {
  background: var(--destaque);
  color: var(--tinta);
  border: 1px solid var(--destaque);
}
.rota--maps:hover { filter: brightness(1.07); }

.rota--waze {
  background: var(--superficie);
  color: var(--texto);
  border: 1px solid var(--linha);
}
.rota--waze:hover { border-color: var(--destaque); }

/* --------------------------------------------------------------- rodapé */

.rodape {
  padding-block: 1.6rem 2.4rem;
  border-top: 1px solid rgba(122, 106, 78, .22);
  text-align: center;
  color: var(--texto-2);
  font-size: .78rem;
  line-height: 1.6;
}
.rodape a { color: var(--texto-2); text-decoration: underline; text-underline-offset: 3px; }
.rodape a:hover { color: var(--destaque); }

/* --------------------------------------------------- sem JavaScript ------ */

.so-sem-js { display: none; }
.sem-js .so-sem-js { display: block; }
.sem-js .so-com-js { display: none; }

/* ------------------------------------------------ movimento reduzido ----- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .vitrine__trilho { scroll-behavior: auto; }
  .galeria__item:hover img { transform: none; }
  .botao:hover, .rota:hover { transform: none; }
}

.rodape__assinatura {
  margin-top: .35rem;
  font-size: .72rem;
  color: rgba(173, 156, 133, .7);
}
