/* ============================================================
   CHERRY DONUT'S — style.css
   Paleta: Bege #F7F5F0 | Vermelho #C1121F | Marrom #3A2012 | Rosa #E58B94
   ============================================================ */

/* ─── CUSTOM FONTS ─────────────────────────────────────────── */
@font-face {
  font-family: 'Brasika';
  src: url('../fonts/Brasika-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Exclui % (U+0025) — glifo ausente na fonte */
  unicode-range: U+0000-0024, U+0026-FFFF;
}
@font-face {
  font-family: 'Brasika';
  src: url('../fonts/Brasika-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0024, U+0026-FFFF;
}
@font-face {
  font-family: 'Aristotelica Pro';
  src: url('../fonts/AristotelicaPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0024, U+0026-FFFF;
}
@font-face {
  font-family: 'Aristotelica Pro';
  src: url('../fonts/AristotelicaPro-DemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0024, U+0026-FFFF;
}

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --bege:      #F7F5F0;
  --vermelho:  #C1121F;
  --marrom:    #3A2012;
  --rosa:      #E58B94;
  --off-white: #F7F5F0;

  --font-display: 'Brasika', 'Playfair Display', cursive;
  --font-body:    'DM Sans', 'Nunito', sans-serif;

  --header-h: 68px;
  --section-pad: clamp(64px, 8vw, 112px);
  --inner-max: 1200px;
  --inner-pad: clamp(20px, 5vw, 64px);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bege);
  color: var(--marrom);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── NOISE OVERLAY ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ─── UTILITY ────────────────────────────────────────────────── */
.section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--inner-max);
  margin-inline: auto;
  padding-inline: var(--inner-pad);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}
.section-title--light { color: var(--off-white); }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  text-decoration: none;
}

/* Hero CTA — off-white bg, marrom text */
.btn-hero {
  background: var(--off-white);
  color: var(--marrom);
  border-color: var(--off-white);
  box-shadow: 3px 3px 0px var(--marrom);
}
.btn-hero:hover,
.btn-hero:focus-visible {
  background: var(--marrom);
  color: var(--off-white);
  border-color: var(--marrom);
  box-shadow: 3px 3px 0px var(--off-white);
  transform: rotate(-2deg) translateY(-2px);
  outline: none;
}

/* WhatsApp CTA */
.btn-whatsapp {
  background: var(--marrom);
  color: var(--bege);
  border-color: var(--marrom);
  box-shadow: 4px 4px 0px var(--rosa);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: var(--bege);
  color: var(--marrom);
  border-color: var(--marrom);
  box-shadow: 4px 4px 0px var(--marrom);
  transform: rotate(-2deg) translateY(-2px);
  outline: none;
}
.btn-whatsapp .whatsapp-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── STARS / PARALLAX ───────────────────────────────────────── */
.stars-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  color: rgba(247,245,240,0.45);
  fill: currentColor;
  will-change: transform; /* GPU Acceleration */
}
.star path { fill: currentColor; }
.stars-bege .star { color: rgba(225,139,148,0.38); }

/* Hero stars */
.star-1  { width:24px; height:24px; top:12%;  left:5%;   animation: float1 6s ease-in-out infinite; }
.star-2  { width:16px; height:16px; top:70%;  left:8%;   animation: float2 8s ease-in-out infinite; }
.star-3  { width:28px; height:28px; top:20%;  right:6%;  animation: float3 7s ease-in-out infinite; }
.star-4  { width:18px; height:18px; top:55%;  right:12%; animation: float1 9s ease-in-out infinite reverse; }
.star-5  { width:14px; height:14px; top:80%;  left:50%;  animation: float2 5s ease-in-out infinite; }
.star-6  { width:20px; height:20px; top:35%;  left:18%;  animation: float3 8s ease-in-out infinite; }
.star-7  { width:12px; height:12px; top:90%;  right:25%; animation: float1 7s ease-in-out infinite reverse; }
.star-8  { width:22px; height:22px; top:5%;   left:40%;  animation: float2 9s ease-in-out infinite; }
.star-9  { width:14px; height:14px; top:48%;  left:2%;   animation: float3 6s ease-in-out infinite reverse; }
.star-10 { width:18px; height:18px; top:65%;  right:4%;  animation: float1 8s ease-in-out infinite; }
/* Sobre stars */
.star-b1 { width:22px; height:22px; top:10%;  left:3%;   animation: float3 7s ease-in-out infinite; }
.star-b2 { width:16px; height:16px; top:60%;  right:5%;  animation: float1 9s ease-in-out infinite; }
.star-b3 { width:12px; height:12px; top:85%;  left:40%;  animation: float2 6s ease-in-out infinite reverse; }
.star-b4 { width:20px; height:20px; top:30%;  right:18%; animation: float3 8s ease-in-out infinite reverse; }
.star-b5 { width:14px; height:14px; top:75%;  left:22%;  animation: float1 7s ease-in-out infinite; }
.star-b6 { width:18px; height:18px; top:5%;   right:40%; animation: float2 9s ease-in-out infinite; }
.star-b7 { width:10px; height:10px; top:50%;  left:55%;  animation: float3 5s ease-in-out infinite; }
/* Cardapio stars */
.star-c1 { width:20px; height:20px; top:8%;   right:8%;  animation: float2 7s ease-in-out infinite; }
.star-c2 { width:26px; height:26px; top:50%;  left:2%;   animation: float3 9s ease-in-out infinite reverse; }
.star-c3 { width:14px; height:14px; bottom:10%;right:15%;animation: float1 6s ease-in-out infinite; }
.star-c4 { width:18px; height:18px; top:25%;  left:15%;  animation: float2 8s ease-in-out infinite reverse; }
.star-c5 { width:12px; height:12px; top:70%;  right:30%; animation: float3 7s ease-in-out infinite; }
.star-c6 { width:22px; height:22px; top:15%;  left:55%;  animation: float1 9s ease-in-out infinite; }
.star-c7 { width:16px; height:16px; bottom:20%;left:35%; animation: float2 6s ease-in-out infinite reverse; }
.star-c8 { width:10px; height:10px; top:40%;  right:3%;  animation: float3 8s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(12deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(-8deg); }
  66% { transform: translateY(6px) rotate(5deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-18px) scale(1.1); }
}

/* ─── DOODLE JITTER KEYFRAMES ────────────────────────────────── */
@keyframes doodle-jitter {
  0%   { filter: url(#doodle); }
  25%  { filter: url(#doodle-2); }
  50%  { filter: url(#doodle); }
  75%  { filter: url(#doodle-3); }
  100% { filter: url(#doodle); }
}
.cat-icon { animation: doodle-jitter 3s steps(1) infinite; }

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bege);
  border-bottom: 2px solid var(--marrom);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: var(--bege);
  box-shadow: 0 3px 0px var(--marrom);
}
.header-inner {
  max-width: var(--inner-max);
  margin-inline: auto;
  padding-inline: var(--inner-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--rosa);
  letter-spacing: -0.02em;
  transition: transform 0.2s;
}
.logo:hover { transform: rotate(-2deg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}
.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--marrom);
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.nav-link:hover { border-color: var(--rosa); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: 2px solid var(--marrom);
  border-radius: 3px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--marrom);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header actions (CTA + toggle wrapper) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Nav CTA — "Pedir Agora" button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--marrom);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 2px solid var(--marrom);
  box-shadow: 2px 2px 0px var(--rosa);
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--off-white);
  color: var(--marrom);
  box-shadow: 2px 2px 0px var(--marrom);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 480px) {
  .nav-cta {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 0.7rem 1.2rem;
  }
}

.nav-cta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

/* Wrapper para centralizar botões no cardápio */
.menu-cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}


/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--vermelho);
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--inner-max);
  margin-inline: auto;
  padding-inline: var(--inner-pad);
  padding-block: var(--section-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}

/* Hero headline animation */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.0;
  color: var(--off-white);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.7s ease 1.2s forwards;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--off-white);
  margin-top: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease 1.5s forwards;
  line-height: 1.5;
}
.btn-hero-wrap {
  opacity: 0;
  animation: heroFadeUp 0.7s ease 1.7s forwards;
}
#btn-hero {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s ease 1.7s forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

/* Donut SVG line-art animation */
.donut-svg {
  width: clamp(160px, 30vw, 260px);
  filter: url(#doodle);
}
.donut-ring {
  stroke-dasharray: 820;
  stroke-dashoffset: 820;
  animation: drawStroke 1s ease 0.2s forwards;
}
.donut-body {
  fill-opacity: 0;
  stroke-dasharray: 820;
  stroke-dashoffset: 820;
  animation: drawStroke 1s ease 0.2s forwards, fillAppear 0.4s ease 1.1s forwards;
}
.donut-hole {
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  animation: drawStroke 0.6s ease 0.6s forwards, fillHole 0.4s ease 1.1s forwards;
}
.donut-icing {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  fill-opacity: 0;
  animation: drawStroke 0.7s ease 0.8s forwards, fillIcing 0.4s ease 1.1s forwards;
}
.sprinkle {
  opacity: 0;
  animation: sprinkleIn 0.3s ease forwards;
}
.sprinkle:nth-child(5) { animation-delay: 1.15s; }
.sprinkle:nth-child(6) { animation-delay: 1.2s; }
.sprinkle:nth-child(7) { animation-delay: 1.25s; }
.sprinkle:nth-child(8) { animation-delay: 1.3s; }
.sprinkle:nth-child(9) { animation-delay: 1.35s; }

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}
@keyframes fillAppear {
  to { fill-opacity: 1; }
}
@keyframes fillHole {
  0%  { fill-opacity: 0; }
  100%{ fill-opacity: 1; }
}
@keyframes fillIcing {
  to { fill-opacity: 1; }
}
@keyframes sprinkleIn {
  to { opacity: 1; }
}

/* Hero image */
.hero-img-wrapper {
  opacity: 0;
  animation: heroFadeUp 0.6s ease 1.3s forwards;
}
.hero-img-real {
  width: clamp(220px, 35vw, 380px);
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--off-white);
  box-shadow: 5px 5px 0px var(--marrom);
  display: block;
}

/* ─── MARQUEE ─────────────────────────────────────────────────── */
.marquee-strip {
  background: var(--marrom);
  overflow: hidden;
  padding-block: 14px;
  border-top: 2px solid var(--marrom);
  border-bottom: 2px solid var(--marrom);
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform; /* GPU Acceleration */
}
.marquee-track span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bege);
  white-space: nowrap;
  padding-right: 3rem;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SOBRE ───────────────────────────────────────────────────── */
.sobre {
  position: relative;
  background: var(--bege);
  padding-block: var(--section-pad);
  overflow: hidden;
}
.sobre-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.sobre-text {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--marrom);
  line-height: 1.7;
  padding-top: 0.5rem;
}

/* Polaroid grid */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}
.polaroid {
  background: #fff;
  border: 2px solid var(--marrom);
  border-radius: 4px;
  padding: 12px 12px 40px;
  box-shadow: 4px 4px 0px var(--marrom);
  transition: transform 0.2s ease;
}
.polaroid:hover { transform: rotate(2deg) translateY(-4px); }
.polaroid--rotate { transform: rotate(-3deg); }
.polaroid--rotate:hover { transform: rotate(-1deg) translateY(-4px); }
.polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bege);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(58,32,18,0.1);
}
.polaroid-img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--marrom);
  opacity: 0.7;
}

/* ─── CARDÁPIO ────────────────────────────────────────────────── */
.cardapio {
  position: relative;
  background: var(--vermelho);
  padding-block: var(--section-pad);
  overflow: hidden;
}
.cardapio .section-inner { padding-block: 0; }

.cardapio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.cardapio-categoria--wide { grid-column: 1 / -1; }

.cardapio-categoria {
  background: rgba(247,245,240,0.07);
  border: 2px solid var(--off-white);
  border-radius: 6px;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.categoria-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--off-white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1.5px solid rgba(247,245,240,0.3);
  padding-bottom: 0.8rem;
}
.categoria-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--marrom);
  color: var(--off-white);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: -0.7rem;
  margin-bottom: 1.8rem;
  filter: url(#doodle);
  box-shadow: 3px 3px 0px var(--rosa);
  transform: rotate(-1.5deg);
  cursor: default;
  user-select: none;
}
.hint-icon {
  width: 14px;
  height: 14px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cat-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: var(--off-white);
  fill: none;
}

.menu-list { display: flex; flex-direction: column; gap: 0; }
.menu-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed rgba(247,245,240,0.2);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-info { flex: 1; }
.item-name {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--off-white);
  margin-bottom: 0.2rem;
}
.item-desc {
  display: block;
  font-size: 0.8rem;
  color: rgba(247,245,240,0.65);
  line-height: 1.4;
}
.item-price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rosa);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item--combo {
  align-items: center;
  gap: 0.8rem;
}
.menu-item--combo .menu-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.menu-item--combo .item-price {
  display: block;
  margin-top: 0.3rem;
  white-space: nowrap;
}
.combo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  cursor: zoom-in;
}

/* Pulse one-shot ao entrar na viewport */
@keyframes combo-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.05); }
  70%  { transform: scale(0.98); }
  100% { transform: scale(1); }
}
.combo-img.pulsed {
  animation: combo-pulse 0.45s ease forwards;
}

.menu-list--festas .menu-item--festa { padding: 1rem 0; }

/* ─── DONUTS MESA (Preços Unitários) ─────────────────────────── */
.donuts-mesa {
  position: relative;
  height: 110px;
  margin-top: 1.2rem;
  pointer-events: none;
  overflow: visible;
}
.donut-mesa {
  position: absolute;
  bottom: 0;
  width: 90px;
  height: 90px;
  object-fit: contain;
  mix-blend-mode: multiply; /* funde fundo residual com o vermelho */
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}
/* Posições e rotações: efeito "espalhados na mesa" */
.donut-mesa--1 { left: 2%;   transform: rotate(-12deg) scale(1.05); width: 95px; }
.donut-mesa--2 { left: 24%;  transform: rotate(8deg);                width: 82px; bottom: 8px; }
.donut-mesa--3 { left: 50%;  transform: rotate(-5deg) scale(0.95);  width: 88px; }
.donut-mesa--4 { right: 4%;  transform: rotate(14deg) scale(1.08);  width: 96px; bottom: 4px; }


/* ─── CONTATO ─────────────────────────────────────────────────── */
.contato {
  background: var(--bege);
  padding-block: var(--section-pad);
  text-align: center;
}
.contato-inner { display: flex; flex-direction: column; align-items: center; }
.contato-badge {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: spin-badge 4s ease-in-out infinite;
}
@keyframes spin-badge {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
.contato-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.contato-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--marrom);
  margin-bottom: 2.5rem;
  opacity: 0.8;
}
.entrega-aviso {
  margin-top: 1.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--marrom);
  letter-spacing: 0.02em;
}
.whatsapp-num {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--marrom);
  opacity: 0.55;
  letter-spacing: 0.05em;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--marrom);
  padding-block: 2.5rem;
  text-align: center;
  border-top: 3px solid var(--marrom);
}
.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--bege);
  letter-spacing: -0.01em;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(247,245,240,0.45);
  letter-spacing: 0.03em;
}
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(247,245,240,0.3);
}

/* ─── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 32, 18, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: min(88vw, 520px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 3px solid var(--off-white);
  box-shadow: 6px 6px 0px var(--marrom);
  transform: scale(0.88);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}
.lightbox.open .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 52px;
  height: 52px;
  background: var(--off-white);
  color: var(--marrom);
  border: 2.5px solid var(--marrom);
  border-radius: 4px;
  box-shadow: 3px 3px 0px var(--marrom);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  z-index: 201;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--marrom);
  color: var(--off-white);
  box-shadow: 3px 3px 0px var(--off-white);
  transform: rotate(12deg) scale(1.05);
  outline: none;
}
.lightbox-close-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  display: block;
}

/* Performance optimization for off-screen rendering */
.sobre, .cardapio, .contato {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px; /* Previne CLS dando uma altura estimada */
}

/* ─── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sobre-header { grid-template-columns: 1fr; }
  .polaroid-grid { grid-template-columns: repeat(3, 1fr); }
  .cardapio-grid { grid-template-columns: 1fr; }
  .cardapio-categoria--wide { grid-column: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 2rem;
  }
  /* Mostra o donut SVG no mobile, esconde apenas a foto */
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: -1; /* donut aparece acima do texto no mobile */
  }
  .hero-img-wrapper { display: none; }
  .donut-svg { width: clamp(130px, 38vw, 200px); height: auto; }
  .hero-headline { font-size: clamp(2.8rem, 10vw, 4.5rem); }
}

@media (max-width: 640px) {
  /* Mobile nav: esconde hamburger e links, mantém apenas logo + CTA */
  .main-nav   { display: none !important; }
  .nav-toggle { display: none !important; }

  /* CTA ligeiramente maior no mobile para facilitar o toque */
  .nav-cta {
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
  }

  .nav-link {
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(58,32,18,0.1);
    font-size: 1rem;
  }
  .nav-link:last-child { border-bottom: none; }
  .polaroid-grid { grid-template-columns: 1fr; max-width: 260px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
