/* שכבת התנועה של mirit-blocks (12.10.2026; נגזרת מ-dasha motion.css). מאופקת: הופעה בגלילה, ken-burns עדין בירו, הרמה קלה בכפתורים
   ובכרטיסים, קו תחתון שצומח בתפריט, אייקונים "נושמים", קו התקדמות, מעבר עמוד רך. רק transform/opacity, הפריסה לא זזה. כבוי ב-prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
	body { animation: dm-page-in .5s cubic-bezier(.2,.7,.2,1) both; }
	body.dm-leaving { opacity: 0; transition: opacity .22s ease-in; }
	@keyframes dm-page-in { from { opacity: 0; } to { opacity: 1; } }

	/* הופעה בגלילה */
	.dm-reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--dm-i, 0) * 90ms); will-change: opacity, transform; }
	.dm-reveal.dm-in { opacity: 1; transform: none; }
	.dm-reveal.dm-in.dm-done { will-change: auto; transition-delay: 0s; }
	.mirit-hero__box > .dm-reveal { transition-delay: calc(.35s + var(--dm-i, 0) * 160ms); }
	.mirit-pill.dm-reveal { transform: translate3d(0, 12px, 0) scale(.96); transition-delay: calc(var(--dm-i, 0) * 60ms); }
	.mirit-method.dm-reveal { transform: translate3d(0, 30px, 0); transition-delay: calc(var(--dm-i, 0) * 180ms); }

	/* ירו: התמונה "מתיישבת" לאט (ken burns), הקופסה צפה פנימה */
	.mirit-hero__img { overflow: hidden; } /* הגלישה על התמונה בלבד; הקופסה חורגת מתחת לירו בכוונה */
	.is-hero-ready .mirit-hero__img img { animation: dm-kb 3s cubic-bezier(.2,.6,.2,1) both; transform-origin: 50% 40%; }
	@keyframes dm-kb { from { transform: scale(1.06); } to { transform: scale(1); } }
	.is-hero-ready .mirit-hero__box { animation: dm-box 1s cubic-bezier(.2,.7,.2,1) .2s both; }
	@keyframes dm-box { from { opacity: 0; transform: translate3d(-50%, 24px, 0); } to { opacity: 1; transform: translate3d(-50%, 0, 0); } }

	/* כפתורים: הרמה קלה */
	.wp-block-button__link, .mirit-form-actions .wp-element-button { transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
	.wp-block-button__link:hover, .mirit-form-actions .wp-element-button:hover { transform: translate3d(0, -2px, 0); box-shadow: 0 10px 24px -14px rgba(36, 42, 32, .5); }

	/* תפריט: קו תחתון שצומח מהמרכז */
	.mirit-header .wp-block-navigation-item__content { position: relative; }
	.mirit-header .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -.2em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 50% 50%; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
	.mirit-header .wp-block-navigation-item__content:hover::after, .mirit-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
	.mirit-header .wp-block-navigation-item__content:hover, .mirit-header .wp-block-navigation-item__content:focus { text-decoration: none; }

	/* שיטות הטיפול: האייקון נושם לאט, ובריחוף הכרטיס עולה מעט */
	.mirit-method__icon img { animation: dm-breathe 7s ease-in-out infinite; }
	.mirit-method:nth-child(2) .mirit-method__icon img { animation-delay: -2.3s; }
	.mirit-method:nth-child(3) .mirit-method__icon img { animation-delay: -4.6s; }
	@keyframes dm-breathe { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -5px, 0); } }
	.mirit-method { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
	.mirit-method:hover { transform: translate3d(0, -4px, 0); }
	.mirit-method__icon { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
	.mirit-method:hover .mirit-method__icon { transform: scale(1.05); }

	/* תגיות: ריחוף */
	.mirit-pill { transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .35s ease, box-shadow .35s ease; }
	.mirit-pill:hover { transform: translate3d(0, -2px, 0); background: var(--wp--preset--color--surface-2); box-shadow: 0 8px 18px -12px rgba(36, 42, 32, .45); }

	/* תמונות: דיוקן ומפריד נכנסים ברכות */
	.mirit-about__img img { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
	.mirit-about__img:hover img { transform: scale(1.02); }
	.mirit-divider .dm-reveal { transform: scale(.92); }
	.mirit-quote { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
	.mirit-quote:hover { transform: translate3d(0, -3px, 0); box-shadow: 0 14px 30px -18px rgba(36, 42, 32, .4); }

	/* מפת/קופסת הפוטר ושדות הטופס */
	.mirit-form input { transition: border-color .3s ease, box-shadow .3s ease; }
	.mirit-form input:focus { box-shadow: 0 0 0 4px rgba(83, 129, 52, .15); }

	/* קו התקדמות דק */
	.dm-progress { position: fixed; top: 0; right: 0; height: 2px; width: 0; background: var(--wp--preset--color--primary); opacity: .55; z-index: 1000; pointer-events: none; transition: width .12s linear; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 781px) {
	.dm-reveal { transform: translate3d(0, 14px, 0); }
	.is-hero-ready .mirit-hero__img img { animation: none; }
}
