/* ============ Forneiro Brabo ============ */
:root {
  --laranja: #EF9115;
  --laranja-2: #F6A93A;
  --terracota: #A6561E;
  --creme: #F3E3C3;
  --creme-2: #FBF3E4;
  --tinta: #331406;
  --tinta-2: #5D402C;
  --ocre: #E7B871;
  --tomate: #C8372D;
  --verde: #25A244;
  --folha: #4F7A3A;

  --radius: 18px;
  --line: 3px solid var(--tinta);
  --shadow: 5px 5px 0 var(--tinta);
  --shadow-sm: 3px 3px 0 var(--tinta);

  --f-title: "Alfa Slab One", Georgia, serif;
  --f-script: "Yellowtail", cursive;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--creme-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracota); font-weight: 700; }
a:hover { color: var(--tomate); }
h1, h2, h3, h4 { font-family: var(--f-title); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .2px; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--tomate); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.small { font-size: .9rem; opacity: .85; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

.kicker {
  display: inline-block;
  font-weight: 900; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tomate); margin-bottom: .6em;
}
.script { font-family: var(--f-script); color: var(--tomate); font-size: 1.12em; display: block; line-height: 1.1; margin-top: .1em; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--tinta); color: var(--creme);
  font-size: .85rem; font-weight: 700;
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 7px 16px; text-align: center;
}
.topbar strong { color: var(--laranja-2); }
.topbar-sep { opacity: .5; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #999; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.status-dot.open { background: #4ADE80; animation: pulse 2s infinite; }
.status-dot.closed { background: var(--tomate); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(74,222,128,.15); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--creme-2) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--line);
}
.header-in { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 12px; border: var(--line); }
.brand-txt { display: flex; flex-direction: column; line-height: .95; }
.brand-txt b { font-family: var(--f-title); font-weight: 400; font-size: 1.25rem; letter-spacing: .5px; text-transform: uppercase; }
.brand-txt i { font-family: var(--f-script); font-style: normal; color: var(--tomate); font-size: 1.35rem; margin-left: 18px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--tinta); padding: 8px 12px; border-radius: 999px; font-weight: 800; }
.nav a:hover { background: var(--creme); color: var(--tinta); }
.btn-cart {
  position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--laranja); border: var(--line); box-shadow: var(--shadow-sm);
  transition: transform .1s, box-shadow .1s;
}
.btn-cart:active { transform: translate(3px,3px); box-shadow: none; }
.cart-count {
  position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 999px; background: var(--tomate); color: #fff; font-size: .75rem; font-weight: 900;
  display: grid; place-items: center; border: 2px solid var(--tinta);
}
.cart-count.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.35); } }
.burger { display: none; width: 48px; height: 48px; border: var(--line); border-radius: 14px; background: var(--creme); padding: 0; }
.burger span { display: block; width: 20px; height: 3px; background: var(--tinta); margin: 4px auto; border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px; border: var(--line); box-shadow: var(--shadow-sm);
  font-weight: 900; font-size: 1rem; text-decoration: none; color: var(--tinta);
  transition: transform .1s, box-shadow .1s, background .15s;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--tinta); color: var(--tinta); }
.btn:active { transform: translate(3px,3px); box-shadow: none; }
.btn-primary { background: var(--laranja); }
.btn-wa { background: var(--verde); color: #fff; }
.btn-wa:hover { color: #fff; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(circle at 85% 30%, rgba(239,145,21,.22), transparent 55%),
  var(--creme-2); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); margin-bottom: .35em; }
.lead { font-size: 1.15rem; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li { background: #fff; border: 2px solid var(--tinta); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.hero-badges b { color: var(--tomate); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img {
  position: relative; width: min(460px, 100%); border-radius: 50%;
  border: 4px solid var(--tinta); box-shadow: 8px 8px 0 var(--tinta);
  animation: float 6s ease-in-out infinite;
}
.sun {
  position: absolute; width: 118%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(239,145,21,.28) 0 6deg, transparent 6deg 15deg);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }

.ticker { background: var(--tomate); color: var(--creme); border-block: var(--line); overflow: hidden; }
.ticker-track { display: flex; gap: 22px; width: max-content; padding: 12px 0; animation: marquee 40s linear infinite; font-family: var(--f-title); font-size: 1.15rem; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--creme); border-block: var(--line); }
.section-dark { background: var(--tinta); color: var(--creme); }
.section-dark .kicker { color: var(--laranja-2); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.tab {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 10px 18px; border-radius: 999px; border: var(--line); background: #fff; font-weight: 900;
  transition: background .15s, transform .1s;
}
.tab:hover { background: var(--creme); }
.tab[aria-selected="true"] { background: var(--laranja); box-shadow: var(--shadow-sm); }
.emp-note {
  text-align: center; background: var(--ocre); border: 2px dashed var(--tinta); border-radius: 14px;
  padding: 10px 16px; max-width: 640px; margin: 0 auto 24px; font-weight: 700;
}

/* ---------- Cards ---------- */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.grid > .product { flex: 0 1 272px; }
.card { background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.product { display: flex; flex-direction: column; overflow: hidden; animation: rise .35s both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.product-art {
  position: relative; display: grid; place-items: center; aspect-ratio: 16/11;
  background: radial-gradient(circle, var(--creme) 0 55%, var(--creme-2) 56%);
  border-bottom: var(--line);
}
.product-art svg { width: 72%; height: auto; filter: drop-shadow(3px 4px 0 rgba(51,20,6,.25)); transition: transform .4s; }
.product:hover .product-art svg { transform: rotate(18deg) scale(1.04); }
.product[data-cat="bebidas"] .product-art svg, .product[data-cat="empanadas"] .product-art svg { width: 58%; }
.product[data-cat="bebidas"]:hover .product-art svg, .product[data-cat="empanadas"]:hover .product-art svg { transform: rotate(-6deg) scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--tomate); color: #fff;
  font-size: .75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  border: 2px solid var(--tinta); border-radius: 999px; padding: 3px 10px;
}
.badge.casa { background: var(--laranja); color: var(--tinta); }
.badge.rio { background: #2B6CB0; }
.hot { position: absolute; top: 12px; right: 12px; font-size: 1.2rem; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { margin: 0; }
.product-body p { margin: 0; font-size: .95rem; color: var(--tinta-2); flex: 1; }
.price { font-family: var(--f-title); font-size: 1.35rem; color: var(--tomate); }
.price small { font-family: var(--f-body); font-size: .8rem; color: var(--tinta-2); font-weight: 700; }
.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.size {
  border: 2px solid var(--tinta); border-radius: 12px; background: var(--creme-2); padding: 6px 4px;
  font-weight: 800; font-size: .85rem; line-height: 1.2;
}
.size small { display: block; font-size: .72rem; font-weight: 700; opacity: .75; }
.size b { display: block; font-size: 1rem; }
.size[aria-pressed="true"] { background: var(--laranja); }
.borda { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 800; }
.borda select { flex: 1; }
select, input, textarea {
  font: inherit; font-size: 16px; color: var(--tinta); width: 100%;
  padding: 10px 12px; border: 2px solid var(--tinta); border-radius: 12px; background: #fff;
}
.add-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.add {
  flex: 1; padding: 11px 14px; border-radius: 12px; border: var(--line); background: var(--laranja);
  font-weight: 900; box-shadow: var(--shadow-sm); transition: transform .1s, box-shadow .1s;
}
.add:active { transform: translate(3px,3px); box-shadow: none; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--tinta); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 40px; border: 0; background: var(--creme); font-weight: 900; font-size: 1.2rem; }
.qty span { min-width: 30px; text-align: center; font-weight: 900; }

/* ---------- Combos ---------- */
.combos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.combo { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.combo.destaque { background: var(--laranja); transform: rotate(-1deg); }
.combo.destaque .ribbon {
  position: absolute; top: -16px; right: 18px; background: var(--tomate); color: #fff;
  border: 2px solid var(--tinta); border-radius: 999px; padding: 4px 12px; font-weight: 900; font-size: .8rem;
  transform: rotate(3deg);
}
.combo h3 { font-size: 1.6rem; margin: 0; }
.combo p { margin: 0; flex: 1; }
.combo .de { text-decoration: line-through; opacity: .6; font-weight: 700; margin-right: 8px; }
.combo .price { font-size: 2rem; color: var(--tinta); }
.combo:not(.destaque) .price { color: var(--tomate); }

/* ---------- História ---------- */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.story-img img { border: 4px solid var(--tinta); border-radius: 32px; box-shadow: 10px 10px 0 var(--tomate); transform: rotate(-3deg); width: min(420px, 100%); margin-inline: auto; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 34px; position: relative; font-weight: 700; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--laranja); border: 2px solid var(--tinta); display: grid; place-items: center; font-size: .8rem; font-weight: 900;
}

/* ---------- Passos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { border: 3px solid var(--creme); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.steps span {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--laranja); color: var(--tinta); font-family: var(--f-title); font-size: 1.5rem;
  border: 3px solid var(--creme); margin-bottom: 14px;
}
.steps p { margin: 0; opacity: .85; }

/* ---------- Entrega ---------- */
.delivery { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.bairros { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bairros li { background: #fff; border: 2px solid var(--tinta); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .92rem; }
.bairros li small { color: var(--tomate); font-weight: 900; margin-left: 4px; }
.hours { padding: 24px; }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.hours td { padding: 7px 0; border-bottom: 1px dashed rgba(51,20,6,.25); }
.hours td:last-child { text-align: right; font-weight: 800; }
.hours tr.today td { color: var(--tomate); font-weight: 900; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 900; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 900; color: var(--tomate); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--tinta); color: var(--creme); padding: 56px 0 24px; }
.footer a { color: var(--laranja-2); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { border-radius: 14px; border: 2px solid var(--creme); }
.social { display: flex; gap: 10px; margin-top: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--creme); color: var(--creme); transition: background .15s, color .15s; }
.social a:hover { background: var(--laranja); color: var(--tinta); border-color: var(--laranja); }
.footer h4 { font-size: 1.05rem; color: var(--laranja-2); }
.footer p { margin: 0 0 .5em; }
.footer .legal { border-top: 1px solid rgba(243,227,195,.2); margin: 36px auto 0; padding-top: 18px; font-size: .8rem; opacity: .7; }

/* ---------- Flutuantes ---------- */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 60px; height: 60px; border-radius: 50%;
  background: var(--verde); color: #fff; display: grid; place-items: center;
  border: var(--line); box-shadow: var(--shadow-sm); transition: transform .15s;
}
.fab-wa:hover { transform: scale(1.08); color: #fff; }
.cartbar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 31;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 16px; border: var(--line); background: var(--laranja);
  box-shadow: var(--shadow-sm); font-weight: 800; font-size: 1rem;
}
.cartbar[hidden] { display: none; }

/* ---------- Drawer ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(51,20,6,.5); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(440px, 100%);
  background: var(--creme-2); border-left: var(--line); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: var(--line); background: var(--laranja); }
.drawer-head h2 { font-size: 1.5rem; margin: 0; }
.x { width: 40px; height: 40px; border-radius: 12px; border: var(--line); background: #fff; font-size: 1.6rem; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { border-top: var(--line); padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: #fff; }
.empty { text-align: center; padding: 30px 10px; }
.empty svg { width: 110px; margin: 0 auto 12px; opacity: .8; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px dashed rgba(51,20,6,.3); }
.line h4 { font-family: var(--f-body); font-weight: 900; font-size: 1rem; margin: 0; }
.line .meta { font-size: .85rem; color: var(--tinta-2); }
.line .lp { font-weight: 900; text-align: right; }
.line .qty { justify-self: start; }
.line .qty button { width: 32px; height: 32px; font-size: 1rem; }
.order-form { display: grid; gap: 12px; margin-top: 18px; }
.order-form label { display: grid; gap: 4px; font-weight: 800; font-size: .9rem; }
.order-form label.check { display: flex; gap: 10px; align-items: center; }
.order-form label.check input { width: 20px; height: 20px; accent-color: var(--tomate); }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { font-weight: 800; font-size: .9rem; margin-bottom: 4px; }
.order-form .seg label { display: flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--tinta); border-radius: 12px; padding: 10px; background: #fff; cursor: pointer; }
.seg label:has(input:checked) { background: var(--laranja); }
.seg input { accent-color: var(--tinta); }
.totals { display: grid; gap: 4px; margin-bottom: 12px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .disc { color: var(--verde); font-weight: 800; }
.totals .tot { font-family: var(--f-title); font-size: 1.35rem; margin-top: 4px; }
#formMsg { color: var(--tomate); font-weight: 800; margin: 8px 0 0; min-height: 1em; }

.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 20px);
  background: var(--tinta); color: var(--creme); padding: 12px 18px; border-radius: 12px; font-weight: 800;
  opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(300px, 80%); }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .combos, .steps { grid-template-columns: 1fr; }
  .combo.destaque { transform: none; }
  .story, .delivery { grid-template-columns: 1fr; gap: 36px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--creme-2); border-block: var(--line); padding: 8px 16px 16px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 8px; border-bottom: 1px dashed rgba(51,20,6,.2); border-radius: 0; font-size: 1.1rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hide-sm, .topbar-sep { display: none; }
  .topbar { gap: 2px 12px; }
  .section { padding: 60px 0; }
  .brand-txt b { font-size: 1.05rem; }
  .brand-txt i { font-size: 1.15rem; }
  .grid > .product { flex-basis: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .fab-wa { bottom: 84px; width: 54px; height: 54px; }
  .footer-in { grid-template-columns: 1fr; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .tab { flex: 0 0 auto; }
}
@media (min-width: 561px) { .cartbar { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
