/* Maria Bunita — tokens da marca (rosé, chocolate, folha) */
:root {
  --bg: #F6E4DC;
  --surface: #EFD6CB;
  --field: #E9C4B5;
  --ink: #4A231C;
  --muted: #6B3D33;
  --leaf: #2C4528;
  --on-leaf: #F6E4DC;
  --accent: #4A231C;
  --on-accent: #F6E4DC;
  --mark: #F0CDBF;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-sub: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem);

  --m: clamp(16px, 2.2vw, 32px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.035em; line-height: 1.0; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Botões: retângulo, uma cor */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; background: var(--accent); color: var(--on-accent);
  font-weight: 500; text-decoration: none; border: 0; border-radius: 0;
  transition: transform .18s var(--ease-out), background-color .18s;
}
.btn:hover { background: #331712; }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: var(--step-small); }
.btn--block { display: flex; width: 100%; }
.text-link { font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .18s; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link--light { color: var(--on-leaf); }

/* Barra */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--m); background: var(--bg);
}
.bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: -0.01em; }
.bar__brand img { width: 40px; height: 40px; border-radius: 50%; }
.bar__nav { display: flex; gap: 24px; margin-left: auto; font-size: var(--step-small); }
.bar__nav a { text-decoration: none; padding: 6px 0; position: relative; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.bar__nav a:hover::after { transform: scaleX(1); }

/* Split: coluna + espelho */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 0 12px; }
.col { min-width: 0; }
.stage { position: sticky; top: 64px; height: calc(100svh - 76px); }
.stage__frame { position: relative; height: calc(100% - 32px); overflow: hidden; background: var(--leaf); }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease, transform 8s linear; transform: scale(1.04); }
.stage__img.is-on { opacity: 1; transform: scale(1); }
.stage__cap { margin: 8px 0 0; font-size: var(--step-small); color: var(--muted); }

/* Hero */
.hero { min-height: calc(100svh - 76px); display: flex; }
.hero__photo { display: none; }
.hero__card {
  flex: 1; background: var(--surface); padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.hero__logo { width: clamp(180px, 18vw, 280px); height: auto; border-radius: 50%; margin-bottom: clamp(24px, 3vw, 40px); }
.hero h1 { font-size: var(--step-display); max-width: 12ch; }
.hero__lead { max-width: 36ch; margin: 24px 0 32px; font-size: var(--step-body); }
.hero__proof { margin: 20px 0 0; font-size: var(--step-small); }
.hero__proof strong { font-weight: 500; }
.hero__links { display: flex; gap: 24px; margin-top: 40px; font-size: var(--step-small); }

/* Intro: coluna estreita */
.intro { padding: clamp(96px, 12vw, 180px) 0 clamp(96px, 10vw, 160px) 15%; max-width: calc(15% + 360px); }
.intro p { font-size: var(--step-body); color: var(--muted); }
.intro .intro__first { color: var(--ink); font-weight: 500; font-size: var(--step-lead); line-height: 1.3; }
.inline-photo, .inline-video, .momento__plate { display: none; }

/* Monte seu momento */
.momento { background: var(--field); padding: clamp(56px, 6vw, 96px) clamp(24px, 4vw, 64px); }
.momento h2 { font-size: var(--step-head); }
.momento__help { max-width: 40ch; margin: 20px 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 400 var(--step-small)/1 var(--font); color: var(--ink); background: var(--bg);
  border: 0; border-radius: 999px; padding: 12px 18px; min-height: 44px; cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s var(--ease-out);
}
.chip:hover { background: #fff3ee; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.momento__now { margin-top: 40px; min-height: 120px; }
.momento__now h3 { font-size: var(--step-sub); font-weight: 400; }
.momento__now p { margin-top: 14px; max-width: 38ch; }
.momento__list { font-size: var(--step-small); color: var(--muted); margin: 8px 0 24px; min-height: 2.6em; }
.momento__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cell {
  display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 0 16px;
  font: 500 var(--step-body)/1.2 var(--font); text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform .15s var(--ease-out), background-color .2s;
}
.cell:active { transform: scale(.98); }
.cell--ink { background: var(--ink); color: var(--bg); }
.cell--ink:hover { background: #331712; }
.cell--soft { background: var(--surface); color: var(--ink); }
.cell--soft:hover { background: var(--bg); }

/* Serviços: linhas de duas pontas */
.servicos { padding: clamp(120px, 12vw, 200px) 0 clamp(96px, 10vw, 160px) 15%; max-width: calc(15% + 560px); }
.servicos h2 { font-size: var(--step-sub); font-weight: 400; margin-bottom: 40px; }
.group + .group { margin-top: 40px; }
.group h3 { font: 400 var(--step-body)/1.4 var(--font); letter-spacing: 0; color: var(--muted); margin-bottom: 6px; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 40px; padding: 6px 0; transition: transform .2s var(--ease-out); }
.group li:hover { transform: translateX(6px); }
.group li span { font-size: var(--step-body); }
.group li a { font-size: var(--step-small); color: var(--muted); text-underline-offset: 3px; white-space: nowrap; }
.group li a:hover { color: var(--ink); }
.note { margin-top: 40px; color: var(--muted); font-size: var(--step-small); max-width: 46ch; }

/* Carta da cliente */
.carta { padding: clamp(80px, 9vw, 140px) clamp(24px, 4vw, 64px) clamp(120px, 12vw, 180px) 15%; max-width: calc(15% + 520px); }
.carta p { font-size: var(--step-body); }
.carta .carta__open { font-size: var(--step-sub); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 24px; }
.carta__sign { margin-top: 40px; font-size: 1rem; font-weight: 500; }
.carta__sign span { font-weight: 400; color: var(--muted); }

/* Galeria: fileira arrastável, largura total */
.galeria { padding: clamp(96px, 10vw, 160px) 0 clamp(96px, 10vw, 160px); }
.galeria__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--m) 0 6vw; margin-bottom: 32px; }
.galeria__head h2 { font-size: var(--step-head); }
.galeria__head p { margin: 0; color: var(--muted); font-size: var(--step-small); }
.row {
  display: flex; gap: 12px; height: 68svh; min-height: 420px; overflow-x: auto; padding: 0 12px 0 6vw;
  scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab;
}
.row::-webkit-scrollbar { display: none; }
.row.is-drag { cursor: grabbing; scroll-snap-type: none; }
.m { flex: none; height: 100%; scroll-snap-align: start; }
.m img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform .6s var(--ease-out); }
.m figure, .m.m--tall, .m.m--wide { overflow: hidden; }
.m:hover > img, .m figure:hover img { transform: scale(1.03); }
.m--tall { aspect-ratio: 3 / 4; }
.m--wide { aspect-ratio: 16 / 10; }
.m--pair { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 2 / 3; }
.m--pair figure { overflow: hidden; min-height: 0; }

/* Google: campo verde da parede */
.google {
  background: var(--leaf); color: var(--on-leaf); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px);
  padding: clamp(96px, 10vw, 160px) var(--m) clamp(96px, 10vw, 160px) 6vw;
}
.google h2 { font-size: var(--step-display); }
.google__score p { margin: 24px 0; max-width: 28ch; }
.google__quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; align-content: start; }
.google blockquote { margin: 0; }
.google blockquote p { font-size: var(--step-lead); line-height: 1.3; font-weight: 300; margin-bottom: 14px; }
.google blockquote footer { font-size: var(--step-small); }

/* Sobre: folha de carta */
.sobre { padding: clamp(120px, 12vw, 200px) var(--m); background: var(--field); }
.sobre__sheet { max-width: 640px; margin: 0 auto; background: var(--bg); padding: clamp(32px, 5vw, 64px); }
.sobre__face { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 28px; }
.sobre__sheet p { font-size: var(--step-body); }
.sobre__sheet p:first-of-type { font-size: var(--step-lead); line-height: 1.3; }
mark { background: var(--mark); color: inherit; padding: 0 .15em; }
.sobre__sign { margin: 32px 0 0; font-size: var(--step-lead); font-style: italic; }
.sobre__sign span { display: block; font-style: normal; font-size: var(--step-small); color: var(--muted); margin-top: 4px; }

/* Visita: foto do salão + cartão e mapa (o acervo é vertical, então a foto ocupa meia tela) */
.visita { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--field); }
.visita__photo { width: 100%; height: 100%; max-height: 100svh; min-height: 100svh; object-fit: cover; object-position: 50% 35%; position: sticky; top: 0; }
.visita__side { display: flex; flex-direction: column; gap: 12px; padding: 60px var(--m) 60px clamp(24px, 5vw, 80px); }
.visita__card { width: min(440px, 100%); background: var(--bg); padding: 32px; }
.visita__card h2 { font-size: var(--step-sub); margin-bottom: 20px; }
.visita__card address { font-style: normal; margin-bottom: 20px; }
.visita__rows { margin: 0 0 20px; }
.visita__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.visita__rows dt { color: var(--muted); }
.visita__rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.visita__card .text-link { display: inline-block; margin-bottom: 24px; }
.visita__map { width: 100%; flex: 1; min-height: 320px; border: 0; display: block; filter: saturate(.85); }

/* Rodapé */
.rodape { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--surface); }
.rodape__photo { overflow: hidden; }
.rodape__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.rodape__side { display: flex; flex-direction: column; padding: 80px var(--m) 32px 8%; }
.rodape__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; }
.rodape__brand img { width: 56px; height: 56px; border-radius: 50%; }
.rodape__menu { display: flex; flex-direction: column; gap: 18px; margin: 56px 0 64px; }
.rodape__menu a { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; text-decoration: none; transition: transform .25s var(--ease-out), color .25s; }
.rodape__menu:hover a { color: var(--muted); }
.rodape__menu a:hover { color: var(--ink); transform: translateX(12px); }
.rodape__blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: var(--step-small); }
.rodape__legal { margin-top: auto; padding-top: 48px; font-size: var(--step-small); color: var(--muted); }

.mobile-cta { display: none; }

/* Entradas (só com JS; sem JS tudo fica visível) */
.js .reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in > * { opacity: 1; transform: none; }
.js .reveal.in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal.in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal.in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal.in > *:nth-child(5) { transition-delay: .32s; }
.js .reveal.in > *:nth-child(n+6) { transition-delay: .4s; }
.js .visita__card.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .visita__card.reveal > * { opacity: 1; transform: none; }
.js .visita__card.reveal.in { opacity: 1; transform: none; }
.hero__card > * { animation: rise .9s var(--ease-out) both; }
.hero__card > *:nth-child(2) { animation-delay: .08s; }
.hero__card > *:nth-child(3) { animation-delay: .16s; }
.hero__card > *:nth-child(4) { animation-delay: .24s; }
.hero__card > *:nth-child(n+5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 1080px) {
  .bar__nav { display: none; }
  .bar .btn { margin-left: auto; }
  .intro, .servicos, .carta { padding-left: clamp(24px, 6vw, 64px); padding-right: clamp(24px, 4vw, 48px); max-width: none; }
  .google { grid-template-columns: 1fr; }
}

/* Celular: o espelho vira foto no topo de cada momento */
@media (max-width: 900px) {
  .split { display: block; padding: 0; }
  .stage { display: none; }
  .hero { flex-direction: column; min-height: 0; }
  .hero__photo { display: block; margin: 0 12px; height: 56svh; overflow: hidden; }
  .hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
  .hero__card { margin: -24px 12px 0; position: relative; padding: 32px 20px 36px; }
  .hero__logo { width: 52%; max-width: 200px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .hero__lead { margin: 18px 0 24px; }
  .hero__links { margin-top: 28px; flex-wrap: wrap; justify-content: center; }
  .inline-photo { display: block; width: 78%; margin-bottom: 32px; }
  .inline-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }
  .intro { padding: 72px 20px 96px; }
  .intro p { max-width: 78%; }
  .intro .intro__first { max-width: none; }
  .momento { padding: 64px 16px; }
  .momento__plate { display: block; margin-bottom: 32px; aspect-ratio: 1; overflow: hidden; }
  .momento__plate img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }
  .momento__actions { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .servicos { padding: 96px 20px 72px; }
  .group li { min-height: 44px; }
  .carta { padding: 72px 20px 96px; }
  .inline-video { display: block; width: 72%; margin-bottom: 32px; }
  .inline-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--leaf); }
  .galeria__head { padding: 0 20px; flex-direction: column; gap: 6px; }
  .row { height: 62svh; min-height: 360px; gap: 8px; padding: 0 20px; }
  .m--tall { aspect-ratio: auto; width: 72vw; }
  .m--pair { aspect-ratio: auto; width: 64vw; gap: 8px; }
  .m--wide { aspect-ratio: auto; width: 88vw; height: 70%; align-self: center; }
  .google { padding: 80px 20px; gap: 48px; }
  .google__quotes { grid-template-columns: 1fr; gap: 32px; }
  .sobre { padding: 72px 0; }
  .sobre__sheet { padding: 40px 24px; }
  .visita { display: block; min-height: 0; }
  .visita__photo { position: static; height: 70svh; min-height: 0; }
  .visita__side { padding: 0 16px 64px; }
  .visita__card { position: relative; width: auto; margin-top: -80px; }
  .visita__map { min-height: 300px; flex: none; height: 300px; }
  .rodape { grid-template-columns: 1fr; min-height: 0; padding-bottom: 72px; }
  .rodape__photo { height: 50svh; }
  .rodape__side { padding: 40px 20px 24px; }
  .rodape__menu { margin: 32px 0 40px; gap: 14px; }
  .rodape__menu a { font-size: 8vw; }
  .rodape__blocks { grid-template-columns: 1fr 1fr; }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; min-height: 56px;
    align-items: center; justify-content: center; background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform .35s var(--ease-out);
  }
  .js .mobile-cta { transform: translateY(110%); }
  .mobile-cta.is-on { transform: none; }
  .mobile-cta.is-on.is-away { transform: translateY(110%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal > *, .js .visita__card.reveal { opacity: 1; transform: none; }
  .stage__img { transform: none !important; }
}
