/* ==========================================================================
   Brasa Dourada Steakhouse — Design Tokens
   Direção: "ferro de marcar" — o ferro em brasa usado para marcar gado nas
   fazendas de Goiás. É de onde vem o nome "Brasa" e o motivo visual do site:
   losango cortado por uma barra (o desenho clássico de um ferro registrado),
   selos carimbados em vez de badges genéricos, e etiquetas de couro em vez
   de cartões com cantos arredondados soltos.
   ========================================================================== */
:root {
  /* Color — terra queimada, ferro em brasa, couro, osso */
  --color-bg: #1E1410;
  --color-bg-elevated: #170F0C;
  --color-bg-card: #241A14;
  --color-text: #EFE6D4;
  --color-text-muted: #A8967E;
  --color-ferro: #C1502E;
  --color-ferro-light: #E2764A;
  --color-ferro-dark: #7A3018;
  --color-pequi: #C9A227;
  --color-border: rgba(239, 230, 212, 0.10);
  --color-border-strong: rgba(239, 230, 212, 0.20);
  --color-overlay: rgba(23, 15, 12, 0.75);
  --color-whatsapp: #25D366;

  /* Typography */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;

  /* Spacing scale (8pt) */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;

  /* Layout */
  --container-w: 1200px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 280ms;
  --dur-slow: 450ms;

  --z-header: 100;
  --z-fab: 90;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
/* Lenis owns smooth scrolling now. Leaving CSS smooth on top of it makes
   the browser animate the same jump Lenis is already interpolating, and
   the two ease curves fight — anchors overshoot and settle twice. The
   reduced-motion block below disables Lenis entirely, and native jumps
   there are instant by design. */
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Subtle hide-grain overlay — gives the flat dark background a material,
   leathery texture instead of a clean gradient (a small tactile risk that
   keeps the page from reading as a generic dark template). */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

:focus-visible {
  outline: 2px solid var(--color-ferro-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ferro);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-3);
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

/* ==========================================================================
   Buttons — shaped like a stamped leather tag: square-ish with one clipped
   corner, instead of the rounded pill every AI-generated site reaches for.
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.95rem 1.75rem;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}
/* A brief glow catches from the clipped corner on press, like the tag's
   edge just touched something hot, then eases out slowly after release
   (fast transition while :active, slow transition once it lets go). */
.btn::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 244, 230, 0.6), transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.btn:active::before {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.08s ease-out, transform 0.08s ease-out;
}
/* Hover extends the same idea: the corner that gets pressed is the one
   that starts glowing, so the button reads as metal warming up before
   it sears rather than a generic lift. */
.btn:hover::before {
  opacity: 0.55;
  transform: scale(0.92);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

/* A shine sweeping across the face was the first thing here and it was
   the single most generic button hover there is — every template ships
   it. The hero already owns a gesture that belongs to this brand and
   nothing else: the iron strikes, it flashes, the mark burns away. The
   button borrows that instead (built in JS, see .btn-flash / .btn-mark). */
.btn-flash {
  position: absolute;
  inset: -40%;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 228, 190, 0.9), rgba(226, 118, 74, 0.35) 40%, transparent 68%);
  opacity: 0;
  pointer-events: none;
}

/* The label leads the movement by a hair, so the button feels pulled
   rather than pushed. */
.btn > * { position: relative; z-index: 1; transition: transform 0.4s var(--ease-out); }
.btn:hover > * { transform: translateX(2px); }

/* The branding mark JS injects. It keeps its slot reserved at all times
   so the label never reflows when the iron strikes — the width used to
   animate, which shifted the text sideways on every hover. GSAP drives
   the strike itself; CSS only holds the space and the glow. */
.btn-mark {
  width: 1em; height: 1em;
  flex: none;
  overflow: visible;
  opacity: 0;
  color: var(--color-brasa-clara, #FFE4BE);
  filter: drop-shadow(0 0 7px rgba(226, 118, 74, 0.85));
  will-change: transform, opacity;
}
.btn-primary .btn-mark { color: #2A1408; filter: drop-shadow(0 0 6px rgba(255, 228, 190, 0.7)); }

@media (prefers-reduced-motion: reduce) {
  .btn-mark, .btn-flash { display: none; }
}
.btn-primary {
  background: var(--color-ferro);
  color: #1A0F09;
  box-shadow: 0 8px 22px -8px rgba(193, 80, 46, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* No translateY here any more — GSAP owns the button's transform for the
   magnetic pull, and a CSS transform on the same element would be
   overwritten mid-hover, making the lift stutter. The lift now comes
   from the shadow growing instead. */
.btn-primary:hover {
  background: var(--color-ferro-light);
  box-shadow: 0 16px 34px -10px rgba(193, 80, 46, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  color: var(--color-text);
}
.btn-ghost:hover { border-color: var(--color-ferro); color: var(--color-ferro-light); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
  transition: background-color var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out), backdrop-filter var(--dur-slow) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(23, 15, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-ferro-light);
}
.brand-mark { color: var(--color-ferro-light); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-text); font-weight: 700; }
.brand-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-ferro-light); }

.main-nav ul { display: flex; gap: var(--space-5); }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
  padding: 0.4rem 0;
}
.main-nav a:hover { color: var(--color-text); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--color-ferro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 76px var(--space-4) auto;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: var(--space-3); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-sm { display: none; }
}

/* ==========================================================================
   Hero — the "branding" moment: a stamp mark presses in, flashes, and the
   wordmark settles as if freshly seared, before the page opens into an
   ambient drift of woodsmoke.
   ========================================================================== */
.hero {
  position: relative;
  /* 100vh (large viewport), NOT 100dvh. dvh physically resizes the hero as
     the mobile URL bar shows/hides during scroll, and since the hero is
     pinned that reflow makes it jump on every scroll direction change —
     ScrollTrigger's ignoreMobileResize can't stop a genuine CSS-driven
     size change. 100vh is stable on mobile (content just extends behind
     the bar), so the pinned hero never reflows. Matches Áurea Palace. */
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(193, 80, 46, 0.22), transparent 60%),
    linear-gradient(180deg, #1E1410 0%, #190F0B 60%, #170F0C 100%);
}
/* Video sits at the base of the stack; clip-path starts fully open so a
   page with no JS (or before GSAP has run) simply shows the video full-bleed
   — the "aperture" effect below is a progressive enhancement, not a
   requirement for the content to be visible. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  clip-path: inset(0% 0% 0% 0%);
}
/* With JS running, the aperture starts closed from the very first paint —
   otherwise the video flashes full-bleed for the moment between page load
   and the scrub timeline taking over (it only initializes once the video
   has buffered enough to seek). Matches the timeline's 26% start exactly. */
.js .hero-video { clip-path: inset(26% 26% 26% 26%); }
.hero-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 15, 12, 0.5) 0%, rgba(23, 15, 12, 0.55) 45%, rgba(23, 15, 12, 0.88) 100%);
}
/* Mobile hero: a canvas blitting a preloaded frame sequence, standing in
   for the <video> element. Seeking a video's decoder has unpredictable
   latency on Android even with an all-intra source; drawing a preloaded
   HTMLImageElement to canvas is an instant, synchronous compositor blit.
   Hidden by default — main.js reveals it (and hides the video) only once
   frames have started preloading for a mobile viewport. */
.hero-frames-canvas {
  width: 100%;
  height: 100%;
  display: none;
}
#hero-video-wrap.uses-frame-canvas .hero-video-el:not(.hero-frames-canvas) { display: none; }
#hero-video-wrap.uses-frame-canvas .hero-frames-canvas { display: block; }
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 60%, rgba(193, 80, 46, 0.14), transparent 55%);
  pointer-events: none;
}
.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.ember {
  position: absolute;
  bottom: -60px;
  width: 26px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 118, 74, 0.32), rgba(193, 80, 46, 0.1) 55%, transparent 75%);
  filter: blur(5px);
  opacity: 0;
  will-change: transform, opacity;
}

.hero-flash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 40%, rgba(226, 118, 74, 0.85), transparent 62%);
  opacity: 0;
  pointer-events: none;
}
.hero-stamp {
  position: absolute;
  top: 38%;
  left: 50%;
  translate: -50% -50%;
  z-index: 2;
  color: var(--color-ferro-light);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 26px rgba(226, 118, 74, 0.75));
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-top: 76px;
}

/* Scroll cue: a mouse outline with a scrolling wheel dot on desktop. Same
   element restyled as a phone with a swiping fingertip dot on touch
   layouts, since a mouse shape makes no sense there. */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--color-border-strong);
  border-radius: 20px;
  z-index: 3;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--color-text);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}
@media (max-width: 900px) {
  /* The hero runs to 100vh (large viewport), so its bottom edge sits behind
     the browser's URL bar while the bar is shown — lift the cue clear of it. */
  .scroll-cue { border-radius: 7px; bottom: 96px; }
  .scroll-cue::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 2px;
    border-radius: 1px;
    background: var(--color-border-strong);
  }
  .scroll-cue span {
    top: 28px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(226, 118, 74, 0.75);
    animation: swipeCue 1.8s ease-in-out infinite;
  }
  @keyframes swipeCue {
    0% { opacity: 0; top: 28px; }
    15% { opacity: 1; top: 26px; }
    70% { opacity: 0; top: 11px; }
    100% { opacity: 0; top: 28px; }
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-ferro-light);
  border: 1px solid rgba(193, 80, 46, 0.45);
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  border-radius: 2px;
  transform: rotate(-1.1deg);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(3rem, 11vw, 6.5rem);
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.hero-title .line { display: block; }
.hero-title .line:last-child { color: var(--color-ferro-light); font-style: italic; }
.hero-tagline {
  margin: var(--space-4) auto 0;
  max-width: 36ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
}
.hero-actions {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile: stacked full-width actions — a deliberate thumb-first layout,
   not the desktop pair squeezed side by side. */
@media (max-width: 767px) {
  .hero-actions { flex-direction: column; align-items: stretch; padding-inline: var(--space-3); }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Progressive enhancement: only hide these once JS has confirmed it can run
   (see .js class added inline in <head>). If a script fails to load, the
   hero simply renders in its final state — never permanently invisible. */
/* visibility:hidden (not just opacity) so the not-yet-revealed buttons and
   text can't be clicked, tab-focused, or selected while invisible — the
   scrubbed timeline animates these via GSAP autoAlpha, which flips
   visibility back on as each element fades in. */
.js .hero-anim { opacity: 0; visibility: hidden; }
.js .hero-title .line { opacity: 0; visibility: hidden; transform: scale(1.06); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--space-7); }
.section-alt { background: var(--color-bg-elevated); }
.section-head { max-width: 640px; margin-bottom: var(--space-5); }

@media (min-width: 768px) {
  .section { padding-block: var(--space-9); }
  .section-head { margin-bottom: var(--space-7); }
}

/* Each section carries a faint glow anchored to a different corner —
   quiet depth instead of a flat fill, echoing the hero's atmosphere
   without repeating it. Kept behind all real content (z-index: -1). */
.section::before {
  content: '';
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
#sobre::before { top: -14%; right: -8%; background: radial-gradient(circle, rgba(193, 80, 46, 0.07), transparent 70%); }
#cardapio::before { bottom: -16%; left: -10%; background: radial-gradient(circle, rgba(201, 162, 39, 0.055), transparent 70%); }
#ambiente::before { top: -12%; left: -10%; background: radial-gradient(circle, rgba(193, 80, 46, 0.06), transparent 70%); }
#depoimentos::before { bottom: -14%; right: -8%; background: radial-gradient(circle, rgba(193, 80, 46, 0.07), transparent 70%); }
#localizacao::before { top: -12%; right: -6%; background: radial-gradient(circle, rgba(201, 162, 39, 0.055), transparent 70%); }

/* A huge, almost-invisible version of the brand mark, bleeding off a
   corner — the kind of quiet flourish a print identity would use on a
   letterhead. Only on two sections (the story open and the contact
   close) so it reads as a bookend, not a repeating pattern. */
.section-watermark {
  position: absolute;
  width: min(55vw, 760px);
  aspect-ratio: 1;
  color: var(--color-ferro);
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
}
.section-watermark--left { bottom: -14%; left: -13%; }
.section-watermark--right { bottom: -14%; right: -13%; transform: scaleX(-1); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-top: var(--space-2); }
.section-lede { color: var(--color-text-muted); margin-top: var(--space-3); font-size: 1.05rem; }

/* ==========================================================================
   Sobre
   ========================================================================== */
.about-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.about-text { color: var(--color-text-muted); margin-top: var(--space-4); max-width: 58ch; }
.about-text + .about-text { margin-top: var(--space-3); }

.feature-row {
  display: grid;
  /* Four pillars read as a balanced 2×2, never 3-plus-an-orphan. */
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(193, 80, 46, 0.12);
  border: 1px solid rgba(193, 80, 46, 0.3);
  color: var(--color-ferro-light);
  transform: rotate(-2deg);
  margin-bottom: var(--space-3);
}
.feature h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.feature p { color: var(--color-text-muted); font-size: 0.92rem; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ==========================================================================
   Placeholder visuals (photo stand-ins)
   ========================================================================== */
.placeholder-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(193, 80, 46, 0.16), transparent 55%),
    linear-gradient(155deg, #241A14 0%, #170F0C 100%);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ferro-dark);
  overflow: hidden;
}
.placeholder-card::after {
  content: attr(data-caption);
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  right: var(--space-3);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.ph-icon { color: var(--color-ferro-light); opacity: 0.85; }
.ph-tall { aspect-ratio: 3 / 4; height: 100%; min-height: 380px; }

/* Cards that carry a real photo instead of an icon placeholder: the image
   fills the frame, a bottom scrim keeps the caption legible over it. */
.ph-has-image img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: brightness(1) saturate(1);
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.ph-has-image:hover img {
  transform: scale(1.055);
  filter: brightness(0.88) saturate(1.08);
}
.ph-has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 15, 12, 0.85) 100%);
}
.ph-has-image::after { z-index: 2; color: var(--color-text); }

/* ==========================================================================
   Cardápio — a physical printed menu card resting on a table
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#cardapio::before { content: none; }
.cardapio-print {
  background-image:
    linear-gradient(180deg, rgba(15, 10, 8, 0.55), rgba(15, 10, 8, 0.78) 45%, rgba(15, 10, 8, 0.5)),
    url('../cardapio-fundo.webp');
  background-size: cover;
  background-position: center 78%;
  background-repeat: no-repeat;
  padding-bottom: var(--space-5);
}

/* Stage the card sits on: unclipped, so a soft contact shadow can pool
   under it and bleed past the card's own torn edge — the card itself
   clips its silhouette tightly, so this shadow has to live one level up. */
.menu-card-stage { position: relative; }
.menu-card-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 82%;
  height: 50px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.25) 55%, transparent 75%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}

/* The card itself: a torn-edge sheet of paper, its own photographic
   texture for a background, resting on the table with a soft contact
   shadow that follows its jagged silhouette (not a rectangle). */
.menu-card {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  background-image: url('../cardapio-papel.webp');
  background-size: cover;
  background-position: center;
  clip-path: polygon(
    0% 1.8%, 8% 0.4%, 16% 1.6%, 24% 0.2%, 32% 1.4%, 40% 0%, 48% 1.2%, 56% 0.3%, 64% 1.6%, 72% 0.2%, 80% 1.3%, 88% 0.5%, 100% 1.6%,
    99.3% 9%, 100% 17%, 98.6% 25%, 100% 33%, 99.2% 41%, 100% 49%, 98.7% 57%, 100% 65%, 99.3% 73%, 100% 81%, 98.8% 89%, 100% 98.4%,
    92% 99.6%, 84% 98.3%, 76% 99.7%, 68% 98.5%, 60% 100%, 52% 98.6%, 44% 99.8%, 36% 98.4%, 28% 99.6%, 20% 98.3%, 12% 99.7%, 0% 98.2%,
    1.4% 90%, 0% 82%, 1.6% 74%, 0% 66%, 1.3% 58%, 0% 50%, 1.6% 42%, 0% 34%, 1.2% 26%, 0% 18%, 1.5% 10%
  );
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

/* Settles onto the table on first scroll into view, then the paper's own
   smoke texture keeps drifting almost imperceptibly — the animation list
   below is careful never to touch `filter`, so the drop-shadow above stays
   put throughout (a shared `filter` + `animation` would otherwise fight). */
.js .menu-card { opacity: 0; transform: translateY(46px) scale(0.97); }
.js .menu-card.is-visible {
  animation:
    menu-card-settle 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    menu-card-smoke-drift 24s ease-in-out 0.9s infinite;
}
@keyframes menu-card-settle {
  0% { opacity: 0; transform: translateY(46px) scale(0.97); }
  65% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes menu-card-smoke-drift {
  0%, 100% { background-position: 50% 50%; }
  50% { background-position: 53% 47%; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-card { opacity: 1 !important; transform: none !important; animation: none !important; }
  .menu-card-embers { display: none; }
}

/* A few embers drift up past the charred corner of the paper — the same
   ember particles the hero uses, spawned smaller and slower here since
   this is a quiet background detail behind readable text, not a hero beat. */
.menu-card-embers {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 36%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.menu-card-inner {
  position: relative;
  z-index: 2;
  padding: clamp(2.75rem, 7vw, 4.5rem) clamp(1.75rem, 6vw, 3.75rem) clamp(3.25rem, 8vw, 5rem);
}

.menu-card-brand { text-align: center; margin-bottom: var(--space-6); }
.menu-card-brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-ferro-light);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.menu-card-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.menu-card-rodizio {
  text-align: center;
  border: 1px solid rgba(226, 118, 74, 0.5);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-7);
}
.menu-card-rodizio h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-ferro-light);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  margin-bottom: var(--space-2);
}
.menu-card-rodizio p { color: var(--color-text); font-size: 0.92rem; }
.menu-card-rodizio p span { color: var(--color-ferro-light); margin-inline: 0.5em; }

.menu-card-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-5);
}
.menu-card-divider { width: 1px; background: rgba(239, 230, 212, 0.18); }
@media (max-width: 640px) {
  .menu-card-columns { grid-template-columns: 1fr; gap: 0; }
  .menu-card-divider { display: none; }
  .menu-card-col ~ .menu-card-col { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid rgba(239, 230, 212, 0.18); }
}

.menu-card-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ferro-light);
  text-align: center;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  margin-bottom: var(--space-4);
}

.menu-card-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.menu-card-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  transition: transform var(--dur-base) var(--ease-out);
}
.menu-card-list li:hover { transform: translateX(3px); }
.menu-card-item-name { color: var(--color-text); font-size: 0.92rem; white-space: nowrap; transition: color var(--dur-base) var(--ease-out); }
.menu-card-leader { flex: 1 1 auto; min-width: 8px; border-bottom: 1px dotted rgba(239, 230, 212, 0.35); margin-bottom: 0.28em; transition: border-color var(--dur-base) var(--ease-out); }
.menu-card-item-price { color: var(--color-text); font-size: 0.92rem; white-space: nowrap; transition: color var(--dur-base) var(--ease-out); }
.menu-card-list li:hover .menu-card-item-name,
.menu-card-list li:hover .menu-card-item-price {
  color: var(--color-ferro-light);
}
.menu-card-list li:hover .menu-card-leader {
  border-color: rgba(226, 118, 74, 0.6);
}

.menu-card-single { text-align: center; margin-top: var(--space-6); }
.menu-card-single .menu-card-list { max-width: 420px; margin-inline: auto; }

.menu-card-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-7) 0;
  color: var(--color-ferro-light);
}
.menu-card-ornament-line { flex: 1 1 auto; max-width: 140px; height: 1px; background: rgba(226, 118, 74, 0.4); }
.menu-card-ornament-mark { flex-shrink: 0; }

@media (max-width: 480px) {
  .menu-card-item-name, .menu-card-item-price { font-size: 0.85rem; }
}

/* ==========================================================================
   Ambiente / Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 190px;
  gap: var(--space-4);
}
/* Every card fills its row track exactly — widths vary by column span,
   but row heights never mismatch (mixing aspect ratios per-card was what
   left uneven gaps and made the grid read as scattered). */
.gallery-grid .placeholder-card { aspect-ratio: auto; height: 100%; }
.gallery-grid .ph-wide { grid-column: span 2; }
.gallery-note { margin-top: var(--space-4); font-size: 0.85rem; color: var(--color-text-muted); font-style: italic; }

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
}

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.testimonial-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial-card {
  margin: 0;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}
.stars { color: var(--color-pequi); letter-spacing: 0.15em; margin-bottom: var(--space-3); font-size: 0.95rem; }
.testimonial-card blockquote { margin: 0 0 var(--space-4); color: var(--color-text); font-size: 1rem; line-height: 1.6; }
.testimonial-card figcaption { display: flex; align-items: center; gap: var(--space-3); font-size: 0.88rem; color: var(--color-text-muted); }
.testimonial-card figcaption small { display: block; color: var(--color-text-muted); opacity: 0.75; }
/* Wax-seal styling: a bordered stamp instead of a soft flat avatar circle. */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-ferro);
  background: rgba(193, 80, 46, 0.14);
  color: var(--color-ferro-light);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Localização
   ========================================================================== */
.location-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.info-list { display: flex; flex-direction: column; gap: var(--space-4); margin: var(--space-5) 0 var(--space-6); }
.info-list li { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--color-text-muted); }
.info-icon { color: var(--color-ferro-light); flex-shrink: 0; margin-top: 2px; }
.hours { display: flex; flex-direction: column; }
.hours strong { color: var(--color-text); }
.hours small { opacity: 0.8; margin-top: 2px; }

.location-map {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  /* Google's iframe has a white loading background; this keeps first paint
     on-theme instead of a bright flash before the map tiles load in. */
  background: var(--color-bg-elevated);
}
/* Google's embed only ships a bright light theme; inverting + counter-
   rotating the hue fakes a dark map so it doesn't blow out next to the
   rest of the page (no Maps API key required for this approach). */
.location-map iframe { display: block; width: 100%; height: 100%; filter: invert(92%) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.7); }

@media (min-width: 900px) {
  .location-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  padding-block: var(--space-8);
  background: linear-gradient(120deg, rgba(193, 80, 46, 0.16), rgba(193, 80, 46, 0.02));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: var(--space-5); max-width: 24ch; margin-inline: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-top: var(--space-8); background: var(--color-bg-elevated); }
.footer-grid {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--color-border);
}
.footer-brand p { color: var(--color-text-muted); margin-top: var(--space-3); max-width: 32ch; }
.footer-links h3, .footer-contact h3 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-ferro-light); margin-bottom: var(--space-3); }
.footer-links ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a, .footer-contact p { color: var(--color-text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--color-text); }
.footer-contact p { margin-bottom: var(--space-2); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-5);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.footer-disclaimer span { color: var(--color-ferro-light); }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ==========================================================================
   WhatsApp FAB — kept as WhatsApp's own recognizable green + circle; a
   system convention users already know, not part of the site's own palette.
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-fab);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform var(--dur-fast) var(--ease-out);
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-whatsapp);
  animation: fabpulse 2.6s var(--ease-out) infinite;
}
@keyframes fabpulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ==========================================================================
   Scroll-reveal — "sear-in" (activated via JS by adding .is-visible)
   Content settles in with a brief warm flash, like it just came off the
   iron, instead of a flat fade + slide — the same idea as the hero's
   opening moment, applied quietly throughout the rest of the page.
   ========================================================================== */
@keyframes sear-in {
  0% { opacity: 0; transform: scale(0.965) translateY(14px); filter: brightness(1) saturate(1); }
  55% { opacity: 1; filter: brightness(1.12) saturate(1.15); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1) saturate(1); }
}
.js .reveal, .js .reveal-up { opacity: 0; }
.js .reveal.is-visible, .js .reveal-up.is-visible {
  animation: sear-in 0.7s var(--ease-out) forwards;
}

/* Staggered settling for card groups — each item catches light a beat
   after the one before it, rather than every card arriving in lockstep. */
.feature-row .reveal:nth-child(2) { animation-delay: 90ms; }
.feature-row .reveal:nth-child(3) { animation-delay: 180ms; }
.feature-row .reveal:nth-child(4) { animation-delay: 270ms; }
.gallery-grid .reveal:nth-child(2) { animation-delay: 70ms; }
.gallery-grid .reveal:nth-child(3) { animation-delay: 140ms; }
.gallery-grid .reveal:nth-child(4) { animation-delay: 210ms; }
.gallery-grid .reveal:nth-child(5) { animation-delay: 280ms; }
.gallery-grid .reveal:nth-child(6) { animation-delay: 350ms; }
.testimonial-grid .reveal:nth-child(2) { animation-delay: 90ms; }
.testimonial-grid .reveal:nth-child(3) { animation-delay: 180ms; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-up, .hero-anim, .hero-title .line { opacity: 1 !important; visibility: visible !important; transform: none !important; transition: none; animation: none !important; filter: none !important; }
  .whatsapp-fab-ring, .ember, .hero-stamp, .hero-flash { animation: none; display: none; }
  .hero-video { display: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
