/* ==========================================================================
   BANZÉ NA PETISCARIA — design system
   Palette extends the existing brand: near-black navy, warm gold, enamel blue.
   All text/background pairs verified ≥ 4.5:1 (WCAG 2.2 AA).
   ========================================================================== */

@layer reset, tokens, base, layout, components, utilities;

/* ---------- reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  img, picture, svg, video { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  p, h1, h2, h3, h4 { overflow-wrap: break-word; }
  ul[class] { list-style: none; padding: 0; }
}

/* ---------- tokens ---------- */
@layer tokens {
  :root {
    /* surfaces */
    --ink:        #05090c;
    --ink-2:      #0b1119;
    --ink-3:      #121a24;
    --line:       #23303d;
    --line-soft:  #1a232e;

    /* text — contrast on --ink */
    --bone:       #f2ede4;   /* 17.0:1 */
    --bone-dim:   #b9b2a6;   /*  9.5:1 */
    --bone-mute:  #8d867b;   /*  5.4:1 */

    /* accent */
    --gold:       #c08a2e;   /*  6.6:1 */
    --gold-lift:  #e0b462;   /* 10.4:1 */
    --terra:      #8c4a2f;
    --enamel:     #2d5a8e;   /* the blue plate rim */

    /* type */
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Fragment Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

    /* Sized so the H1, the sub, BOTH CTAs and the proof line all clear a
       720px fold. Restaurant traffic splits into ready-to-book and
       still-deciding; pushing either CTA below the fold loses one of them. */
    --fs-hero:  clamp(2.6rem, 7.2vw, 6.25rem);
    --fs-xl:    clamp(2.5rem, 6.5vw, 5.25rem);
    --fs-lg:    clamp(1.9rem, 4vw, 3.15rem);
    --fs-md:    clamp(1.35rem, 2.2vw, 1.85rem);
    --fs-body:  clamp(1rem, 0.96rem + 0.22vw, 1.15rem);
    --fs-sm:    0.9375rem;
    --fs-xs:    0.8125rem;

    --track-label: 0.18em;

    /* space */
    --gut: clamp(1.25rem, 5vw, 5rem);
    --section: clamp(5rem, 11vw, 11rem);
    --maxw: 82.5rem;
    --measure: 38ch;

    /* motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 720ms;
  }
}

/* ---------- base ---------- */
@layer base {
  html {
    scroll-behavior: smooth;
    /* The sticky booking bar is ~81px and fixed, so anchor jumps and the end of
       the document would otherwise land underneath it. */
    scroll-padding-bottom: 6rem;
    scroll-padding-top: 5rem;
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  /* Belt and braces against horizontal overflow. `clip` beats `hidden` here:
     hidden makes the element a scroll container, which iOS still lets you pan. */
  html { overflow-x: clip; }
  body {
    background: var(--ink);
    color: var(--bone);
    font-family: var(--font-text);
    font-size: var(--fs-body);
    line-height: 1.65;
    font-weight: 350;
    overflow-x: clip;
    max-width: 100%;
  }

  h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 90;
  }

  a { color: inherit; text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); text-underline-offset: 0.28em; }
  a:hover { text-decoration-color: var(--gold); }

  :where(a, button, input, textarea, summary):focus-visible {
    outline: 2px solid var(--gold-lift);
    outline-offset: 3px;
    border-radius: 2px;
  }

  ::selection { background: var(--gold); color: var(--ink); }

  .skip {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--gold); color: var(--ink); padding: 0.75rem 1.25rem; font-weight: 600;
  }
  .skip:focus { left: 0; }
}

/* ---------- layout ---------- */
@layer layout {
  .wrap { width: min(100% - (var(--gut) * 2), var(--maxw)); margin-inline: auto; }
  .wrap-wide { width: min(100% - (var(--gut) * 2), 100rem); margin-inline: auto; }
  .section { padding-block: var(--section); }
  .section-tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

  .grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
  .g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
  .g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

  .split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
  @media (min-width: 56rem) {
    .split { grid-template-columns: 1fr 1fr; }
    .split-wide-l { grid-template-columns: 1.25fr 1fr; }
    .split-wide-r { grid-template-columns: 1fr 1.25fr; }
  }
}

/* ---------- components ---------- */
@layer components {

  /* --- eyebrow / label --- */
  /* Mono is the "data" voice: labels, prices in context, attribution, hours. */
  .label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--gold);
  }
  .mono { font-family: var(--font-mono); font-weight: 400; }
  .label-dim { color: var(--bone-mute); }

  .rule { height: 1px; background: var(--line); border: 0; }

  /* --- header --- */
  .site-head {
    position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: clamp(0.85rem, 1.6vw, 1.4rem) var(--gut);
    transition: background 400ms var(--ease), backdrop-filter 400ms var(--ease), border-color 400ms var(--ease);
    border-bottom: 1px solid transparent;
  }
  .site-head.is-stuck {
    background: color-mix(in srgb, var(--ink) 88%, transparent);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom-color: var(--line-soft);
  }
  /* Scrim so nav links stay legible over bright photography before the header
     gains its solid background on scroll. */
  .site-head::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 82%, transparent), transparent);
    transition: opacity 400ms var(--ease);
  }
  .site-head.is-stuck::before { opacity: 0; }
  .brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
  .brand img { width: clamp(5.25rem, 9vw, 8.75rem); }
  /* The booking button is NEVER hidden. An earlier version hid it below 26rem
     (416px), which removed it from every modern iPhone — and on the menu page,
     where there is no hero CTA, that left no booking control on screen at all.
     It shrinks instead. */
  @media (max-width: 26rem) {
    .site-head { padding-inline: 0.85rem; }
    .site-head .head-actions .btn { padding-inline: 0.7rem; letter-spacing: 0.05em; }
    .brand img { width: 4.4rem; }
    .head-actions { gap: 0.4rem; }
    .lang { width: 2.4rem; }
    .lang .flag { width: 1.75rem; }
  }

  .nav { display: none; gap: clamp(1.25rem, 2.4vw, 2.5rem); align-items: center; }
  @media (min-width: 60rem) { .nav { display: flex; } }
  .nav a {
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; text-decoration: none; color: var(--bone-dim);
    transition: color 260ms var(--ease); position: relative; padding-block: 0.35rem;
  }
  .nav a::after {
    content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform 380ms var(--ease);
  }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

  .head-actions { display: flex; align-items: center; gap: 0.75rem; }

  /* A single flag showing the language you switch TO. 44px tap target (WCAG
     2.5.8) wrapped around a 27px flag. */
  .lang {
    display: grid; place-items: center; flex: none;
    width: 2.75rem; height: 2.75rem; text-decoration: none;
    transition: transform 260ms var(--ease);
  }
  .lang:hover { transform: scale(1.09); }
  .lang .flag {
    width: 1.95rem; height: auto; display: block; border-radius: 4px;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--bone) 24%, transparent);
  }
  /* The header booking button is sized to sit flush with the flag beside it:
     same box height, unchanged type size — the padding comes off, not the text.
     28px clears the 24px WCAG 2.5.8 minimum target. */
  .site-head .head-actions .btn {
    min-height: 0; height: 1.75rem; line-height: 1;
    padding-block: 0; padding-inline: 0.95rem;
    align-self: center;
  }

  /* --- burger --- */
  /* flex column, not grid: as a grid the three spans became three equal rows
     that split the 44px box, so the bars sat ~13px apart no matter what the
     margins said. */
  .burger {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem;
    background: none; border: 0; cursor: pointer; flex: none; padding: 0;
  }
  @media (min-width: 60rem) { .burger { display: none; } }
  /* Thick bars with rounded caps — hairlines read as broken on a phone. */
  .burger span {
    display: block; width: 1.3rem; height: 2.5px; border-radius: 999px;
    background: var(--bone);
    transition: transform 300ms var(--ease), opacity 200ms;
  }
  .burger span + span { margin-top: 3.5px; }
  /* bar centres sit 6px apart, so the X closes on exactly ±6px */
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .drawer {
    position: fixed; inset: 0; z-index: 99;
    background: var(--ink-2);
    display: grid; place-content: center; gap: 0.5rem; text-align: center;
    opacity: 0; visibility: hidden; transition: opacity 380ms var(--ease), visibility 380ms;
  }
  .drawer.is-open { opacity: 1; visibility: visible; }
  /* The anchors default to inline, so on a phone all four ran together as
     "CartaGruposA CasaOnde Estamos" on a single line. The nav is the grid. */
  .drawer nav { display: grid; gap: 0.4rem; justify-items: center; }
  .drawer a {
    display: block;
    font-family: var(--font-display); font-size: clamp(1.9rem, 7vw, 3rem);
    text-decoration: none; padding-block: 0.5rem; color: var(--bone);
    line-height: 1.15;
  }
  .drawer a:hover { color: var(--gold-lift); }

  /* --- buttons --- */
  .btn {
    --btn-bg: var(--gold); --btn-fg: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    background: var(--btn-bg); color: var(--btn-fg);
    padding: 1.05rem 2rem; border: 1px solid var(--btn-bg); border-radius: 0;
    min-height: 3.25rem; /* ≥44px target (WCAG 2.5.8) */
    font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400;
    letter-spacing: 0.14em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    /* Buttons must wrap. `nowrap` plus a long label like "RESERVAR UMA MESA
       DEPOIS DA MEIA-NOITE" made the button wider than a phone, which pushed
       the whole document past the viewport — iOS then zooms out to fit and you
       get a black gutter down the side. */
    white-space: normal; text-align: center; text-wrap: balance;
    max-width: 100%;
    transition: transform 300ms var(--ease), background 300ms var(--ease), color 300ms var(--ease);
  }
  /* Short, fixed labels that should never wrap. */
  .site-head .head-actions .btn, .book-bar .btn { white-space: nowrap; }
  .btn:hover { transform: translateY(-2px); background: var(--gold-lift); border-color: var(--gold-lift); }
  .btn-ghost { --btn-bg: transparent; --btn-fg: var(--bone); border-color: var(--line); }
  .btn-ghost:hover { --btn-fg: var(--ink); background: var(--bone); border-color: var(--bone); }
  .btn-sm { padding: 0.8rem 1.4rem; font-size: 0.75rem; min-height: 2.75rem; }

  /* --- proof badge (the 4.8 / 3.813) --- */
  .proof {
    display: inline-flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
    font-size: var(--fs-sm); color: var(--bone-dim);
  }
  .proof strong { color: var(--bone); font-weight: 600; }
  .stars { color: var(--gold-lift); letter-spacing: 0.08em; font-size: 0.9em; }
  .proof-sep { width: 1px; height: 1rem; background: var(--line); }

  .proof-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: clamp(1rem, 3vw, 2.75rem);
    padding: 1.15rem var(--gut);
    background: var(--ink-2); border-block: 1px solid var(--line-soft);
    font-size: var(--fs-sm);
  }

  /* --- hero --- */
  .hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
  .hero-media { position: absolute; inset: 0; z-index: -2; }
  .hero-media img { width: 100%; height: 100%; object-fit: cover; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(to top, var(--ink) 4%, color-mix(in srgb, var(--ink) 60%, transparent) 42%, color-mix(in srgb, var(--ink) 30%, transparent) 100%),
      linear-gradient(to right, color-mix(in srgb, var(--ink) 72%, transparent), transparent 62%);
  }
  .hero-inner { padding-block: clamp(3rem, 9vw, 7rem); }
  .hero h1 {
    font-size: var(--fs-hero); line-height: 0.88; letter-spacing: -0.035em;
    max-width: 14ch; text-wrap: balance;
  }
  .hero h1 em { font-style: italic; color: var(--gold-lift); font-variation-settings: "SOFT" 40, "WONK" 1; }
  /* The rating is the first line on the page — the strongest thing the
     restaurant owns, read before the location or the headline. */
  .hero-proof {
    display: inline-flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
    text-decoration: none; margin-bottom: 0.9rem;
    font-size: var(--fs-sm); color: var(--bone);
  }
  .hero-proof .stars { color: var(--gold-lift); font-size: 0.85em; letter-spacing: 0.06em; }
  .hero-proof .mono { border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); padding-bottom: 1px; }
  .hero-proof:hover .mono { border-bottom-color: var(--gold-lift); }
  @media (max-width: 60rem) { .hero-proof { font-size: 0.8rem; margin-bottom: 0.6rem; } }

  .hero-sub { max-width: var(--measure); color: var(--bone-dim); margin-top: 1.5rem; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; align-items: center; }

  .scroll-hint {
    position: absolute; inset-block-end: 1.5rem; inset-inline-end: var(--gut);
    display: none; writing-mode: vertical-rl; font-size: var(--fs-xs);
    letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bone-mute);
  }
  @media (min-width: 60rem) { .scroll-hint { display: block; } }

  /* --- page header (interior pages) --- */
  .page-head { padding-block: clamp(7rem, 12vw, 9.5rem) clamp(2.5rem, 5vw, 4rem); }
  .page-head h1 { font-size: var(--fs-xl); max-width: 18ch; text-wrap: balance; }
  .page-head p { max-width: 52ch; color: var(--bone-dim); margin-top: 1.25rem; }

  /* --- editorial figure --- */
  figure.frame { margin: 0; overflow: hidden; background: var(--ink-3); }
  figure.frame img { width: 100%; transition: transform 1.4s var(--ease); }
  figure.frame:hover img { transform: scale(1.04); }
  .ratio-4-5 { aspect-ratio: 4 / 5; }
  .ratio-3-4 { aspect-ratio: 3 / 4; }
  .ratio-16-9 { aspect-ratio: 16 / 9; }
  .ratio-1-1 { aspect-ratio: 1 / 1; }
  figure.frame img.cover { height: 100%; object-fit: cover; }
  figcaption { font-size: var(--fs-xs); color: var(--bone-mute); margin-top: 0.75rem; letter-spacing: 0.04em; }

  /* --- section heading --- */
  .sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .sec-head h2 { font-size: var(--fs-xl); max-width: 20ch; text-wrap: balance; }
  .sec-head p { max-width: 54ch; color: var(--bone-dim); }
  .sec-head-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: end; justify-content: space-between; }

  /* --- menu list --- */
  /* Clears the fixed header (110px) AND the sticky section nav beneath it,
     so an anchor jump never lands a heading underneath the chrome. */
  .menu-group { margin-bottom: clamp(3rem, 6vw, 5rem); scroll-margin-top: 11.5rem; }
  .menu-group-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
  .menu-group-head h2 { font-size: var(--fs-lg); }
  .menu-group-head .pt-sub { color: var(--bone-mute); font-size: var(--fs-sm); letter-spacing: var(--track-label); text-transform: uppercase; margin-top: 0.5rem; }

  .dishes { display: grid; gap: 0; }
  @media (min-width: 52rem) { .dishes { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 5vw, 4.5rem); } }

  .dish { padding-block: 1.15rem; border-bottom: 1px solid var(--line-soft); display: grid; gap: 0.3rem; }
  .dish-top { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; }
  .dish-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
  .dish-price { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .dish-desc { font-size: var(--fs-sm); color: var(--bone-dim); line-height: 1.5; max-width: 46ch; }
  .dish-note { font-size: var(--fs-xs); color: var(--bone-mute); }

  .tag {
    display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 3px; vertical-align: 0.15em;
    margin-left: 0.4rem;
  }
  .tag-vegan { background: color-mix(in srgb, #4e7d4a 30%, var(--ink)); color: #a8d6a2; }
  .tag-veg   { background: color-mix(in srgb, #6b7d3a 30%, var(--ink)); color: #cbd88f; }

  /* --- sticky menu nav --- */
  .menu-nav {
    /* must sit below the fixed header at every width, or it slides underneath */
    position: sticky; top: clamp(5.5rem, 9vw, 7.25rem); z-index: 40;
    display: flex; gap: 0.5rem; overflow-x: auto;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
    padding-block: 0.9rem; margin-bottom: 2.5rem;
    background: color-mix(in srgb, var(--ink) 92%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
    /* fade the right edge so the rail reads as scrollable without hiding the
       scrollbar, which keyboard and low-vision users rely on */
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .menu-nav a {
    flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none; color: var(--bone-mute);
    padding: 0.5rem 0.9rem; border: 1px solid var(--line-soft); border-radius: 999px;
    transition: color 250ms, border-color 250ms, background 250ms;
  }
  .menu-nav a:hover { color: var(--ink); background: var(--bone); border-color: var(--bone); }

  /* --- cards --- */
  .card {
    background: var(--ink-2); border: 1px solid var(--line-soft);
    padding: clamp(1.75rem, 3vw, 2.5rem); display: grid; gap: 1rem; align-content: start;
    transition: border-color 350ms var(--ease), transform 350ms var(--ease);
  }
  .card:hover { border-color: var(--line); transform: translateY(-3px); }
  .card h3 { font-size: var(--fs-md); }
  .card p { color: var(--bone-dim); font-size: var(--fs-sm); }
  .card-price { font-family: var(--font-display); font-size: 2.5rem; color: var(--gold); font-weight: 600; line-height: 1; }
  .card-price small { font-size: 0.875rem; color: var(--bone-mute); font-family: var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-top: 0.5rem; font-weight: 600; }

  .card-feature { border-color: var(--gold); position: relative; }
  .card-feature::before {
    content: attr(data-flag); position: absolute; top: 0; right: clamp(1.75rem, 3vw, 2.5rem);
    transform: translateY(-50%);
    background: var(--gold); color: var(--ink); font-size: 0.6875rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 999px;
  }

  .card-list { display: grid; gap: 0.55rem; font-size: var(--fs-sm); color: var(--bone-dim); }
  .card-list li { display: flex; gap: 0.65rem; align-items: baseline; }
  .card-list li::before { content: "—"; color: var(--gold); flex-shrink: 0; }

  /* --- testimonial --- */
  .quotes { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
  @media (min-width: 52rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }
  .quote {
    background: var(--ink-2); border: 1px solid var(--line-soft);
    padding: clamp(1.5rem, 2.5vw, 2rem); display: grid; gap: 1rem; align-content: start;
  }
  .quote blockquote { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; }
  .quote figcaption { display: flex; gap: 0.5rem; align-items: center; margin: 0; }
  .quote-meta { font-size: var(--fs-xs); color: var(--bone-mute); }
  .quote-meta strong { color: var(--bone-dim); font-weight: 600; }

  /* --- facts strip --- */
  .facts { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
  @media (min-width: 44rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
  .fact { background: var(--ink); padding: clamp(1.5rem, 2.5vw, 2rem); display: grid; gap: 0.4rem; }
  .fact dt { font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--bone-mute); }
  .fact dd { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; margin: 0; }

  /* --- form --- */
  .field { display: grid; gap: 0.45rem; }
  .field label { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); font-weight: 600; }
  .field input, .field textarea, .field select {
    background: var(--ink); border: 1px solid var(--line); color: var(--bone);
    padding: 0.85rem 1rem; border-radius: 2px; width: 100%;
    transition: border-color 250ms;
  }
  .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
  .field input::placeholder, .field textarea::placeholder { color: var(--bone-mute); }

  .signup { background: var(--ink-2); border: 1px solid var(--line-soft); padding: clamp(1.75rem, 4vw, 3rem); }
  .signup-row { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
  @media (min-width: 34rem) { .signup-row { grid-template-columns: 1fr auto; align-items: end; } }
  .form-note { font-size: var(--fs-xs); color: var(--bone-mute); margin-top: 1rem; }

  /* --- contact rows --- */
  .contact-list { display: grid; gap: 1.5rem; }
  .contact-row { display: grid; gap: 0.35rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft); }
  .contact-row dt { font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold); }
  .contact-row dd { margin: 0; font-size: var(--fs-md); font-family: var(--font-display); font-weight: 600; }
  .contact-row dd a { text-decoration: none; }
  .contact-row dd a:hover { color: var(--gold-lift); }
  .contact-row .sub { font-size: var(--fs-sm); color: var(--bone-dim); font-family: var(--font-text); font-weight: 350; }

  /* --- footer --- */
  .site-foot { background: var(--ink-2); border-top: 1px solid var(--line-soft); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
  .foot-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
  @media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
  .foot-grid h3 { font-family: var(--font-text); font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
  .foot-links { display: grid; gap: 0.15rem; font-size: var(--fs-sm); }
  .foot-links a { color: var(--bone-dim); text-decoration: none; padding-block: 0.3rem; }
  .foot-links a:hover { color: var(--bone); }
  .foot-bottom {
    margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--line-soft);
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    font-size: var(--fs-xs); color: var(--bone-mute);
  }
  .foot-bottom a { color: var(--bone-mute); }

  /* --- sticky mobile book bar --- */
  .book-bar {
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 90;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.75rem var(--gut);
    background: color-mix(in srgb, var(--ink-2) 96%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 420ms var(--ease);
  }
  .book-bar.is-visible { transform: translateY(0); }
  /* Kept on desktop too — a 65-dish menu page needs a persistent CTA more than
     the phone does. */
  .book-bar .meta { font-size: var(--fs-xs); color: var(--bone-dim); line-height: 1.35; }
  .book-bar .meta strong { color: var(--bone); display: block; font-size: var(--fs-sm); }
  .book-bar.is-late .meta strong { color: var(--gold-lift); }
  .book-bar .btn { flex: 0 0 auto; }
  @media (max-width: 30rem) {
    .book-bar { padding: 0.6rem 0.9rem; gap: 0.6rem; }
    .book-bar .meta { font-size: 0.66rem; line-height: 1.25; }
    .book-bar .meta strong { font-size: 0.78rem; }
    .book-bar .btn { padding: 0.7rem 0.9rem; letter-spacing: 0.08em; min-height: 2.9rem; }
  }
  /* Keep the last of the page clear of the fixed bar. */
  .site-foot { padding-bottom: calc(2rem + 5rem); }
  @media (min-width: 60rem) { .site-foot { padding-bottom: 3rem; } }
}

/* ---------- utilities ---------- */
@layer utilities {
  .u-center { text-align: center; }
  .u-measure { max-width: var(--measure); }
  .u-lead { font-size: var(--fs-md); line-height: 1.45; color: var(--bone); font-weight: 350; }
  .u-dim { color: var(--bone-dim); }
  .u-mute { color: var(--bone-mute); }
  .u-gold { color: var(--gold); }
  .u-mt-1 { margin-top: 1rem; } .u-mt-2 { margin-top: 2rem; } .u-mt-3 { margin-top: 3rem; }
  .u-mb-2 { margin-bottom: 2rem; }
  .u-stack { display: grid; gap: 1.25rem; align-content: start; }
  .u-stack-sm { display: grid; gap: 0.6rem; align-content: start; }
  .u-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
  .u-bg-2 { background: var(--ink-2); }
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }

  /* Scroll reveal is gated on .js (set by an inline script in <head>), so with
     JavaScript off — or if the observer ever fails — every dish and every price
     is visible. Never let content depend on an animation to exist. */
  .js .reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: 90ms; }
  .reveal-d2 { transition-delay: 180ms; }
  .reveal-d3 { transition-delay: 270ms; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      transition-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    figure.frame:hover img { transform: none; }
    .marquee-track { animation: none; }
  }
}

/* ==========================================================================
   Blocks specific to Banzé. Radius stays 0 throughout — the reference is a
   printed carta and a tiled bar front, not the rounded-card hospitality trend.
   ========================================================================== */
@layer components {

  .burger { border-radius: 0; }
  .tag { border-radius: 0; }
  .card-feature::before { border-radius: 0; }

  /* --- b-relogio: the ownable fact, as a device --- */
  .marquee {
    background: var(--ink-2); border-block: 1px solid var(--line-soft);
    padding-block: 0.9rem; overflow: hidden; display: flex; align-items: center; gap: 1rem;
  }
  .marquee-track {
    display: flex; gap: 3rem; white-space: nowrap; flex: 1;
    animation: slide 42s linear infinite;
  }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-track span {
    font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gold);
  }
  @keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; justify-content: center; }
    .marquee-track > span:nth-child(n+5) { display: none; }
  }

  /* --- open-now pill. Must be correct at 01:00 (see site.js) --- */
  .openpill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--bone-dim);
    padding: 0.4rem 0.75rem; border: 1px solid var(--line);
  }
  .openpill .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--bone-mute); flex: none; }
  .openpill[data-open="true"] .dot { background: #57b16a; box-shadow: 0 0 0 3px color-mix(in srgb, #57b16a 22%, transparent); }
  .openpill[data-open="true"] { color: var(--bone); border-color: color-mix(in srgb, #57b16a 45%, var(--line)); }

  /* --- b-mesa: the booking module. Own the first three taps. --- */
  .booker {
    display: grid; gap: 0.75rem; margin-top: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  }
  .booker .field select, .booker .field input { border-radius: 0; min-height: 3.25rem; }
  .booker-go { grid-column: 1 / -1; }
  @media (min-width: 44rem) { .booker-go { grid-column: auto; align-self: end; } }

  .mesa {
    background: var(--ink-2); border: 1px solid var(--line-soft);
    padding: clamp(1.75rem, 4vw, 3.25rem);
  }
  .mesa h2 { font-size: var(--fs-lg); max-width: 16ch; }
  /* These four lines remove more hesitation than any other copy on the site.
     They were previously mono, --fs-xs and dimmed — i.e. styled as fine print. */
  .policy { display: grid; gap: 0.5rem; margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--bone); line-height: 1.55; }
  .policy span { display: flex; gap: 0.6rem; align-items: baseline; }
  .policy span::before { content: "—"; color: var(--gold); flex: none; }

  /* "Sem cartão. Sem pré-pagamento." directly under the submit button. */
  .reassure {
    grid-column: 1 / -1; margin-top: 0.35rem;
    font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--gold-lift);
    letter-spacing: 0.04em;
  }

  .portions { display: grid; gap: 0; }
  .portion { display: grid; gap: 0.25rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line-soft); }
  .portion dt { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
  .portion dd { margin: 0; color: var(--bone-dim); font-size: var(--fs-sm); }
  @media (min-width: 44rem) {
    .portion { grid-template-columns: 1fr auto; align-items: baseline; gap: 2rem; }
    .portion dd { text-align: right; white-space: nowrap; }
  }

  /* Mid-menu ask, so a 65-dish page has a CTA before its end. */
  .mid-cta {
    margin-block: clamp(2rem, 4vw, 3.5rem); padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--ink-2); border: 1px solid var(--gold);
    display: grid; gap: 1rem; justify-items: start;
  }
  .mid-cta-h { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; }

  /* --- booking dialog: native <dialog> gives focus trap + Esc for free --- */
  dialog.book {
    border: 1px solid var(--line); background: var(--ink-2); color: var(--bone);
    padding: 0; border-radius: 0; width: min(100% - 2rem, 34rem); max-height: 88svh;
    overflow: auto;
  }
  dialog.book::backdrop { background: color-mix(in srgb, #000 72%, transparent); backdrop-filter: blur(3px); }
  .book-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--line-soft); }
  .book-body { padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.25rem; }
  .book-close { background: none; border: 1px solid var(--line); width: 2.75rem; height: 2.75rem; cursor: pointer; display: grid; place-items: center; flex: none; }
  .book-close:hover { background: var(--bone); color: var(--ink); }
  .book-frame { width: 100%; min-height: 26rem; border: 0; background: var(--ink-3); }

  /* group interception above 8 covers */
  .grupo-panel { display: none; }
  .grupo-panel[data-on="true"] { display: grid; gap: 1rem; }

  /* --- review wall --- */
  .wall { columns: 1; column-gap: clamp(1rem, 2vw, 1.75rem); }
  @media (min-width: 40rem) { .wall { columns: 2; } }
  @media (min-width: 68rem) { .wall { columns: 3; } }
  .wall .quote { break-inside: avoid; margin-bottom: clamp(1rem, 2vw, 1.75rem); display: block; }
  .wall .quote blockquote { font-size: 1.05rem; margin-bottom: 0.9rem; }

  .quote figcaption, .quote-meta { font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.7rem; }

  /* --- map facade: reserve the box so nothing shifts --- */
  .map-facade {
    aspect-ratio: 16 / 10; min-height: 20rem; background: var(--ink-3);
    border: 1px solid var(--line-soft); display: grid; place-items: center; gap: 1rem;
    text-align: center; padding: 2rem;
  }
  .map-facade iframe { width: 100%; height: 100%; border: 0; }

  /* --- group price grid --- */
  .price-grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
  @media (min-width: 46rem) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
  .price-cell { background: var(--ink); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 0.75rem; align-content: start; }
  .price-cell .amount { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 600; color: var(--gold); line-height: 1; }
  .price-cell .per { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-mute); }
}

@media print {
  .site-head, .book-bar, .menu-nav, .site-foot, .btn, .marquee, dialog.book { display: none !important; }
  body { background: #fff; color: #000; }
  .dish-price { color: #000; }
  .dish { break-inside: avoid; border-bottom-color: #ccc; }
  .menu-group { break-before: auto; }
  a[href]::after { content: ""; }
}
