/* Falah Car Location — animations */

/* Scroll reveal */
.falah-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--falah-delay, 0s);
  will-change: opacity, transform;
}
.falah-reveal.falah-left  { transform: translateX(-48px); }
.falah-reveal.falah-right { transform: translateX(48px); }
.falah-reveal.falah-zoom  { transform: scale(.92); }
.falah-reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .falah-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Hero entrance */
.falah-hero-in {
  opacity: 0;
  transform: translateY(28px);
  animation: falahHeroIn .9s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--falah-delay, 0s);
}
@keyframes falahHeroIn { to { opacity: 1; transform: none; } }

/* Hero background slow zoom (ken burns) */
.falah-kenburns {
  animation: falahKenBurns 18s ease-in-out infinite alternate;
}
@keyframes falahKenBurns {
  from { background-size: 100% auto, cover; }
  to   { background-size: 110% auto, cover; }
}

/* Buttons: subtle pulse glow on CTA */
.elementor-button, button[type="submit"], input[type="submit"] {
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease !important;
}
.elementor-button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(236,72,153,.35);
}

/* Car cards: lift + image zoom on hover */
.falah-card {
  transition: transform .35s ease, box-shadow .35s ease;
}
.falah-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(157,23,77,.16);
}
.falah-card img {
  transition: transform .5s ease;
}
.falah-card:hover img {
  transform: scale(1.06);
}

/* Nav link underline sweep */
.falah-nav a {
  position: relative;
}
.falah-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: #EC4899;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.falah-nav a:hover::after { transform: scaleX(1); }

/* Section titles: pink underline draw-in when visible */
.in-view .falah-title-line {
  display: inline-block;
  position: relative;
}

/* Floating WhatsApp button heartbeat */
@keyframes falahWaPulse {
  0%   { box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
.falah-wa { animation: falahWaPulse 2.4s infinite; }

/* ElementsKit booking modal (force-opened by falah-booking.js) */
.ekit-popup-modal.falah-popup-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  background: rgba(12, 8, 12, .62);
  overflow-y: auto;
  padding: 48px 16px;
  animation: falahFadeIn .25s ease;
}
.ekit-popup-modal.falah-popup-open .ekit-popup-modal__content,
.ekit-popup-modal.falah-popup-open .ekit-popup__content,
.ekit-popup-modal.falah-popup-open .ekit-popup-modal__body,
.ekit-popup-modal.falah-popup-open .ekit-popup__raw-content,
.ekit-popup-modal.falah-popup-open .wpcf7,
.ekit-popup-modal.falah-popup-open form {
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  transform: none !important;
}
.ekit-popup-modal.falah-popup-open .ekit-popup-modal__content {
  max-width: 680px;
  margin: 0 auto !important;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  animation: falahPopIn .3s cubic-bezier(.22,.61,.36,1);
}
.ekit-popup-modal.falah-popup-open .ekit-popup-modal__close {
  visibility: visible !important;
  z-index: 100001;
}
body.falah-popup-lock { overflow: hidden !important; }
@keyframes falahFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes falahPopIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

/* Logo gentle float on hover */
.falah-logo-img { transition: transform .3s ease; }
.falah-logo-img:hover { transform: translateX(4px) rotate(-1deg); }
