/* =========================================================================
   BLOCWORX — ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .has-js-animations .reveal,
  .has-js-animations .reveal-left,
  .has-js-animations .reveal-right,
  .has-js-animations .reveal-scale,
  .has-js-animations .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes bw-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bw-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bw-fade-left {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bw-fade-right {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bw-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes bw-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(0.4deg); }
}
@keyframes bw-pulse-line {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%      { opacity: 0.85; transform: scaleY(1.2); }
}

.has-js-animations .reveal,
.has-js-animations .reveal-left,
.has-js-animations .reveal-right,
.has-js-animations .reveal-scale {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.has-js-animations .reveal       { transform: translateY(30px); }
.has-js-animations .reveal-left  { transform: translateX(-40px); }
.has-js-animations .reveal-right { transform: translateX(40px); }
.has-js-animations .reveal-scale { transform: scale(0.94); }

.has-js-animations .reveal.is-visible,
.has-js-animations .reveal-left.is-visible,
.has-js-animations .reveal-right.is-visible,
.has-js-animations .reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

.has-js-animations .stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.has-js-animations .stagger-children.is-visible > * {
  opacity: 1;
  transform: none;
}
.has-js-animations .stagger-children.is-visible > *:nth-child(1)  { transition-delay: 0.05s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(2)  { transition-delay: 0.10s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(3)  { transition-delay: 0.15s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(4)  { transition-delay: 0.20s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(5)  { transition-delay: 0.25s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(6)  { transition-delay: 0.30s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(7)  { transition-delay: 0.35s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(8)  { transition-delay: 0.40s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(9)  { transition-delay: 0.45s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(10) { transition-delay: 0.50s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(11) { transition-delay: 0.55s; }
.has-js-animations .stagger-children.is-visible > *:nth-child(12) { transition-delay: 0.60s; }

.has-js-animations .hero-text {
  animation: bw-fade-left 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.has-js-animations .hero-text .hero-cta {
  animation: bw-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}
.has-js-animations .hero-illustration {
  animation: bw-fade-right 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.has-js-animations .hero-illustration img {
  animation: bw-float 6s ease-in-out 1.5s infinite;
}

.has-js-animations .days-headline img {
  animation: bw-bob 5s ease-in-out infinite;
}

.has-js-animations .step-divider {
  animation: bw-pulse-line 3s ease-in-out infinite;
}
.has-js-animations .process-steps .step-divider:nth-of-type(4) {
  animation-delay: 1.5s;
}

.btn-primary, .btn-outline, .btn-white {
  transition: background-color 0.25s ease, color 0.25s ease,
              transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease, border-color 0.25s ease;
}
.btn-primary:hover, .btn-outline:hover, .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.btn-primary:active, .btn-outline:active, .btn-white:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.logo-cell img,
.partner-logos img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-cell:hover img,
.partner-logos img:hover {
  transform: translateY(-4px) scale(1.04);
}

.checklist li {
  transition: transform 0.25s ease;
}
.checklist li:hover {
  transform: translateX(5px);
}
.checklist i {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}
.checklist li:hover i {
  transform: scale(1.2) rotate(-8deg);
}

.step {
  transition: transform 0.3s ease, color 0.3s ease;
}
.step:hover {
  transform: scale(1.04);
  color: var(--teal-accent);
}

.footer-links a {
  display: inline-block;
  transition: color 0.2s linear, transform 0.25s ease;
}
.footer-links a:hover {
  transform: translateX(4px);
}

.socials a {
  transition: color 0.25s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.socials a:hover {
  transform: translateY(-3px) scale(1.15);
}

.sidebar-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}
.sidebar-block:hover .sidebar-icon {
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.story-card {
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.story-card:hover {
  transform: translateY(-4px);
}


.form-field input,
.form-field textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  transform: translateY(-1px);
}

.logo img {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo:hover img {
  transform: scale(1.05);
}