/* אנימציות כניסה בגלילה לכרטיסי שירות ואייקונים (as-reveal.js בוחר סגנון שונה לכל עמוד).
   מצב ההסתרה חל רק כשהסקריפט רץ (html.rv-on), כך שבלי JS הכול גלוי. משתמשים ב-translate/scale/rotate
   (ולא transform) כדי לא להתנגש באפקטי ריחוף קיימים, והמחלקות מוסרות אחרי שהכניסה נגמרת. */
html.rv-on .rv-item {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), translate .8s cubic-bezier(.2,.8,.2,1), scale .8s cubic-bezier(.2,.8,.2,1),
    rotate .8s cubic-bezier(.2,.8,.2,1), filter .8s ease;
  transition-delay: var(--rv-d, 0ms);
  will-change: opacity, translate, scale;
}
html.rv-on .rv-up { translate: 0 46px; }
html.rv-on .rv-zoom { scale: .82; }
html.rv-on .rv-right { translate: 70px 0; }
html.rv-on .rv-left { translate: -70px 0; }
html.rv-on .rv-flip { rotate: x 38deg; translate: 0 24px; transform-origin: 50% 0; }
html.rv-on .rv-blur { filter: blur(14px); scale: 1.06; }
html.rv-on .rv-pop { scale: .6; translate: 0 20px; }
html.rv-on .rv-tilt { rotate: -5deg; translate: 0 40px; }
/* בטלפון: תנועה מהצד קצרה יותר, כדי שלא תיווצר גלילה הצידה */
@media (max-width: 767px) {
  html.rv-on .rv-right { translate: 22px 0; }
  html.rv-on .rv-left { translate: -22px 0; }
  /* טלפון: מהיר וקל, בלי will-change על עשרות כרטיסים (חוסך זיכרון וגמגום בגלילה) */
  html.rv-on .rv-item { will-change: auto; transition-duration: .45s; }
  html.rv-on .rv-up { translate: 0 22px; }
  html.rv-on .rv-zoom { scale: .92; }
  html.rv-on .rv-pop { scale: .85; translate: 0 12px; }
  html.rv-on body .rv-item.rv-in .rv-ico { animation-duration: .5s; animation-delay: calc(var(--rv-d, 0ms) + 120ms); }
}
html.rv-on .rv-item.rv-in { opacity: 1; translate: none; scale: none; rotate: none; filter: none; }

/* האייקון נכנס אחרי הכרטיס, בתנועה משלו */
html.rv-on .rv-item .rv-ico { opacity: 0; }
html.rv-on .rv-item.rv-in .rv-ico { animation: var(--rv-ico, rv-ico-pop) .75s cubic-bezier(.3,1.4,.4,1) both; animation-delay: calc(var(--rv-d, 0ms) + 260ms); }
@keyframes rv-ico-pop { 0% { opacity: 0; scale: .3; } 100% { opacity: 1; scale: 1; } }
@keyframes rv-ico-spin { 0% { opacity: 0; rotate: -160deg; scale: .4; } 100% { opacity: 1; rotate: 0deg; scale: 1; } }
@keyframes rv-ico-drop { 0% { opacity: 0; translate: 0 -26px; } 60% { opacity: 1; translate: 0 5px; } 100% { opacity: 1; translate: 0 0; } }
@keyframes rv-ico-swing { 0% { opacity: 0; rotate: 28deg; } 40% { opacity: 1; rotate: -14deg; } 70% { rotate: 7deg; } 100% { opacity: 1; rotate: 0deg; } }
@keyframes rv-ico-flip { 0% { opacity: 0; rotate: y 180deg; } 100% { opacity: 1; rotate: y 0deg; } }

@media (prefers-reduced-motion: reduce) {
  html.rv-on .rv-item, html.rv-on .rv-item .rv-ico { opacity: 1 !important; translate: none !important; scale: none !important; rotate: none !important; filter: none !important; animation: none !important; transition: none !important; }
}

/* כרטיס שירות לחיץ כולו (as-reveal.js) */
.as-card-link { cursor: pointer; }
