/* Neighborhood Car Care motion (customer side): see static/js/motion.js. Everything here only applies once that script
   has run (html.mo), so with no JavaScript, or with Reduce Motion on, the page simply shows as it is. */

/* lists drop in, one after another */
.mo .mo-wait > * { opacity: 0; }
.mo .mo-go { animation: mo-drop .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--mo-i, 0) * 75ms); }
@keyframes mo-drop {
  0% { opacity: 0; transform: translateY(-16px) scale(.98); }
  60% { opacity: 1; transform: translateY(3px) scale(1); }
  100% { opacity: 1; transform: none; }
}

/* typewriter */
.mo .mo-ch { opacity: 0; }
.mo .mo-ch.on { opacity: 1; }
.mo .mo-typing::after { content: ""; display: inline-block; width: .07em; min-width: 2px; height: .85em; margin-left: .05em; vertical-align: -.06em;
  background: currentColor; animation: mo-caret .65s steps(1) infinite; }
@keyframes mo-caret { 50% { opacity: 0; } }

/* buttons: shimmer, a lift on hover, and the booking nudge */
.mo .mo-cta { position: relative; overflow: hidden; isolation: isolate; }
.mo .mo-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .55) 50%, transparent 68%);
  transform: translateX(-130%); animation: mo-shine 5s ease-in-out infinite; animation-delay: 1.2s; }
.mo .mo-cta:disabled::after, .mo .mo-cta[disabled]::after { display: none; }
@keyframes mo-shine { 0%, 62% { transform: translateX(-130%); } 88%, 100% { transform: translateX(130%); } }
.mo .btn-primary, .mo .my-sq { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, filter .15s; }
@media (hover: hover) { .mo .btn-primary:not(:disabled):hover, .mo .my-sq:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .16); } }
.mo .mo-nudge { animation: mo-nudge .75s ease-in-out; }
@keyframes mo-nudge {
  0%, 100% { transform: none; }
  12% { transform: translateX(-4px) rotate(-1.4deg); }
  26% { transform: translateX(4px) rotate(1.4deg); }
  40% { transform: translateX(-3px) rotate(-.9deg); }
  54% { transform: translateX(2px) rotate(.5deg); }
  68% { transform: translateX(-1px); }
}

/* small signals: things that are due pulse softly, cards lift when you can tap them */
.mo .my-chip.due, .mo .my-count { animation: mo-pulse 2.2s ease-in-out infinite; }
@keyframes mo-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 64, 14, 0); } 50% { box-shadow: 0 0 0 5px rgba(217, 64, 14, .14); } }
.mo .my-car-card, .mo .my-tile, .mo .ts-item, .mo .value-grid li { transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .mo .my-car-card:hover, .mo a.my-tile:hover { transform: translateY(-3px); } }
.mo .my-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 15% 20%, rgba(247, 148, 29, .18), transparent 70%); animation: mo-glow 9s ease-in-out infinite alternate; }
@keyframes mo-glow { from { opacity: .35; transform: translateX(-4%); } to { opacity: 1; transform: translateX(6%); } }
.mo .step:not([hidden]) { animation: mo-step .35s ease-out both; }
@keyframes mo-step { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .mo .mo-wait > *, .mo .mo-ch { opacity: 1 !important; }
  .mo *, .mo *::after { animation: none !important; transition: none !important; }
}
.mo .my-hero-in { z-index: 1; }
.mo .my-hero { overflow: hidden; }
