/* ============================================================
   Black Car in Miami — shared motion layer (motion.css)
   Vanilla CSS, no dependencies. Pairs with /motion.js.
   Tasteful, lightweight, mobile-first.
   Respects prefers-reduced-motion throughout.
   ============================================================ */

/* ---------- 1) Scroll reveal --------------------------------
   Elements get .mv-rv from motion.js only when they start
   below the fold, so nothing ever flashes or stays hidden.
   The three home pages keep their own inline .rv layer;
   motion.js stands down there and never tags their elements. */
.mv-rv{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.22,.61,.36,1);
  will-change:opacity,transform;
}
.mv-rv.in{opacity:1;transform:none}

/* ---------- 2) Gentle pulse: WhatsApp + chat bubble --------- */
/* Mobile bottom-bar WhatsApp cell (the floating WhatsApp on phones) */
@keyframes mvWaPulse{
  0%,100%{filter:brightness(1)}
  50%{filter:brightness(1.14)}
}
.mobile-bar a.wa{animation:mvWaPulse 2.6s ease-in-out infinite}
.mobile-bar a.wa:hover,
.mobile-bar a.wa:focus-visible,
.mobile-bar a.wa:active{animation-play-state:paused}

/* Chat bubble injected by chat-widget.js (gold pill, bottom right) */
@keyframes mvBubblePulse{
  0%{box-shadow:0 10px 26px rgba(0,0,0,.45),0 0 0 0 rgba(210,171,74,.45)}
  70%{box-shadow:0 10px 26px rgba(0,0,0,.45),0 0 0 16px rgba(210,171,74,0)}
  100%{box-shadow:0 10px 26px rgba(0,0,0,.45),0 0 0 0 rgba(210,171,74,0)}
}
#bcim-chat-bubble{animation:mvBubblePulse 2.8s ease-out infinite}
#bcim-chat-bubble:hover{animation-play-state:paused}
#bcim-chat-bubble.mv-stop{animation:none}

/* ---------- 3) Animated route line (Instant Quote) ----------
   The .mv-route box is inserted by motion.js right above the
   #quoteEst estimate chips in the transfer pane. It is shown
   only while an estimate is on screen. Pure decoration. */
.mv-route{display:none;margin:6px 0 2px}
.mv-route.show{display:block}
.mv-route svg{display:block;width:100%;height:26px;overflow:visible}
.mv-route .mv-track{fill:none;stroke:rgba(210,171,74,.28);stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.mv-route .mv-draw{fill:none;stroke:#d2ab4a;stroke-width:2.5;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:100;stroke-dashoffset:100}
.mv-route.play .mv-draw{animation:mvDraw 1.1s ease forwards}
@keyframes mvDraw{to{stroke-dashoffset:0}}
.mv-route .mv-end{fill:#0d0b06;stroke:#d2ab4a;stroke-width:2.5}

/* ---------- Reduced motion: everything still & visible ------ */
@media (prefers-reduced-motion: reduce){
  .mv-rv{opacity:1;transform:none;transition:none}
  .mobile-bar a.wa,#bcim-chat-bubble{animation:none}
  .mv-route .mv-draw{stroke-dashoffset:0;animation:none}
  .mv-route .mv-dot{display:none}
}
