/* Adriana Bonfim Macarons: o papel de aquarela do catálogo dela, cacau e rosa de macaron */
:root {
  --papel: #F6E9DE;
  --creme: #FBF4EA;
  --cacau: #452719;
  --cacau-2: #6C4A3A;
  --rosa: #8E3B4D;
  --casca: #E3A0A6;
  --casca-escura: #C97B85;
  --salvia: #7C8B72;
  --f-nome: "Ms Madi", cursive;
  --f-txt: "Old Standard TT", Georgia, serif;
  --ease-enter: cubic-bezier(.2, .8, .25, 1);
  --ease-mola: cubic-bezier(.3, 1.45, .55, 1);
  --motion-fast: 140ms;
  --abre: 44px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--cacau); font: 400 17px/1.55 var(--f-txt);
  background:
    radial-gradient(60% 34% at 92% 4%, #F1D2C6 0, transparent 70%),
    radial-gradient(70% 30% at 0% 38%, #F3DCCF 0, transparent 70%),
    radial-gradient(60% 26% at 100% 78%, #EFD8CB 0, transparent 70%),
    var(--papel);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--cacau); color: var(--creme); padding: 10px 14px; z-index: 30; }
.skip:focus { top: 8px; }
.marco { position: absolute; top: 160px; left: 0; width: 1px; height: 1px; }
.page { max-width: 560px; margin: 0 auto; padding: 0 20px calc(28px + env(safe-area-inset-bottom)); overflow-x: clip; }

h2 { font: 400 clamp(38px, 11vw, 46px)/1.08 var(--f-nome); margin: 0 0 10px; }
h3 { font: 700 19px/1.25 var(--f-txt); margin: 0 0 4px; }
p { margin: 0; }
.texto { color: var(--cacau-2); margin-bottom: 22px; }
section { margin-top: 64px; }

/* Cena 1 */
.hero { padding-top: calc(22px + env(safe-area-inset-top)); text-align: center; }
.hero__foto { margin: 0 auto; width: min(86%, 400px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 8px var(--creme); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }
.macaron { position: relative; width: min(94%, 400px); margin: -52px auto 0; z-index: 2; }
.casca { display: block; height: 34px; position: relative; background: linear-gradient(180deg, var(--casca), var(--casca-escura)); }
.casca--topo { border-radius: 50% 50% 8px 8px / 100% 100% 8px 8px; }
.casca--base { height: 22px; border-radius: 8px 8px 50% 50% / 8px 8px 100% 100%; background: linear-gradient(0deg, var(--casca), var(--casca-escura)); }
/* o "pé" rendado da casca do macaron */
.casca::after {
  content: ""; position: absolute; left: 2%; right: 2%; height: 7px;
  background: radial-gradient(circle at 5px 4px, var(--casca-escura) 3.4px, transparent 3.8px) 0 0 / 9px 7px repeat-x;
}
.casca--topo::after { bottom: -5px; }
.casca--base::after { top: -5px; }
.recheio { height: 86px; display: grid; place-items: center; background: var(--creme); margin: 0 5px; }
.recheio h1 { font: 400 clamp(40px, 13vw, 58px)/1 var(--f-nome); margin: 0; padding-top: 6px; white-space: nowrap; }
.hero__lead { margin: 22px auto 14px; max-width: 34ch; font-size: 19px; line-height: 1.4; }
.ancora { display: inline-flex; gap: 8px; align-items: center; min-height: 48px; padding: 0 8px; color: var(--rosa); text-underline-offset: 4px; }

/* Abertura: as duas cascas chegam fechadas, abrem e o nome é o recheio */
.js .hero:not(.pronto) .recheio { clip-path: inset(50% 0); animation: revela-seguro 0s 2.6s forwards; }
.js .hero:not(.pronto) .casca--topo { transform: translateY(var(--abre)); animation: casca-segura 0s 2.6s forwards; }
.js .hero:not(.pronto) .casca--base { transform: translateY(calc(var(--abre) * -1)); animation: casca-segura 0s 2.6s forwards; }
@keyframes revela-seguro { to { clip-path: inset(0); } }
@keyframes casca-segura { to { transform: none; } }

.hero.abertura .macaron { animation: pousa 420ms var(--ease-enter) both; }
.js .hero.abertura:not(.pronto) .casca--topo { animation: abre-topo 620ms 420ms var(--ease-mola) both; }
.js .hero.abertura:not(.pronto) .casca--base { animation: abre-base 620ms 420ms var(--ease-mola) both; }
.js .hero.abertura:not(.pronto) .recheio { animation: recheio 560ms 440ms var(--ease-enter) both; }
@keyframes pousa { from { transform: translateY(-46px) scale(1.14); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes abre-topo { from { transform: translateY(var(--abre)); } to { transform: none; } }
@keyframes abre-base { from { transform: translateY(calc(var(--abre) * -1)); } to { transform: none; } }
@keyframes recheio { from { clip-path: inset(50% 0); } to { clip-path: inset(0); } }
.hero.sem-abertura .macaron { animation: fade 240ms both; }
.js .hero.sem-abertura:not(.pronto) .casca--topo, .js .hero.sem-abertura:not(.pronto) .casca--base, .js .hero.sem-abertura:not(.pronto) .recheio { transform: none; clip-path: none; animation: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.macaron.is-aperta { animation: aperta 320ms var(--ease-mola); }
@keyframes aperta { 40% { transform: scale(1.03, .94); } }

/* Botões */
.links { display: grid; gap: 10px; margin-top: 30px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 12px 18px;
  font: 700 17px/1.2 var(--f-txt); text-decoration: none; text-align: center; color: var(--cacau);
  background: var(--creme); border: 1.5px solid var(--cacau); border-radius: 28px; cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-enter), background var(--motion-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); background: #F0E0D0; }
.btn--acao { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.btn--acao:active { background: #752E3E; }

/* Galeria: alturas alternadas, como uma mesa de doces */
.galeria { columns: 2; column-gap: 12px; }
.peca { break-inside: avoid; margin: 0 0 14px; }
.peca img { width: 100%; object-fit: cover; aspect-ratio: 1 / 1.1; border-radius: 14px; }
.peca--alta img { aspect-ratio: 3 / 4.4; }
.peca figcaption { padding: 7px 2px 0; font-size: 15px; line-height: 1.3; color: var(--cacau-2); }
.peca strong { display: block; color: var(--cacau); font-size: 16px; }

.empresa { display: grid; grid-template-columns: 38% 1fr; gap: 16px; align-items: start; background: var(--creme); margin-inline: -20px; padding: 26px 20px; }
.empresa__foto { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; border-radius: 60px 60px 12px 12px; }
.empresa h2 { font-size: clamp(32px, 9vw, 40px); }
.empresa p { font-size: 16px; }
blockquote { margin: 14px 0; padding-left: 12px; border-left: 2px solid var(--casca-escura); font-style: italic; font-size: 16px; line-height: 1.35; }
cite { display: block; margin-top: 4px; font-style: normal; font-size: 14px; color: var(--cacau-2); }
.link-acao { display: inline-flex; align-items: center; min-height: 48px; color: var(--rosa); font-weight: 700; text-underline-offset: 4px; }

.lista { list-style: none; margin: 18px 0 22px; padding: 0; }
.lista li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #DEC6B4; }
.lista li:last-child { border-bottom: 1px solid #DEC6B4; }
.lista img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; }
.lista p { font-size: 15.5px; line-height: 1.35; color: var(--cacau-2); }

.sobre { text-align: center; }
.sobre img { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 12px; box-shadow: 0 0 0 5px var(--creme); }
.sobre p { max-width: 38ch; margin: 0 auto; }

form { display: grid; gap: 6px; }
label { font-weight: 700; font-size: 15.5px; margin-top: 8px; }
select, input { width: 100%; min-height: 50px; padding: 10px 12px; font: 400 17px var(--f-txt); color: var(--cacau); background: var(--creme); border: 1.5px solid #B99A85; border-radius: 12px; }
form .btn { margin-top: 14px; }

.final { text-align: center; margin-top: 60px; }
.final p { margin-bottom: 18px; color: var(--cacau-2); }

.flutuante {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; color: #fff; background: var(--rosa); border-radius: 28px; text-decoration: none; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(69, 39, 25, .28);
  visibility: hidden; opacity: 0; transform: translate(-50%, 16px);
  transition: opacity 260ms var(--ease-enter), transform 260ms var(--ease-enter), visibility 0s 260ms;
}
.flutuante.is-visivel { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition-delay: 0s; }

.rodape { margin-top: 44px; text-align: center; font-size: 14px; color: var(--cacau-2); }
.credito { display: flex; width: fit-content; align-items: center; gap: 14px; min-height: 44px; margin: 18px auto 0; text-align: left; font-size: 13px; line-height: 1.35; text-decoration: none; color: var(--cacau); -webkit-tap-highlight-color: transparent; }
.credito-txt strong { display: block; font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.selo-b2 { --seal-ink: currentColor; --seal-accent: var(--rosa); --seal-ring: 0.4 1.4; --seal-font: var(--f-txt); flex: none; width: 72px; height: 72px; overflow: visible; transition: rotate 320ms cubic-bezier(.22, 1, .36, 1); }
.selo-borda, .selo-anel { fill: none; stroke: var(--seal-ink); }
.selo-borda { stroke-width: 1; }
.selo-anel { stroke-width: .7; stroke-dasharray: var(--seal-ring); opacity: .75; }
.selo-texto { fill: var(--seal-ink); font-family: var(--seal-font); font-size: 6.3px; font-weight: 700; letter-spacing: .8px; }
.selo-b { fill: var(--seal-ink); }
.selo-acento { fill: var(--seal-accent); }
.credito:active .selo-b2 { rotate: -10deg; }
.selo-giro { transform-box: view-box; transform-origin: 50px 50px; }
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-flutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: no-preference) {
  .selo-giro { animation: selo-gira 24s linear infinite; }
  .selo-b2 { animation: selo-flutua 4.8s ease-in-out infinite; }
  .selo-b2.is-still, .selo-b2.is-still .selo-giro, .is-page-hidden .selo-b2, .is-page-hidden .selo-giro { animation-play-state: paused; }
}

/* Reduced motion: macaron já aberto, nome com fade curto */
@media (prefers-reduced-motion: reduce) {
  .js .hero:not(.pronto) .recheio, .js .hero:not(.pronto) .casca--topo, .js .hero:not(.pronto) .casca--base { clip-path: none; transform: none; animation: none; }
  .hero .macaron { animation: fade 200ms both; }
  .flutuante { transform: translate(-50%, 0); transition: opacity 200ms, visibility 0s 200ms; }
  .btn { transition: none; }
  .credito:active .selo-b2 { rotate: none; }
}
