:root {
  /* Identidade Villa Churrascada: mostarda + grafite azulado.
     (--copper = cor de destaque; --copper-dark = destaque em texto sobre fundo claro) */
  --ink: #23272c;
  --charcoal: #20262d;
  --copper: #dda21f;
  --copper-dark: #8f600a;
  --on-accent: #1b2026;
  --cream: #f7f1e6;
  --card: #fffdf9;
  --line: #e7dccb;
  --muted: #75695a;
  --wa: #1faa59;
  --wa-dark: #178a48;
  --radius: 18px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
em { font-style: normal; color: var(--copper); }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--charcoal); color: #fff;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { border-radius: 50%; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.topnav {
  display: flex; gap: 4px; margin-left: auto;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  flex: none; padding: 8px 12px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; text-decoration: none; color: #e9e2d6;
}
.topnav a:hover, .topnav a:focus-visible { background: rgba(255,255,255,.1); color: #fff; }

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 4px 12px; padding-bottom: 4px; }
  .topnav { margin: 0 -16px; padding: 0 12px; width: calc(100% + 32px); }
}

/* ---------- Capa ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 50% 0%, #4a3d22 0%, var(--charcoal) 62%);
  color: #fff; text-align: center;
  padding: 36px 16px 44px;
}
.hero-logo {
  margin: 0 auto 16px; border-radius: 50%;
  width: 148px; height: 148px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.hero h1 { font-size: clamp(2rem, 8vw, 2.9rem); }
.hero-sub { color: #d9cfbf; margin-top: 8px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); font-size: .875rem; font-weight: 500;
}
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #e06a5a; }
.status.open .dot { background: #4fd18b; box-shadow: 0 0 0 4px rgba(79,209,139,.2); }
.quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-width: 460px; margin: 22px auto 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 14px; border-radius: 14px;
  font: 600 .95rem var(--sans); text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.block { display: flex; width: 100%; margin-top: 16px; }
.btn-primary { background: var(--copper); color: var(--on-accent); }
.btn-primary:hover { background: #c98f12; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn-ig { color: #fff; background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
a:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* ---------- Feed estilo blog ---------- */
.feed {
  max-width: 640px; margin: -20px auto 0; padding: 0 16px 32px;
  display: grid; gap: 20px;
}
.post {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 20px rgba(60,40,10,.07);
  scroll-margin-top: 110px;
}
.post-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; height: auto; }
.post-body { padding: 20px; }
.post-body + .post-body { padding-top: 0; }
.post h2 { font-size: 1.45rem; margin: 6px 0 8px; }
.tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--copper-dark);
}
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; margin-top: 10px; }
.post-wa { background: #f0f8f1; border-color: #cfe6d4; }
.post-wa .tag { color: var(--wa-dark); }

/* Horário */
.hours { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours th, .hours td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.hours tr.today th, .hours tr.today td { background: #fbf0dc; color: var(--ink); }
.hours tr.today th::after {
  content: "hoje"; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--copper); color: var(--on-accent); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; vertical-align: middle;
}

/* Incorporados */
.embed iframe { display: block; width: 100%; border: 0; }
/* Quadro do Instagram: carregado sempre com 318 x 358 px (layout de celular,
   2 fileiras de 3 fotos, sem sobra) e ampliado/reduzido por main.js para caber. */
.embed-ig { padding: 0 12px; }
.ig-frame {
  width: 318px; max-width: 100%; height: 358px; margin: 0 auto;
  overflow: hidden; border-radius: 12px; background: #fff;
}
.embed-ig .ig-frame iframe { width: 318px; height: 358px; transform-origin: 0 0; }
.embed-map iframe { height: 320px; }

/* Avaliações */
.rating { display: flex; align-items: center; gap: 20px; margin: 10px 0 8px; }
.rating-score { display: grid; justify-items: center; gap: 2px; flex: none; }
.rating-score strong { font: 700 3rem/1 var(--serif); }
.stars {
  --w: 108px;
  width: var(--w); height: 20px; display: block;
  background:
    linear-gradient(90deg, #f2a900 calc(var(--v) / 5 * 100%), #dcd2c2 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.500 2.900 6 6.600.900-4.800 4.600 1.200 6.500L12 17.400l-5.900 3.100 1.200-6.500L2.500 9.400l6.600-.900z'/%3E%3C/svg%3E") left center / 20% 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.500 2.900 6 6.600.900-4.800 4.600 1.200 6.500L12 17.400l-5.900 3.100 1.200-6.500L2.500 9.400l6.600-.900z'/%3E%3C/svg%3E") left center / 20% 100% repeat-x;
}
.bars { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 6px; min-width: 0; }
.bars li { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.bars i { flex: 1; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f2a900 var(--p), #ece3d4 0); }

[hidden] { display: none !important; }

/* Agenda da semana */
.week { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.week > li {
  display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: start;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.week h3 { margin: 2px 0 0; font: 700 1rem var(--serif); }
.week ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.week ul li { font-size: .93rem; line-height: 1.4; }
.week > li.today { border-color: var(--copper); background: #fbf0dc; box-shadow: 0 0 0 1px var(--copper) inset; }
.week > li.today h3::after {
  content: "hoje"; display: block; width: max-content; margin-top: 4px;
  padding: 1px 8px; border-radius: 999px; background: var(--copper); color: var(--on-accent);
  font: 700 .66rem var(--sans); text-transform: uppercase; letter-spacing: .05em;
}
.pill {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: 1px;
  padding: 2px 8px; margin-right: 4px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.pill svg { width: 12px; height: 12px; }
.pill-promo { background: #fde3c4; color: #8a4f0c; }
.pill-music { background: var(--charcoal); color: #fff; }
.pill-seq { background: #e4efe0; color: #2f5a24; }
.pill-food { background: #f3e2dc; color: #7a3524; }
.week-note { margin-top: 12px; }
.week-note a, .promo-box a:not(.btn) { color: var(--copper-dark); font-weight: 600; }
.promo-box {
  margin-top: 18px; padding: 16px; border-radius: 14px;
  background: var(--charcoal); color: #f1ebe0;
}
.promo-box h3 { margin: 0 0 6px; font: 700 1.15rem var(--serif); color: #fff; }
.promo-box p { font-size: .93rem; }

/* Lista do que sai da parrilla */
.brasa { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.brasa li {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  border-left: 4px solid var(--copper);
}
.brasa strong { display: block; font: 700 1rem var(--serif); }
.brasa span { font-size: .93rem; color: var(--muted); }
.promo-box .btn.block { margin-top: 14px; }

/* Perguntas frequentes */
.faq { margin-top: 8px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--copper); border-bottom: 2px solid var(--copper);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 4px; }
.faq details p { padding: 0 0 16px; color: #4d453b; }
.faq a, .faq-more a { color: var(--copper-dark); font-weight: 600; }
.faq-more { margin-top: 16px; }

/* ---------- Rodapé ---------- */
.footer {
  background: var(--charcoal); color: #d9cfbf; text-align: center;
  padding: 32px 16px calc(96px + env(safe-area-inset-bottom));
  display: grid; justify-items: center; gap: 12px; font-size: .9rem;
}
.footer img { border-radius: 50%; }
.footer strong { color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--copper); font-weight: 600; text-decoration: none; padding: 8px 0; }

.footer-cookies { color: #b8ad9c; font-size: .8rem; }

/* ---------- Aviso de cookies ---------- */
.cookie-aviso {
  position: fixed; z-index: 40; left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto; padding: 16px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,.25);
  font-size: .9rem;
}
.cookie-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cookie-botoes .btn { min-height: 44px; cursor: pointer; }

/* ---------- WhatsApp flutuante ---------- */
.fab-wa {
  position: fixed; z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
  transition: transform .15s ease;
}
.fab-wa svg { width: 34px; height: 34px; }
.fab-wa:hover { transform: scale(1.06); }
.fab-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fab-wa::before { animation: none; display: none; }
  .btn, .fab-wa { transition: none; }
}
