/* Angel’s Cake — versão simples
   Confeitaria de bairro, clara e alegre: branco + rosa-claro, uma fonte (Nunito), cards com borda,
   cantos arredondados e movimento só para dar retorno. Nada em itálico. */

:root {
  --branco: #ffffff;
  --rosa-claro: #fdf0f3;
  --rosa: #b8325f;
  --rosa-escuro: #962549;
  --texto: #33262a;
  --texto-2: #6d5a5f;
  --borda: #eadfe2;
  --verde-whats: #25d366;

  --fonte: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --raio: 16px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --largura: 1180px;
  --topo-h: 116px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--branco);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
em, i { font-style: normal; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 800; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--texto); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

.etiqueta { margin: 0 0 .5rem; color: var(--rosa); font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 160ms, color 160ms, border-color 160ms, transform 120ms;
}
.botao:active { transform: scale(.97); }
.botao--principal { background: var(--rosa); color: #fff; }
.botao--principal:hover { background: var(--rosa-escuro); }
.botao--contorno { border-color: var(--rosa); color: var(--rosa); background: transparent; }
.botao--contorno:hover { background: var(--rosa); color: #fff; }
.botao--cheio { width: 100%; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: var(--branco);
  border-bottom: 1px solid var(--borda);
}
.topo-linha {
  max-width: calc(var(--largura) + 2 * var(--gutter)); margin: 0 auto; padding: .7rem var(--gutter) .3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marca { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.marca-icone { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--rosa-claro); color: var(--rosa); }
.marca-icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sacola-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 46px; padding: 0 .35rem 0 1rem;
  background: var(--rosa); color: #fff; border: 0; border-radius: 999px;
  font-weight: 700; cursor: pointer;
  transition: background-color 160ms;
}
.sacola-btn:hover { background: var(--rosa-escuro); }
.sacola-qtd { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 .4rem; border-radius: 999px; background: #fff; color: var(--rosa); font-size: .9rem; font-weight: 800; }
.sacola-btn.pulso .sacola-qtd { animation: pulso 400ms ease-out; }
@keyframes pulso { 50% { transform: scale(1.25); } }
.menu {
  max-width: calc(var(--largura) + 2 * var(--gutter)); margin: 0 auto; padding: .2rem var(--gutter) .6rem;
  display: flex; gap: .3rem 1.4rem; flex-wrap: wrap;
}
.menu a { padding: .35rem 0; font-weight: 700; color: var(--texto-2); text-decoration: none; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--rosa); border-color: var(--rosa); }

/* ---------- Abertura ---------- */
.hero {
  max-width: calc(var(--largura) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.hero-sub { margin: 1rem 0 1.6rem; font-size: 1.15rem; color: var(--texto-2); max-width: 32rem; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-foto { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--rosa-claro); }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }

/* ---------- Seções ---------- */
.secao { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.secao--rosa { background: var(--rosa-claro); }
.secao-cab { max-width: var(--largura); margin: 0 auto 2rem; }
.secao-cab h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.secao-cab--linha { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; }

/* ---------- Sabores ---------- */
.sabores { max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.sabor {
  display: flex; flex-direction: column;
  background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden;
  border-top: 6px solid var(--tom);
}
.sabor img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cor); }
.sabor-corpo { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.1rem 1.2rem; }
.sabor-cor {
  align-self: flex-start; margin: 0 0 .6rem; padding: .15rem .7rem; border-radius: 999px;
  background: var(--cor); color: var(--tom); font-size: .8rem; font-weight: 800;
}
.sabor h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.sabor-corpo > p:not([class]) { margin: 0 0 1rem; color: var(--texto-2); font-size: .98rem; }
.preco { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: auto 0 1rem; padding-top: .8rem; border-top: 1px dashed var(--borda); font-size: .92rem; color: var(--texto-2); }
.preco strong { font-size: 1.3rem; color: var(--texto); }

/* ---------- Cardápio ---------- */
.abas { display: flex; flex-wrap: wrap; gap: .5rem; }
.aba {
  min-height: 44px; padding: 0 1.1rem;
  background: var(--branco); border: 2px solid var(--borda); border-radius: 999px;
  font-weight: 700; cursor: pointer; transition: border-color 160ms, background-color 160ms, color 160ms;
}
.aba:hover { border-color: var(--rosa); }
.aba[aria-pressed="true"] { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.status { max-width: var(--largura); margin: -1rem auto 1rem; min-height: 1.4em; color: var(--texto-2); font-size: .92rem; }
.grade { list-style: none; margin: 0 auto; padding: 0; max-width: var(--largura); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.item {
  display: flex; flex-direction: column;
  background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden;
  transition: box-shadow 200ms, transform 200ms;
}
.item[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .item:hover { box-shadow: 0 10px 24px -14px rgba(51, 38, 42, .35); transform: translateY(-3px); }
}
.item-foto { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--rosa-claro); }
.item-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.selo { position: absolute; left: .6rem; top: .6rem; padding: .2rem .65rem; border-radius: 999px; background: #fff; color: var(--rosa); font-size: .78rem; font-weight: 800; }
.item-corpo { display: flex; flex-direction: column; flex: 1; padding: .9rem 1rem 1rem; }
.item-corpo h3 { font-size: 1.08rem; }
.item-meta { margin: .2rem 0 .8rem; font-size: .9rem; color: var(--texto-2); }
.item-rodape { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.item-preco { font-weight: 800; font-size: 1.1rem; }
.item-preco--consulta { font-size: .92rem; color: var(--texto-2); font-weight: 700; }
.item-acao {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  min-height: 40px; padding: 0 .9rem; border-radius: 999px;
  border: 2px solid var(--rosa); background: transparent; color: var(--rosa);
  font-size: .9rem; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms, color 160ms;
}
.item-acao:hover { background: var(--rosa); color: #fff; }

/* ---------- Como fazemos ---------- */
.etapas { list-style: none; margin: 0 auto; padding: 0; max-width: var(--largura); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.etapa img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio); margin-bottom: .9rem; background: var(--rosa-claro); }
.etapa-num {
  display: inline-block; margin: 0 0 .4rem; padding: .1rem .6rem; border-radius: 999px;
  background: var(--rosa-claro); color: var(--rosa); font-size: .8rem; font-weight: 800;
}
.etapa h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.etapa p:last-child { margin: 0; color: var(--texto-2); font-size: .98rem; }

/* ---------- Encomendas ---------- */
.encomendas { max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.enc-foto { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.enc-foto img { width: 100%; height: 100%; object-fit: cover; }
.enc-corpo h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.enc-intro { margin: .7rem 0 1.4rem; color: var(--texto-2); font-size: 1.08rem; }
.calc { padding: 1.2rem 1.3rem; margin-bottom: 1.5rem; background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); }
.calc-rotulo { font-weight: 700; }
.calc-rotulo output { font-weight: 800; color: var(--rosa); font-size: 1.2rem; }
.calc input[type="range"] { width: 100%; margin: .7rem 0; accent-color: var(--rosa); height: 28px; }
.calc-resultado { margin: 0; color: var(--texto-2); }
.calc-resultado strong { color: var(--texto); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.campo { display: grid; gap: .3rem; }
.campo--largo { grid-column: 1 / -1; }
.campo label { font-size: .92rem; font-weight: 700; }
.campo input, .campo select {
  width: 100%; min-height: 48px; padding: 0 .9rem;
  background: var(--branco); border: 2px solid var(--borda); border-radius: 12px;
}
.campo input:focus-visible, .campo select:focus-visible { outline: none; border-color: var(--rosa); }
.campo input[aria-invalid="true"] { border-color: #b0263e; }
.erro { margin: 0; min-height: 1.2em; font-size: .85rem; font-weight: 600; color: #9e1f35; }
.form .botao { grid-column: 1 / -1; justify-self: start; }
.form-ok { grid-column: 1 / -1; margin: 0; padding: .9rem 1.1rem; border-radius: 12px; background: #e3f2dc; color: #1f3d17; font-weight: 600; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--texto); color: #f7ecee; padding: 3rem var(--gutter) 1.6rem; }
.rodape-cols { max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.rodape h2 { font-size: 1rem; margin-bottom: .5rem; color: #f5b8c9; }
.rodape p { margin: 0; color: rgba(247, 236, 238, .82); }
.rodape-marca { font-size: 1.5rem; font-weight: 800; color: #fff !important; margin-bottom: .4rem !important; }
.rodape a { display: inline-block; padding: .15rem 0; text-decoration: none; }
.rodape a:hover { text-decoration: underline; }
.rodape-nota { max-width: var(--largura); margin: 2.4rem auto 0 !important; padding-top: 1.2rem; border-top: 1px solid rgba(247, 236, 238, .15); font-size: .85rem; color: rgba(247, 236, 238, .66) !important; }

/* ---------- Sacola ---------- */
.sacola {
  margin: 0 0 0 auto; height: 100%; max-height: 100dvh; width: min(400px, 100%); max-width: 100%;
  padding: 0; border: 0; background: var(--branco); color: var(--texto);
  display: none; flex-direction: column;
}
.sacola[open] { display: flex; animation: entra 250ms ease-out; }
.sacola::backdrop { background: rgba(51, 38, 42, .45); }
@keyframes entra { from { transform: translateX(30px); opacity: 0; } }
.sacola-cab { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; border-bottom: 1px solid var(--borda); }
.sacola-cab h2 { font-size: 1.35rem; }
.fechar { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--rosa-claro); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sacola-lista { list-style: none; margin: 0; padding: 0 1.3rem; overflow-y: auto; flex: 1; }
.linha-sacola { display: grid; grid-template-columns: 60px 1fr auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--borda); }
.linha-sacola img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; }
.linha-sacola h3 { font-size: 1rem; }
.linha-sacola p { margin: .1rem 0 0; font-size: .85rem; color: var(--texto-2); }
.qtd { display: inline-flex; align-items: center; margin-top: .4rem; border: 2px solid var(--borda); border-radius: 999px; }
.qtd button { width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.qtd button:hover { background: var(--rosa-claro); }
.qtd span { min-width: 1.5rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.linha-preco { align-self: start; padding-top: .1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sacola-vazia { flex: 1; margin: 0; padding: 3rem 1.3rem; text-align: center; color: var(--texto-2); }
.sacola-vazia a { display: inline-block; margin-top: .6rem; color: var(--rosa); font-weight: 800; }
.sacola-pe { padding: 1rem 1.3rem 1.4rem; border-top: 1px solid var(--borda); }
.sacola-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .9rem; font-weight: 700; }
.sacola-total strong { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sacola-aviso { margin: .7rem 0 0; min-height: 1.2em; font-size: .88rem; color: var(--texto-2); }

/* ---------- WhatsApp ---------- */
.whats {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde-whats); color: #fff;
  box-shadow: 0 8px 20px -6px rgba(18, 140, 70, .6);
  transition: transform 160ms;
}
.whats:hover { transform: scale(1.07); }
.whats svg { width: 30px; height: 30px; fill: currentColor; }
.whats:focus-visible { outline: 3px solid var(--texto); }

/* ---------- Aviso ---------- */
.aviso {
  position: fixed; left: 50%; bottom: 1.2rem; z-index: 60;
  transform: translate(-50%, calc(100% + 2rem)); visibility: hidden;
  padding: .75rem 1.2rem; border-radius: 999px;
  background: var(--texto); color: #fff; font-weight: 700; font-size: .95rem;
  transition: transform 250ms ease-out, visibility 0s 250ms;
  max-width: calc(100% - 7rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aviso.show { transform: translate(-50%, 0); visibility: visible; transition: transform 250ms ease-out; }

/* Entrada leve dos cards (conteúdo visível sem JS) */
.js .revela { opacity: 0; transform: translateY(16px); transition: opacity 400ms ease-out, transform 400ms ease-out; }
.js .revela.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .sabores, .grade, .etapas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-foto { order: -1; aspect-ratio: 16 / 11; }
  .encomendas { grid-template-columns: 1fr; }
  .enc-foto { aspect-ratio: 16 / 10; }
  .rodape-cols { grid-template-columns: 1fr; }
  .menu { flex-wrap: nowrap; justify-content: space-between; gap: .6rem; overflow-x: auto; scrollbar-width: none; }
  .menu a { font-size: .93rem; white-space: nowrap; }
}
@media (max-width: 520px) {
  .sabores, .etapas { grid-template-columns: 1fr; }
  .grade { gap: .8rem; }
  .item-corpo { padding: .8rem; }
  .item-rodape { flex-direction: column; align-items: stretch; }
  .item-acao { width: 100%; }
  .form { grid-template-columns: 1fr; }
  .sacola-txt { display: none; }
  .abas { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .menu { gap: .3rem; }
  .menu a { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .js .revela { opacity: 1; transform: none; }
}
