:root {
  --brand: #a84b26;
  --brand-ink: #793017;
  --brand-soft: #f2ddd2;
  --cream: #eef1ec;
  --paper: #fcfcf8;
  --stone: #e8ede8;
  --sage: #9bad9e;
  --sage-soft: #dde5dd;
  --forest: #203229;
  --ink: #192019;
  --muted: #657068;
  --line: #d3dbd4;
  --ok: #2e8254;
  --warn: #a66d22;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(23, 42, 31, .12);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background-color: var(--stone); background-image: linear-gradient(rgba(32, 50, 41, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 50, 41, .035) 1px, transparent 1px); background-size: 44px 44px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }

/* topo */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--forest) 12%, transparent); }
.top-in { display: flex; align-items: center; gap: 24px; height: 108px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); box-shadow: 0 5px 18px rgba(23, 42, 31, .13); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 700 20px/1 var(--display); letter-spacing: .2px; }
.brand-text small { color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--brand); }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; color: var(--ink); font-weight: 600; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 600; text-decoration: none; transition: transform .12s, background .12s, box-shadow .12s; }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 15px 24px; font-size: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(192, 68, 36, .3); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-primary:disabled { background: #c9b4a8; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.price-pill { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 2px 10px; font-size: 14px; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 64px; background: color-mix(in srgb, var(--paper) 96%, transparent); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 auto; width: min(52vw, 780px); background: linear-gradient(145deg, rgba(155, 173, 158, .2), rgba(32, 50, 41, .11)); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #bbb; }
.status.open .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 138, 74, .18); }
.status.closed .dot { background: var(--warn); }
h1 { font: 700 clamp(38px, 6vw, 64px)/1.02 var(--display); letter-spacing: -1px; margin: 0 0 18px; }
h1 em { color: var(--brand); font-style: italic; font-weight: 500; }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.hero-art { position: relative; margin: 0; }
.hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 26px; box-shadow: 0 26px 70px rgba(24, 43, 32, .2); }
.stamp { position: absolute; left: -18px; bottom: 28px; background: var(--paper); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; transform: rotate(-3deg); }
.stamp b { font: 700 26px/1 var(--display); color: var(--brand); }
.stamp span { font-size: 13px; color: var(--muted); }

/* como funciona */
.section-title { font: 700 clamp(28px, 4vw, 38px)/1.1 var(--display); margin: 0 0 24px; letter-spacing: -.5px; }
.how { padding: 56px 0; background: color-mix(in srgb, var(--paper) 94%, var(--sage-soft)); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--sage-soft); border: 1px solid color-mix(in srgb, var(--forest) 9%, transparent); border-radius: var(--radius); padding: 22px; }
.steps .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.steps h3 { margin: 14px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* cardápio */
.menu { padding: 64px 0; }
.menu-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
.tabs button { white-space: nowrap; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat { margin-top: 28px; }
.cat h3 { font: 700 22px/1.2 var(--display); margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.item { display: flex; gap: 14px; text-align: left; background: color-mix(in srgb, var(--paper) 94%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: border-color .15s, box-shadow .15s, transform .15s; color: var(--ink); width: 100%; backdrop-filter: blur(6px); }
.item:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.item.featured { grid-column: 1 / -1; background: linear-gradient(120deg, var(--paper), var(--brand-soft)); padding: 18px; }
.item.featured .thumb { width: 160px; height: 160px; }
.item-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.item h4 { margin: 0 0 4px; font-size: 17px; }
.item p { margin: 0 0 10px; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item .price { margin-top: auto; font-weight: 700; color: var(--brand-ink); }
.item .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.thumb { width: 104px; height: 104px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--brand-soft); }
.thumb.ph { display: grid; place-items: center; font-size: 38px; }
.note { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: #fff4dc; color: #6b4a10; font-size: 14px; }

/* visite */
.visit { padding: 64px 0 72px; background: var(--forest); color: #f8f6ef; border-top: 0; }
.visit-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.visit .muted { color: #bdc9c0; }
.visit .btn-ghost { color: #f8f6ef; border-color: rgba(255, 255, 255, .34); }
.visit .btn-ghost:hover { color: #fff; border-color: #fff; }
.addr { font: 600 24px/1.3 var(--display); margin: 0 0 12px; }
.visit-art { margin: 0; }
.visit-art img { border-radius: 24px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); outline: 1px solid rgba(255, 255, 255, .12); }
.foot { padding: 28px 0 96px; font-size: 14px; background: #17241e; color: #edf2ed; }
.foot-in p { margin: 4px 0; }
.foot .muted { color: #aab8ae; }
.foot a { color: #d5a38c; }

.floating { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 15; display: none; }

/* sheets */
dialog.sheet { border: 0; padding: 0; width: min(560px, 100%); max-height: min(92vh, 900px); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); overflow: hidden; }
dialog.sheet::backdrop { background: rgba(32, 16, 8, .5); backdrop-filter: blur(2px); }
dialog.sheet[open] { display: flex; animation: up .22s ease-out; }
dialog.side { margin-right: 0; margin-block: 0; height: 100vh; max-height: 100vh; border-radius: 24px 0 0 24px; width: min(460px, 100%); }
dialog.side[open] { animation: left .22s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes left { from { transform: translateX(40px); opacity: 0; } }
.sheet-in { display: flex; flex-direction: column; width: 100%; max-height: inherit; overflow: auto; position: relative; }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 26px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); color: var(--ink); }
.p-media img { width: 100%; height: 220px; object-fit: cover; }
.p-body { padding: 22px; }
.p-body h2 { font: 700 26px/1.15 var(--display); margin: 0 0 6px; padding-right: 40px; }
.group { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--cream); position: sticky; top: 0; z-index: 1; }
.group-head h3 { margin: 0; font-size: 16px; }
.group-head small { color: var(--muted); }
.req { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.req.done { background: var(--ok); }
.group.flag { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); min-height: 56px; }
.opt-name { font-weight: 500; }
.opt-price { display: block; font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--brand); font-size: 20px; line-height: 1; display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; }
.stepper.zero .minus, .stepper.zero output { visibility: hidden; }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: var(--paper); flex-shrink: 0; }
.opt.single { cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: var(--ink); }
.opt.single[aria-checked="true"] .radio { border-color: var(--brand); }
.opt.single[aria-checked="true"] .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-weight: 500; font-size: 14px; }
.field input, .field textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
.field.invalid input { border-color: #c62828; }
.err { color: #c62828; font-weight: 500; min-height: 0; }
.sheet-foot { position: sticky; bottom: 0; display: flex; gap: 12px; padding: 14px 22px; background: var(--paper); border-top: 1px solid var(--line); }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 22px; color: var(--brand); }
.qty output { min-width: 22px; text-align: center; font-weight: 700; }
.form-error { color: #c62828; margin: 0; padding: 0 22px; font-weight: 500; font-size: 14px; }
.form-error:empty { display: none; }
#cError { padding: 0; margin-top: 12px; }
#pError:not(:empty) { padding-bottom: 14px; }

.cart-list { list-style: none; margin: 16px 0 0; padding: 0; }
.cart-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-list .ci-name { font-weight: 600; }
.cart-list .ci-opts { grid-column: 1; color: var(--muted); font-size: 13px; }
.cart-list .ci-price { font-weight: 700; text-align: right; }
.cart-list .ci-actions { grid-column: 2; display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.cart-list .ci-actions button { border: 1.5px solid var(--line); background: var(--paper); border-radius: 50%; width: 30px; height: 30px; color: var(--brand); }
#checkout h3 { margin: 26px 0 0; font-size: 16px; }
.seg { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 120px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); }
.summary { margin-top: 22px; padding: 14px 16px; background: var(--cream); border-radius: 14px; }
.summary div { display: flex; justify-content: space-between; padding: 3px 0; }
.summary .total { font-weight: 700; font-size: 18px; }
.fine { font-size: 12px; color: var(--muted); text-align: center; }

/* acompanhamento */
.done-hero { text-align: center; padding: 10px 0 8px; }
.done-hero .big { font: 700 64px/1 var(--display); color: var(--brand); margin: 10px 0; }
.done-hero .check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 34px; }
.track { list-style: none; padding: 0; margin: 22px 0; }
.track li { position: relative; padding: 0 0 18px 34px; color: var(--muted); }
.track li::before { content: ""; position: absolute; left: 8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.track li::after { content: ""; position: absolute; left: 15px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.track li:last-child::after { display: none; }
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--ok); border-color: var(--ok); }
.track li.current { color: var(--ink); font-weight: 700; }
.track li.current::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }

@media (max-width: 900px) {
  .hero-in, .visit-in { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 28px; }
  .hero::before { inset: auto 0 0; width: 100%; height: 46%; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
  .hero-art { max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
}
@media (max-width: 600px) {
  .top-in { height: 86px; }
  .brand-mark { width: 70px; height: 70px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steps li { padding: 16px; }
  .cart-label { display: none; }
  .grid { grid-template-columns: 1fr; }
  .item.featured { flex-direction: column; }
  .item.featured .thumb { width: 100%; height: 200px; }
  .thumb { width: 88px; height: 88px; }
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; max-height: 94vh; }
  dialog.side { height: 94vh; border-radius: 24px 24px 0 0; margin: auto 0 0; }
  .floating:not([hidden]) { display: block; }
  .stamp { left: 10px; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
