/* Poc Toc Festas — efeitos especiais (só aparecem com js/efeitos.js ativo
   e quando a pessoa não pediu "menos movimento"). */

.fx-canvas { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.fx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 130; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--rosa), var(--dourado), #FFD21F, var(--rosa));
  background-size: 200% 100%; animation: fxSlide 3s linear infinite;
  box-shadow: 0 0 12px rgba(18, 179, 199, .8);
}
@keyframes fxSlide { to { background-position: -200% 0; } }

/* Balões pela página inteira (atrás do conteúdo) */
.fx-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fx-balloon {
  position: absolute; bottom: -140px; width: calc(46px * var(--s, 1)); height: calc(58px * var(--s, 1));
  border-radius: 50% 50% 47% 47%; opacity: .22; animation: fxRise linear infinite;
  box-shadow: inset -6px -8px 0 rgba(0,0,0,.08), inset 6px 6px 0 rgba(255,255,255,.35);
}
.fx-balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 50px; background: rgba(42, 22, 64,.2); }
@keyframes fxRise {
  0% { transform: translate(0, 0) rotate(-5deg); }
  25% { transform: translate(22px, -30vh) rotate(5deg); }
  50% { transform: translate(-14px, -60vh) rotate(-4deg); }
  75% { transform: translate(18px, -90vh) rotate(4deg); }
  100% { transform: translate(0, -125vh) rotate(-3deg); }
}
main, .site-footer { position: relative; z-index: 1; }
.fx .section:not(.gallery):not(.packages):not(.insta):not(.faq) { background-color: transparent; }

/* Título: letras que entram dançando e depois ficam pulando de leve */
.fx-title .fx-word { display: inline-block; white-space: nowrap; }
.fx-title .fx-letter {
  display: inline-block; transform-origin: 50% 100%;
  animation: fxLetterIn .7s cubic-bezier(.2, 1.6, .4, 1) both, fxWave 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 45ms), calc(1.4s + var(--i) * 90ms);
}
@keyframes fxLetterIn { from { opacity: 0; transform: translateY(40px) rotate(-18deg) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes fxWave { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-8px) rotate(-4deg); } 90% { transform: translateY(2px) rotate(2deg); } }
.fx-title .highlight .fx-letter {
  background: linear-gradient(100deg, var(--rosa) 20%, #FFD84D 45%, #fff6d8 50%, #FFD84D 55%, var(--rosa) 80%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fxLetterIn .7s cubic-bezier(.2, 1.6, .4, 1) both, fxWave 3.2s ease-in-out infinite, fxShine 4s linear infinite;
  animation-delay: calc(var(--i) * 45ms), calc(1.4s + var(--i) * 90ms), 0s;
}
@keyframes fxShine { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.fx .highlight::before { animation: fxBand 2.8s ease-in-out infinite; }
@keyframes fxBand { 0%, 100% { transform: rotate(-2deg) scaleX(1); } 50% { transform: rotate(-3.5deg) scaleX(1.04); } }

/* Polaroids da primeira dobra: seguem o mouse e reagem à rolagem */
.fx .hero-photos .polaroid { translate: calc(var(--mx, 0) * var(--d) * 1px) calc(var(--my, 0) * var(--d) * 1px + var(--scroll, 0px) * var(--p)); transition: translate .25s ease-out; }
.fx .hero-photos .polaroid:nth-child(1) { --d: -34; --p: -0.12; }
.fx .hero-photos .polaroid:nth-child(2) { --d: 46; --p: -0.28; }
.fx .hero-photos .polaroid:nth-child(3) { --d: -58; --p: -0.4; }
.fx .hero-photos .polaroid:hover { z-index: 6; scale: 1.06; transition: translate .25s ease-out, scale .3s cubic-bezier(.2, 1.6, .4, 1); }

/* Inclinação 3D com reflexo de luz */
.fx .theme-card, .fx .service-card, .fx .package-cta, .fx .step, .fx .contact-card, .fx .how-photo .polaroid, .fx .clothesline-list .polaroid {
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.fx .fx-tilt { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0) scale(1.03); position: relative; box-shadow: 0 24px 40px rgba(42, 22, 64, .28); z-index: 2; }
.fx .fx-tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), rgba(255,255,255,0) 45%);
  mix-blend-mode: soft-light;
}
.fx .theme-card .photo img, .fx .service-card .photo img { transition: transform .5s ease; }
.fx .theme-card:hover .photo img, .fx .service-card:hover .photo img { transform: scale(1.08); }

/* Cartão escolhido brilha */
.fx .theme-card.fx-glow { animation: fxGlow 1s ease-out; }
@keyframes fxGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 216, 77, .9), 0 10px 24px rgba(0,0,0,.18); }
  100% { box-shadow: 0 0 0 26px rgba(255, 216, 77, 0), 0 10px 24px rgba(0,0,0,.18); }
}
.fx .heart-btn.fx-pop svg { animation: fxPop .55s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes fxPop { 0% { transform: scale(.4); } 60% { transform: scale(1.6) rotate(-12deg); } 100% { transform: scale(1.12); } }
.fx .heart-btn[aria-pressed="true"] { background: linear-gradient(120deg, var(--rosa), #FF5FA8, var(--rosa)); background-size: 200% 100%; animation: fxSlide 2.5s linear infinite; }

/* Botões: brilho que atravessa, ondinha e efeito magnético */
.fx .btn, .fx .heart-btn, .fx .filter { position: relative; overflow: hidden; isolation: isolate; }
.fx .btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
  transition: left .6s ease;
}
.fx .btn:hover::before { left: 130%; }
.fx .btn-primary.btn-lg { animation: fxPulse 2.6s ease-in-out infinite; }
@keyframes fxPulse { 0%, 100% { box-shadow: 0 4px 0 var(--btn-shadow), 0 0 0 0 rgba(230, 34, 127, .45); } 50% { box-shadow: 0 4px 0 var(--btn-shadow), 0 0 0 12px rgba(230, 34, 127, 0); } }
.fx .btn-lg, .fx .float-btn { translate: var(--tx, 0px) var(--ty, 0px); transition: transform .18s, box-shadow .18s, translate .2s ease-out, background-color .18s; }
.fx-ripple {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: rgba(255,255,255,.6); animation: fxRipple .65s ease-out forwards;
}
.btn-secondary .fx-ripple, .heart-btn:not([aria-pressed="true"]) .fx-ripple, .btn-light .fx-ripple { background: rgba(230, 34, 127, .3); }
@keyframes fxRipple { to { transform: scale(28); opacity: 0; } }

/* Atalhos flutuantes pulando */
.fx .float-wa { animation: fxBounce 3s ease-in-out infinite; }
.fx .float-ig { animation: fxBounce 3s ease-in-out infinite -1.5s; }
@keyframes fxBounce { 0%, 80%, 100% { transform: none; } 86% { transform: translateY(-10px) rotate(-8deg); } 92% { transform: translateY(0) rotate(6deg); } }

/* Troca de filtro: cartões giram */
.fx .theme-grid > li.fx-flip, .fx .theme-grid > li.enter { animation: fxFlip .6s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes fxFlip { from { opacity: 0; transform: perspective(700px) rotateY(-80deg) translateY(20px); } to { opacity: 1; transform: none; } }

/* Entrada dos blocos com mais drama */
.fx.js .reveal { transform: translateY(22px) scale(.96) rotate(-1deg); filter: blur(4px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, 1.3, .4, 1), filter .6s ease; transition-delay: var(--delay, 0ms); }
.fx.js .reveal.is-visible { transform: none; filter: none; }

/* Leque do Instagram gira devagar */
.fx .fan .polaroid:nth-child(2) { animation: fxSway 6s ease-in-out infinite; }
@keyframes fxSway { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }

/* Selo e passos com brilho */
.fx .step-icon { animation: fxSpinGlow 5s ease-in-out infinite; }
.fx .step:nth-child(2) .step-icon { animation-delay: -1.6s; }
.fx .step:nth-child(3) .step-icon { animation-delay: -3.2s; }
@keyframes fxSpinGlow { 0%, 85%, 100% { transform: none; box-shadow: none; } 92% { transform: rotate(-12deg) scale(1.12); box-shadow: 0 0 0 8px rgba(18, 179, 199, .35); } }

/* Título do contato brilhando */
.fx .contact h2 { background: linear-gradient(100deg, #fff 30%, #FFD84D 48%, #fff 66%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fxShine 5s linear infinite; }

/* Botão para ligar/desligar os efeitos */
.fx-toggle { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(14px + var(--safe-bottom, 0px) + var(--bar-space, 0px)); z-index: 90; transition: bottom .4s ease; display: inline-flex; align-items: center; gap: .35em; padding: .5em .9em; border: 2px solid #12B3C7; border-radius: 999px; background: #FFFBF3; color: #4A1F8C; font: 700 .85rem/1 Nunito, system-ui, sans-serif; box-shadow: 0 6px 18px rgba(42, 22, 64, .18); cursor: pointer; }
.fx-toggle:hover { background: #FFE6F2; }
.fx-toggle:focus-visible { outline: 3px solid #E6227F; outline-offset: 3px; }
.fx-toggle[aria-pressed="false"] { opacity: .85; }