/* ===========================================================
   Om Leisure Holidays — Motion layer
   Purely additive: loads after style.css, reuses its :root
   variables and its existing .has-js / .in-view conventions.
   Nothing here touches layout, color, or markup — hover states,
   entrance choreography and a few ambient details only.
   Every effect is gated behind prefers-reduced-motion.
   =========================================================== */
@media (prefers-reduced-motion: no-preference){

  /* ---- Hero: slow continuous Ken Burns drift on the live slide ----
     ::before{background-image:inherit} picks up each slide's own
     inline background-image, so it needs no markup change. */
  .has-js .slide{overflow:hidden}
  .has-js .slide::before{
    content:"";position:absolute;inset:-6%;z-index:0;
    background-image:inherit;background-size:cover;background-position:inherit;
    transform:scale(1.06);
  }
  .has-js .slide.active::before{animation:olh-kenburns 9s ease-in-out forwards}
  @keyframes olh-kenburns{from{transform:scale(1.06)}to{transform:scale(1.15)}}

  /* ---- Card / tile images: wipe into view the first time their
     card scrolls in, riding the existing .in-view toggle so no new
     IntersectionObserver is needed. ---- */
  .has-js .card .thumb img,
  .has-js .cat-thumb img,
  .has-js .dest img{clip-path:inset(0 100% 0 0)}
  .has-js .card.in-view .thumb img,
  .has-js .cat-card.in-view .cat-thumb img,
  .has-js .dest.in-view img{clip-path:inset(0 0 0 0)}

  /* ---- Section kicker: one-shot shine as it enters view ---- */
  .has-js .head .kicker{display:inline-block}
  .has-js .head.in-view .kicker{
    background:linear-gradient(100deg,var(--brand) 20%,var(--gold) 50%,var(--brand) 80%);
    background-size:220% auto;-webkit-background-clip:text;background-clip:text;color:transparent;
    animation:olh-kicker-shine 1.8s ease .25s 1 both;
  }
  @keyframes olh-kicker-shine{from{background-position:140% 0}to{background-position:-40% 0}}

  /* ---- Tilt-ready tiles (JS drives the actual rotation) ---- */
  .card,.cat-card,.dest,.feature,.amenity-card{transition:transform .35s cubic-bezier(.22,.7,.24,1),box-shadow .35s ease;will-change:transform}

  /* ---- Magnetic CTA buttons (JS drives the actual translate) ---- */
  .btn-magnetic{transition:transform .25s cubic-bezier(.22,.7,.24,1)}

  /* ---- Button shine sweep on hover (solid buttons only) ---- */
  .btn:not(.outline)::before{
    content:"";position:absolute;top:0;left:-60%;width:36%;height:100%;
    background:linear-gradient(115deg,transparent,rgba(255,255,255,.32),transparent);
    transform:skewX(-20deg);pointer-events:none;
  }
  .btn:not(.outline):hover::before{animation:olh-btn-shine .85s ease}
  @keyframes olh-btn-shine{from{left:-60%}to{left:130%}}

  /* ---- Nav link underline sweep ---- */
  nav.main a{position:relative}
  nav.main a::before{
    content:"";position:absolute;left:14px;right:14px;bottom:5px;height:2px;border-radius:2px;
    background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .25s ease;
  }
  nav.main a:hover::before,nav.main a.active::before{transform:scaleX(1)}
  nav.main .has-sub > a::before,nav.main .has-mega > a::before{right:28px}

  /* ---- Partner strip, promoted to a seamless marquee (JS duplicates the row) ---- */
  .partner-strip.olh-marquee{
    flex-wrap:nowrap;justify-content:flex-start;overflow:hidden;
    mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  }
  .partner-strip.olh-marquee .olh-marquee-track{display:flex;gap:16px;width:max-content;animation:olh-marquee 32s linear infinite}
  .partner-strip.olh-marquee:hover .olh-marquee-track{animation-play-state:paused}
  @keyframes olh-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

  /* ---- Animated stat counters (hero trust row) ---- */
  .ht-item .olh-count{font-variant-numeric:tabular-nums}

  /* ---- Floating WhatsApp/Call: gentle entrance on load ---- */
  .floaters a{animation:olh-float-in .6s cubic-bezier(.22,.7,.24,1) backwards}
  .floaters a.call{animation-delay:.12s}
  @keyframes olh-float-in{from{opacity:0;transform:translateY(24px) scale(.8)}to{opacity:1;transform:none}}

  /* ---- Page banner: subtle parallax drift (driven by JS on scroll) ---- */
  .page-hero{will-change:background-position}
}
