/* O Canto da Costela · site de demonstração
   Cores tiradas da casa: a areia do picadeiro (fundo), o café do logo (texto e marca),
   o verde das janelas e portas do deck (botões) e a brasa do fogo de chão (só nos detalhes de fogo).
   Elemento da casa: as fagulhas que sobem da gaiola de fogo (carregamento, seção da costela, chamada final). */
:root {
  --areia: #f6eadb;
  --areia-2: #ecdbc6;
  --cal: #fffaf3;
  --palha: #dcc5a8;
  --cafe: #67473c;
  --torrado: #2a1a13;
  --torrado-2: #3a261d;
  --tinta: #2b1d16;
  --tinta-2: #6a5246;
  --verde: #2f6b45;
  --verde-escuro: #224f33;
  --brasa: #e8692a;
  --brasa-clara: #f6a24a;
  --branco: #fffaf3;

  --f-titulo: "Zilla Slab", Rockwell, Georgia, serif;
  --f-texto: "Instrument Sans", system-ui, sans-serif;

  --raio: 26px;
  --raio-p: 16px;
  --pad: clamp(16px, 4vw, 56px);
  --sec: clamp(72px, 10vw, 136px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--areia);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--f-texto);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--f-titulo);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
h3 { font-size: 1.3rem; line-height: 1.15; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: var(--areia); padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brasa); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--tinta); --fg: var(--areia); --hover: var(--brasa); --hover-fg: var(--torrado);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: .85em 1.7em;
  border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--f-texto); text-decoration: none; cursor: pointer; text-align: center;
  transition: color .3s, border-color .3s, transform .2s;
}
/* no hover, a cor sobe de baixo, como brasa acendendo */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover); border-radius: inherit;
  transform: translateY(102%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--hover-fg); border-color: var(--hover); }
.btn:active { transform: scale(.97); }
.btn-verde { --bg: var(--verde); --fg: var(--branco); --hover: var(--verde-escuro); --hover-fg: var(--branco); }
.btn-brasa { --bg: var(--brasa); --fg: var(--torrado); --hover: var(--brasa-clara); --hover-fg: var(--torrado); }
.btn-claro { --bg: transparent; --fg: var(--branco); --hover: var(--branco); --hover-fg: var(--torrado); border-color: rgba(255, 250, 243, .7); }
.btn-linha { --bg: transparent; --fg: var(--tinta); --hover: var(--tinta); --hover-fg: var(--areia); border-color: rgba(43, 29, 22, .35); }
.btn-mini { font: 600 .875rem/1 var(--f-texto); padding: .6em 1.2em; min-height: 40px; border-radius: 99px; border: 1.5px solid currentColor; background: none; color: inherit; cursor: pointer; }

/* ---------- Fagulhas ---------- */
.fagulhas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fagulha {
  position: absolute; bottom: -10px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #ffd59a 0%, var(--brasa-clara) 40%, rgba(232, 105, 42, 0) 72%);
  opacity: 0;
  animation: subir-fagulha var(--d) var(--atraso) linear infinite;
}
@keyframes subir-fagulha {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1); }
  10% { opacity: 1; }
  55% { transform: translate3d(var(--vento), calc(var(--alto) * -.55), 0) scale(.85); }
  100% { opacity: 0; transform: translate3d(calc(var(--vento) * -.4), calc(var(--alto) * -1), 0) scale(.4); }
}

/* ---------- Carregamento ---------- */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 90; display: block; }
.loader-pano {
  position: absolute; inset: 0 0 -14vh;
  border-radius: 0 0 50% 50% / 0 0 14vh 14vh;
  background: var(--torrado); color: var(--areia);
  display: grid; place-content: center; justify-items: center;
  padding-bottom: 14vh; overflow: hidden;
  transition: transform .95s cubic-bezier(.76, 0, .24, 1);
}
.js.carregado .loader-pano { transform: translateY(-118%); }
.js.carregado .loader { visibility: hidden; transition: visibility 0s 1.1s; }
.loader-brasa {
  position: absolute; left: 50%; bottom: 14vh; width: 140vmax; height: 70vh; translate: -50% 50%;
  background: radial-gradient(closest-side, rgba(232, 105, 42, .55), rgba(232, 105, 42, .14) 55%, rgba(232, 105, 42, 0));
  opacity: 0; animation: acender 1.2s .05s ease-out forwards;
}
@keyframes acender { to { opacity: 1; } }
.loader .fagulhas { inset: 0 0 14vh; }
.loader-logo { position: relative; width: clamp(150px, 16vw, 200px); aspect-ratio: 1; margin-bottom: 26px; }
.loader-logo img { position: absolute; inset: 4px; width: calc(100% - 8px); height: auto; border-radius: 50%; transform: scale(.6); opacity: 0; animation: logo-entra .9s .35s cubic-bezier(.2, 1.3, .4, 1) forwards; }
@keyframes logo-entra { to { transform: none; opacity: 1; } }
.loader-anel { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); transform: rotate(-90deg); overflow: visible; }
.loader-anel circle { fill: none; stroke: var(--brasa); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: desenhar 1.1s .7s cubic-bezier(.65, 0, .25, 1) forwards; filter: drop-shadow(0 0 6px rgba(246, 162, 74, .8)); }
@keyframes desenhar { to { stroke-dashoffset: 0; } }
.loader-sub { position: relative; margin: 0; font: 500 1.05rem/1.3 var(--f-titulo); font-style: italic; color: var(--brasa-clara); opacity: 0; animation: aparecer .7s 1.2s forwards; text-align: center; padding: 0 24px; }
@keyframes aparecer { to { opacity: 1; } }

/* entrada do topo depois do carregamento */
.js .hero-body > * { opacity: 0; transform: translateY(26px); }
.js.carregado .hero-body > * { opacity: 1; transform: none; transition: opacity .9s, transform 1s cubic-bezier(.2, .8, .2, 1); }
.js.carregado .hero-body > :nth-child(1) { transition-delay: .5s; }
.js.carregado .hero-body > :nth-child(2) { transition-delay: .6s; }
.js.carregado .hero-body > :nth-child(3) { transition-delay: .72s; }
.js.carregado .hero-body > :nth-child(4) { transition-delay: .84s; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad);
  color: var(--branco);
  transition: background .35s, color .35s, padding .35s, box-shadow .35s;
}
.nav.solido {
  background: rgba(246, 234, 219, .95); color: var(--tinta);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding-block: 8px; box-shadow: 0 1px 0 rgba(43, 29, 22, .1);
}
.nav-logo { display: block; flex: none; border-radius: 50%; }
.nav-logo img { width: 68px; height: 68px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 250, 243, .55); transition: width .35s, height .35s, box-shadow .35s; }
.nav.solido .nav-logo img { width: 54px; height: 54px; box-shadow: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font: 600 .95rem/1 var(--f-texto); text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brasa); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-links a:hover::after, .nav-links a.ativo::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; padding: .7em 1.3em; }
.nav-toggle { display: none; }
.menu-movel { display: none; }

@media (max-width: 1020px) {
  .nav { gap: 12px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: var(--brasa); color: var(--torrado); cursor: pointer;
  }
  .nav-toggle span:not(.sr) { width: 20px; height: 2px; background: currentColor; transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .menu-movel:not([hidden]) {
    position: fixed; inset: 0; z-index: 45;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: 96px var(--pad) 40px; background: var(--torrado); color: var(--areia);
    overflow-y: auto;
  }
  .menu-movel a:not(.btn) { font: 700 2rem/1.3 var(--f-titulo); text-decoration: none; }
  .menu-movel .btn { margin-top: 24px; align-self: flex-start; }
  .nav-logo img { width: 58px; height: 58px; }
  .nav.solido .nav-logo img { width: 50px; height: 50px; }
}

/* ---------- Topo ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  color: var(--branco); overflow: hidden; background: var(--torrado);
}
.hero-slides, .slide, .slide picture, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.slide img { object-fit: cover; }
.slide { opacity: 0; transition: opacity 1.4s ease; }
.slide.is-on { opacity: 1; }
.slide.is-on img { animation: respirar 9s ease-out both; }
@keyframes respirar { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 26, 19, .55) 0%, rgba(42, 26, 19, 0) 22%, rgba(42, 26, 19, .18) 46%, rgba(42, 26, 19, .78) 74%, rgba(42, 26, 19, .92) 100%); }
.hero-body {
  position: relative; z-index: 4;
  width: min(100%, 1120px);
  padding: 0 var(--pad) clamp(110px, 14vh, 160px);
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px; padding: 8px 16px 8px 12px; border-radius: 99px;
  background: rgba(42, 26, 19, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 600 .9rem/1.2 var(--f-texto);
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--palha); flex: none; }
.status.aberto .status-dot { background: var(--brasa-clara); box-shadow: 0 0 0 0 rgba(246, 162, 74, .7); animation: pulso 2s infinite; }
@keyframes pulso { to { box-shadow: 0 0 0 10px rgba(246, 162, 74, 0); } }
.hero-title {
  font-size: clamp(2.7rem, 6.6vw, 5.9rem);
  font-weight: 700; line-height: .98; letter-spacing: -.02em;
  margin-bottom: .32em; max-width: 12.5em;
}
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 33em; margin-bottom: 28px; color: rgba(255, 250, 243, .92); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  position: absolute; z-index: 4; right: var(--pad); bottom: clamp(110px, 14vh, 160px);
  display: flex; align-items: center; gap: 14px; max-width: 280px;
}
.slide-ring { position: relative; width: 56px; height: 56px; flex: none; padding: 0; border: 0; border-radius: 50%; background: rgba(42, 26, 19, .5); color: var(--branco); cursor: pointer; }
.slide-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255, 250, 243, .25); stroke-width: 3; }
.ring-run { fill: none; stroke: var(--brasa-clara); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.slide-ring.correndo .ring-run { animation: anel var(--tempo, 6.5s) linear forwards; }
@keyframes anel { to { stroke-dashoffset: 0; } }
.slide-n { position: relative; font: 700 .78rem/1 var(--f-texto); }
.slide-caption { margin: 0; font: 600 .95rem/1.3 var(--f-texto); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }

/* Celular: o texto fica no alto e os botões embaixo, para a costela aparecer no meio da foto
   (nas fotos verticais o fogo e a carne ficam da metade para baixo). */
@media (max-width: 699px) {
  .hero { align-items: stretch; }
  .hero-shade { background: linear-gradient(180deg, rgba(42, 26, 19, .82) 0%, rgba(42, 26, 19, .62) 30%, rgba(42, 26, 19, .1) 52%, rgba(42, 26, 19, 0) 66%, rgba(42, 26, 19, .55) 88%, rgba(42, 26, 19, .75) 100%); }
  .hero-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 92px var(--pad) 64px; }
  .status { align-self: flex-start; margin-bottom: 16px; }
  .hero-title { font-size: clamp(2.25rem, 10.4vw, 2.9rem); }
  .hero-lead { font-size: 1rem; margin-bottom: 0; }
  .hero-actions { margin-top: auto; flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; padding-inline: .8em; }
  .hero-meta { left: var(--pad); right: auto; bottom: 128px; }
  .slide-ring { width: 48px; height: 48px; }
  .slide-caption { font-size: .88rem; }
}

/* ---------- Folha: a seção sobe por cima do fim da foto do topo ---------- */
.folha {
  position: relative; z-index: 5;
  margin-top: -48px; border-radius: 48px 48px 0 0;
  background: var(--areia);
  padding-top: calc(var(--sec) - 8px);
}
@media (max-width: 699px) { .folha { margin-top: -32px; border-radius: 32px 32px 0 0; } }

/* ---------- Cabeçalho das seções ---------- */
.sec-head { max-width: var(--max); margin: 0 auto 48px; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; max-width: 31em; color: var(--tinta-2); }
@media (max-width: 799px) { .sec-head { grid-template-columns: 1fr; margin-bottom: 36px; } }

/* ---------- Pratos (mosaico) ---------- */
.pratos { padding-bottom: var(--sec); }
/* Computador: grade 4 x 3, o vídeo da costela ocupa 2 x 2 e os outros oito pratos uma casa cada.
   Celular e tablet: o vídeo em largura cheia e os outros em pares, com o nome embaixo da foto. */
.mosaico {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 22vw, 300px); gap: 16px;
}
.tile { position: relative; border-radius: var(--raio); overflow: hidden; background: var(--areia-2); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.tile:hover img { transform: scale(1.06); }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 56px 18px 16px;
  background: linear-gradient(180deg, rgba(42, 26, 19, 0), rgba(42, 26, 19, .8));
  color: var(--branco);
}
.tile figcaption span { font: 600 1.15rem/1.15 var(--f-titulo); }
.tile-big figcaption { padding: 90px 26px 24px; }
.tile-big figcaption span { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
@media (max-width: 899px) {
  .mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 22px 12px; }
  .tile { overflow: visible; background: none; border-radius: 0; }
  .tile img, .tile video { aspect-ratio: 1; height: auto; border-radius: var(--raio-p); }
  .tile:hover img { transform: none; }
  .tile-big { grid-column: 1 / -1; grid-row: auto; }
  .tile-big video { aspect-ratio: 1; border-radius: var(--raio); }
  .tile figcaption { position: static; padding: 10px 2px 0; background: none; color: var(--tinta); }
  .tile figcaption span, .tile-big figcaption span { font-size: 1.08rem; }
  .tile-big figcaption { padding: 12px 2px 0; }
  .tile-big figcaption span { font-size: 1.3rem; }
}

/* ---------- A costela ---------- */
.costela {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--torrado); color: var(--areia);
  padding: var(--sec) var(--pad);
}
.costela::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 60%;
  background: radial-gradient(ellipse 60% 70% at 30% 100%, rgba(232, 105, 42, .3), rgba(232, 105, 42, 0) 70%);
}
.costela .fagulhas { z-index: -1; }
.costela-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.costela-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--raio); box-shadow: 0 40px 80px -40px rgba(232, 105, 42, .55); }
.costela h2 { color: var(--branco); }
.costela-lead { font: 500 clamp(1.1rem, 1.6vw, 1.3rem)/1.6 var(--f-titulo); color: rgba(246, 234, 219, .86); max-width: 31em; }
.costela-citacao { margin: 30px 0 36px; padding: 0 0 0 22px; border-left: 3px solid var(--brasa); }
.costela-citacao p { font: italic 600 clamp(1.25rem, 2vw, 1.6rem)/1.3 var(--f-titulo); color: var(--brasa-clara); margin: 0 0 8px; }
.costela-citacao cite { font: 500 .9rem/1.3 var(--f-texto); font-style: normal; color: rgba(246, 234, 219, .65); }
.costela-duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.costela-duas img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--raio-p); }
.costela-duas figcaption { margin-top: 8px; font: 500 .9rem/1.35 var(--f-texto); color: rgba(246, 234, 219, .72); }
@media (max-width: 799px) {
  .costela-in { grid-template-columns: minmax(0, 1fr); }
  .costela-foto { max-width: 520px; }
}

/* ---------- Buffet ---------- */
.buffet { padding: var(--sec) var(--pad); background: var(--cal); }
.buffet-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.preco {
  position: sticky; top: 96px;
  padding: 34px 30px 30px; border-radius: var(--raio);
  background: var(--cafe); color: var(--areia);
}
.preco-valor { font-size: clamp(3.6rem, 7vw, 5rem); line-height: .9; letter-spacing: -.03em; margin: 0 0 6px; color: var(--branco); }
.preco-rs { font-size: .42em; letter-spacing: 0; vertical-align: .9em; margin-right: .05em; }
.preco-sub { font: 600 1.15rem/1.2 var(--f-titulo); color: var(--brasa-clara); margin-bottom: 14px; }
.preco-quando { color: rgba(246, 234, 219, .8); font-size: .98rem; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(246, 234, 219, .2); }
.conta-rotulo { font: 600 .95rem/1 var(--f-texto); margin-bottom: 10px; }
.conta-total { font: 600 1.25rem/1.25 var(--f-titulo); margin: 14px 0 18px; color: var(--branco); }
.conta .btn { width: 100%; }
.preco .btn-verde { --bg: var(--brasa); --fg: var(--torrado); --hover: var(--brasa-clara); --hover-fg: var(--torrado); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 250, 243, .12); }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--branco); color: var(--tinta); font: 600 1.4rem/1 var(--f-texto); cursor: pointer;
  transition: background .2s, transform .15s;
}
.stepper button:hover:not(:disabled) { background: var(--brasa-clara); }
.stepper button:active:not(:disabled) { transform: scale(.92); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 3ch; text-align: center; font: 700 1.3rem/1 var(--f-texto); }

.buffet-lista h2 { margin-bottom: .3em; }
.buffet-intro { color: var(--tinta-2); max-width: 34em; margin-bottom: 34px; }
.colunas { columns: 2 240px; column-gap: 40px; }
@media (max-width: 599px) { .colunas { columns: 2 140px; column-gap: 20px; } .grupo h3 { font-size: 1.08rem; } .grupo li { font-size: .98rem; } }
.grupo { break-inside: avoid; margin-bottom: 30px; }
.grupo h3 { font-size: 1.2rem; color: var(--cafe); padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--palha); }
.grupo ul { list-style: none; margin: 0; padding: 0; }
.grupo li { padding: 9px 0; border-bottom: 1px dashed rgba(103, 71, 60, .25); font-weight: 500; }
.grupo li:last-child { border-bottom: 0; }
.buffet-nota { color: var(--tinta-2); margin: 4px 0 34px; }
.buffet-nota a { color: var(--verde); font-weight: 600; text-underline-offset: 3px; }
.buffet-fotos { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.buffet-fotos img { width: 100%; object-fit: cover; border-radius: var(--raio-p); }
.buffet-fotos figure:first-child img { aspect-ratio: 4 / 3; }
.buffet-fotos figure:last-child img { aspect-ratio: 4 / 5; }
@media (max-width: 899px) {
  .buffet-in { grid-template-columns: minmax(0, 1fr); }
  .preco { position: static; order: 2; }
  .buffet-lista { order: 1; }
}
@media (max-width: 520px) {
  .buffet-fotos { grid-template-columns: minmax(0, 1fr); }
  .buffet-fotos figure:last-child { width: min(70%, 260px); justify-self: end; margin-top: -60px; }
  .buffet-fotos figure:last-child img { border: 5px solid var(--cal); border-radius: 20px; }
}

/* ---------- A vista ---------- */
.vista { padding: var(--sec) 0; }
.vista-grade {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px;
}
.vista-panorama { position: relative; grid-column: 1 / span 8; grid-row: 1 / span 2; }
.vista-panorama img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: var(--raio); }
.vista-video { grid-column: 9 / span 4; grid-row: 1 / span 2; position: relative; }
.vista-video video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--raio); background: var(--areia-2); }
.vista-video figcaption, .vista-cavalo figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 12px; border-radius: 99px; background: rgba(42, 26, 19, .7); color: var(--branco);
  font: 600 .85rem/1.2 var(--f-texto);
}
.vista-cavalo { position: relative; grid-column: 1 / span 4; }
.vista-cavalo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio-p); }
.vista-fatos { grid-column: 5 / span 8; align-self: center; padding: 8px 0 8px clamp(8px, 3vw, 40px); }
.vista-fatos p { font: 500 clamp(1.1rem, 1.6vw, 1.32rem)/1.5 var(--f-titulo); color: var(--tinta-2); max-width: 30em; }
.vista-fatos p:last-child { margin: 0; }
.clima {
  position: absolute; left: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px 8px 11px; border-radius: 99px;
  background: rgba(255, 250, 243, .92); color: var(--tinta);
  font: 600 .9rem/1.2 var(--f-texto);
}
.clima[hidden] { display: none; }
.clima-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); flex: none; box-shadow: 0 0 0 0 rgba(47, 107, 69, .6); animation: pulso-verde 2.2s infinite; }
@keyframes pulso-verde { to { box-shadow: 0 0 0 9px rgba(47, 107, 69, 0); } }
@media (max-width: 899px) {
  .vista-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .vista-panorama { grid-column: 1 / -1; grid-row: auto; }
  .vista-panorama img { min-height: 0; aspect-ratio: 16 / 10; }
  .vista-video { grid-column: 1; grid-row: auto; }
  .vista-video video { aspect-ratio: 4 / 5; height: auto; }
  .vista-cavalo { grid-column: 2; }
  .vista-cavalo img { aspect-ratio: 4 / 5; height: 100%; border-radius: var(--raio); }
  .vista-fatos { grid-column: 1 / -1; padding: 16px 0 0; }
}

/* ---------- Reserva ---------- */
.reserva { padding: 0 var(--pad) var(--sec); }
.res-card {
  max-width: 720px; margin: 0 auto;
  padding: clamp(28px, 5vw, 52px); border-radius: var(--raio);
  background: var(--cal); box-shadow: 0 1px 0 rgba(43, 29, 22, .06), 0 30px 60px -40px rgba(103, 71, 60, .45);
}
.res-card h2 { margin-bottom: .25em; }
.res-intro { color: var(--tinta-2); margin-bottom: 26px; }
.res-linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.res-linha .res-rotulo { margin: 0; }
.res-card .stepper { background: var(--areia-2); }
.res-card .stepper button { background: var(--branco); }
.res-rotulo { display: block; font: 600 .95rem/1.2 var(--f-texto); margin: 24px 0 10px; }
.res-dica { margin: 10px 0 0; font-size: .95rem; color: var(--tinta-2); }
.res-dica a { color: var(--verde); font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: grid; justify-items: center; gap: 3px; min-width: 64px; min-height: 48px;
  padding: 9px 14px; border-radius: 18px; border: 1.5px solid rgba(43, 29, 22, .18);
  background: var(--branco); color: var(--tinta); font: 600 .95rem/1 var(--f-texto); cursor: pointer;
  scroll-snap-align: start; transition: background .2s, color .2s, border-color .2s;
}
.chip small { font-weight: 500; font-size: .75rem; opacity: .75; }
.chip:hover:not(:disabled) { border-color: var(--verde); }
.chip[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: var(--branco); }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chip:disabled small { text-decoration: none; }
.res-nome {
  width: 100%; min-height: 50px; padding: 12px 18px; border-radius: 99px;
  border: 1.5px solid rgba(43, 29, 22, .2); background: var(--branco); color: var(--tinta);
  font: 500 1rem/1.2 var(--f-texto);
}
.res-nome:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(47, 107, 69, .2); }
.res-previa { margin: 26px 0 22px; padding: 18px 22px; border-radius: 20px 20px 20px 6px; background: #e7f1e2; }
.res-previa .res-rotulo { margin: 0 0 6px; font-size: .82rem; color: var(--verde-escuro); }
.res-previa p { margin: 0; }
.res-estimativa { margin-top: 10px !important; font-size: .92rem; color: var(--tinta-2); }
.res-estimativa:empty { display: none; }
.btn-wa { width: 100%; }

/* ---------- Eventos ---------- */
.eventos { padding: 0 var(--pad) var(--sec); }
.eventos-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.eventos-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio); }
.eventos-texto > p { color: var(--tinta-2); max-width: 32em; }
.agenda { list-style: none; margin: 26px 0 30px; padding: 0; border-top: 1px solid var(--palha); }
.agenda li { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--palha); }
.agenda time { font: 600 .95rem/1.4 var(--f-texto); color: var(--cafe); }
.agenda span { font: 600 1.08rem/1.35 var(--f-titulo); }
@media (max-width: 799px) {
  .eventos-in { grid-template-columns: minmax(0, 1fr); }
  .eventos-texto { order: -1; }
}
@media (max-width: 480px) { .agenda li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Avaliações ---------- */
.avaliacoes { background: var(--torrado-2); color: var(--areia); padding: var(--sec) 0 calc(var(--sec) * .8); overflow: hidden; }
.av-in { max-width: 920px; margin: 0 auto; padding: 0 var(--pad); text-align: center; }
.av-in h2 { color: var(--branco); margin-bottom: 32px; }
.frases { display: grid; min-height: 9em; }
.frase { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(12px); transition: opacity .8s, transform .8s; }
.frase.is-on { opacity: 1; transform: none; }
.frase p { font: italic 500 clamp(1.3rem, 2.6vw, 2rem)/1.35 var(--f-titulo); margin: 0 auto 14px; max-width: 34em; }
.frase cite { font: 600 .92rem/1.3 var(--f-texto); font-style: normal; color: var(--brasa-clara); }
.av-in .btn-mini { margin-top: 18px; color: rgba(246, 234, 219, .8); }
.trilho-wrap { margin-top: 48px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trilho { display: flex; gap: 14px; width: max-content; animation: correr 46s linear infinite; }
.trilho.pausado { animation-play-state: paused; }
.trilho img { width: 180px; height: 180px; object-fit: cover; border-radius: 22px; flex: none; }
@keyframes correr { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- Galeria ---------- */
.galeria { position: relative; padding: var(--sec) 0 0; background: var(--areia); }
.galeria-palco { padding-bottom: var(--sec); }
.galeria h2 { padding: 0 var(--pad); width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto 32px; }
.galeria-trilho {
  display: flex; gap: 16px; padding: 0 var(--pad);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.galeria-trilho::-webkit-scrollbar { display: none; }
.galeria-trilho img { height: 56vh; max-height: 460px; min-height: 280px; width: auto; flex: none; border-radius: var(--raio); object-fit: cover; scroll-snap-align: center; }
.galeria-barra { max-width: 280px; height: 4px; margin: 26px auto 0; border-radius: 99px; background: var(--areia-2); overflow: hidden; }
.galeria-barra span { display: block; height: 100%; width: 100%; background: var(--cafe); transform-origin: left; transform: scaleX(0); }
/* no computador a seção fica presa e a rolagem passa as fotos para o lado */
.galeria.travada { height: var(--altura, 200vh); padding-top: 0; }
.galeria.travada .galeria-palco {
  position: sticky; top: 0; height: 100vh; padding: 0;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.galeria.travada .galeria-trilho { overflow: visible; scroll-snap-type: none; will-change: transform; transition: transform .12s linear; }
@media (max-width: 699px) { .galeria-trilho img { height: 46vh; min-height: 240px; } }

/* ---------- Como chegar ---------- */
.chegar { padding: var(--sec) var(--pad); background: var(--cal); }
.chegar-in { max-width: var(--max); margin: 0 auto 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.chegar-foto { position: relative; }
.chegar-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio); }
.chegar-foto figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 99px; background: rgba(42, 26, 19, .72); color: var(--branco); font: 600 .88rem/1.2 var(--f-texto); }
.chegar address { font: 600 1.25rem/1.45 var(--f-titulo); font-style: normal; margin-bottom: 16px; }
.chegar-status { font-weight: 600; color: var(--verde); margin-bottom: 14px; }
.horarios { width: 100%; max-width: 420px; border-collapse: collapse; margin-bottom: 26px; }
.horarios th, .horarios td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--palha); font-weight: 500; }
.horarios td { text-align: right; }
.horarios tr.hoje { background: var(--areia); }
.horarios tr.hoje th, .horarios tr.hoje td { font-weight: 700; color: var(--cafe); }
.horarios tr.hoje th::after { content: " (hoje)"; font-weight: 500; color: var(--tinta-2); }
.chegar-botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.mapa { max-width: var(--max); margin: 0 auto; border-radius: var(--raio); overflow: hidden; background: var(--areia-2); }
.mapa iframe { display: block; width: 100%; height: clamp(280px, 40vw, 420px); border: 0; }
@media (max-width: 799px) {
  .chegar-in { grid-template-columns: minmax(0, 1fr); }
  .chegar-botoes .btn { flex: 1 1 100%; }
}

/* ---------- Chamada final ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; background: var(--torrado); color: var(--areia); padding: var(--sec) var(--pad); text-align: center; }
.final::before { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 70%; background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(232, 105, 42, .35), rgba(232, 105, 42, 0) 70%); }
.final .fagulhas { z-index: -1; }
.final-in { max-width: 760px; margin: 0 auto; }
.final-logo { width: 150px; height: 150px; margin: 0 auto 28px; border-radius: 50%; box-shadow: 0 0 0 8px rgba(232, 105, 42, .18), 0 0 60px rgba(232, 105, 42, .35); }
.final h2 { color: var(--branco); }
.final p { color: rgba(246, 234, 219, .82); font-size: 1.1rem; }
.final-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
@media (max-width: 520px) { .final-botoes .btn { flex: 1 1 100%; } }

/* ---------- Rodapé ---------- */
.rodape { background: var(--torrado); color: rgba(246, 234, 219, .72); padding: 0 var(--pad) 40px; text-align: center; font-size: .95rem; }
.rodape > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.rodape-marca { padding-top: 34px; border-top: 1px solid rgba(246, 234, 219, .14); }
.rodape-links { list-style: none; padding: 0; margin: 0 auto 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.rodape-links a { color: var(--areia); font-weight: 600; text-underline-offset: 3px; }
.rodape-fim { margin: 0 auto; font-size: .88rem; }

/* ---------- Revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s, transform 1s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fagulhas { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .trilho { animation: none; }
}
