/* ============================================================
   VÍVIAN MENDONÇA — effects.css — Digital Bloom
   ============================================================ */

/* ── Custom cursor ──────────────────────────────────────── */
.vv-custom-cursor,
.vv-custom-cursor * { cursor: none !important; }

.vv-cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  pointer-events: none; z-index: 99999;
  mix-blend-mode: multiply;
  transition: opacity .2s;
}

.vv-cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--accent);
  pointer-events: none; z-index: 99998;
  transition: width .25s ease, height .25s ease,
              border-color .25s ease, background .25s ease;
}

.vv-cursor-ring--hover {
  width: 54px; height: 54px;
  border-color: var(--primary);
  background: rgba(68,73,156,.06);
}

/* ── Blobs ──────────────────────────────────────────────── */
.vv-blob {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0;
  will-change: transform; filter: blur(70px);
  mix-blend-mode: multiply;
}
.vv-blob--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,168,216,.22) 0%, transparent 70%);
}
.vv-blob--2 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(68,73,156,.14) 0%, transparent 70%);
}

/* ── Sparkle trail ──────────────────────────────────────── */
.vv-sparkle {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 99997;
  transform: translate(-50%,-50%);
  animation: vv-sparkle-fly .55s ease-out forwards;
}
@keyframes vv-sparkle-fly {
  0%   { opacity:1; transform:translate(-50%,-50%) scale(1); }
  100% { opacity:0; transform:translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.2); }
}

/* ── Ripple ─────────────────────────────────────────────── */
.vv-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3);
  pointer-events: none; z-index: 0;
  animation: vv-ripple-expand .55s ease-out forwards;
}
@keyframes vv-ripple-expand {
  from { transform:scale(0); opacity:1; }
  to   { transform:scale(1); opacity:0; }
}

/* ── Scroll progress ────────────────────────────────────── */
.vv-scroll-bar {
  position: fixed; top:0; left:0; height:3px; width:0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 100000; pointer-events: none;
  box-shadow: 0 0 8px rgba(200,168,216,.6);
  transition: width .08s linear;
}

/* ── Hero canvas ────────────────────────────────────────── */
.vv-hero-canvas {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0; border-radius: inherit;
}

/* ── Section label shimmer ──────────────────────────────── */
.vv-shimmer { position: relative; overflow: hidden; vertical-align: top; }
.vv-shimmer::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: vv-shimmer-sweep 2.8s ease infinite;
}
@keyframes vv-shimmer-sweep {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Heading word-reveal ────────────────────────────────── */
.vv-heading-reveal .vv-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px) rotate(2deg);
  transition: opacity .5s cubic-bezier(.22,1,.36,1),
              transform .5s cubic-bezier(.22,1,.36,1);
}
.vv-heading-revealed .vv-word {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* ── Especialidades: card glow spotlight ────────────────── */
.vv-espec-card {
  --glow-x: 50%; --glow-y: 50%;
  position: relative; overflow: hidden;
  will-change: transform;
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}
.vv-espec-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(
    circle 130px at var(--glow-x) var(--glow-y),
    rgba(200,168,216,.2), transparent 70%
  );
  opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 0;
}
.vv-espec-card:hover { z-index: 2; }
.vv-espec-card:hover::before { opacity: 1; }

/* ── Ícone bounce ───────────────────────────────────────── */
.vv-icon-bounce {
  animation: vv-bounce .4s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes vv-bounce {
  0%,100% { transform: translateY(0) scale(1); }
  30%     { transform: translateY(-6px) scale(1.12); }
  60%     { transform: translateY(2px) scale(.95); }
}

/* ── Serviço card ───────────────────────────────────────── */
.vv-servico-card {
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.vv-servico-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .35s cubic-bezier(.22,1,.36,1);
  border-radius: 0 0 inherit inherit;
}
.vv-servico-card:hover::after { width: 100%; }
.vv-servico-card:hover { transform: translateY(-4px); }

/* ── Formação items stagger ─────────────────────────────── */
.vv-formacao-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1),
              box-shadow .2s ease;
}
.vv-formacao-item--visible {
  opacity: 1; transform: translateX(0);
}
.vv-formacao-item:hover {
  transform: translateX(6px) !important;
  box-shadow: -4px 0 0 var(--accent);
}

/* ── Timeline stagger ───────────────────────────────────── */
.vv-timeline-item {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.vv-timeline-item--visible {
  opacity: 1; transform: translateX(0);
}

/* ── Input focus glow ───────────────────────────────────── */
.form__group.vv-focused .form__input,
.form__group.vv-focused .form__textarea {
  box-shadow: 0 0 0 3px rgba(200,168,216,.35),
              0 4px 16px rgba(68,73,156,.12);
  border-color: var(--primary);
}
.form__input, .form__textarea {
  transition: box-shadow .25s ease, border-color .25s ease;
}

/* ── Aurora em seções escuras ───────────────────────────── */
.vv-aurora {
  position: relative; overflow: hidden;
}
.vv-aurora::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(200,168,216,.12), transparent),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(90,96,184,.10), transparent);
  animation: vv-aurora-shift 8s ease-in-out infinite alternate;
}
@keyframes vv-aurora-shift {
  0%   { opacity:.7; transform: scale(1) rotate(0deg); }
  100% { opacity:1;  transform: scale(1.05) rotate(2deg); }
}

/* ── Hero btn pulse ─────────────────────────────────────── */
.hero .btn-primary {
  animation: vv-hero-btn-pulse 2.6s ease-in-out infinite;
}
@keyframes vv-hero-btn-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(68,73,156,0); }
  50%     { box-shadow: 0 0 22px 6px rgba(68,73,156,.28); }
}

/* ── Fade-up / fade-in ──────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
}
.fade-in {
  opacity: 0;
  transition: opacity .7s ease;
}
.fade-up.visible { opacity:1; transform:translateY(0); }
.fade-in.visible { opacity:1; }

[data-delay="80"]  { transition-delay: .08s !important; }
[data-delay="100"] { transition-delay: .10s !important; }
[data-delay="160"] { transition-delay: .16s !important; }
[data-delay="200"] { transition-delay: .20s !important; }
[data-delay="240"] { transition-delay: .24s !important; }
[data-delay="300"] { transition-delay: .30s !important; }
[data-delay="320"] { transition-delay: .32s !important; }
[data-delay="400"] { transition-delay: .40s !important; }

/* ── Btn magnetic ───────────────────────────────────────── */
.btn, .form__submit, .wpp-float__btn {
  transition: transform .2s cubic-bezier(.23,1,.32,1),
              box-shadow .2s ease,
              background-color .2s ease,
              color .2s ease !important;
}

/* ══════════════════════════════════════════════════════════
   MODAIS DE SERVIÇOS
   ══════════════════════════════════════════════════════════ */

/* Botão "Saiba mais" no card */
.servico-card__saiba {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.25rem;
  font-family: var(--font-sans); font-size: .88rem; font-weight: 600;
  color: var(--primary);
  background: none; border: none; padding: 0;
  cursor: pointer;
  transition: gap .2s ease, color .2s ease;
}
.servico-card__saiba:hover { gap: .7rem; color: var(--primary-light); }
.servico-card__saiba svg { transition: transform .2s ease; }
.servico-card__saiba:hover svg { transform: translateX(3px); }

/* Overlay + caixa */
.vv-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.vv-modal[hidden] { display: none; }

.vv-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(30, 25, 60, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: vv-modal-fade-in .25s ease forwards;
}

.vv-modal__box {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2.25rem 2rem;
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(44,49,128,.22);
  animation: vv-modal-slide-up .3s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes vv-modal-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes vv-modal-slide-up {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* Fechar */
.vv-modal__close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-alt); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: background .2s, color .2s, transform .2s;
}
.vv-modal__close:hover { background: var(--accent-light); color: var(--primary); transform: rotate(90deg); }

/* Conteúdo */
.vv-modal__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .6rem;
}
.vv-modal__title {
  font-family: var(--font-serif); font-size: clamp(1.3rem,3vw,1.65rem);
  color: var(--primary); line-height: 1.25; margin-bottom: 1rem;
}
.vv-modal__intro {
  font-size: 1rem; color: var(--text-muted); line-height: 1.65;
  border-left: 3px solid var(--accent); padding-left: 1rem;
  margin-bottom: 1.75rem;
}
.vv-modal__section { margin-bottom: 1.25rem; }
.vv-modal__section h3 {
  font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .4rem;
}
.vv-modal__section p { font-size: .95rem; color: var(--text); line-height: 1.7; }

.vv-modal__tags {
  display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0;
}
.vv-modal__tags span {
  font-size: .76rem; font-weight: 600;
  background: var(--bg-alt); color: var(--primary);
  border-radius: 999px; padding: .3rem .85rem;
}

.vv-modal__cta {
  display: block; text-align: center;
  background: var(--primary); color: var(--white);
  border-radius: 999px; padding: .85rem 1.5rem;
  font-size: .92rem; font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-top: .5rem;
}
.vv-modal__cta:hover { background: var(--primary-light); transform: translateY(-2px); }

/* Saindo */
.vv-modal--closing .vv-modal__overlay { animation: vv-modal-fade-in .2s ease reverse forwards; }
.vv-modal--closing .vv-modal__box     { animation: vv-modal-slide-up .2s ease reverse forwards; }

@media (max-width: 480px) {
  .vv-modal__box { padding: 2rem 1.25rem 1.5rem; border-radius: 16px; }
}

/* ── Touch: desabilita cursor effects ───────────────────── */
@media (hover: none) {
  .vv-blob, .vv-cursor-dot, .vv-cursor-ring, .vv-sparkle { display: none !important; }
}
