/* Mashfa motion — subtle, respects prefers-reduced-motion */

@media (prefers-reduced-motion: reduce) {
  #mashfa-storefront.mashfa-theme *,
  #mashfa-storefront.mashfa-theme *::before,
  #mashfa-storefront.mashfa-theme *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #mashfa-storefront.mashfa-theme .mashfa-reveal {
    opacity: 1;
    transform: none;
  }
}

@keyframes mashfa-fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mashfa-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mashfa-scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mashfa-hero-shine {
  0% {
    background-position: -120% 0;
  }
  100% {
    background-position: 220% 0;
  }
}

#mashfa-storefront.mashfa-theme .mashfa-hero-glass {
  animation: mashfa-scale-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#mashfa-storefront.mashfa-theme .mashfa-booking-float {
  animation: mashfa-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

#mashfa-storefront.mashfa-theme .mashfa-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--mf-reveal-delay, 0ms);
  will-change: opacity, transform;
}

#mashfa-storefront.mashfa-theme .mashfa-reveal.mashfa-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

#mashfa-storefront.mashfa-theme .mashfa-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--mf-stagger-i, 0) * 70ms);
}

#mashfa-storefront.mashfa-theme .mashfa-stagger.mashfa-stagger--active > * {
  opacity: 1;
  transform: translateY(0);
}

#mashfa-storefront.mashfa-theme .mashfa-spec-card,
#mashfa-storefront.mashfa-theme .mashfa-offer-card,
#mashfa-storefront.mashfa-theme .mashfa-article-card,
#mashfa-storefront.mashfa-theme .mashfa-doctor-card,
#mashfa-storefront.mashfa-theme .mashfa-testimonial,
#mashfa-storefront.mashfa-theme .mashfa-service-tile {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

#mashfa-storefront.mashfa-theme .mashfa-spec-card:hover,
#mashfa-storefront.mashfa-theme .mashfa-offer-card:hover,
#mashfa-storefront.mashfa-theme .mashfa-article-card:hover,
#mashfa-storefront.mashfa-theme .mashfa-doctor-card:hover,
#mashfa-storefront.mashfa-theme .mashfa-testimonial:hover,
#mashfa-storefront.mashfa-theme .mashfa-service-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(26, 26, 46, 0.12);
}

#mashfa-storefront.mashfa-theme .mashfa-btn-primary {
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.2s ease;
}

#mashfa-storefront.mashfa-theme .mashfa-btn-primary:active {
  transform: scale(0.97);
}

#mashfa-storefront.mashfa-theme .mashfa-btn-search {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#mashfa-storefront.mashfa-theme .mashfa-btn-search:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(111, 43, 140, 0.45);
}

#mashfa-storefront.mashfa-theme .mashfa-partner-chip {
  transition: transform 0.25s ease, filter 0.25s ease;
}

#mashfa-storefront.mashfa-theme .mashfa-partner-chip:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.05);
}

#mashfa-storefront.mashfa-theme .mashfa-app-banner {
  position: relative;
  overflow: hidden;
}

#mashfa-storefront.mashfa-theme .mashfa-app-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: mashfa-hero-shine 8s ease-in-out infinite;
  pointer-events: none;
}

#mashfa-storefront.mashfa-theme .mashfa-nav a {
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

#mashfa-storefront.mashfa-theme .mashfa-nav a:hover {
  transform: translateY(-1px);
}

#mashfa-storefront.mashfa-theme .mashfa-promo-split {
  transition: box-shadow 0.35s ease;
}

#mashfa-storefront.mashfa-theme .mashfa-promo-split:hover {
  box-shadow: 0 22px 50px rgba(26, 26, 46, 0.11);
}
