/* Efeitos de rolagem, sons (botão) e mascote "Baldão" — 15/10/2026 (ver efeitos.js e mascote.js) */

/* ── barra de tinta no topo ── */
.ef-barra { position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 1100; pointer-events: none; }
.ef-barra i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #e65100, #f2a43a 40%, #2e7d32); border-radius: 0 6px 6px 0; }
.ef-barra i::after { content: ''; position: absolute; right: -3px; top: 2px; width: 9px; height: 12px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: #2e7d32; }

/* ── gotas escorrendo no topo das seções ── */
.ef-sec { position: relative; overflow-x: clip; } /* o bloco que entra de lado não pode empurrar a página no celular */
.ef-gotas { position: absolute; left: 0; right: 0; top: 0; height: 34px; z-index: 2; pointer-events: none; overflow: hidden; }
.ef-gotas svg { width: 100%; height: 100%; display: block; transform-origin: 50% 0; transform: scaleY(0); transition: transform 1.1s cubic-bezier(.2, .9, .25, 1.15); }
.ef-viva .ef-gotas svg { transform: scaleY(1); }
.footer .ef-gotas { opacity: .9; }

/* ── blocos entrando ── */
.ef-rv { transition: opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1), scale .8s cubic-bezier(.2, .8, .2, 1), clip-path 1s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--ef-i, 0) * 90ms); }
.ef-sobe:not(.ef-in) { opacity: 0; translate: 0 38px; }
.ef-lado:not(.ef-in) { opacity: 0; translate: 46px 0; }
.apl.inv .ef-lado:not(.ef-in) { translate: -46px 0; }
.ef-zoom:not(.ef-in) { opacity: 0; scale: .92; }
.ef-pincel { clip-path: inset(0 0 0 0 round 22px 6px 22px 6px); }
.ef-pincel:not(.ef-in) { clip-path: inset(0 100% 0 0 round 22px 6px 22px 6px); }
.apl.inv .ef-pincel:not(.ef-in) { clip-path: inset(0 0 0 100% round 22px 6px 22px 6px); }
.ef-pincel img { transition: scale 1.6s cubic-bezier(.2, .8, .2, 1); }
.ef-pincel:not(.ef-in) img { scale: 1.12; }

/* pincelada desenhando embaixo dos títulos */
.section-header.ef-rv .section-title { position: relative; display: inline-block; isolation: isolate; }
.section-header.ef-rv .section-title::after { content: ''; position: absolute; left: -4%; right: -4%; bottom: -4px; height: 12px; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C60 3 120 12 180 6 S270 5 297 8' stroke='%23e65100' stroke-width='9' stroke-linecap='round' fill='none' opacity='.85'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.65, 0, .35, 1) .25s; }
.section-header.ef-in .section-title::after { transform: scaleX(1); }
.video-sec .section-header.ef-rv .section-title::after, .atacado-sec .section-title::after { filter: brightness(1.3); }

/* brilho que segue o mouse nos cards inclinados */
.prod-card.ef-tilt, .apl-img.ef-tilt { transition: transform .08s linear, box-shadow .25s, border-color .25s; }
.prod-card.ef-tilt { background-image: radial-gradient(circle at var(--ef-bx) var(--ef-by), rgba(230, 81, 0, .07), transparent 55%); }

/* ── respingo no clique ── */
.ef-resp { position: fixed; width: 90px; height: 90px; margin: -45px 0 0 -45px; pointer-events: none; z-index: 2000; animation: efResp .85s cubic-bezier(.2, .9, .3, 1) forwards; }
.ef-resp svg { width: 100%; height: 100%; display: block; }
@keyframes efResp { 0% { transform: scale(0) rotate(0); opacity: .95; } 35% { transform: scale(var(--ef-s)) rotate(20deg); opacity: .9; } 100% { transform: scale(calc(var(--ef-s) * 1.15)) rotate(28deg); opacity: 0; } }

/* ── botão do som ── */
.ef-som { position: fixed; left: 16px; bottom: 18px; z-index: 998; width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .08); background: rgba(255, 255, 255, .92); box-shadow: 0 4px 16px rgba(0, 0, 0, .15); font-size: 1.15rem; cursor: pointer; backdrop-filter: blur(6px); transition: transform .2s; }
.ef-som:hover { transform: scale(1.1) rotate(-8deg); }
.ef-som:focus-visible, .bd-botao:focus-visible, .bd-op:focus-visible, .bd-fechar:focus-visible { outline: 3px solid #f2a43a; outline-offset: 3px; }

/* ── mascote Baldão ── */
/* 16/10/2026: mascote em imagem (mascote-balde.png) — pulinho ao abrir/passar o mouse e balanço ao chamar */
.bd-img { animation: bdRespira 2.6s ease-in-out infinite; }
.bd.flex .bd-img { animation: bdPulo .7s cubic-bezier(.3, 1.6, .5, 1); }
.bd.acenando .bd-img, .bd-botao:hover .bd-img { animation: bdBalanca .6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes bdPulo { 0% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(4px) scale(1.08, .9); } 60% { transform: translateY(-18px) scale(.96, 1.06); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes bdBalanca { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.bd { position: fixed; right: 18px; bottom: 14px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.bd > * { pointer-events: auto; }
.bd-botao { position: relative; width: 136px; background: none; border: 0; padding: 0; cursor: pointer; translate: 0 160%; transition: translate .7s cubic-bezier(.3, 1.6, .5, 1); -webkit-tap-highlight-color: transparent; }
.bd.entrou .bd-botao { translate: 0 0; }
.bd-svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); animation: bdRespira 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.bd-botao:hover .bd-svg { animation-duration: 1.2s; }
@keyframes bdRespira { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-5px) scale(1.02, .985); } }
.bd-olhos { transform-box: fill-box; transform-origin: center; animation: bdPisca 4.2s infinite; }
@keyframes bdPisca { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.bd-biceps { transform-box: fill-box; transform-origin: 0% 65%; }
.bd-suor { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }
.bd.flex .bd-suor { animation: bdSuor .9s ease-in; }
@keyframes bdSuor { 0% { opacity: 0; transform: translateY(-4px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.bd.flex .bd-biceps, .bd.flex .bd-braco-e .bd-biceps { animation: bdFlex .9s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bdFlex { 0% { transform: scale(1); } 30% { transform: scale(1.22, 1.28); } 55% { transform: scale(1.1); } 75% { transform: scale(1.2, 1.25); } 100% { transform: scale(1); } }
.bd.flex .bd-braco-d { animation: bdBracoD .9s ease; transform-box: fill-box; transform-origin: 0% 60%; }
@keyframes bdBracoD { 30% { transform: rotate(-6deg); } 70% { transform: rotate(-3deg); } }
.bd-aceno { transform-box: fill-box; transform-origin: 45% 100%; }
.bd.acenando .bd-aceno, .bd-botao:hover .bd-aceno { animation: bdAceno .5s ease-in-out infinite alternate; }
@keyframes bdAceno { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
.bd-rot { position: absolute; left: 50%; bottom: -12px; translate: -50% 0; white-space: nowrap; background: #e65100; color: #fff; font: 800 .72rem/1 'Inter', sans-serif; letter-spacing: .3px; padding: 6px 10px; border-radius: 20px; box-shadow: 0 3px 10px rgba(230, 81, 0, .4); text-transform: uppercase; }

.bd-balao { position: relative; margin: 0 20px 6px 0; background: #fff; color: #1b5e20; font: 800 .95rem/1.2 'Inter', sans-serif; padding: 10px 14px; border-radius: 16px 16px 4px 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); opacity: 0; translate: 0 10px; scale: .8; transform-origin: 100% 100%; transition: opacity .3s, translate .4s cubic-bezier(.3, 1.6, .5, 1), scale .4s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.bd-balao.on { opacity: 1; translate: 0 0; scale: 1; }

.bd-painel { width: min(320px, calc(100vw - 32px)); margin-bottom: 10px; background: #fff; border-radius: 20px; padding: 18px 16px 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); border-top: 6px solid #e65100; position: relative; transform-origin: 90% 100%; animation: bdAbre .45s cubic-bezier(.3, 1.5, .5, 1); }
.bd-painel[hidden] { display: none; }
@keyframes bdAbre { from { opacity: 0; transform: translateY(16px) scale(.85); } to { opacity: 1; transform: none; } }
.bd-titulo { font: 900 1.2rem/1.2 'Archivo Black', 'Inter', sans-serif; color: #1b5e20; margin: 0 28px 2px 0; }
.bd-sub { font-size: .8rem; color: #777; margin-bottom: 10px; }
.bd-fechar { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #f1f1f1; font-size: 1.2rem; line-height: 1; cursor: pointer; color: #555; }
.bd-op { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: #222; transition: background .2s, translate .2s; animation: bdOp .45s cubic-bezier(.3, 1.4, .5, 1) backwards; }
.bd-op:nth-of-type(2) { animation-delay: .05s; } .bd-op:nth-of-type(3) { animation-delay: .1s; } .bd-op:nth-of-type(4) { animation-delay: .15s; } .bd-op:nth-of-type(5) { animation-delay: .2s; }
@keyframes bdOp { from { opacity: 0; translate: 20px 0; } }
.bd-op:hover { background: #fff3e6; translate: 4px 0; }
.bd-op b { display: block; font-size: .95rem; }
.bd-op small { display: block; font-size: .76rem; color: #777; }
.bd-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: #f4f4f4; }
.bd-op-zap .bd-ic { background: #25d366; } .bd-op-tel .bd-ic { background: #e3f2fd; } .bd-op-mapa .bd-ic { background: #fdecea; } .bd-op-insta .bd-ic { background: linear-gradient(135deg, #feda75, #d62976 60%, #4f5bd5); } .bd-op-orc .bd-ic { background: #fff3e0; }
.bd.aberto .bd-svg { animation-duration: 1.4s; }

@media (max-width: 600px) {
  .bd { right: 8px; bottom: 18px; }
  .bd-botao { width: 104px; }
  .bd-rot { font-size: .62rem; padding: 5px 8px; }
  .bd-balao { font-size: .85rem; margin-right: 10px; }
  .ef-som { left: 10px; bottom: 12px; width: 38px; height: 38px; font-size: 1rem; }
  .ef-gotas { height: 22px; }
}
