/* ==========================================================================
   BRAND TOKENS: change these per client.
   Estação 45, from their own logo: a cream stamp with a black steam locomotive
   ("Restaurante & Pizzaria · desde 2001"). Railway black, cream paper, brass
   details and a signal red for the actions. Arvo (slab serif) matches the
   heavy lettering of "ESTAÇÃO 45".
   ========================================================================== */
:root {
  --wine: #B3261E;         /* buttons, prices, links: signal red */
  --wine-deep: #8E1D17;    /* hover */
  --wine-tint: #FBECEA;    /* selected options */
  --forest: #1B1A18;       /* info bar, club band, footer: locomotive black */
  --brass: #8A6420;        /* small details: "desde", awards, step numbers */
  --flame: #E9B949;        /* hero accent on dark: the italic part of the title, the rating star */
  --ink: #1E1B18;          /* text */
  --muted: #655D52;        /* secondary text */
  --line: #E2D9C8;         /* rules, field borders */
  --paper: #FFFDF8;
  --mist: #F4EDE0;         /* alternate sections: the cream of their logo */
  --ok: #2F7A3E;           /* open now, vegetarian */
  --wa: #1A7F45;           /* WhatsApp button */

  --font-display: "Arvo", "Rockwell", Georgia, serif;
  /* Type scale. Every text on the page uses one of these steps; nothing goes below 13px. */
  --fs-xs: .8125rem;   /* 13px: labels, small notes */
  --fs-sm: .9375rem;   /* 15px: secondary text, buttons */
  --fs-md: 1.0625rem;  /* 17px: body */
  --fs-lg: 1.25rem;    /* 20px: prices, card titles */
  --fs-xl: 1.75rem;    /* 28px: group titles */
  --fs-2xl: clamp(2rem, 3.8vw, 3rem); /* section titles */
  --font-body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 112px);
  --radius: 6px;
  --header-h: 72px;
}

/* ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden; }
body:has(dialog[open]) .cart-bar, body:has(dialog[open]) .float-wa, body:has(dialog[open]) .mobile-bar { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .6em 1em; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-2xl);
  line-height: 1.08;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h3 { font-size: var(--fs-md); font-weight: 700; margin: 1.8em 0 .6em; }
.h4 { font-size: var(--fs-md); font-weight: 700; margin-bottom: .5em; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-intro { color: var(--muted); max-width: 52ch; }
.small { font-size: var(--fs-sm); color: var(--muted); }
.optional { font-weight: 400; color: var(--muted); }
.price { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.link { font-weight: 600; color: var(--wine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { color: var(--wine-deep); text-decoration-thickness: 2px; }

/* buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: .75em 1.7em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: var(--fs-md); line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-outline { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn-outline:hover { background: var(--wine); color: #fff; }
.btn-small { min-height: 44px; padding: .45em 1.05em; font-size: var(--fs-sm); }
.btn-wide { width: 100%; }

/* ---------- info bar ---------- */
.infobar { background: var(--forest); color: rgba(255, 255, 255, .86); font-size: var(--fs-sm); }
.infobar-inner { display: flex; align-items: center; gap: 8px 24px; min-height: 40px; flex-wrap: wrap; }
.infobar-links { display: flex; gap: 18px; margin-left: auto; }
.infobar-links a { text-decoration: none; font-weight: 600; color: #fff; }
.infobar-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 759px) { .infobar { display: none; } }

/* ---------- header: dark, small spaced capitals (as on the Brasa site) ----------
   Over the hero it starts transparent and turns solid once the page scrolls (.is-solid, set in main.js). */
.header {
  position: sticky; top: 0; z-index: 30; color: #fff;
  background: rgba(29, 28, 26, .97); border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .3s, border-color .3s;
}
.hero-first .header { margin-bottom: calc(-1px - var(--header-h)); } /* header height + its 1px border */
.hero-first .header:not(.is-solid) { background: transparent; border-color: transparent; }
.header :focus-visible { outline-color: #fff; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.wordmark { display: grid; text-decoration: none; line-height: 1; }
.wordmark-name { font-family: var(--font-display); font-size: var(--fs-xl); color: #fff; letter-spacing: -.01em; }
.wordmark-sub { font-size: var(--fs-xs); font-weight: 500; color: rgba(255, 255, 255, .62); margin-top: 5px; letter-spacing: .04em; }
.wordmark img { height: 48px; width: auto; }
/* the round "45" stamp from their logo, beside the name */
.wordmark.has-mark { grid-template-columns: auto auto; column-gap: 10px; align-items: center; justify-content: start; }
.wordmark.has-mark .dc-mark { grid-row: 1 / 3; width: 40px; height: 40px; }
.wordmark-name { font-weight: 700; }
.footer-name.has-mark { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; }
.footer-name .dc-mark { width: 52px; height: 52px; flex: none; }
.nav { display: flex; gap: clamp(18px, 2vw, 30px); margin-left: auto; }
.nav a {
  font-weight: 500; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 14px 0; color: rgba(255, 255, 255, .74); transition: color .15s;
}
.nav a:hover { color: #fff; }
.book-btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 44px; padding: .35em 1.25em .35em 1.05em;
  border-radius: 999px; border: 1px solid #F7F2EA; background: #F7F2EA; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .15s, border-color .15s;
}
.book-btn svg { width: 18px; height: 18px; }
.book-btn:hover { background: #fff; border-color: #fff; }
.wordmark-name, .wordmark-sub, .nav a, .book-btn { white-space: nowrap; }
@media (max-width: 1099px) { .nav { gap: 18px; } .nav a { letter-spacing: .08em; } }
/* Estação 45: the stamp, the long subtitle and six nav links need about 1150px */
@media (max-width: 1149px) {
  .nav { display: none; }
  .book-btn { margin-left: auto; }
}
@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .book-btn svg { display: none; }
  .book-btn { padding-inline: 1em; letter-spacing: .06em; }
  .wordmark-name { font-size: var(--fs-lg); }
  .hero-stage .hero-title { font-size: 11.5vw; }
  .wordmark.has-mark .dc-mark { width: 32px; height: 32px; }
  .wordmark.has-mark { column-gap: 8px; }
}
/* With the stamp the header gets tight on small phones; the bottom bar already has "Fazer pedido". */
@media (max-width: 379px) { .book-btn { display: none; } }

/* ---------- hero: full screen, centered title (as on the Brasa site) ---------- */
.hero-stage {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  min-height: max(560px, calc(100svh - var(--header-h) - 40px));
  display: grid; place-items: center; text-align: center;
}
.hero-first .hero-stage { min-height: max(620px, calc(100svh - 40px)); }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #2A1D17; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Darker at the top (header), in the middle (the title) and at the foot (status and rating). */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 62% 55% at 50% 52%, rgba(14, 10, 8, .55), rgba(14, 10, 8, 0) 100%),
              linear-gradient(180deg, rgba(14, 10, 8, .72), rgba(14, 10, 8, .4) 30%, rgba(14, 10, 8, .4) 55%, rgba(14, 10, 8, .8));
}
.hero-inner { width: 100%; padding-block: 72px 120px; }
.hero-first .hero-inner { padding-top: calc(var(--header-h) + 56px); }
.hero-stage :focus-visible { outline-color: #fff; }
.hero-kicker {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .9); margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 6.8vw, 6rem); line-height: 1.02; letter-spacing: -.012em;
  max-width: 15ch; margin: 0 auto; text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--flame); }
.hero-sub {
  max-width: 62em; margin: 30px auto 38px;
  font-size: var(--fs-xs); font-weight: 600; line-height: 2; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}
/* One flavor per piece, so "Frango com catupiry" never breaks in the middle. */
.hero-sub > span:first-child { word-spacing: .5em; }
.hero-sub > span:first-child > span { white-space: nowrap; word-spacing: normal; }
.hero-sub .sep { margin-left: .75em; }
.hero-hours { display: block; margin-top: 4px; color: #fff; }
.hh-phone { display: none; }
/* the selling line reads as a sentence, not as a tracked label */
.hero-sub > span.hero-pitch {
  display: block; max-width: 34em; margin: 0 auto 16px;
  font-size: var(--fs-md); font-weight: 400; line-height: 1.55; letter-spacing: 0; word-spacing: normal; text-transform: none;
  color: rgba(255, 255, 255, .92); text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-ctas .btn { min-height: 52px; padding: .75em 2.1em; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; }
.hero-ctas .btn-primary { background: #F7F2EA; color: var(--ink); }
.hero-ctas .btn-primary:hover { background: #fff; }
.hero-kicker, .hero-title, .hero-sub, .hero-proof { text-shadow: 0 1px 24px rgba(14, 10, 8, .55); }
.hero-proof {
  position: absolute; left: 0; right: 0; bottom: 32px; padding-inline: var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
}
.hero-proof a { color: inherit; text-decoration: none; }
.hero-proof a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-open .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #9A9F9B; vertical-align: 1px; }
.hero-open.is-open { color: #fff; font-weight: 600; }
.hero-open.is-open .dot { background: #5FD07A; box-shadow: 0 0 10px #5FD07A; }
.hero-star { color: var(--flame); }

/* The one orchestrated moment: the photo settles in, the copy follows. */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: settle 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-inner > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-inner > :nth-child(2) { animation-delay: .05s; }
  .hero-inner > :nth-child(3) { animation-delay: .1s; }
  .hero-inner > :nth-child(4) { animation-delay: .15s; }
  .hero-proof { animation: rise .45s .25s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

.facts-band { border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-block: 22px; }
.facts > div { padding: 2px 22px; border-left: 1px solid var(--line); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: var(--fs-xs); color: var(--muted); }
.facts dd { font-weight: 600; line-height: 1.35; }
/* seasonal notice: one line under the facts, gone after its dates */
.season { background: var(--wine-tint); border-bottom: 1px solid var(--line); }
.season-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.season-text { font-weight: 500; }
.awards { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-bottom: 22px; font-size: var(--fs-sm); color: var(--muted); }
.awards li { display: flex; gap: 10px; align-items: baseline; }
.awards li::before { content: "★"; color: var(--brass); }
@media (max-width: 759px) {
  .hero-stage { min-height: calc(100svh - var(--header-h) - 60px); grid-template-rows: 1fr auto; }
  .hero-first .hero-stage { min-height: calc(100svh - 60px); }
  .hero-first .hero-inner { padding-top: calc(var(--header-h) + 32px); }
  .hero-media::after { background: linear-gradient(180deg, rgba(14, 10, 8, .5), rgba(14, 10, 8, .55) 40%, rgba(14, 10, 8, .85)); }
  .hero-inner { padding-block: 48px 24px; }
  .hero-sub { margin: 18px auto 26px; }
  .hero-proof { position: static; grid-row: 2; padding-bottom: 28px; gap: 6px 20px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  /* Phones: the copy sits low and the top of the screen is left to the oven video. */
  .hero-first .hero-stage { min-height: calc(100svh - 60px); place-items: end center; }
  .hero-first .hero-inner { padding: 0 var(--gutter) 18px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(14, 10, 8, .55), rgba(14, 10, 8, 0) 20%, rgba(14, 10, 8, 0) 34%, rgba(14, 10, 8, .72) 58%, rgba(14, 10, 8, .92)); }
  .hero-kicker { margin-bottom: 14px; }
  .hero-stage .hero-title { font-size: min(10.5vw, 2.9rem); }
  .hero-sub { margin: 14px auto 20px; }
  .hero-sub > span:first-child:not(.hero-pitch) { display: none; }
  .hero-sub > span.hero-pitch { font-size: var(--fs-sm); line-height: 1.5; margin-bottom: 12px; }
  /* keep the top of the phone screen for the video: the header already says "desde 2009" */
  .hero-pitch .pitch-more, .hero-first .hero-kicker { display: none; }
  /* phones: "Mais de 80 sabores" instead of the hours ("Aberto até 23h30" still shows below the buttons) */
  .hero-hours:has(.hh-phone) .hh-desk { display: none; }
  .hero-hours .hh-phone { display: inline; }
  .hero-hours { margin-top: 0; }
  .hero-ctas { flex-wrap: nowrap; gap: 10px; }
  .hero-ctas .btn { flex: 1 1 0; min-height: 50px; padding-inline: .6em; letter-spacing: .08em; }
  .hero-proof { padding-bottom: 20px; letter-spacing: .1em; }
  /* the floating Instagram/WhatsApp button would cover the rating line; it comes in after the hero */
  .float-wa { transition: opacity .2s, visibility .2s; }
  .hero-first:not(.past-hero) .float-wa { opacity: 0; visibility: hidden; }
  .facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ---------- most ordered: photo cards ---------- */
/* "As mais pedidas": the list picks, the dark panel shows (Brasa's cut explorer) */
.explorer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.ex-list { border-top: 2px solid var(--ink); }
.ex-item { border-bottom: 1px solid var(--line); }
.ex-row {
  width: 100%; min-height: 78px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 14px 0; background: none; border: 0; color: inherit; text-align: left; font: inherit; cursor: pointer;
}
.ex-name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; transition: color .2s; }
.ex-from { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.ex-from .price { color: var(--ink); }
.ex-arrow { font-size: var(--fs-lg); color: var(--wine); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.ex-row:hover .ex-name { color: var(--wine); }
.ex-row:hover .ex-arrow, .ex-item.is-on .ex-arrow { opacity: 1; transform: none; }
.ex-item.is-on .ex-name { color: var(--wine); }
.ex-panel {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); color: #fff;
  background: var(--forest);
}
.ex-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .06); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.ex-photo img, .ex-photo .pz { width: 100%; height: 100%; object-fit: cover; }
.ex-label { font-size: var(--fs-sm); font-weight: 600; color: #E3C58F; margin-bottom: 6px; }
.ex-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.05; }
.ex-desc { margin-top: 12px; color: rgba(255, 255, 255, .84); }
.ex-body .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ex-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 22px 0 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.ex-prices dt { font-size: var(--fs-sm); color: rgba(255, 255, 255, .72); }
.ex-prices dt small { margin-left: 6px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .55); }
.ex-prices dd { font-size: var(--fs-lg); }
@media (max-width: 1099px) { .ex-panel { grid-template-columns: 1fr; } .ex-photo { width: min(260px, 70%); margin-inline: auto; } }
@media (max-width: 899px) {
  .explorer { grid-template-columns: 1fr; }
  .ex-panel { position: static; margin: 0 0 18px; }
  .ex-row { min-height: 64px; }
}
.best-intro { margin-top: 10px; }

/* ready-made combos, under the most ordered: text, no photo (the photos above already show the pizzas) */
.combos { margin-top: clamp(48px, 6vw, 72px); }
.combos-title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; margin-bottom: 6px; }
.combos-intro { color: var(--muted); margin-bottom: 6px; }
.combo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; margin-top: 18px; }
.combo { display: flex; flex-direction: column; padding: 16px 0 24px; border-top: 2px solid var(--ink); }
.combo-label { font-size: var(--fs-sm); font-weight: 600; color: var(--brass); }
.combo h4 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; margin: 4px 0 10px; }
.combo-items { display: grid; gap: 4px; margin-bottom: 18px; font-size: var(--fs-sm); color: var(--muted); }
.combo-items li { position: relative; padding-left: 16px; }
.combo-items li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.combo-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.combo-total { color: var(--muted); font-size: var(--fs-sm); line-height: 1.3; }
.combo-total .price { display: block; color: var(--ink); font-size: var(--fs-lg); }

/* "Quantas pizzas pedir?": people in, sizes out */
.howmany { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px 48px; padding: clamp(24px, 3vw, 36px); background: var(--mist); border-radius: var(--radius); }
.howmany-inputs { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.hm-field { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 600; }
.hm-field .qty { background: #fff; }
.hm-field output { min-width: 2.2em; }
.hm-answer { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 14px; }
.hm-answer b { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.15; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 899px) { .howmany { grid-template-columns: 1fr; } .howmany-result .btn { width: 100%; } }
@media (max-width: 959px) { .best-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .best-list { gap: 32px 14px; }
  .best h3 { font-size: var(--fs-lg); }
  .best > p { display: none; }
  .best-foot { flex-direction: column; align-items: stretch; }
  .best .from { margin-top: 6px; }
}

/* ---------- weekly promos: the week in order, today marked ---------- */
.promos { background: var(--mist); }
.promo-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; }
.promo-week li { padding-top: 16px; border-top: 2px solid var(--line); }
.promo-week .is-today { border-top-color: var(--wine); }
.promo-day { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.promo-week .is-today .promo-day { color: var(--wine); }
.promo-week h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; margin-bottom: 4px; }
.promo-week p { color: var(--muted); font-size: var(--fs-sm); }
.promo-week .promo-day { color: var(--muted); }
.today-badge { font-size: var(--fs-xs); font-weight: 700; color: #fff; background: var(--wine); border-radius: 3px; padding: .05em .5em; }
@media (max-width: 759px) {
  .promo-week { grid-template-columns: 1fr; }
  .promo-week li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top-width: 1px; }
  .promo-week .is-today { border-top-width: 2px; }
  .promo-day { flex-direction: column; align-items: flex-start; gap: 4px; margin: 2px 0 0; }
}

/* ---------- menu ---------- */
.tabs { display: flex; gap: 6px; margin: 0 0 32px; overflow-x: auto; padding: 4px 2px 0; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 46px; padding: .45em 1.1em; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: transparent;
  font-weight: 600; color: var(--muted);
}
.tab[aria-selected="true"] { color: var(--wine); border-bottom-color: var(--wine); }
.tab-count { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; margin-left: .5em; padding-inline: .35em; border-radius: 999px; background: var(--mist); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; vertical-align: 1px; }
.tab[aria-selected="true"] .tab-count { background: var(--wine); color: #fff; }
.tab:hover:not([aria-selected="true"]) { color: var(--ink); }

.tier { margin-top: 56px; }
.tier:first-child { margin-top: 0; }
.tier-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 32px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.tier-head h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1; color: var(--ink); }
/* the group's price table: one column per size */
.tier-prices { display: grid; grid-template-columns: repeat(4, 6.5rem); }
.tier-prices li { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.tp-size { font-weight: 600; font-size: var(--fs-sm); }
.tp-meta { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.tier-prices .price { font-size: var(--fs-lg); line-height: 1.2; margin-top: 4px; }

.flavor-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
.flavor { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.thumb { display: block; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.thumb-art { background: none; overflow: hidden; }
.thumb-art svg { display: block; width: 100%; height: 100%; }
.item-name { font-weight: 600; font-size: var(--fs-md); }
.item-desc { color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.own-price { margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); }
.row-price { margin-top: 4px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); font-variant-numeric: tabular-nums; }
/* Less red: the menu rows' "Pedir" buttons are quiet; red stays for the main actions and the selected tab. */
.flavor .btn-outline, .products .btn-outline { border-color: #CFC8BF; color: var(--ink); }
.flavor .btn-outline:hover, .products .btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.tags { display: inline-flex; gap: 6px; vertical-align: 1px; margin-left: 8px; }
.tag { font-size: var(--fs-xs); font-weight: 600; line-height: 1.4; padding: 0 .5em; border-radius: 3px; border: 1px solid currentColor; }
.tag-veg, .tag-vegan { color: var(--ok); }
.tag-spicy { color: var(--wine); }

/* drinks and desserts: name, price, button */
.products .row { display: grid; grid-template-columns: minmax(0, 1fr) 5rem auto; align-items: center; gap: 8px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.products .cell { text-align: right; }
.cat-photo { margin: 4px 0 8px; }
.cat-photo img { display: block; width: 100%; aspect-ratio: 8 / 3; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
@media (max-width: 599px) { .cat-photo img { aspect-ratio: 16 / 9; } }
.products .price { font-size: var(--fs-lg); }

@media (max-width: 959px) { .flavor-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 759px) {
  .tier-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tier-prices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .tier-prices li { align-items: flex-start; text-align: left; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
  .flavor { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; }
  .thumb { width: 48px; height: 48px; }
  .tags { margin-left: 6px; }
  .products .row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 14px; }
  .tier { margin-top: 40px; }
}
/* Phones: each group shows its first flavors, the rest open with "Ver mais" (main.js clampTiers). */
.flavor.is-folded { display: none; }
.tier-more { width: 100%; margin-top: 14px; }

/* Phones: combos and reviews become one swipeable row instead of a tall stack. */
@media (max-width: 759px) {
  .combo-list, .review-list {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .combo-list::-webkit-scrollbar, .review-list::-webkit-scrollbar { display: none; }
  .combo-list > li, .review-list > li { scroll-snap-align: start; }
}

/* ---------- order direct ---------- */
.direct { background: var(--mist); }
.direct-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.direct-grid.has-photo { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.direct-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
/* how the order arrives on WhatsApp, drawn from the menu */
.chat { margin: 0; justify-self: center; width: min(100%, 380px); }
.chat-phone { padding: 10px; border-radius: 30px; background: var(--ink); }
.chat-top { padding: 14px 18px; border-radius: 21px 21px 0 0; background: var(--forest); color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px 20px; border-radius: 0 0 21px 21px; background: #ECE5DC; }
.bubble { max-width: 90%; padding: 10px 12px; border-radius: 10px; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink); }
.bubble-out { align-self: flex-end; background: #DCF3D0; border-top-right-radius: 2px; white-space: pre-wrap; }
.bubble-in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.chat figcaption { margin-top: 12px; text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.direct-copy .h2 { margin-bottom: 20px; }
.direct-points li { position: relative; padding: 8px 0 8px 34px; max-width: 48ch; }
.direct-points li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.steps { counter-reset: step; display: grid; gap: 18px; margin: 32px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1; color: var(--brass);
}
.steps h3 { font-size: var(--fs-md); font-weight: 700; }
.steps p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 799px) { .direct-grid.has-photo { grid-template-columns: 1fr; } .direct-photo img { aspect-ratio: 4 / 3; } }

/* ---------- story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 80px; align-items: center; }
.story-grid.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* With photo steps: title on the left, text on the right, then the four cards */
.story-grid.is-split .story-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "since body" "title body"; column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.story-grid.is-split .since { grid-area: since; }
.story-grid.is-split .h2 { grid-area: title; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; }
.story-grid.is-split .story-body { grid-area: body; }
.step-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.step-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); isolation: isolate; background: var(--forest); color: #fff; }
.step-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.step-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 10, 8, .45) 0%, transparent 22%, transparent 40%, rgba(14, 10, 8, .62) 64%, rgba(14, 10, 8, .94) 100%); }
.step-n { position: absolute; top: 18px; left: 20px; font-family: var(--font-display); font-size: var(--fs-lg); color: #E3C58F; }
.step-body { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.step-card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.05; margin-bottom: 6px; }
.step-card p { font-size: var(--fs-sm); line-height: 1.5; color: rgba(255, 255, 255, .88); }
@media (max-width: 899px) {
  .story-grid.is-split .story-text { grid-template-columns: 1fr; grid-template-areas: "since" "title" "body"; }
  .story-grid.is-split .h2 { margin-bottom: 20px; }
  /* phone: the cards slide sideways */
  .step-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .step-cards::-webkit-scrollbar { display: none; }
  .step-card { scroll-snap-align: start; }
}
.since { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--brass); margin-bottom: 10px; }
.story-text .h2 { margin-bottom: 24px; }
.story-body p { max-width: 58ch; margin-bottom: 1em; font-size: var(--fs-md); line-height: 1.7; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 799px) { .story-grid.has-photo { grid-template-columns: 1fr; } .story-photo { order: -1; } .story-photo img { aspect-ratio: 4 / 3; } }

/* ---------- rating ---------- */
/* reviews: the rating beside the title, three cards */
.reviews { border-top: 1px solid var(--line); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(28px, 4vw, 44px); }
.score { display: flex; align-items: center; gap: 16px; }
.score-num { font-family: var(--font-display); font-size: 4.5rem; line-height: .9; color: var(--wine); }
.score-side { display: flex; flex-direction: column; gap: 6px; }
.score-meta { color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; }
.stars { position: relative; display: inline-block; font-size: var(--fs-lg); line-height: 1; color: #E2DCD4; letter-spacing: 2px; }
.stars::before { content: "★★★★★"; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #D9A42B; white-space: nowrap; }
.stars-fill::before { content: "★★★★★"; }
.review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review figure { height: 100%; display: flex; flex-direction: column; gap: 28px; margin: 0; padding: 32px 30px 26px; background: var(--mist); color: var(--ink); border-radius: var(--radius); }
.review blockquote { margin: 0; font-size: var(--fs-md); line-height: 1.65; }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); color: var(--muted); }
.review cite { font-style: normal; font-weight: 600; color: var(--ink); }
.reviews-more { margin-top: 32px; text-align: center; }
.sample-note { margin-top: 20px; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
@media (max-width: 599px) { .score-num { font-size: 3.5rem; } .review figure { padding: 24px 22px 22px; } }

/* ---------- club ---------- */
.club { background: var(--forest); color: #fff; padding-block: clamp(48px, 6vw, 72px); }
.club-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.club .h2 { font-size: var(--fs-xl); margin-bottom: 8px; }
.club p { color: rgba(255, 255, 255, .82); max-width: 56ch; }

/* ---------- events beside the FAQ (as on the Brasa site) ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px clamp(48px, 8vw, 120px); align-items: start; }
.faq-grid:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.faq .h2 { margin-bottom: 20px; }
.events p { max-width: 46ch; font-size: var(--fs-md); line-height: 1.75; margin-bottom: 32px; }
.btn-dark { background: var(--ink); color: #fff; min-height: 52px; padding: .75em 2em; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; }
.btn-dark:hover { background: #000; }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-item:first-child { border-top: 1px solid var(--ink); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 44px 16px 0; font-weight: 500; font-size: var(--fs-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-size: var(--fs-xl); font-weight: 300; line-height: 1; color: var(--ink); transition: rotate .2s;
}
.faq-item summary:hover { color: var(--wine); }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p { padding: 0 0 18px; max-width: 62ch; color: var(--muted); }
@media (max-width: 899px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- visit: address / hours / contact band, then a full-width map (as on the Brasa site) ---------- */
.visit { background: var(--mist); padding-block: 0; }
.visit-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.info:has(> [hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info > div { padding: clamp(44px, 5vw, 64px) 24px; }
.info > div + div { border-left: 1px solid rgba(30, 27, 24, .16); }
.info p { font-size: var(--fs-md); line-height: 1.9; }
.info a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(30, 27, 24, .35); }
.info a:hover { color: var(--wine); text-decoration-color: currentColor; }
/* The map runs edge to edge and closes the section. */
.map { position: relative; height: clamp(340px, 36vw, 460px); background: #E7E3DC; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.5) sepia(.15) contrast(.95); }
/* tap-to-load placeholder: the whole map area is the button; "Como chegar" stays on top of it */
.map-tap {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px 24px 96px; border: 0; background: #E7E3DC; color: var(--ink); cursor: pointer; transition: background-color .15s;
}
.map-tap:hover { background: #DED9D0; }
.map-tap-label { font-weight: 600; font-size: var(--fs-md); text-decoration: underline; text-underline-offset: 4px; }
.map-tap-note { font-size: var(--fs-sm); color: var(--muted); }
.map-btn { z-index: 1; }
.map-btn {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  min-height: 52px; padding: .75em 2em; background: var(--ink); color: #fff;
  font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .15s, background-color .15s;
}
.map-btn:hover { background: #000; }
@media (max-width: 799px) {
  .info, .info:has(> [hidden]) { grid-template-columns: 1fr; }
  .info > div { padding: 32px 8px; }
  .info > div + div { border-left: 0; border-top: 1px solid rgba(30, 27, 24, .16); }
  .map-btn { bottom: 20px; }
}

/* ---------- footer: brand, the page's sections, how to visit (as on the Brasa site) ---------- */
.footer { background: var(--forest); color: rgba(255, 255, 255, .8); padding: clamp(64px, 8vw, 96px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px clamp(36px, 5vw, 72px); }
.footer-name { display: inline-block; font-family: var(--font-display); font-size: clamp(2.2rem, 3.4vw, 2.75rem); line-height: 1; color: #fff; text-decoration: none; }
.footer-sub { margin-top: 8px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }
.footer-blurb { max-width: 30em; margin: 24px 0 30px; font-size: var(--fs-md); line-height: 1.7; color: rgba(255, 255, 255, .78); }
.btn-cream { background: #F7F2EA; color: var(--ink); min-height: 52px; padding: .75em 2em; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; }
.btn-cream:hover { background: #fff; }
.footer-h { margin-bottom: 14px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--flame); }
.footer-links { display: grid; font-size: var(--fs-md); }
.footer-links li { display: flex; align-items: center; min-height: 44px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: .22em; }
.footer :focus-visible { outline-color: #fff; }
.footer-legal { margin-top: clamp(48px, 6vw, 72px); }
.footer-legal::before { content: ""; display: block; margin-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.photo-credits { margin-top: 14px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .55); }
.photo-credits summary { cursor: pointer; width: fit-content; display: flex; align-items: center; min-height: 44px; }
.photo-credits summary:hover { color: #fff; }
.photo-credits ul { margin-top: 10px; columns: 2 280px; column-gap: 32px; }
.photo-credits li { break-inside: avoid; padding: 2px 0; }
.photo-credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-notes { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.footer-small { margin-top: 14px; max-width: 90ch; font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); }
.footer-small a { color: inherit; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 759px) { .footer { padding-bottom: 104px; } }
@media (max-width: 479px) { .footer-grid { column-gap: 20px; } }

/* ---------- floating ---------- */
/* a pill with its name at the right edge (as on the Brasa site); just the icon on a phone */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 22px 0 16px;
  border-radius: 999px; border: 2px solid rgba(255, 255, 255, .25); background: var(--wa); color: #fff;
  font-weight: 600; font-size: var(--fs-md); text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}
.float-wa svg { width: 26px; height: 26px; flex: none; }
.float-wa:hover { background: #126537; }
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  }
  .mobile-bar a, .mobile-bar button {
    display: grid; place-items: center; min-height: 58px; border: 0; background: transparent;
    font-weight: 600; text-decoration: none; font-size: var(--fs-md);
  }
  .mobile-bar button { background: var(--wine); color: #fff; }
  .float-wa { bottom: 76px; right: 14px; width: 52px; min-height: 52px; padding: 0; justify-content: center; }
  .float-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.cart-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 41; translate: -50% 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(520px, calc(100% - 32px)); min-height: 58px; padding: 0 24px;
  border: 0; border-radius: 6px; background: var(--wine); color: #fff; font-weight: 600; font-size: var(--fs-md);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.cart-bar:hover { background: var(--wine-deep); }
@media (max-width: 759px) {
  .cart-bar { left: 0; bottom: 0; translate: none; width: 100%; border-radius: 0; min-height: 60px; padding-bottom: env(safe-area-inset-bottom); }
}
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60; translate: -50% 12px;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 6px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: var(--fs-sm);
  opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s;
}
.toast.is-on { opacity: 1; translate: -50% 0; }
.noscript { padding: 24px; text-align: center; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(20, 16, 14, .6); }
.icon-btn {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; font-size: var(--fs-xl); line-height: 1;
}
.icon-btn:hover { background: rgba(0, 0, 0, .06); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.dialog-head h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.05; }

legend, .field > span:first-child { display: block; font-weight: 600; margin-bottom: 8px; }
fieldset { margin-top: 22px; }
.field { display: block; margin-top: 18px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: .6em .8em;
  border: 1px solid #CFC8BF; border-radius: 4px; background: #fff;
}
.field textarea { resize: vertical; min-height: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(212, 42, 36, .2); outline-offset: 0; border-color: var(--wine); }
[aria-invalid="true"] { border-color: #B3261E !important; }
.err { display: block; color: #B3261E; font-size: var(--fs-sm); font-weight: 600; margin-top: 4px; }
.err:empty { display: none; }

/* option tiles (sizes), segments (count, mode, payment), rows (crusts) */
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt > span {
  display: block; height: 100%; padding: 10px 12px;
  border: 1px solid #CFC8BF; border-radius: 4px; background: #fff; transition: border-color .12s, background-color .12s;
}
.opt > input:checked + span { border: 2px solid var(--wine); padding: 9px 11px; background: var(--wine-tint); }
.opt input:focus-visible + span { outline: 3px solid var(--wine); outline-offset: 2px; }
.opt input:disabled + span { opacity: .45; }
.size-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.size-grid b { display: block; font-size: var(--fs-md); font-weight: 600; }
.size-grid small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.25; }
.size-grid .price { display: block; margin-top: 4px; color: var(--wine); }
.seg { display: flex; gap: 8px; }
.seg .opt { flex: 1; min-width: 0; }
/* up to 4 flavors: four buttons have to fit a phone */
@media (max-width: 480px) { .seg { gap: 6px; } .seg .opt > span { padding-inline: 2px; font-size: var(--fs-sm); } .seg .opt > input:checked + span { padding-inline: 1px; } }
.seg .opt > span { text-align: center; font-weight: 600; padding: 11px 8px; white-space: nowrap; }
.seg .opt > input:checked + span { padding: 10px 7px; }
.seg-wrap { flex-wrap: wrap; }
.seg-wrap .opt { flex: 1 1 auto; }
.crust-list { display: grid; gap: 8px; }
.crust-list .opt > span { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.crust-list .price { color: var(--muted); font-weight: 500; }
.flavor-selects { display: grid; gap: 10px; }
.flavor-selects .field { margin-top: 0; }
.flavor-selects .field > span:first-child { font-weight: 500; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 4px; }
@media (max-width: 520px) { .size-grid { grid-template-columns: 1fr 1fr; } }

.qty { display: inline-flex; align-items: center; border: 1px solid #CFC8BF; border-radius: 4px; flex: none; }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; font-size: var(--fs-lg); }
.qty button:hover { background: rgba(0, 0, 0, .05); }
.qty output { min-width: 1.8em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty-sm button { width: 34px; height: 34px; font-size: var(--fs-md); }

/* builder */
.builder { width: min(1020px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); border-radius: 8px; background: #fff; overflow: hidden; }
.builder-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr); height: min(760px, calc(100dvh - 32px)); }
.builder-preview, .builder-fields { min-height: 0; }
.builder-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 36px;
  background: radial-gradient(circle at 50% 45%, #3A2A22 0%, #1C1512 75%); color: #fff;
}
.builder-art { width: min(100%, 400px); aspect-ratio: 1; }
.builder-art .pz { width: 100%; height: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.builder-names { font-family: var(--font-display); font-size: var(--fs-lg); text-align: center; min-height: 1.5em; line-height: 1.25; }
.builder-fields { overflow-y: auto; padding: 24px 28px 0; display: flex; flex-direction: column; }
.builder-foot {
  position: sticky; bottom: 0; margin: 24px -28px 0; padding: 14px 28px calc(14px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: center; background: #fff; border-top: 1px solid var(--line);
}
.builder-foot .btn { flex: 1; }
@media (prefers-reduced-motion: no-preference) {
  .builder-art .pz { animation: pop .3s ease-out; }
}
@keyframes pop { from { transform: scale(.97) rotate(-8deg); opacity: .6; } to { transform: none; opacity: 1; } }
@media (max-width: 759px) {
  .builder { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .builder-form { grid-template-columns: 1fr; grid-template-rows: auto; max-height: 100dvh; height: 100dvh; overflow-y: auto; }
  .builder-preview { flex-direction: row; padding: 12px 16px; gap: 14px; position: sticky; top: 0; z-index: 2; justify-content: flex-start; }
  .builder-art { width: 96px; flex: none; }
  .builder-names { text-align: left; font-size: var(--fs-md); padding-right: 44px; }
  .builder-fields { overflow: visible; padding: 4px 16px 0; }
  .builder-foot { margin-inline: -16px; padding-inline: 16px; }
  .builder .dialog-head { position: fixed; top: 10px; right: 8px; z-index: 5; margin: 0; }
  .builder .dialog-head .icon-btn { background: rgba(255, 255, 255, .92); }
  .hide-sm { display: none; }
  .builder .dialog-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* cart: side panel */
.cart {
  width: min(480px, 100%); max-width: none; height: 100dvh; max-height: 100dvh;
  margin: 0 0 0 auto; background: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .cart[open] { animation: slide-in .25s ease-out; }
}
@keyframes slide-in { from { translate: 40px 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.slip { display: flex; flex-direction: column; height: 100%; background: #fff; }
.slip-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px 14px 24px; border-bottom: 1px solid var(--line);
}
.slip-head h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1; }
.slip-body { flex: 1; overflow-y: auto; padding: 20px 24px calc(28px + env(safe-area-inset-bottom)); }
.slip-status { background: var(--mist); border-left: 3px solid var(--brass); padding: 10px 14px; font-size: var(--fs-sm); margin-bottom: 16px; }
.slip-empty { text-align: center; padding: 40px 0; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
.lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-name { font-weight: 600; line-height: 1.3; }
.line-detail { color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; }
.line-side { display: grid; justify-items: end; gap: 2px; }
.line-side .price { font-size: var(--fs-md); }
.line-remove { border: 0; background: none; padding: 4px 0; font-size: var(--fs-sm); color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
.upsell { margin-top: 24px; padding: 16px; background: var(--mist); border-radius: var(--radius); }
.upsell li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.upsell .price { color: var(--muted); margin-left: 6px; }
.checkout { margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--wine); flex: none; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 24px 0 16px; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.totals dt { color: var(--muted); }
.totals dd { text-align: right; }
.totals .total { font-weight: 700; font-size: var(--fs-lg); color: var(--ink); }
.totals dd.total { color: var(--wine); }
.err-block { margin-bottom: 12px; }
.preview { margin-top: 16px; font-size: var(--fs-sm); }
.preview summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.preview pre { white-space: pre-wrap; font-family: var(--font-body); background: var(--mist); padding: 14px; border-radius: 4px; margin: 10px 0 0; }
.sent { margin-top: 16px; padding: 16px; border: 1.5px solid var(--ok); border-radius: var(--radius); display: grid; gap: 12px; }
.sent p { font-weight: 500; }
@media (max-width: 520px) { .cart { width: 100%; } }

/* ==========================================================================
   Adapted from Brasa Charrúa
   ========================================================================== */

/* hero video sits over the photo, under the dark gradient */
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* "Não sabe qual pedir?" chips */
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -8px 0 24px; }
.finder-q { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: .4em 1.05em; border: 1px solid #CFC8BF; border-radius: 999px;
  background: #fff; font-weight: 500; font-size: var(--fs-sm); transition: background-color .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.finder-empty { padding: 32px 0; color: var(--muted); }

/* how the pizza is made: a real sequence, so it is numbered */
.process { counter-reset: proc; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 36px; }
.process li { counter-increment: proc; padding-top: 14px; border-top: 2px solid var(--ink); }
.process li::before { content: counter(proc); display: block; font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1; color: var(--brass); margin-bottom: 8px; }
.process h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: 2px; }
.process p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* gallery */
.gallery .h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.gallery-grid figure { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.gallery-grid figure.is-wide { grid-column: span 2; aspect-ratio: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-grid figure.is-wide { aspect-ratio: 2 / 1; }
}

/* floating button when it opens Instagram instead of WhatsApp */
.float-wa.is-instagram { background: var(--ink); }
.float-wa.is-instagram:hover { background: #000; }

/* ==========================================================================
   Motion that answers an action: what was added, what appeared, what opened.
   Short (200-280 ms) and off for people who ask for reduced motion.
   ========================================================================== */
:root { interpolate-size: allow-keywords; }
@media (prefers-reduced-motion: no-preference) {
  .is-fresh { animation: fresh .2s ease-out; }
  .cart-bar.is-bumped { animation: bump .28s ease-out; }
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .22s ease, content-visibility .22s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}
@keyframes fresh { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes bump { 0% { scale: 1; } 40% { scale: 1.04; } 100% { scale: 1; } }

/* ---------- lunch (Estação 45: buffet at lunch, pizza at night) ---------- */
.lunch { background: var(--mist); }
.lunch-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lunch-grid:has(.lunch-photo:not([hidden])) { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.lunch .eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.lunch-body { margin-top: 20px; display: grid; gap: 12px; max-width: 58ch; color: var(--muted); }
.lunch-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.lunch-facts > div { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.lunch-facts dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lunch-facts dd { margin: 4px 0 0; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; }
.lunch-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lunch-photo img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 759px) {
  .lunch-grid:has(.lunch-photo:not([hidden])) { grid-template-columns: 1fr; }
  .lunch-ctas .btn { flex: 1 1 auto; }
}

/* Estação 45: the subtitle "Restaurante e pizzaria desde 2001" is long, so phones show only the name,
   and the long Instagram handle may break instead of widening the footer. */
@media (max-width: 559px) { .wordmark-sub { display: none; } }
.footer a, .info a { overflow-wrap: anywhere; }

/* ---------- review fixes (30/11/2026, from the 25/11 taste audit) ---------- */
/* Focus on dark surfaces: the red ring disappeared on the black panel and the info bar. */
.infobar :focus-visible, .ex-panel :focus-visible, .club :focus-visible, .cart-bar:focus-visible { outline-color: #fff; }
/* the "vegetariana" tag on the black panel: light green, 4.5:1 or better */
.ex-panel .tag-veg, .ex-panel .tag-vegan { color: #8BD69B; }
/* Small phones: the "a partir de" price goes under the name's line instead of on top of it. */
@media (max-width: 480px) {
  .ex-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .ex-name { font-size: 1.375rem; overflow-wrap: anywhere; }
  .ex-from { white-space: normal; text-align: right; line-height: 1.3; }
  .ex-from .price { display: block; }
  .ex-arrow { display: none; }
}
/* footer links: whole rows are 44px tall */
.footer-links a { display: flex; align-items: center; min-height: 44px; }
