/* ============================================================
   JUSOOR TRAVEL — touches and interactions (all pages)
   Entrances never hide content at rest: .mv-in is added by motion.js only
   when an element comes on screen, and the keyframes start it from below.
   Everything is switched off for visitors who ask for reduced motion.
   ============================================================ */
@keyframes mvRise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.mv-in { animation: mvRise .75s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 80ms); }


/* feedback on cards: lift on hover / keyboard focus */
.value-item, .service-row, .stat-tile, .stat-item, .who-grid > *, .cinfo-item, .prog-card-2, .faq-item,
.jp-ticket, .jp-type, .jp-who-item, .jp-bars details {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, background-color .25s;
}
.value-item:hover, .value-item:focus-within, .service-row:hover, .stat-tile:hover, .stat-item:hover,
.who-grid > *:hover, .cinfo-item:hover, .prog-card-2:hover, .jp-who-item:hover { transform: translateY(-4px); }
.faq-item:hover { transform: translateX(calc(var(--mv-dir, -1) * 4px)); }
[dir="ltr"] .faq-item:hover { --mv-dir: 1; }

/* feedback on controls: press */
.btn, .jw-btn, .jp-go, .jp-dests button, .jp-step button, .svc-tab-btn, .season-tab, .country-tab, .cat-chip {
  transition: transform .18s cubic-bezier(.2,.7,.2,1), background-color .2s, color .2s, box-shadow .2s;
}
.btn:active, .jw-btn:active, .jp-go:active, .jp-dests button:active, .jp-step button:active,
.svc-tab-btn:active, .season-tab:active, .country-tab:active, .cat-chip:active { transform: scale(.97); }

/* images inside cards ease in a touch on hover */
.prog-card-2 img, .jp-type img, .jp-who-item img, .jp-pt-photo img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.prog-card-2:hover img, .jp-pt-photo:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .mv-in, .jp-pass, .jp-pt-sheet, .jp-slips-photo { animation: none !important; }
  .value-item:hover, .service-row:hover, .stat-tile:hover, .stat-item:hover, .who-grid > *:hover,
  .cinfo-item:hover, .prog-card-2:hover, .jp-who-item:hover, .faq-item:hover { transform: none; }
}

/* Pointer light on cards (added by motion.js on mouse devices only) */
.mv-glow{position:relative;}
.mv-glow::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .3s;
  background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%),rgba(190,154,48,.16),transparent 65%);}
.mv-glow:hover::after{opacity:1;}
.jp-tcard.mv-glow::after{content:none;}
/* Slight tilt that follows the pointer */
.mv-tilt{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-4px) !important;transition:transform .15s ease-out !important;}
/* Giant one-word headings fill with gold as they cross the screen */
.jp-giant.mv-fill{color:transparent;-webkit-background-clip:text;background-clip:text;
  background-image:linear-gradient(to left,var(--gold) var(--p,0%),var(--navy) var(--p,0%));}
html[dir="ltr"] .jp-giant.mv-fill{background-image:linear-gradient(to right,var(--gold) var(--p,0%),var(--navy) var(--p,0%));}
/* Reading progress under the header (inner pages) */
.mv-progress{position:fixed;top:0;inset-inline:0;height:3px;background:var(--gold);transform:scaleX(0);transform-origin:right;z-index:1001;pointer-events:none;}
html[dir="ltr"] .mv-progress{transform-origin:left;}
@media print{ .mv-progress{display:none;} .jp-giant.mv-fill{color:var(--navy);background:none;} .mv-glow::after{content:none;} }
/* Arabic marks (hamza, dots) rise above a 1.0 line box; the text-clipped fill
   only paints inside the box, so give the glyphs room and pull the spacing back. */
.jp-giant{line-height:1.5;padding-block:.08em .14em;margin-top:-.2em;margin-bottom:8px;}

/* ============================================================
   Travel motion (Nov 2026): flight-path reading progress, a plane
   crossing the top of each page once, planes along the gold dividers.
   Off with prefers-reduced-motion or html[data-motion="off"].
   ============================================================ */
.mv-progress{transform:none !important;height:3px;top:8px !important;z-index:1300 !important;background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--gold) 38%,transparent) 0 6px,transparent 6px 12px);}
.mv-progress-fill{position:absolute;inset-block:0;inset-inline-start:0;width:var(--p,0%);background:var(--gold);border-radius:0 3px 3px 0;}
.mv-progress-plane{position:absolute;top:50%;inset-inline-start:var(--p,0%);width:16px;height:16px;margin-top:-8px;margin-inline-start:-8px;fill:var(--gold);
  opacity:0;transition:opacity .3s;filter:drop-shadow(0 2px 3px rgba(22,29,73,.25));}
[dir="rtl"] .mv-progress-plane{transform:scaleX(-1);}
.mv-progress.is-moving .mv-progress-plane{opacity:1;}

.mv-route{position:absolute;top:0;inset-inline:0;width:100%;pointer-events:none;z-index:1;overflow:visible;}
.mv-route-line{fill:none;stroke:var(--gold);stroke-width:1.6;stroke-dasharray:2 9;stroke-linecap:round;opacity:.75;vector-effect:non-scaling-stroke;}
.mv-route.on-dark .mv-route-line{stroke:#fff;opacity:.55;}
.mv-route-reveal{fill:none;stroke:#fff;stroke-width:14;stroke-dasharray:1;stroke-dashoffset:1;}
.mv-route.is-flying .mv-route-reveal{animation:mvDraw 3.6s cubic-bezier(.45,0,.25,1) forwards;}
.mv-route-plane{fill:var(--navy);opacity:0;}
.mv-route.on-dark .mv-route-plane{fill:#fff;}
.mv-route.is-flying .mv-route-plane{animation:mvPlane 4.4s ease forwards;}
@keyframes mvDraw{to{stroke-dashoffset:0;}}
@keyframes mvPlane{0%{opacity:0}8%{opacity:1}82%{opacity:1}100%{opacity:0}}

.divider-gold{position:relative;overflow:visible;}
.divider-gold.mv-fly{animation:mvDivider .9s cubic-bezier(.2,.7,.2,1) both;transform-origin:var(--mv-o,right);}
[dir="ltr"] .divider-gold.mv-fly{--mv-o:left;}
.divider-gold.mv-fly::after{content:'';position:absolute;top:50%;width:14px;height:14px;margin-top:-7px;background:var(--gold);
  -webkit-mask:var(--mv-plane) center/contain no-repeat;mask:var(--mv-plane) center/contain no-repeat;
  animation:mvDivPlane 1.1s cubic-bezier(.2,.7,.2,1) both;}
[dir="rtl"] .divider-gold.mv-fly::after{transform:scaleX(-1);}
:root{--mv-plane:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath transform='rotate(45 12 12)' d='M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z'/%3E%3C/svg%3E");}
@keyframes mvDivider{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes mvDivPlane{0%{inset-inline-start:-10px;opacity:0}15%{opacity:1}80%{opacity:1}100%{inset-inline-start:calc(100% + 10px);opacity:0}}

@media (prefers-reduced-motion: reduce){ .mv-route,.mv-progress-plane{display:none;} .divider-gold.mv-fly,.divider-gold.mv-fly::after{animation:none;} .divider-gold.mv-fly::after{content:none;} }
html[data-motion="off"] .mv-in, html[data-motion="off"] .divider-gold, html[data-motion="off"] .splash-plane svg{animation:none !important;}
html[data-motion="off"] .value-item:hover, html[data-motion="off"] .service-row:hover, html[data-motion="off"] .stat-tile:hover,
html[data-motion="off"] .stat-item:hover, html[data-motion="off"] .who-grid > *:hover, html[data-motion="off"] .cinfo-item:hover,
html[data-motion="off"] .prog-card-2:hover, html[data-motion="off"] .jp-who-item:hover, html[data-motion="off"] .faq-item:hover,
html[data-motion="off"] .prog-card-2:hover img, html[data-motion="off"] .jp-pt-photo:hover img{transform:none;}
@media print{ .mv-route,.mv-progress{display:none !important;} }
