/* BL Pub — Cardápio digital · mobile-first */
:root {
  --bg: #140C07;
  --bg-2: #1D110A;
  --card: #21140C;
  --card-2: #2A1A10;
  --line: rgba(227, 169, 79, 0.16);
  --gold: #E3A94F;
  --gold-2: #F2CE8A;
  --gold-deep: #B97F2E;
  --cream: #F5EDE0;
  --muted: #B39B82;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --nav-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* barra de progresso de scroll */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  z-index: 60; transition: width 0.1s linear;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; text-align: center; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('/img/hero.webp') center 30% / cover no-repeat, var(--bg-2);
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.09) translateY(-6px); }
}
.hero-embers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(20, 12, 7, 0.15) 0%, rgba(20, 12, 7, 0.55) 55%, var(--bg) 100%),
    linear-gradient(180deg, rgba(20, 12, 7, 0.35), rgba(20, 12, 7, 0.15) 40%, var(--bg) 96%);
}
.hero-content { position: relative; z-index: 2; padding: clamp(40px, 12vw, 72px) 20px clamp(28px, 8vw, 48px); }
.crest { width: clamp(84px, 24vw, 120px); margin: 0 auto 6px; color: var(--cream); animation: crestGlow 5s ease-in-out infinite alternate; }
.crest svg { width: 100%; height: auto; }
@keyframes crestGlow {
  from { filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 10px rgba(227, 169, 79, 0)); }
  to   { filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 16px rgba(227, 169, 79, .38)); }
}
/* entrada suave do hero */
.hero-content > * { animation: heroIn .8s cubic-bezier(.22,.9,.3,1) both; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .22s; }
.hero-content > :nth-child(4) { animation-delay: .34s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(30px, 8.5vw, 44px);
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  margin-bottom: -10px;
}
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 13vw, 72px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-2) 10%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}
.hero-sub {
  color: var(--muted); font-size: 13.5px; letter-spacing: 0.04em; margin-top: 6px;
}

/* ---------- Aviso ---------- */
.announce {
  margin: 14px 16px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(227, 169, 79, 0.10), rgba(227, 169, 79, 0.04));
  color: var(--gold-2);
  font-size: 14px; text-align: center;
}

/* ---------- Nav de categorias ---------- */
.catnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 12, 7, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.catnav-inner { display: flex; align-items: center; height: var(--nav-h); }
.nav-brand {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px;
  max-width: 0; opacity: 0; overflow: hidden; padding-left: 0;
  transition: max-width .35s ease, opacity .3s ease, padding-left .35s ease;
  pointer-events: none;
}
.catnav.scrolled .nav-brand { max-width: 120px; opacity: 1; padding-left: 14px; }
.nav-brand svg { width: 26px; height: auto; color: var(--gold-2); flex-shrink: 0; }
.nav-brand b {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: .1em; color: var(--gold-2); white-space: nowrap;
}
.pills {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 12px;
  scrollbar-width: none; flex: 1; align-items: center; height: 100%;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto;
  font-family: 'Oswald', sans-serif;
  font-weight: 500; font-size: 13.5px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 99px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.pill:active { transform: scale(.95); }
.pill.active {
  color: #1A0F06;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 2px 14px rgba(227, 169, 79, .35);
}
.search-btn {
  flex: 0 0 auto; width: 46px; height: var(--nav-h);
  display: grid; place-items: center; color: var(--gold);
  border-left: 1px solid var(--line);
}
.search-row { display: flex; gap: 8px; padding: 8px 12px 12px; }
.search-row input {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; color: var(--cream); font: inherit;
  outline: none;
}
.search-row input:focus { border-color: var(--gold-deep); }
.search-row button { color: var(--muted); padding: 0 10px; font-size: 16px; }

/* ---------- Seções ---------- */
.menu { padding: 8px 16px 40px; max-width: 680px; margin: 0 auto; }
.section { padding-top: 26px; scroll-margin-top: calc(var(--nav-h) + 10px); }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.section-icon { color: var(--gold); display: grid; place-items: center; }
.section-icon svg { width: 22px; height: 22px; }
.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600; font-size: 21px;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-rule {
  position: relative;
  height: 1px; margin: 8px 0 14px;
  background: linear-gradient(90deg, var(--gold-deep), var(--line) 65%, transparent);
}
.section-rule::before {
  content: ''; position: absolute; left: 0; top: -3.5px;
  width: 7px; height: 7px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 0 8px rgba(227, 169, 79, .5);
}

/* reveal ao rolar */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.22,.9,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Itens ---------- */
.item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: 14px;
  transition: background 0.15s;
}
.item:active { background: var(--card); }
.item.has-detail { cursor: pointer; transition: transform .12s ease, background .15s; }
.item.has-detail:active { transform: scale(.985); }
.item-thumb {
  flex: 0 0 auto; width: 58px; height: 58px;
  border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line);
  background: linear-gradient(110deg, var(--card) 40%, var(--card-2) 50%, var(--card) 60%) var(--card);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  opacity: .55;
  transition: opacity .45s ease;
}
.item-thumb.loaded { opacity: 1; animation: none; }
@keyframes shimmer {
  from { background-position: 120% 0; }
  to   { background-position: -80% 0; }
}
.item-main { flex: 1; min-width: 0; }
.item-line { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-weight: 600; font-size: 16px; color: var(--cream); }
.item-dots {
  flex: 1; min-width: 14px;
  border-bottom: 1.5px dotted rgba(227, 169, 79, 0.35);
  transform: translateY(-4px);
}
.item-price {
  font-family: 'Oswald', sans-serif;
  font-weight: 500; font-size: 16px;
  color: var(--gold-2); white-space: nowrap;
}
.item-desc {
  color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px;
  padding-right: 8px;
}
.item.hidden-by-search { display: none; }
.section.hidden-by-search { display: none; }
.no-results { text-align: center; color: var(--muted); padding: 40px 20px 60px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  text-align: center;
  padding: 30px 20px calc(30px + env(safe-area-inset-bottom));
  display: grid; gap: 9px; justify-items: center;
}
.footer-flourish { display: flex; align-items: center; gap: 10px; width: min(240px, 60vw); margin-bottom: 4px; }
.footer-flourish::before, .footer-flourish::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}
.footer-flourish::after { background: linear-gradient(90deg, var(--gold-deep), transparent); }
.footer-flourish i {
  width: 7px; height: 7px; transform: rotate(45deg); flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
}
.footer-crest { width: 66px; color: rgba(245, 237, 224, 0.85); }
.footer-crest svg { width: 100%; height: auto; }
.footer-insta {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--gold-2); text-decoration: none; font-weight: 600; font-size: 14.5px;
}
.footer-addr {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13.5px;
}
.footer-copy { color: rgba(179, 155, 130, 0.55); font-size: 12px; margin-top: 6px; }

/* ---------- Voltar ao topo ---------- */
.top-btn {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #1A0F06; display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 40;
}
.top-btn.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  z-index: 70; opacity: 0; transition: opacity 0.22s;
}
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 71;
  background: var(--bg-2);
  border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--line);
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.28, 1);
  max-height: 86vh; overflow-y: auto;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.sheet.show { transform: none; }
.sheet-handle {
  width: 42px; height: 4px; border-radius: 4px;
  background: rgba(245, 237, 224, 0.25);
  margin: 10px auto 8px;
}
.sheet-img { width: 100%; max-height: 320px; object-fit: cover; }
.sheet-body { padding: 16px 20px 8px; }
.sheet-body h3 {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 22px;
  letter-spacing: 0.03em; color: var(--cream);
}
.sheet-body p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.sheet-divider {
  position: relative; height: 1px; margin: 14px 0 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--line) 70%, transparent);
}
.sheet-divider::before {
  content: ''; position: absolute; left: 0; top: -3px;
  width: 6px; height: 6px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
}
.sheet-price {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 24px;
  color: var(--gold-2); margin-top: 10px;
}

/* telas maiores: centraliza e alarga levemente */
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; width: 560px; transform: translate(-50%, 105%); }
  .sheet.show { transform: translate(-50%, 0); }
  .item-thumb { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .item-thumb { opacity: 1; }
}
