/* Taberna dos Ferreiras — Brasão & Comanda
   Só o que é deste cliente. Reset, reveal, vídeo e flutuante estão em base.css. */

/* ---------- tokens ---------- */
:root {
  --ouro: #CFA94E;
  --rubro: #A6302A;
  --rubro-hover: #86251F;
  --pergaminho: #F2E4BE;
  --tinta: #1F1A15;
  --tinta-suave: #4A4038;
  --pedra: #2E2924;
  --prata: #ECE9E1;
  --anil: #3F5FA8;
  --linha: rgba(31, 26, 21, .16);
  --linha-clara: rgba(242, 228, 190, .2);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --t-display: clamp(2.25rem, 0.75rem + 3vw, 3.75rem);
  --t-h2: clamp(1.875rem, 1.2rem + 1.9vw, 2.75rem);
  --t-quote: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  --t-stat: clamp(4rem, 2.8rem + 3.4vw, 6rem);
  --t-h3: clamp(1.125rem, 1.07rem + 0.2vw, 1.25rem);
  --t-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --t-small: 0.875rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --sombra-comanda: 0 1px 0 rgba(31, 26, 21, .08), 0 10px 24px rgba(31, 26, 21, .14);
  --sombra-flutua: 0 0 6px rgba(31, 26, 21, .24), 0 8px 12px rgba(31, 26, 21, .14);
  --topo-h: 56px;
}

/* ---------- base do cliente ---------- */
html { scroll-padding-top: calc(var(--topo-h) + var(--s-4)); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--pergaminho);
  color: var(--tinta);
  font-family: var(--font-texto);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h2 { font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; text-wrap: balance; }
a { color: var(--rubro); text-underline-offset: 3px; }

.wordmark { font-family: var(--font-acento); font-weight: 400; letter-spacing: 0.01em; line-height: 1; }
.wrap { width: min(100% - 40px, 1200px); margin-inline: auto; }
.sec { padding-block: var(--s-8); position: relative; }
.ancora { font-size: var(--t-lead); line-height: 1.5; max-width: 60ch; }
.ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.faixa {
  height: 6px;
  background: linear-gradient(var(--rubro) 0 2px, var(--ouro) 2px 4px, var(--rubro) 4px 6px);
}
.com-faixa::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(var(--rubro) 0 2px, var(--ouro) 2px 4px, var(--rubro) 4px 6px);
}

.pular { background: var(--tinta); color: var(--pergaminho); border-radius: 999px; text-decoration: none; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border-radius: 999px;
  background: var(--rubro); color: var(--pergaminho);
  font: 600 1rem/1 var(--font-texto);
  text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--rubro-hover); }
.btn:active { transform: scale(.96); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.link-sec {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--tinta); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: color 160ms var(--ease);
}
.link-sec:hover { color: var(--rubro); }

.so-desk { display: none; }

/* ---------- header ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 800;
  height: var(--topo-h);
  background: var(--pergaminho);
  border-bottom: 1px solid var(--rubro);
}
.topo__in {
  height: 100%;
  width: min(100% - 32px, 1200px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.topo__marca { display: flex; align-items: center; gap: var(--s-2); color: var(--tinta); text-decoration: none; min-width: 0; }
.topo__marca img { width: 40px; height: 40px; border-radius: 50%; }
.topo__marca .wordmark { font-size: 1.125rem; white-space: nowrap; }
.topo__nav { display: none; }

/* ---------- S1 hero ---------- */
.hero { padding-top: var(--topo-h); background: var(--pergaminho); }
.hero__foto { position: relative; height: 58vh; height: 58svh; min-height: 380px; overflow: hidden; }
.hero__foto > img:first-child {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 12%;
}
.hero__selo {
  position: absolute; right: var(--s-4); bottom: var(--s-4);
  width: 64px; height: 64px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--pergaminho);
}
.hero__conteudo { padding: var(--s-6) 0 var(--s-7); }
.hero__col { width: min(100% - 40px, 1200px); margin-inline: auto; }
.hero__wordmark { font-size: 1.5rem; color: var(--rubro); margin-bottom: var(--s-3); }
.hero h1 { font-size: var(--t-display); line-height: 1.08; letter-spacing: -0.01em; }
.hero__sub { font-size: var(--t-lead); margin-top: var(--s-4); max-width: 54ch; }
.definicao { font-size: 0.9375rem; color: var(--tinta-suave); margin-top: var(--s-3); max-width: 60ch; }
.hero__ctas { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-2); margin-top: var(--s-5); }
.hero__ctas .link-sec { align-self: center; }
.hero__prova { margin-top: var(--s-3); font-size: var(--t-small); font-weight: 500; color: var(--tinta-suave); text-align: center; }
.hero__prova strong { font-family: var(--font-display); font-size: 1.125rem; color: var(--rubro); }

/* ---------- S2 comanda ---------- */
.s2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.s2__cabeca { display: grid; gap: var(--s-4); }
.s2__cabeca p:last-child { color: var(--tinta-suave); max-width: 60ch; }
.foto { border-radius: 12px; overflow: hidden; }
.foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.s2__foto .foto img { object-position: 40% 10%; }

.comanda-wrap { position: relative; z-index: 2; width: calc(100% - 24px); margin: -48px auto 0; }
.comanda-sombra { filter: drop-shadow(0 1px 0 rgba(31, 26, 21, .08)) drop-shadow(0 10px 24px rgba(31, 26, 21, .14)); }
.comanda {
  background: var(--prata);
  border-radius: 2px;
  padding: 28px 22px 22px;
  -webkit-mask: radial-gradient(circle at 6px 0, transparent 4px, black 4.5px) 0 0 / 12px 100% repeat-x;
          mask: radial-gradient(circle at 6px 0, transparent 4px, black 4.5px) 0 0 / 12px 100% repeat-x;
}
.comanda__topo { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 2px solid var(--tinta); }
.comanda__casa { display: grid; gap: 6px; font-size: var(--t-small); font-weight: 500; color: var(--tinta-suave); }
.comanda__casa .wordmark { font-size: 1.375rem; color: var(--tinta); }
.comanda__carimbo { width: 56px; height: 56px; border-radius: 50%; transform: rotate(9deg); opacity: .9; mix-blend-mode: multiply; }
.comanda__linhas li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 48px; padding: 6px 0;
  border-bottom: 1px solid var(--linha);
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.3;
}
.comanda__pedido { color: var(--rubro); font-weight: 700; }
.visto { flex: none; fill: none; stroke: var(--anil); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visto path { stroke-dasharray: 40; stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease); transition-delay: calc(var(--n, 0) * 120ms + 450ms); }
html.js .comanda-wrap:not(.rv--on) .visto path { stroke-dashoffset: 40; }
.comanda__resposta { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px dashed var(--linha); font-size: 0.9375rem; line-height: 1.5; color: var(--tinta); }
.comanda__ok { display: block; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.25rem; color: var(--anil); margin-bottom: 2px; }

.s2__passos { display: grid; gap: var(--s-5); }
.s2__passos li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--linha); }
.passo__n { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--rubro); }
.s2__passos p, .formato p { color: var(--tinta-suave); margin-top: var(--s-1); }

.s2__formatos { display: grid; gap: var(--s-5); }
.formato { padding-top: var(--s-4); border-top: 2px solid var(--rubro); }
.formato .ico--lg { color: var(--rubro); margin-bottom: var(--s-2); }

.reel { display: grid; gap: var(--s-2); }
.reel video { width: 100%; max-width: 360px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--pedra); }
.reel figcaption a, .card--reel p a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--t-small); font-weight: 500; color: var(--tinta-suave); text-decoration: underline; text-underline-offset: 4px; }
.reel figcaption a:hover, .card--reel p a:hover { color: var(--rubro); }

.s2__cta .btn { width: 100%; }

/* ---------- S3 pratos ---------- */
.pratos__cabeca { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
.galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); align-items: start; }
.card__foto { border-radius: 12px; overflow: hidden; background: var(--pedra); }
.card__foto video { aspect-ratio: 1 / 1 !important; max-height: 360px; }
.card__foto img, .card__foto video { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.card h3 { font-size: 1rem; margin-top: var(--s-3); }
.card p { font-size: var(--t-small); font-weight: 500; color: var(--tinta-suave); margin-top: 2px; }
.galeria > .card:nth-child(n+9) { display: none; }
.pratos__pe { display: grid; gap: var(--s-3); justify-items: start; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--linha); }
.nota { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.35; }

/* ---------- S4 casa (pedra) ---------- */
.casa { background: var(--pedra); color: var(--pergaminho); }
.casa__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.casa__cabeca { display: grid; gap: var(--s-4); }
.casa .ancora { color: var(--ouro); }
.casa__fotos { position: relative; }
.casa__fotos .foto img { object-position: 30% 25%; }
.casa__inset { display: none; }
.casa__texto { display: grid; gap: var(--s-5); }
.casa__texto > p { max-width: 60ch; }
.casa__so-cel img { object-position: 50% 15%; }
.casa__citacao { padding-left: var(--s-4); border-left: 2px solid var(--ouro); }
.casa__citacao p { font-family: var(--font-display); font-style: italic; font-size: var(--t-quote); line-height: 1.2; }
.casa__citacao cite { display: block; margin-top: var(--s-2); font-style: normal; font-size: var(--t-small); font-weight: 500; color: var(--ouro); }
.nota-google { display: flex; align-items: center; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--linha-clara); }
.nota-google__n { font-family: var(--font-display); font-weight: 700; font-size: var(--t-stat); line-height: 1; color: var(--ouro); font-variant-numeric: tabular-nums; }
.nota-google p { font-size: var(--t-small); font-weight: 500; line-height: 1.5; }

.casa__coment {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: var(--s-4);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: var(--s-2);
  scrollbar-width: thin; scrollbar-color: var(--ouro) transparent;
}
.casa__coment li { scroll-snap-align: start; background: var(--prata); color: var(--tinta); border-radius: 8px; padding: var(--s-5); }
.casa__coment blockquote { display: grid; gap: var(--s-3); height: 100%; align-content: space-between; }
.casa__coment p { font-size: 1rem; line-height: 1.5; }
.casa__coment cite { font-style: normal; font-size: var(--t-small); font-weight: 600; color: var(--rubro); }

/* ---------- S5 reserva ---------- */
.reserva__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.reserva__cabeca { display: grid; gap: var(--s-4); }
.reserva__cabeca .btn { width: 100%; }
.reserva .ancora a { color: var(--rubro); font-weight: 600; white-space: nowrap; }
.reserva__reel { order: 3; }
.faq { border-top: 1px solid var(--linha); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding: var(--s-3) 0;
  font-size: var(--t-h3); font-weight: 600; line-height: 1.3;
  cursor: pointer; list-style: none;
  transition: color 160ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rubro); }
.faq__mais { flex: none; fill: none; stroke: var(--rubro); stroke-width: 1.5; stroke-linecap: round; transition: transform 220ms var(--ease); }
.faq details[open] .faq__mais { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-6) var(--s-4) 0; color: var(--tinta-suave); max-width: 62ch; }

/* ---------- rodapé ---------- */
.rodape { background: var(--tinta); color: var(--pergaminho); padding-bottom: var(--s-8); }
.rodape__grid { display: grid; gap: var(--s-5); padding-top: var(--s-7); }
.rodape__marca { display: flex; align-items: center; gap: var(--s-3); }
.rodape__marca img { width: 56px; height: 56px; border-radius: 50%; }
.rodape__marca .wordmark { font-size: 2rem; color: var(--ouro); }
.sobre { font-size: 0.9375rem; line-height: 1.6; max-width: 62ch; color: var(--pergaminho); }
.rodape__links { display: grid; gap: 2px; }
.rodape__links a, .rodape__links span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.9375rem; color: var(--pergaminho); text-decoration: none; overflow-wrap: anywhere; }
.rodape__links a:hover { color: var(--ouro); text-decoration: underline; }
.rodape__links .ico { color: var(--ouro); }

/* ---------- flutuante (celular) ---------- */
.flutua {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--rubro); color: var(--pergaminho);
  box-shadow: var(--sombra-flutua);
}
.flutua svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 600+ ---------- */
@media (min-width: 600px) {
  .galeria { gap: var(--s-6) var(--s-5); }
  .hero__ctas { flex-direction: row; align-items: center; gap: var(--s-5); }
  .hero__ctas .link-sec { align-self: auto; }
  .hero__prova { text-align: left; }
  .s2__formatos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s2__cta .btn, .reserva__cabeca .btn { width: auto; }
  .casa__coment { grid-auto-columns: 46%; }
  .reserva__reel { max-width: 360px; }
}

/* ---------- 960+ (desktop) ---------- */
@media (min-width: 960px) {
  .wrap { width: min(100% - 64px, 1200px); }
  .sec { padding-block: var(--s-9); }
  .so-desk { display: inline; }
  .so-cel { display: none; }

  .topo__in { width: min(100% - 64px, 1200px); }
  .topo__marca .wordmark { font-size: 1.375rem; }
  .topo__nav { display: flex; gap: var(--s-6); margin-left: auto; margin-right: var(--s-5); }
  .topo__nav a {
    display: inline-flex; align-items: center; min-height: 44px;
    font-size: 0.9375rem; font-weight: 500; color: var(--tinta); text-decoration: none;
    background: linear-gradient(var(--rubro), var(--rubro)) left calc(100% - 8px) / 0 2px no-repeat;
    transition: background-size 200ms var(--ease), color 160ms var(--ease);
  }
  .topo__nav a:hover { color: var(--rubro); background-size: 100% 2px; }

  /* hero: foto em largura total, texto por cima à esquerda */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 6px; background: var(--pedra); }
  .hero__foto, .hero__conteudo { grid-row: 1; grid-column: 1; }
  .hero__foto { height: auto; min-height: max(78svh, 640px); }
  .hero__foto > img:first-child { object-position: 62% 8%; }
  .hero__foto::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--pedra) 90%, transparent) 0%,
      color-mix(in srgb, var(--pedra) 72%, transparent) 30%,
      color-mix(in srgb, var(--pedra) 20%, transparent) 46%,
      transparent 58%);
  }
  .hero__selo { width: 72px; height: 72px; right: var(--s-6); bottom: var(--s-6); z-index: 1; box-shadow: 0 0 0 2px var(--ouro); }
  .hero__conteudo { position: relative; z-index: 1; align-self: center; padding: var(--s-8) 0; color: var(--pergaminho); }
  .hero__col { width: min(100% - 64px, 1200px); }
  .hero__col > * { max-width: 600px; }
  .hero__wordmark { font-size: 1.75rem; color: var(--ouro); }
  .hero__sub { color: var(--pergaminho); }
  .definicao { color: color-mix(in srgb, var(--pergaminho) 82%, transparent); }
  .hero .link-sec { color: var(--pergaminho); }
  .hero .link-sec:hover { color: var(--ouro); }
  .hero__prova { color: color-mix(in srgb, var(--pergaminho) 85%, transparent); }
  .hero__prova strong { color: var(--ouro); }
  .hero__faixa { grid-row: 2; }

  /* S2: foto + comanda à esquerda, texto à direita */
  .s2 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); align-items: start; }
  .s2__cabeca { grid-column: 6 / 13; grid-row: 1; }
  .s2__foto { grid-column: 1 / 6; grid-row: 1 / 5; position: relative; }
  .comanda-wrap { width: clamp(290px, 74%, 340px); margin: -200px 0 0 auto; }
  .comanda-sombra { transform: rotate(-2deg); transform-origin: 70% 0; }
  .s2__passos { grid-column: 6 / 10; grid-row: 2; }
  .s2__reel { grid-column: 10 / 13; grid-row: 2; align-self: start; max-width: 240px; justify-self: end; }
  .s2__reel video { aspect-ratio: 1 / 1; max-height: 240px; }
  .s2__formatos { grid-column: 6 / 13; grid-row: 3; }
  .s2__cta { grid-column: 6 / 13; grid-row: 4; }

  /* S3: grade 4 × 3 */
  .galeria { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
  .galeria > .card:nth-child(n+9) { display: block; }
  .card h3 { font-size: 1.125rem; }
  .card__foto video { max-height: 360px; }
  .pratos__pe { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

  /* S4: fotos à esquerda, texto à direita, comentários embaixo */
  .casa__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); align-items: start; }
  .casa__cabeca { grid-column: 7 / 13; grid-row: 1; }
  .casa__fotos { grid-column: 1 / 6; grid-row: 1 / 3; margin-bottom: var(--s-6); }
  .casa__inset {
    display: block; position: absolute; right: -40px; bottom: -32px;
    width: 220px; border-radius: 12px; overflow: hidden;
    border: 6px solid var(--pedra);
  }
  .casa__inset img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 25%; }
  .casa__texto { grid-column: 7 / 13; grid-row: 2; }
  .casa__so-cel { display: none; }
  .casa__coment { grid-column: 1 / 13; grid-row: 3; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }

  /* S5: título + reel à esquerda, FAQ à direita */
  .reserva__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); align-items: start; }
  .reserva__cabeca { grid-column: 1 / 6; grid-row: 1; }
  .reserva__reel { grid-column: 1 / 6; grid-row: 2; order: 0; max-width: 280px; }
  .reserva__reel video { aspect-ratio: 1 / 1; }
  .faq { grid-column: 7 / 13; grid-row: 1 / 3; }

  .rodape__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
  .rodape__marca { grid-column: 1 / 13; }
  .sobre { grid-column: 1 / 8; }
  .rodape__links { grid-column: 9 / 13; }
}

@media (min-width: 1200px) {
  .comanda-wrap { margin-right: 0; }
}

@media (max-width: 359px) {
  .topo__marca img { display: none; }
}
