/* Site animations — self-hosted CSS only (no external animation CDN) */

:root {
  --mph-anim-duration: 0.7s;
  --mph-anim-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.mph-anim {
  opacity: 0;
  transition:
    opacity var(--mph-anim-duration) var(--mph-anim-ease),
    transform var(--mph-anim-duration) var(--mph-anim-ease);
  transition-delay: var(--mph-d, 0ms);
  will-change: opacity, transform;
}

.mph-anim--up {
  transform: translate3d(0, 28px, 0);
}

.mph-anim--down {
  transform: translate3d(0, -28px, 0);
}

.mph-anim--left {
  transform: translate3d(-36px, 0, 0);
}

.mph-anim--right {
  transform: translate3d(36px, 0, 0);
}

.mph-anim--scale {
  transform: scale(0.94);
}

.mph-anim--fade {
  transform: none;
}

/* Centered section headings & intro copy — scroll reveal */
/* Zigzag rows — content / image boxes */
.mph-anim--zigzag.mph-anim--left {
  transform: translate3d(-52px, 0, 0);
}

.mph-anim--zigzag.mph-anim--right {
  transform: translate3d(52px, 0, 0);
}

@media (max-width: 991px) {
  .mph-anim--zigzag.mph-anim--left,
  .mph-anim--zigzag.mph-anim--right,
  .mph-anim--zigzag.mph-anim--up {
    transform: translate3d(0, 32px, 0);
  }
}

.mph-anim--center {
  transform: translate3d(0, 36px, 0) scale(0.97);
  filter: blur(4px);
  transition:
    opacity var(--mph-anim-duration) var(--mph-anim-ease),
    transform var(--mph-anim-duration) var(--mph-anim-ease),
    filter calc(var(--mph-anim-duration) + 0.1s) var(--mph-anim-ease);
}

.mph-anim-visible {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0) !important;
}

/* Subtle hover polish (buttons & cards) */
.btn_main_white,
.btn_main_blue,
.btn_seccond_white,
.btn_seccond_blue,
.MPH_about_btnPrimary,
.MPH_about_statCard,
.book-card,
.JM_____card {
  transition:
    transform 0.28s var(--mph-anim-ease),
    box-shadow 0.28s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.book-card:hover {
  transform: translateY(-4px);
}

.btn_main_white:hover,
.btn_main_blue:hover,
.btn_seccond_white:hover,
.btn_seccond_blue:hover,
.MPH_about_btnPrimary:hover {
  transform: translateY(-2px);
}

.JM_____card:hover {
  transform: translateY(-4px);
}

.JM__sectionExpertBook,
.MPH_about_visual img {
  transition: transform 0.5s var(--mph-anim-ease);
}

.JM__sectionExpertImageArea:hover .JM__sectionExpertBook,
.MPH_about_visual:hover img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .mph-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .btn_main_white:hover,
  .btn_main_blue:hover,
  .btn_seccond_white:hover,
  .btn_seccond_blue:hover,
  .JM_____card:hover,
  .JM__sectionExpertImageArea:hover .JM__sectionExpertBook,
  .MPH_about_visual:hover img {
    transform: none;
  }
}
