/* ============================================================
   HALAL SOJOURN — Dynamic / kinetic homepage
   ============================================================ */

/* ---------- CURSOR FOLLOWER ---------- */
.cursorfx-ring { display: none; position: fixed; top: 0; left: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; z-index: 9999; pointer-events: none; }
.has-cursorfx .cursorfx-ring { display: block; }
.cursorfx-ring span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--gold); opacity: 0; transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease), opacity 0.28s var(--ease); }
.cursor-active .cursorfx-ring span { opacity: 0.65; }
.cursor-hot .cursorfx-ring span { transform: scale(1.95); border-color: var(--clay); background: rgba(199,91,54,0.12); opacity: 1; }
.cursor-down .cursorfx-ring span { transform: scale(0.82); border-color: var(--clay); }
@media (pointer: coarse) { .cursorfx-ring { display: none !important; } }

/* ---------- HERO BLOBS / PARALLAX ---------- */
.hero2__pl { position: absolute; z-index: 1; pointer-events: none; transition: transform 0.35s ease-out; will-change: transform; }
.hero2__pl--warm { inset-block-start: 4%; inset-inline-start: -8%; transform: translate(calc(var(--px,0) * -42px), calc(var(--py,0) * -30px)); }
.hero2__pl--jewel { inset-block-end: -6%; inset-inline-end: -6%; transform: translate(calc(var(--px,0) * 38px), calc(var(--py,0) * 28px)); }
.hero2__blob { width: clamp(280px, 46vw, 640px); height: clamp(280px, 46vw, 640px); border-radius: 50%; filter: blur(70px); mix-blend-mode: screen; opacity: 0.5; will-change: transform; }
.hero2__blob--warm { background: radial-gradient(circle, rgba(224,138,79,0.95), rgba(199,91,54,0) 66%); animation: blobA 17s ease-in-out infinite alternate; }
.hero2__blob--jewel { background: radial-gradient(circle, rgba(56,128,104,0.95), rgba(31,77,63,0) 68%); animation: blobB 21s ease-in-out infinite alternate; }
@keyframes blobA { from { transform: translate(0,0) scale(1); } to { transform: translate(8%, 6%) scale(1.12); } }
@keyframes blobB { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-7%, -5%) scale(0.92); } }
.hero2__spin { transition: transform 0.4s ease-out; }
@media (prefers-reduced-motion: reduce){ .hero2__blob { animation: none; } .hero2__pl { transform: none !important; } }

/* ---------- WARM ROTATING WORD ---------- */
.rot-word { color: var(--clay-soft); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .rot-word__item { background: linear-gradient(96deg, var(--gold-soft) 8%, var(--clay-soft) 92%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}

/* ---------- WARM MARQUEE STARS ---------- */
.mq-band .marquee__item:nth-child(even) .marquee__star { color: var(--clay-soft); }

/* ---------- GRADIENT BORDERS (depth, less flat) ---------- */
.jcard, .exp-tile, .enquire-card, .testi-card {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(155deg, var(--line) 0%, rgba(199,91,54,0.10) 45%, var(--line-soft) 100%) border-box;
}
.jcard:hover, .exp-tile:hover {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad-warm) border-box;
  box-shadow: 0 26px 54px -28px rgba(176,67,42,0.4), var(--shadow-md);
}
.bg-emerald .testi-card { background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(155deg, rgba(203,170,110,0.5), rgba(224,138,79,0.3) 60%, rgba(203,170,110,0.2)) border-box; }

/* ---------- PROMISE STRIP — gradient dividers + warm hover ---------- */
.promise__item { border-inline-start: 0 !important; overflow: hidden; }
.promise__item:not(:first-child)::before { content: ""; position: absolute; inset-block: 16%; inset-inline-start: 0; width: 1px; background: var(--grad-line); }
.promise__item::after { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--grad-warm); transform: scaleX(0); transform-origin: var(--to, left); transition: transform 0.45s var(--ease); }
[dir="rtl"] .promise__item::after { --to: right; }
.promise__item:hover::after { transform: scaleX(1); }
.promise__item:hover .promise__ic { color: var(--clay); }
@media (max-width: 900px) {
  .promise__item:nth-child(odd)::before { display: none; }
}

/* ---------- EMERALD DEPTH ---------- */
.bg-emerald { background: var(--grad-jewel); }
.section.bg-emerald.motif-tex::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at calc(50% + var(--px,0)*16%) 18%, rgba(199,91,54,0.16), transparent 60%); transition: background 0.3s ease-out; }

/* ---------- WARM SECTION WASH ---------- */
.section.bg-sand { background: radial-gradient(120% 90% at 100% 0%, rgba(224,138,79,0.08), transparent 52%), var(--linen); }
.section.bg-paper.cta-big { background: radial-gradient(80% 70% at 50% 110%, rgba(224,138,79,0.10), transparent 60%), var(--paper); }

/* ---------- WARM BUTTON ---------- */
.btn--warm { background: var(--grad-warm); color: #fff; border-color: transparent; }
.btn--warm:hover { filter: saturate(1.08) brightness(1.04); box-shadow: 0 18px 42px -20px rgba(176,67,42,0.65); }

/* ---------- WARM RAIL ACCENTS ---------- */
.rcard__season { background: var(--grad-warm); color: #fff; border-color: transparent; }
.rcard::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px rgba(243,238,226,0.14); pointer-events: none; z-index: 3; transition: box-shadow 0.4s var(--ease); }
.rcard:hover::after { box-shadow: inset 0 0 0 2px rgba(224,138,79,0.55); }

/* ---------- SCROLL REVEAL ---------- */
/* Hidden starting state applies ONLY once JS adds .reveal-ready (so content is never
   permanently invisible if JS/IO fails). A timeout safety net in useReveal also reveals all. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal-ready [data-reveal="left"] { transform: translateX(-44px); }
.reveal-ready [data-reveal="right"] { transform: translateX(44px); }
.reveal-ready [data-reveal="scale"] { transform: scale(0.92); }
.reveal-ready [data-reveal="clip"] { opacity: 1; clip-path: inset(0 100% 0 0); transform: none; }
[dir="rtl"] .reveal-ready [data-reveal="clip"] { clip-path: inset(0 0 0 100%); }
[data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; } }

/* ---------- TILT ---------- */
.tilt { transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)); transition: transform 0.4s var(--ease); transform-style: preserve-3d; }
.tilt__inner { transform: translate(var(--mx,0), var(--my,0)); transition: transform 0.4s var(--ease); }

/* ---------- MAGNETIC ---------- */
.btn[style], .mag { transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease); }

/* ---------- ROTATING WORD ---------- */
.rot-word { position: relative; display: inline-grid; vertical-align: bottom; color: var(--gold-soft); font-style: italic; }
.rot-word__ghost { visibility: hidden; }
.rot-word__item { position: absolute; inset: 0; opacity: 0; transform: translateY(0.5em) rotate(2deg); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); white-space: nowrap; }
.rot-word__item.is-in { opacity: 1; transform: none; }
.rot-word__item.is-out { opacity: 0; transform: translateY(-0.5em) rotate(-2deg); }
@media (prefers-reduced-motion: reduce){ .rot-word__item { transition: none; } }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; width: 100%; }
.marquee__track { display: flex; width: max-content; animation: mq var(--mq-dur,32s) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__run { display: flex; align-items: center; }
.marquee__item { display: inline-flex; align-items: center; gap: clamp(28px,4vw,56px); padding-inline-end: clamp(28px,4vw,56px); white-space: nowrap; }
.marquee__star { color: var(--gold); opacity: 0.85; flex: 0 0 auto; }
@keyframes mq { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-direction: reverse; }
[dir="rtl"] .marquee--rev .marquee__track { animation-direction: normal; }
@media (prefers-reduced-motion: reduce){ .marquee__track { animation: none; } }

.mq-band { background: var(--emerald); color: var(--paper); padding-block: 20px; border-block: 1px solid var(--emerald-deep); }
.mq-band .marquee__item { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: 0.01em; }
.mq-band .marquee__star { color: var(--gold-soft); }

/* ---------- LIVE PRAYER ---------- */
.prayer-now { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: var(--r-pill); background: rgba(22,34,28,0.34); border: 1px solid rgba(243,238,226,0.22); backdrop-filter: blur(8px); font-size: 0.86rem; animation: prayerIn 0.6s var(--ease); }
.prayer-now--light { color: var(--on-dark); }
.prayer-now__dot { width: 8px; height: 8px; border-radius: 50%; background: #5fbf8a; box-shadow: 0 0 0 0 rgba(95,191,138,0.7); animation: pulse 1.8s infinite; flex: 0 0 auto; }
.prayer-now__label { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: #7fd3a3; }
.prayer-now__body strong { color: var(--gold-soft); font-weight: 600; }
.prayer-now__local { font-variant-numeric: tabular-nums; }
.prayer-now__cd { font-variant-numeric: tabular-nums; color: var(--paper); font-weight: 600; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,191,138,0.6); } 70% { box-shadow: 0 0 0 9px rgba(95,191,138,0); } 100% { box-shadow: 0 0 0 0 rgba(95,191,138,0); } }
@keyframes prayerIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   KINETIC HERO
   ============================================================ */
.hero2 { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: var(--on-dark); }
.hero2__media { position: absolute; inset: 0; }
.hero2__media .media { height: 100%; border-radius: 0; }
.hero2__media .media img { height: 100%; animation: kenburns 22s ease-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.16) translate(-2%, -2%); } }
@media (prefers-reduced-motion: reduce){ .hero2__media .media img { animation: none; } }
.hero2__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,26,21,0.88) 2%, rgba(16,26,21,0.32) 38%, rgba(16,26,21,0.12) 64%, rgba(16,26,21,0.5) 100%); }
.hero2__spin { position: absolute; inset-block-start: clamp(90px,14vh,150px); inset-inline-end: clamp(-60px,-3vw,-20px); width: clamp(220px,30vw,460px); height: clamp(220px,30vw,460px); color: var(--gold-soft); opacity: 0.16; z-index: 1; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .hero2__spin { animation: none; } }
.hero2__inner { position: relative; z-index: 3; width: 100%; padding-block: 0 clamp(40px,6vh,72px); padding-block-start: 120px; }
.hero2__top { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(20px,4vh,40px); flex-wrap: wrap; }
.hero2 h1 { color: var(--paper); margin: 0; font-size: clamp(3rem, 8.5vw, 8rem); line-height: 0.96; letter-spacing: -0.02em; font-weight: 500; }
.hero2 h1 .l2 { display: block; }
.hero2__sub { color: rgba(243,238,226,0.92); max-width: 46ch; margin: clamp(18px,3vh,30px) 0 0; font-size: clamp(1.05rem,1.5vw,1.35rem); line-height: 1.5; }
.hero2__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: clamp(24px,4vh,38px); }
.hero2__cue { display: flex; align-items: center; gap: 12px; margin-top: clamp(26px,4vh,44px); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero2__cue-line { width: 54px; height: 1px; background: var(--gold-soft); position: relative; overflow: hidden; }
.hero2__cue-line::after { content:""; position:absolute; inset:0; left:-50%; width:50%; background: var(--paper); animation: cueSlide 2s var(--ease) infinite; }
@keyframes cueSlide { to { left: 120%; } }
[lang="ar"] .hero2 h1 { letter-spacing: 0; line-height: 1.18; }

/* ============================================================
   PROMISE STRIP (energetic trust)
   ============================================================ */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.promise__item { padding: clamp(26px,3vw,40px) clamp(20px,2vw,30px); border-inline-start: 1px solid var(--line-soft); position: relative; transition: background 0.4s var(--ease); }
.promise__item:first-child { border-inline-start: 0; }
.promise__item:hover { background: var(--card); }
.promise__num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: 0.1em; }
.promise__ic { width: 46px; height: 46px; color: var(--emerald); margin: 18px 0 16px; transition: transform 0.5s var(--ease); }
.promise__item:hover .promise__ic { transform: translateY(-4px) rotate(-6deg); }
.promise__t { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); margin: 0 0 8px; line-height: 1.08; }
.promise__b { font-size: 0.95rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ============================================================
   DRAGGABLE DESTINATION RAIL
   ============================================================ */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px,4vw,44px); }
.rail-wrap { position: relative; }
.dest-rail { display: flex; gap: clamp(16px,1.8vw,26px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px clamp(20px,5vw,56px) 28px; margin-inline: calc(-1 * clamp(20px,5vw,56px)); cursor: grab; scrollbar-width: none; -ms-overflow-style: none; }
.dest-rail::-webkit-scrollbar { display: none; }
.dest-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.dest-rail.is-drag * { pointer-events: none; }
.rcard { position: relative; flex: 0 0 clamp(280px, 34vw, 440px); scroll-snap-align: center; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4.1; background: var(--limestone); }
.rcard__media { position: absolute; inset: 0; }
.rcard__media .media { height: 100%; border-radius: 0; }
.rcard__media .media img { height: 100%; transition: transform 1.1s var(--ease); }
.rcard:hover .rcard__media .media img { transform: scale(1.07); }
.rcard__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,26,21,0.86), rgba(16,26,21,0.18) 48%, rgba(16,26,21,0.32)); }
.rcard__idx { position: absolute; inset-block-start: 18px; inset-inline-start: 20px; font-family: var(--serif); font-size: 2.6rem; color: rgba(243,238,226,0.9); line-height: 1; font-weight: 500; z-index: 2; }
.rcard__idx small { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.18em; display: block; margin-top: 4px; color: var(--gold-soft); }
.rcard__season { position: absolute; inset-block-start: 22px; inset-inline-end: 18px; z-index: 2; font-size: 0.62rem; letter-spacing: 0.06em; padding: 0.4em 0.7em; white-space: nowrap; }
.rcard__body { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 2; padding: clamp(20px,2.4vw,30px); color: var(--on-dark); }
.rcard__region { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.rcard__name { font-family: var(--serif); font-size: clamp(1.9rem,2.6vw,2.5rem); font-weight: 600; color: var(--paper); margin: 6px 0 6px; line-height: 1; }
.rcard__tag { font-size: 0.92rem; color: rgba(243,238,226,0.85); margin: 0 0 14px; line-height: 1.45; max-width: 32ch; opacity: 0; max-height: 0; transition: opacity 0.45s var(--ease), max-height 0.45s var(--ease); }
.rcard:hover .rcard__tag { opacity: 1; max-height: 80px; }
.rcard__go { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.03em; color: var(--paper); }
.rcard__go svg { transition: transform 0.35s var(--ease); }
.rcard:hover .rcard__go svg { transform: translateX(5px); }
[dir="rtl"] .rcard__go svg { transform: scaleX(-1); }
.rail-progress { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding-inline: 2px; }
.rail-track { flex: 1; height: 2px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.rail-thumb { position: absolute; inset-block: 0; height: 2px; background: var(--emerald); border-radius: 2px; transition: width 0.1s linear, left 0.1s linear; }
.rail-hint { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; white-space: nowrap; }
.rail-arrows { display: flex; gap: 8px; }
.rail-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--emerald); display: grid; place-items: center; transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease); }
.rail-arrow:hover { background: var(--emerald); color: var(--paper); }
.rail-arrow:active { transform: scale(0.92); }
[dir="rtl"] .rail-arrow svg { transform: scaleX(-1); }

/* ============================================================
   TESTIMONIAL MARQUEE (emerald)
   ============================================================ */
.testi-marquee .marquee__item { align-items: stretch; }
.testi-marquee .testi-card { flex: 0 0 clamp(320px, 32vw, 420px); height: 100%; margin-inline-end: 24px; }
.testi-marquee .marquee__track { animation-duration: 46s; }

/* ============================================================
   BIG CTA
   ============================================================ */
.cta-big { position: relative; overflow: hidden; }
.cta-big__inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-big h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.98; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .promise { grid-template-columns: 1fr 1fr; }
  .promise__item:nth-child(3), .promise__item:nth-child(4) { border-block-start: 1px solid var(--line-soft); }
  .promise__item:nth-child(odd) { border-inline-start: 0; }
}
@media (max-width: 600px) {
  .promise { grid-template-columns: 1fr; }
  .promise__item { border-inline-start: 0 !important; border-block-start: 1px solid var(--line-soft); }
  .promise__item:first-child { border-block-start: 0; }
  .rcard { flex-basis: 80vw; }
  .hero2 h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
}
