/* Brasa & Pão — identidade: carvão, brasa e mostarda. Anton + Work Sans. */
:root {
  --coal: #17110E; --coal-2: #231A15; --coal-3: #2F241E;
  --ember: #C8401A; --ember-ink: #A93412; --ember-hi: #FF7A3D; --mustard: #F2B33D;
  --paper: #F6EEDF; --paper-2: #EFE3CE; --ink: #241A14; --ink-2: #5E4A3C;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
  --vd-badge-bottom: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--paper); background: var(--coal); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
p { margin: 0; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--mustard); color: var(--coal); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mustard); margin-bottom: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 6px; border: 2px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: #A93412; }
.btn-ghost { border-color: rgba(246, 238, 223, .5); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); }
.btn-full { width: 100%; }

/* Topo */
.top { position: sticky; top: 0; z-index: 50; background: rgba(23, 17, 14, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--coal-3); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-word { font-family: var(--display); font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.amp { color: var(--ember-hi); margin: 0 3px; }
.top-nav { display: flex; gap: 22px; margin-left: 18px; font-weight: 600; font-size: 15px; }
.top-nav a { text-decoration: none; color: #D9CDBB; }
.top-nav a:hover { color: #fff; }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #D9CDBB; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #8A7B6E; }
.status.open i { background: #5BD47A; box-shadow: 0 0 0 4px rgba(91, 212, 122, .18); }
.status.closed i { background: var(--ember-hi); }
.cart-btn { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--mustard); color: var(--coal); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--ember); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--coal); }
.cart-btn.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.18); } }
.st-short { display: none; }
@media (max-width: 760px) { .top-nav { display: none; } .st-long { display: none; } .st-short { display: inline; } .logo-word { font-size: 23px; } }

/* Hero */
.hero { position: relative; min-height: min(92vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: var(--coal-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(23, 17, 14, .92) 0%, rgba(23, 17, 14, .7) 45%, rgba(23, 17, 14, .15) 100%), linear-gradient(0deg, rgba(23, 17, 14, .9) 0%, transparent 40%); }
.hero-in { position: relative; z-index: 2; padding-top: 80px; padding-bottom: clamp(40px, 7vw, 80px); width: 100%; }
.hero-kicker { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--mustard); margin-bottom: 18px; }
.hero h1 { font-size: clamp(64px, 11vw, 150px); line-height: .88; }
.hero h1 span { color: var(--ember-hi); }
.hero-sub { max-width: 500px; font-size: 18px; color: #E8DCC8; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: 14px; color: #D9CDBB; }
.hero-facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; color: var(--paper); letter-spacing: .02em; }

/* Mais pedidos */
.best { padding: 56px 0 64px; background: var(--coal); }
.best-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.best-head h2 { font-size: clamp(32px, 4vw, 46px); }
.best-head p { color: #BBAE9C; }
.best-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.best-card { position: relative; border-radius: 10px; overflow: hidden; background: var(--coal-2); text-align: left; border: 0; padding: 0; cursor: pointer; color: var(--paper); }
.best-card .ph { aspect-ratio: 4 / 3; background: var(--coal-3); overflow: hidden; }
.best-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.best-card:hover img { transform: scale(1.05); }
.best-card .bt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; }
.best-card h3 { font-size: 26px; }
.best-card .pr { font-weight: 700; color: var(--mustard); white-space: nowrap; }
.best-card .tag { position: absolute; left: 12px; top: 12px; background: var(--mustard); color: var(--coal); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 820px) { .best-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .best-card { scroll-snap-align: start; } }

/* Cardápio (papel) */
.menu { background: var(--paper); color: var(--ink); padding: 64px 0 72px; }
.menu-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.menu-head h2 { font-size: clamp(54px, 8vw, 96px); color: var(--ink); }
.search { display: flex; align-items: center; gap: 10px; min-width: min(360px, 100%); background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 0 14px; }
.search input { border: 0; outline: 0; min-height: 48px; flex: 1; background: transparent; color: var(--ink); font-size: 16px; min-width: 0; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(200, 64, 26, .3); }
.cats { position: sticky; top: 68px; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--ink); margin-top: 26px; }
.cats-in { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cats-in::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.cats a.active { background: var(--ink); color: var(--paper); }
.cat { padding-top: 40px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.cat-head h3 { font-size: clamp(30px, 3.4vw, 40px); color: var(--ink); }
.cat-head p { color: var(--ink-2); font-size: 15px; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 16px; align-items: stretch; background: #fff; border-radius: 10px; padding: 16px; border: 1px solid var(--paper-2); text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; color: var(--ink); }
.item:hover { border-color: var(--ember); transform: translateY(-2px); }
.item h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.item p { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item .row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.item .pr { font-weight: 700; font-size: 17px; color: var(--ember-ink); }
.item .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--paper-2); color: var(--ink-2); padding: 4px 8px; border-radius: 4px; }
.item .ph { position: relative; border-radius: 8px; overflow: hidden; background: var(--paper-2); aspect-ratio: 1; align-self: start; }
.item .ph img { width: 100%; height: 100%; object-fit: cover; }
.item .plus { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--ember); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.item .in-cart { position: absolute; left: 6px; top: 6px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
@media (max-width: 760px) { .items { grid-template-columns: 1fr; } .item { grid-template-columns: minmax(0, 1fr) 108px; } }
.menu-empty { padding: 40px 0; font-weight: 600; color: var(--ink-2); }
.menu-note { margin-top: 32px; font-size: 13px; color: var(--ink-2); }

/* A casa */
.casa { padding: 88px 0; background: var(--coal); }
.casa-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.casa-img { margin: 0; border-radius: 12px; overflow: hidden; background: var(--coal-2); aspect-ratio: 4 / 5; }
.casa-img img { width: 100%; height: 100%; object-fit: cover; }
.casa-img.small { aspect-ratio: 5 / 3; margin-top: 28px; }
.casa h2 { font-size: clamp(40px, 5vw, 66px); margin-bottom: 18px; }
.casa-text > p { color: #D9CDBB; font-size: 17px; max-width: 520px; }
.casa-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.casa-points div { border-top: 3px solid var(--ember-hi); padding-top: 12px; }
.casa-points b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; text-transform: uppercase; }
.casa-points span { font-size: 14px; color: #BBAE9C; }
@media (max-width: 820px) { .casa-in { grid-template-columns: 1fr; } .casa-img { aspect-ratio: 4 / 3; } }

/* Como pedir */
.how { padding: 72px 0; background: var(--ember); color: #fff; }
.how h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 28px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-steps li { background: rgba(23, 17, 14, .22); border-radius: 10px; padding: 22px; }
.how-steps b { font-family: var(--display); font-weight: 400; font-size: 48px; color: var(--mustard); line-height: 1; }
.how-steps h3 { font-size: 28px; margin: 10px 0 6px; }
.how-steps p { color: #FFE9DE; }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } }

/* Horário */
.hours { padding: 88px 0; background: var(--coal-2); }
.hours-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hours h2 { font-size: clamp(40px, 5vw, 62px); margin-bottom: 18px; }
.hours-addr { color: #D9CDBB; margin-bottom: 26px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.hours-table th, .hours-table td { padding: 14px 10px; border-bottom: 1px solid var(--coal-3); text-align: left; font-weight: 500; }
.hours-table td { text-align: right; color: #D9CDBB; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--mustard); font-weight: 700; }
@media (max-width: 760px) { .hours-in { grid-template-columns: 1fr; } }

.foot { padding: 40px 0 80px; background: var(--coal); border-top: 1px solid var(--coal-3); font-size: 14px; color: #BBAE9C; }
.foot-in { display: grid; gap: 12px; }
.foot .logo-word { color: var(--paper); }

/* Barra do pedido (celular) */
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--ember); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); cursor: pointer; }
.cart-bar b { font-size: 17px; }
@media (min-width: 900px) { .cart-bar { display: none !important; } }
body.has-bar { --vd-badge-bottom: 82px; }
@media (min-width: 900px) { body.has-bar { --vd-badge-bottom: 12px; } }

/* Modal do produto */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(10, 6, 4, .66); }
.pmodal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border-radius: 14px; background: var(--paper); overflow: hidden; }
.pmodal[open] { display: flex; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pm-form { display: flex; flex-direction: column; max-height: calc(100vh - 24px); width: 100%; position: relative; }
.pm-img { margin: 0; aspect-ratio: 16 / 9; max-height: 34vh; background: var(--paper-2); flex: none; overflow: hidden; }
.pm-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-body { padding: 20px 22px; overflow-y: auto; }
.pm-body h2 { font-size: 36px; color: var(--ink); }
.pm-body > p { color: var(--ink-2); margin-top: 8px; }
.pm-price { font-weight: 700; color: var(--ember-ink); font-size: 19px; }
.opt { margin-top: 20px; border: 0; padding: 0; }
.opt legend { display: flex; justify-content: space-between; width: 100%; font-weight: 700; padding: 10px 12px; background: var(--paper-2); border-radius: 6px; margin-bottom: 6px; }
.opt legend small { font-weight: 600; font-size: 12px; color: var(--ink-2); }
.opt legend small.req { color: var(--ember-ink); }
.opt.invalid legend { outline: 2px solid var(--ember); }
.opt label { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 12px; border-bottom: 1px solid var(--paper-2); cursor: pointer; }
.opt label span { flex: 1; }
.opt label em { font-style: normal; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.opt input { width: 20px; height: 20px; accent-color: var(--ember); margin: 0; }
.pm-obs { display: grid; gap: 6px; margin-top: 18px; font-weight: 700; }
.pm-obs textarea, .checkout input { width: 100%; border: 1px solid #D8C8AE; border-radius: 6px; padding: 12px; background: #fff; color: var(--ink); font-size: 16px; resize: vertical; }
.pm-foot { display: flex; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--paper-2); background: var(--paper); flex: none; }
.qty { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 6px; }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.pm-add { flex: 1; }
.x { position: absolute; right: 10px; top: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(23, 17, 14, .8); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* Gaveta do pedido */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: 100%; max-width: 100vw; width: min(440px, 100vw); background: var(--paper); border-radius: 0; }
.drawer[open] { display: flex; flex-direction: column; animation: slide .3s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.dr-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 2px solid var(--ink); }
.dr-head h2 { font-size: 34px; color: var(--ink); }
.dr-head .x { position: static; }
.dr-scroll { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.dr-empty { padding: 40px 0; display: grid; gap: 10px; justify-items: start; color: var(--ink-2); }
.dr-list { list-style: none; margin: 0; padding: 0; }
.dr-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--paper-2); align-items: start; }
.dr-item .ph { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.dr-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.dr-item h4 { margin: 0; font-size: 16px; }
.dr-item small { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.dr-item .r { display: grid; justify-items: end; gap: 6px; }
.dr-item .r b { font-size: 15px; }
.mini { display: flex; align-items: center; border: 1px solid #CDBB9E; border-radius: 6px; }
.mini button { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink); }
.mini span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ember-ink); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; }
.checkout { margin-top: 18px; display: grid; gap: 14px; }
.checkout fieldset { border: 0; padding: 0; margin: 0; }
.checkout legend { font-weight: 700; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg3 { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 2px solid #CDBB9E; border-radius: 6px; font-weight: 700; cursor: pointer; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.f { display: grid; gap: 6px; }
.f label { font-weight: 600; font-size: 14px; }
.f .err { display: none; color: var(--ember-ink); font-size: 13px; font-weight: 700; }
.f.invalid .err { display: block; }
.f.invalid input { border-color: var(--ember); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr-foot { padding: 14px 20px 18px; border-top: 2px solid var(--ink); background: var(--paper); }
.totals { margin: 0 0 12px; display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; color: var(--ink-2); }
.totals dd { margin: 0; }
.totals .grand { color: var(--ink); font-weight: 700; font-size: 19px; margin-top: 4px; }
.dr-note { margin-top: 10px; font-size: 12px; color: var(--ink-2); text-align: center; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 30px); opacity: 0; z-index: 10000; background: var(--mustard); color: var(--coal); padding: 12px 18px; border-radius: 8px; font-weight: 700; transition: all .3s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
