/* ══════════════════════════════════════════════════════════════
   LELA GELADINHOS — ESTILOS CUSTOMIZADOS & ANIMAÇÕES
   ══════════════════════════════════════════════════════════════ */

:root {
  --primary: #773EA9;
  --primary-rgb: 119, 62, 169;
  --mint: #54EFC3;
  --mint-soft: #E6FCF6;
  --rose: #FF6B81;
  --cream: #FDFBF7;
  --sand: #ECE8E1;
  --foreground: #3D2E22;
  --background: #FCFBF8;
  --font-display: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

img, video, iframe {
  max-width: 100%;
}

/* ─── Floating & Keyframe Animations ─── */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}
@keyframes float-slower {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.08); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes float-card-1 {
  0%, 100% { transform: translateY(0px) rotate(-8deg); }
  50% { transform: translateY(-18px) rotate(-5deg); }
}
@keyframes float-card-2 {
  0%, 100% { transform: translateY(0px) rotate(6deg); }
  50% { transform: translateY(-22px) rotate(9deg); }
}
@keyframes float-card-3 {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes draw-arrow {
  0% { stroke-dashoffset: 200; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes hero-text-in {
  0% { opacity: 0; transform: translateY(40px) skewY(3deg); }
  100% { opacity: 1; transform: translateY(0) skewY(0deg); }
}

.animate-float-slow   { animation: float-slow 22s ease-in-out infinite; }
.animate-float-slower { animation: float-slower 30s ease-in-out infinite; }
.animate-wiggle       { animation: wiggle 6s ease-in-out infinite; }
.animate-float-y      { animation: float-y 5s ease-in-out infinite; }
.animate-float-card-1 { animation: float-card-1 7s ease-in-out infinite; }
.animate-float-card-2 { animation: float-card-2 9s ease-in-out infinite 1s; }
.animate-float-card-3 { animation: float-card-3 6s ease-in-out infinite 0.5s; }
.animate-spin-slow    { animation: spin-slow 14s linear infinite; }
.animate-hero-text    { animation: hero-text-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-hero-text-2  { animation: hero-text-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.animate-hero-text-3  { animation: hero-text-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }

/* ─── Hero Grid Background ─── */
.hero-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ─── Arrow SVG Stroke Animation ─── */
.arrow-draw {
  stroke-dasharray: 200;
  animation: draw-arrow 2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL (Fade Up)
   ══════════════════════════════════════════════════════════════ */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(36px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  will-change: opacity, transform;
}

.reveal.visible {
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-delay-1.visible { animation-delay: 0.10s; }
.reveal-delay-2.visible { animation-delay: 0.20s; }
.reveal-delay-3.visible { animation-delay: 0.30s; }
.reveal-delay-4.visible { animation-delay: 0.40s; }
.reveal-delay-5.visible { animation-delay: 0.50s; }
.reveal-delay-6.visible { animation-delay: 0.60s; }

/* ─── Acessibilidade & Responsividade ─── */
@media (max-width: 480px) {
  body { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .animate-float-slow, .animate-float-slower, .animate-wiggle, .animate-float-y,
  .animate-float-card-1, .animate-float-card-2, .animate-float-card-3,
  .animate-spin-slow, .animate-hero-text, .animate-hero-text-2, .animate-hero-text-3 {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .reveal.visible {
    animation: none;
  }
  html { scroll-behavior: auto; }
}
