/* ═══════════════════════════════════════════════════
   animations.css — GSAP initial states
   Instituto Mariana Menegardo

   Elementos animados por GSAP começam invisíveis.
   Sem JS ou com reduced-motion, ficam visíveis via fallback.
   ═══════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════
   Texturas de Fundo — "Mapa Estético"
   Evocam precisão e cuidado dos procedimentos estéticos
   ════════════════════════════════════════════════════ */

/* ─── Orbs de profundidade (fixos, toda a página) ─── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bg-orbs::before {
  content: '';
  position: absolute;
  top: -18%;
  right: -12%;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(circle at center,
    rgba(245, 176, 168, 0.14) 0%,
    rgba(245, 176, 168, 0.04) 45%,
    transparent 70%);
  border-radius: 50%;
}

.bg-orbs::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: -14%;
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(circle at center,
    rgba(201, 104, 104, 0.07) 0%,
    rgba(201, 104, 104, 0.02) 45%,
    transparent 70%);
  border-radius: 50%;
}

/* ─── Micro-dot: seções com fundo rosê (evoca precisão) ─── */
.section--alt {
  background-image:
    radial-gradient(rgba(196, 120, 120, 0.065) 1px, transparent 0);
  background-size: 22px 22px;
}

/* ─── Hero — decorativo SVG de mapeamento estético ─── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__deco {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: min(600px, 52vw);
  height: min(600px, 52vw);
  pointer-events: none;
  z-index: 0;
  color: var(--color-secondary);
}

.hero__deco svg {
  width: 100%;
  height: 100%;
}

/* Garante conteúdo hero acima da decoração */
.hero__grid {
  position: relative;
  z-index: 1;
}

/* ─── Textura diagonal sutil — seções brancas ─── */
#procedures,
#how-it-works,
#faq {
  background-image: repeating-linear-gradient(
    -60deg,
    rgba(196, 120, 120, 0.018) 0px,
    rgba(196, 120, 120, 0.018) 1px,
    transparent 1px,
    transparent 32px
  );
}

/* ════════════════════════════════════════════════════
   Splash Screen
   ════════════════════════════════════════════════════ */

.splash {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.splash svg {
  width: min(360px, 90vw);
  height: auto;
}

/* Reduced motion: oculta splash direto */
@media (prefers-reduced-motion: reduce) {
  .splash {
    display: none;
  }
}

/* ─── Reduced motion: mantém texturas, remove animações ─── */
@media (prefers-reduced-motion: reduce) {
  .bg-orbs::before,
  .bg-orbs::after {
    animation: none;
  }
}
