/*
 * Ateliê Pistache — demo de landing page.
 * Paleta de caixa de confeitaria: pistache, framboesa e cacau.
 * Mobile-first: as regras base valem para o celular e os @media só acrescentam.
 */
/* Recorte latino (inclui acentos do português) das fontes do Google Fonts, licença OFL. */
@font-face {
  font-family: "Caprasimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/caprasimo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/figtree-latin-var.woff2") format("woff2");
}

:root {
  --pistache: #d5e3c3;
  --pistache-claro: #eef4e6;
  --pistache-fundo: #4f6b3a;
  --framboesa: #a8264e;
  --framboesa-escura: #8a1d3f;
  --rosa: #e9a1b5;
  --cacau: #3a2420;
  --cacau-suave: #6d5a52;
  --manteiga: #fff6dc;
  --papel: #fffdf9;

  --fonte-titulo: "Caprasimo", "Georgia", serif;
  --fonte-texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --borda: 2px solid var(--cacau);
  --babado: 14px;
  --largura: 1180px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--cacau);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.005em;
}

p { margin: 0; }

a { color: var(--framboesa); text-underline-offset: 3px; }

/* Cor explícita em todo controle: já houve bug de texto branco no fundo branco. */
button, input, select, textarea {
  font: inherit;
  color: var(--cacau);
  background-color: var(--papel);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cacau);
  color: var(--manteiga);
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.secao {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.secao__topo { max-width: 40rem; margin-bottom: 32px; }
.secao__topo h2 { font-size: clamp(2.25rem, 7vw, 3.5rem); margin-bottom: 10px; }
.secao__topo p { color: var(--cacau-suave); }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  border: var(--borda);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }

/* Sombra "carimbada", sólida, em vez de sombra difusa: lembra etiqueta impressa. */
.btn--whats {
  background: var(--framboesa);
  color: #fff;
  box-shadow: 4px 4px 0 var(--cacau);
}
.btn--whats:hover { background: var(--framboesa-escura); color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--cacau); }
.btn--whats:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--cacau); }

.btn--linha { background: transparent; color: var(--cacau); }
.btn--linha:hover { background: var(--manteiga); color: var(--cacau); }

.btn--creme {
  background: var(--manteiga);
  color: var(--cacau);
  box-shadow: 4px 4px 0 var(--cacau);
}
.btn--creme:hover { background: #fff; color: var(--cacau); }

.btn--mini {
  min-height: 44px;
  padding: 8px 16px;
  font-size: .95rem;
  background: var(--framboesa);
  color: #fff;
  border-width: 2px;
}
.btn--mini:hover { background: var(--framboesa-escura); color: #fff; }
.btn--mini svg { width: 18px; height: 18px; }
/* No celular a barra fixa já cumpre esse papel; o botão do topo só aparece no desktop. */
.topo .btn--mini { display: none; }

/* ---------------------------------------------------------------- topo */
.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--pistache) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.topo__in {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cacau);
  text-decoration: none;
  font-family: var(--fonte-titulo);
  font-size: 1.3rem;
  margin-right: auto;
  white-space: nowrap;
}
.marca__selo { width: 36px; height: 36px; }
.topo nav { display: none; }
.topo__nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.topo__nav a { color: var(--cacau); font-weight: 600; text-decoration: none; }
.topo__nav a:hover { color: var(--framboesa); text-decoration: underline; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  background: var(--pistache);
  padding: 16px 0 56px;
}
/* Borda de babado: meias-luas penduradas, como papel rendado de bolo. */
.hero::after,
.final::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--babado);
  background: radial-gradient(circle at 50% 0, var(--cor-babado) calc(var(--babado) - .5px), transparent var(--babado)) 0 0 / calc(var(--babado) * 2) calc(var(--babado) * 2) repeat-x;
}
.hero::after { --cor-babado: var(--pistache); bottom: calc(var(--babado) * -1 + 1px); z-index: 1; }

.hero__in {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 20px;
}
.hero__local {
  font-weight: 600;
  color: var(--pistache-fundo);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 5.4rem);
  line-height: 1;
  max-width: 13ch;
  color: var(--cacau);
}
.hero__sub {
  margin-top: 20px;
  font-size: 1.125rem;
  max-width: 34rem;
}
.hero__acoes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.hero__nota { margin-top: 16px; font-size: .95rem; color: var(--cacau-suave); }

.hero__foto {
  position: relative;
  margin: 0 auto;
  order: -1;
  width: min(68vw, 300px);
  animation: chegar .9s cubic-bezier(.2, .8, .2, 1) both;
}
.hero__foto img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: url(#babado);
  background: var(--rosa);
}
/* Contorno de babado desenhado por trás da foto, deslocado como um carimbo. */
.hero__foto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cacau);
  clip-path: url(#babado);
  transform: translate(8px, 10px);
}
.hero__foto img { position: relative; }

.etiqueta {
  position: absolute;
  left: -14%;
  bottom: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--manteiga);
  border: var(--borda);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 14px;
  transform: rotate(-10deg);
  animation: carimbo .5s .6s cubic-bezier(.3, 1.6, .5, 1) both;
}
.etiqueta__valor { font-family: var(--fonte-titulo); font-size: 1.45rem; line-height: 1; color: var(--framboesa); }
.etiqueta__desc { font-size: .66rem; line-height: 1.25; margin-top: 4px; font-weight: 600; }

@keyframes chegar { from { opacity: 0; transform: scale(.94); } }
@keyframes carimbo { from { opacity: 0; transform: rotate(-30deg) scale(1.5); } }

/* ---------------------------------------------------------------- destaques */
.destaques { padding: 64px 0 24px; }
.destaques__lista {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: var(--largura);
  display: grid;
  gap: 28px;
}
.destaques__lista li { display: flex; gap: 16px; align-items: flex-start; }
.destaques__lista svg { width: 48px; height: 48px; flex: none; color: var(--framboesa); }
.destaques__lista h2 { font-size: 1.45rem; margin-bottom: 4px; }
.destaques__lista p { color: var(--cacau-suave); font-size: 1rem; }

/* ---------------------------------------------------------------- cardápio */
.cardapio { padding: 56px 0 72px; }

.abas {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 24px;
  padding: 4px var(--gutter) 8px;
}
.abas::-webkit-scrollbar { display: none; }
.aba {
  flex: none;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: var(--borda);
  background: var(--papel);
  color: var(--cacau);
  font-weight: 700;
  cursor: pointer;
}
.aba:hover { background: var(--manteiga); color: var(--cacau); }
.aba[aria-selected="true"] { background: var(--cacau); color: var(--manteiga); }

.painel {
  display: grid;
  gap: 24px;
  background: var(--manteiga);
  border: var(--borda);
  border-radius: 28px;
  padding: 16px;
}
.painel[hidden] { display: none; }
.painel__foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}
.painel__conteudo { padding: 0 6px 8px; }
.painel__regra { font-size: .95rem; color: var(--cacau-suave); margin-bottom: 8px; }

.itens { list-style: none; margin: 0; padding: 0; }
.itens li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  padding: 16px 0;
  border-bottom: 2px dotted color-mix(in srgb, var(--cacau) 35%, transparent);
}
.itens__nome { font-weight: 700; font-size: 1.08rem; }
.itens__preco {
  font-family: var(--fonte-titulo);
  font-size: 1.2rem;
  color: var(--framboesa);
  white-space: nowrap;
}
.itens__desc { grid-column: 1 / -1; color: var(--cacau-suave); font-size: .97rem; margin-top: 2px; }

.painel__pedir {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
  color: var(--framboesa);
}
.painel__pedir:hover { color: var(--framboesa-escura); }

/* ---------------------------------------------------------------- passos */
.passos {
  background: var(--pistache-claro);
  padding: 72px 0;
}
.passos__lista {
  list-style: none;
  counter-reset: passo;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  gap: 28px;
}
.passos__lista li {
  counter-increment: passo;
  position: relative;
  padding-left: 76px;
}
.passos__lista li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -4px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pistache-fundo);
  color: var(--manteiga);
  font-family: var(--fonte-titulo);
  font-size: 1.75rem;
}
.passos__lista h3 { font-size: 1.5rem; margin-bottom: 6px; }
.passos__lista p { color: var(--cacau-suave); max-width: 32rem; }

/* ---------------------------------------------------------------- galeria */
.galeria { padding: 72px 0; }
.galeria__grade {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 10px;
}
.galeria__grade li { border-radius: 18px; overflow: hidden; background: var(--pistache-claro); }
.galeria__grade img { width: 100%; height: 100%; object-fit: cover; }
.galeria__grade .g-alto { grid-row: span 2; }
.galeria__grade .g-largo { grid-column: span 2; }

/* ---------------------------------------------------------------- depoimentos */
.depoimentos {
  background: var(--cacau);
  color: var(--manteiga);
  padding: 72px 0;
}
.depoimentos .secao__topo p { color: var(--rosa); }
.aviso-exemplo { font-size: .95rem; }
.depoimentos__lista { display: grid; gap: 20px; }
.depoimentos figure {
  margin: 0;
  padding: 26px 24px;
  border: 2px solid color-mix(in srgb, var(--manteiga) 30%, transparent);
  border-radius: 24px;
}
.depoimentos blockquote { margin: 0; }
.depoimentos blockquote p { font-size: 1.12rem; line-height: 1.55; }
.depoimentos blockquote p::before { content: "“"; font-family: var(--fonte-titulo); color: var(--rosa); font-size: 2.6rem; line-height: 0; vertical-align: -.42em; margin-right: 4px; }
.depoimentos figcaption { margin-top: 14px; font-weight: 600; color: var(--pistache); }

/* ---------------------------------------------------------------- sobre */
.sobre { padding: 80px 0; }
.sobre__in { display: grid; gap: 32px; align-items: center; }
.sobre__foto { margin: 0 auto; width: min(80vw, 440px); position: relative; }
.sobre__foto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pistache);
  clip-path: url(#babado);
  transform: translate(-10px, 10px);
}
.sobre__foto img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; clip-path: url(#babado); }
.sobre__texto h2 { font-size: clamp(2.25rem, 7vw, 3.5rem); margin-bottom: 18px; }
.sobre__abre { font-size: 1.25rem; font-weight: 500; margin-bottom: 16px; }
.sobre__texto p + p { margin-top: 12px; }
.sobre__texto p:not(.sobre__abre) { color: var(--cacau-suave); max-width: 36rem; }

/* ---------------------------------------------------------------- horário */
.horario { background: var(--pistache-claro); padding: 72px 0; }
.horario__in { display: grid; gap: 32px; }
.horario__info h2 { font-size: clamp(2.25rem, 7vw, 3.5rem); margin-bottom: 22px; }
.horas { margin: 0 0 24px; }
.horas div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 2px dotted color-mix(in srgb, var(--cacau) 35%, transparent);
}
.horas dt { font-weight: 700; }
.horas dd { margin: 0; text-align: right; }
.horario__end { margin-bottom: 14px; }
.horario__obs { color: var(--cacau-suave); font-size: .97rem; }
.mapa { margin: 0; }
.mapa svg { width: 100%; height: auto; border: var(--borda); border-radius: 24px; }
.mapa figcaption { margin-top: 10px; font-size: .9rem; color: var(--cacau-suave); }

/* ---------------------------------------------------------------- chamada final */
.final {
  position: relative;
  background: var(--framboesa);
  color: #fff;
  padding: 84px 0 76px;
  text-align: center;
}
.final::before { --cor-babado: var(--pistache-claro); top: 0; }
.final__in { display: grid; justify-items: center; gap: 18px; }
.final h2 { font-size: clamp(2.4rem, 9vw, 4.25rem); }
.final p { max-width: 32rem; font-size: 1.1rem; }
.final .btn { margin-top: 10px; }

/* ---------------------------------------------------------------- rodapé */
.rodape {
  background: var(--cacau);
  color: var(--manteiga);
  /* Espaço extra para a barra fixa do WhatsApp não cobrir o selo no celular. */
  padding: 48px 0 100px;
}
.rodape__in { display: grid; gap: 28px; }
.rodape__marca { font-family: var(--fonte-titulo); font-size: 1.6rem; margin-bottom: 6px; }
.rodape p { color: color-mix(in srgb, var(--manteiga) 82%, transparent); font-size: .97rem; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rodape a { color: var(--manteiga); }
.rodape a:hover { color: var(--rosa); }
.selo {
  max-width: var(--largura);
  margin: 36px auto 0;
  padding: 18px var(--gutter) 0;
  border-top: 1px solid color-mix(in srgb, var(--manteiga) 20%, transparent);
  font-size: .85rem;
  color: color-mix(in srgb, var(--manteiga) 70%, transparent);
}

/* ---------------------------------------------------------------- barra fixa (celular) */
.barra-whats {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  background: var(--framboesa);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: var(--borda);
  box-shadow: 3px 3px 0 var(--cacau);
  transition: transform .25s ease, opacity .25s ease;
}
/* Some enquanto o botão do hero está visível, para não mostrar dois iguais. */
.barra-whats.is-oculta { transform: translateY(140%); opacity: 0; pointer-events: none; }
.barra-whats svg { width: 22px; height: 22px; }
.barra-whats:hover { background: var(--framboesa-escura); color: #fff; }

/* ================================================================ telas maiores */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero__acoes { flex-direction: row; flex-wrap: wrap; }
  .galeria__grade { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .depoimentos__lista { grid-template-columns: repeat(2, 1fr); }
  .rodape__in { grid-template-columns: 1fr 1fr; }
  .hero__foto { width: min(60vw, 380px); }
  .etiqueta { width: 140px; height: 140px; }
}

@media (min-width: 960px) {
  :root { --babado: 18px; }
  .rodape { padding-bottom: 28px; }
  .barra-whats { display: none; }
  .topo nav { display: block; }
  .topo .btn--mini { display: inline-flex; }
  .topo__in { gap: 36px; }

  .hero { padding: 48px 0 96px; }
  .hero__in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .hero__foto { order: 0; width: 100%; max-width: 520px; }
  .etiqueta { left: -8%; width: 160px; height: 160px; }
  .etiqueta__valor { font-size: 2rem; }
  .etiqueta__desc { font-size: .78rem; }

  .destaques { padding: 96px 0 32px; }
  .destaques__lista { grid-template-columns: repeat(3, 1fr); gap: 40px; }

  .cardapio { padding: 72px 0 96px; }
  .painel { grid-template-columns: 5fr 7fr; padding: 20px; gap: 40px; }
  .painel__foto { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .painel__conteudo { padding: 16px 20px 16px 0; }

  .passos { padding: 96px 0; }
  .passos__lista { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .passos__lista li { padding-left: 0; padding-top: 76px; }

  .galeria { padding: 96px 0; }
  .galeria__grade { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }

  .depoimentos { padding: 96px 0; }
  .depoimentos__lista { grid-template-columns: repeat(3, 1fr); }

  .sobre { padding: 112px 0; }
  .sobre__in { grid-template-columns: 1fr 1.1fr; gap: 64px; }

  .horario { padding: 96px 0; }
  .horario__in { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }

  .final { padding: 112px 0 100px; }
  .rodape__in { grid-template-columns: 1.4fr 1fr 1fr; }
}
