/* Dubas Bolos — tokens e base compartilhados (cliente e admin) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600&family=Pacifico&display=swap');

:root {
  --rosa: #EC3C8A;
  --rosa-escuro: #C41C68;   /* rosa para texto pequeno (contraste AA no papel) */
  --rosa-claro: #F8C4D7;
  --rosa-nevoa: #FCE6EE;
  --chocolate: #4B2216;
  --papel: #F4F3F1;
  --tinta: #231F20;
  --tinta-suave: #5B5456;
  --creme: #FBEFD9;

  --script: 'Pacifico', 'Brush Script MT', cursive;
  --sans: 'Oswald', 'Arial Narrow', sans-serif;

  --onda: clamp(26px, 8vw, 110px);
  --raio: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--tinta);
  background-color: var(--papel);
  /* textura de papel, como no cardápio impresso */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* A borda rosa ondulada do lado direito do cardápio */
.onda {
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--onda);
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 420' preserveAspectRatio='none'%3E%3Cpath d='M100 0H38C12 40 10 100 34 150c26 55 34 105 8 160C20 355 22 395 38 420H100Z' fill='%23F8C4D7'/%3E%3C/svg%3E") repeat-y right top / 100% clamp(320px, 52vh, 520px);
}

.pagina {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 2rem calc(var(--onda) + 1rem) 3rem 1.25rem;
}

/* Marca: "CARDÁPIO DE / bolos" */
.marca {
  text-align: center;
  margin: 0 0 1.5rem;
  line-height: 1;
}
.marca-sobre {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--rosa);
}
.marca-bolos {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4rem, 17vw, 6.5rem);
  color: var(--chocolate);
  margin-top: .05em;
  line-height: 1.1;
}

/* Títulos de categoria com coração */
.titulo-script {
  display: flex;
  align-items: center;
  gap: .4em;
  font-family: var(--script);
  font-weight: 400;
  color: var(--rosa);
  line-height: 1.2;
  margin: 0;
}
.titulo-script::before {
  content: '';
  flex: none;
  width: .95em;
  height: .85em;
  background: var(--rosa);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.5 10.3 20C4.2 14.5 0 10.7 0 6.2 0 2.7 2.7 0 6.2 0 8.2 0 10.1 1 12 2.6 13.9 1 15.8 0 17.8 0 21.3 0 24 2.7 24 6.2c0 4.5-4.2 8.3-10.3 13.8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.5 10.3 20C4.2 14.5 0 10.7 0 6.2 0 2.7 2.7 0 6.2 0 8.2 0 10.1 1 12 2.6 13.9 1 15.8 0 17.8 0 21.3 0 24 2.7 24 6.2c0 4.5-4.2 8.3-10.3 13.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rotulo {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--rosa-escuro);
}

.preco { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Botões */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .5em 1.4em;
  border: 2px solid var(--rosa);
  border-radius: 999px;
  background: var(--rosa);
  color: #fff;
  font: 500 1.05rem/1 var(--sans);
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
}
.botao:hover { background: var(--rosa-escuro); border-color: var(--rosa-escuro); }
.botao-linha { background: transparent; color: var(--rosa-escuro); }
.botao-linha:hover { background: var(--rosa-nevoa); color: var(--rosa-escuro); }
.botao:disabled { opacity: .45; cursor: not-allowed; }

:focus-visible {
  outline: 3px solid var(--rosa);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Janelas (modal), usadas no cardápio e no admin */
.modal {
  width: min(30rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--papel);
  color: var(--tinta);
  box-shadow: 0 20px 60px rgba(75, 34, 22, .35);
}
.modal::backdrop { background: rgba(75, 34, 22, .45); }
.modal[open] { animation: abrir .25s ease-out; }
@keyframes abrir { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-corpo { position: relative; padding: 1.5rem 1.4rem 1.4rem; }
.modal-fechar {
  position: absolute; top: .5rem; right: .5rem;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: none; font: 400 2rem/1 var(--sans); color: var(--tinta-suave); cursor: pointer;
}
.modal-fechar:hover { background: var(--rosa-nevoa); color: var(--rosa-escuro); }
.modal-titulo { font-size: 1.9rem; margin-bottom: .75rem; }

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