/* =========================================================
   Base: reset, tipografia, botões, componentes reutilizáveis
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: var(--t-corpo);
  line-height: 1.6;
  color: var(--cacau);
  background: var(--rosa-parede);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
p { text-wrap: pretty; }

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

.pular {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--cacau); color: var(--creme); padding: 10px 16px; border-radius: var(--raio-pilula);
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.pular:focus { top: 12px; }

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

/* Marcação visível para dados que a cafeteria ainda vai confirmar */
.pendente {
  display: inline;
  font-family: var(--f-texto);
  font-size: .85em;
  font-weight: 600;
  color: var(--cerejeira-texto);
  background: var(--creme);
  border: 1px dashed rgba(163, 50, 79, .55);
  border-radius: 6px;
  padding: 1px 6px;
  letter-spacing: 0;
  white-space: normal;
}

/* ---------- Botões ---------- */
.botao {
  --b-bg: transparent; --b-fg: var(--cacau); --b-borda: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--raio-pilula);
  border: 1.5px solid var(--b-borda);
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: .98rem; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-mola), background-color .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.botao svg { width: 20px; height: 20px; flex: none; }
.botao:active { transform: scale(.97); }
.botao-cacau { --b-bg: var(--cacau); --b-fg: var(--creme); box-shadow: 0 10px 22px -12px rgba(74, 42, 34, .8); }
.botao-cacau:hover { --b-bg: #5C362C; }
.botao-contorno { --b-borda: rgba(74, 42, 34, .55); }
.botao-contorno:hover { --b-bg: rgba(255, 247, 242, .55); }
.botao-creme { --b-bg: var(--creme); --b-fg: var(--cacau); box-shadow: var(--sombra-1); }
.botao-grande { min-height: 58px; padding: 0 28px; font-size: 1.04rem; }

.botao-icone {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: transparent; color: inherit; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.botao-icone svg { width: 26px; height: 26px; }

/* ---------- Neon (assinatura) ---------- */
.neon path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.neon-titulo, .neon-rodape, .chips-neon {
  overflow: visible;
}
/* o brilho vai no <svg> (filtro em <path> esticado é cortado pelo navegador) */
.neon-titulo, .neon-rodape, .chips-neon { filter: var(--brilho-neon); }
.neon-titulo path, .neon-rodape path, .chips-neon path {
  stroke: var(--neon); stroke-width: 3.2;
}

/* ---------- Seções ---------- */
.secao {
  position: relative;
  padding: var(--secao) var(--gutter);
}
.secao-cabeca {
  max-width: var(--largura);
  margin: 0 auto clamp(28px, 6vw, 48px);
}
.titulo {
  position: relative;
  display: inline-block;
  font-size: var(--t-h2);
  padding-bottom: 18px;
}
.neon-titulo {
  position: absolute; left: 0; bottom: -4px;
  width: min(100%, 260px); height: 18px;
}
.secao-lead {
  margin-top: 18px;
  max-width: 34rem;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--cacau-suave);
}

/* ---------- Formulários ---------- */
.campo { display: grid; gap: 6px; }
.campo > span { font-weight: 700; font-size: .92rem; }
.campo em { font-style: normal; font-weight: 500; color: var(--cacau-suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid rgba(74, 42, 34, .22);
  border-radius: 14px;
  background: #fff;
  font-size: 16px; /* evita zoom no iOS */
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 92px; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--cacau); box-shadow: 0 0 0 4px rgba(230, 75, 107, .18);
}
.campo[aria-invalid="true"] input, .campo[aria-invalid="true"] select { border-color: var(--cereja); }
.erro { color: var(--cereja); font-weight: 600; font-size: .85rem; min-height: 0; }
.erro:empty { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 18px + env(safe-area-inset-bottom));
  z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ganache); color: var(--creme);
  padding: 12px 20px; border-radius: var(--raio-pilula);
  font-weight: 600; font-size: .95rem;
  box-shadow: var(--sombra-2);
  transition: opacity .25s, transform .35s var(--ease-mola);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

/* Camada para efeitos (pétalas, imagem voando, balões) */
.efeitos { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
