@charset "UTF-8";
/* =========================================================
   ESSENZA — camada de motion (teste)
   Para remover: apague este arquivo, o js/motion.js
   e as duas linhas que os chamam no index.html.
   Tudo aqui só vale com a classe .motion, que o motion.js
   coloca no <html> quando a pessoa não pediu menos movimento.
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {

  /* ---------- Hero: foto revelada de baixo para cima ---------- */
  .motion .hero__media { animation: none; }
  .motion .arch--hero img {
    animation:
      archReveal 1.6s cubic-bezier(.7, 0, .2, 1) .1s both,
      breathe 14s ease-in-out 1.7s infinite alternate;
  }
  @keyframes archReveal {
    from { clip-path: inset(100% 0 0 0); transform: scale(1.18); }
    to   { clip-path: inset(0 0 0 0);    transform: scale(1); }
  }
  @keyframes breathe {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
  }

  /* Linha dourada do arco desliza para fora da foto */
  .motion .hero__ring {
    animation: ringOut 1.4s cubic-bezier(.3, .7, .2, 1) .9s both;
  }
  @keyframes ringOut {
    from { opacity: 0; transform: translate(-14px, 14px); }
    to   { opacity: 1; transform: none; }
  }
  @media (min-width: 960px) {
    @keyframes ringOut {
      from { opacity: 0; transform: translate(-20px, 20px); }
      to   { opacity: 1; transform: none; }
    }
  }

  /* ---------- Hero: título sobe palavra por palavra ---------- */
  .motion .hero__title { animation: none; }
  .motion .hero__title .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0 .06em .14em 0;
    margin: 0 -.06em -.14em 0;
  }
  .motion .hero__title .w > span {
    display: inline-block;
    animation: wordUp 1s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(.55s + var(--i) * .09s);
  }
  @keyframes wordUp {
    from { transform: translateY(105%); }
    to   { transform: none; }
  }

  /* ---------- Linhas douradas se desenham ---------- */
  .motion .gold-line {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(.6, 0, .2, 1) .2s;
  }
  .motion .gold-line--center { transform-origin: center; }
  .motion .gold-line.is-drawn { transform: scaleX(1); }

  .motion .kicker::before,
  .motion .section__head--center .kicker::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(.6, 0, .2, 1) .15s;
  }
  .motion .section__head--center .kicker::after { transform-origin: right; }
  .motion .kicker.is-drawn::before,
  .motion .section__head--center .kicker.is-drawn::after { transform: scaleX(1); }

  /* ---------- Ícones e arco do final desenhados a traço ---------- */
  .motion .draw path,
  .motion .draw circle {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .2, 1);
  }
  .motion .draw.is-drawn path,
  .motion .draw.is-drawn circle { stroke-dashoffset: 0; }
  .motion .trust__item:nth-child(2) .draw path { transition-delay: .15s; }
  .motion .trust__item:nth-child(3) .draw path { transition-delay: .3s; }
  .motion .trust__item:nth-child(4) .draw path { transition-delay: .45s; }
  .motion .cta__symbol.draw path { transition-duration: 2.4s; }

  /* ---------- Fotos com leve parallax ao rolar ---------- */
  .motion [data-parallax] img {
    transform: translate3d(0, var(--py, 0px), 0) scale(1.12);
    will-change: transform;
  }

  /* ---------- Números dos procedimentos entram de lado ---------- */
  .motion .proc__num {
    display: inline-block;
    transform: translateX(-12px);
    opacity: 0;
    transition: transform .9s cubic-bezier(.2, .8, .2, 1) .35s, opacity .9s ease .35s;
  }
  .motion .proc.is-visible .proc__num { transform: none; opacity: 1; }

  /* ---------- Botão principal: brilho suave ao passar ---------- */
  .motion .btn--dark,
  .motion .btn--rose { position: relative; overflow: hidden; }
  .motion .btn--dark::after,
  .motion .btn--rose::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .9s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
  }
  .motion .btn--dark:hover::after,
  .motion .btn--rose:hover::after { transform: translateX(120%); }

  /* ---------- WhatsApp flutuante: pulso discreto ---------- */
  .motion .wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--rose);
    animation: pulse 3.2s ease-out 2.5s infinite;
    pointer-events: none;
  }
  @keyframes pulse {
    0%   { transform: scale(1);   opacity: .9; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
  }
}
