/* FX — Front Experience System (ABOS v2 §2.14.1). المواقع العامة: خطوط عرض، سلّم خطوط مرن، حركة بمعنى.
   القاعدة: المحتوى ظاهر افتراضيًا — الإخفاء قبل الظهور بيحصل بس لما JS يشتغل والمتصفح يدعم، وعنصر الـLCP عمره ما يبدأ مخفي. */
.fx {
  --fx-ink: #141414; --fx-ink-2: #4a4a48; --fx-ink-3: #77756f; --fx-paper: #fbfaf7; --fx-paper-2: #f3f0ea; --fx-line: #e3ded4;
  --fx-accent: #0f2e2e; --fx-accent-ink: #ffffff; --fx-glow: #2bb3a3; --fx-gold: #c9a24a;
  --fx-display: 'Cairo', system-ui, sans-serif; --fx-text: 'Cairo', system-ui, sans-serif;
  --fx-d1: clamp(2.5rem, 1.6rem + 4.2vw, 5.5rem); --fx-d2: clamp(2rem, 1.4rem + 2.8vw, 3.75rem);
  --fx-h2: clamp(1.6rem, 1.25rem + 1.6vw, 2.6rem); --fx-h3: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --fx-body: clamp(1rem, .96rem + .2vw, 1.125rem); --fx-small: .875rem;
  --fx-space: clamp(64px, 6vw + 32px, 128px); --fx-gutter: clamp(16px, 4vw, 40px); --fx-max: 1240px;
  --fx-r: 14px; --fx-r-lg: 22px;
  --fx-t1: 200ms; --fx-t2: 450ms; --fx-t3: 800ms; --fx-ease: cubic-bezier(.16, 1, .3, 1); --fx-ease-in: cubic-bezier(.7, 0, .84, 0);
  background: var(--fx-paper); color: var(--fx-ink); font-family: var(--fx-text); font-size: var(--fx-body); line-height: 1.65;
}
.fx h1, .fx h2, .fx h3 { font-family: var(--fx-display); line-height: 1.15; margin: 0; letter-spacing: 0; }
.fx .fx-d1 { font-size: var(--fx-d1); font-weight: 700; line-height: 1.08; }
.fx .fx-d2 { font-size: var(--fx-d2); font-weight: 700; }
.fx .fx-h2 { font-size: var(--fx-h2); font-weight: 700; }
.fx .fx-h3 { font-size: var(--fx-h3); font-weight: 700; }
.fx .fx-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); color: var(--fx-ink-2); max-width: 58ch; }
.fx .fx-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fx-small); font-weight: 700; color: var(--fx-ink-3); letter-spacing: 0; }
.fx .fx-wrap { width: min(100% - 2 * var(--fx-gutter), var(--fx-max)); margin-inline: auto; }
.fx .fx-sec { padding-block: var(--fx-space); }
.fx .fx-sec--tint { background: var(--fx-paper-2); }
.fx .fx-sec--dark { background: var(--fx-accent); color: var(--fx-accent-ink); }
.fx .fx-sec--dark .fx-lead { color: rgba(255, 255, 255, .78); }
.fx .fx-num { font-variant-numeric: tabular-nums; }
.fx .fx-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* CTA: wording واحد في الموقع، زرار أساسي + ثانوي بس */
.fx .fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 1rem/1 var(--fx-text);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform var(--fx-t1) var(--fx-ease), background var(--fx-t1), box-shadow var(--fx-t1); }
.fx .fx-btn:active { transform: translateY(1px) scale(.99); }
.fx .fx-btn--primary { background: var(--fx-accent); color: var(--fx-accent-ink); }
.fx .fx-btn--primary:hover { box-shadow: 0 10px 30px -10px var(--fx-accent); transform: translateY(-1px); }
.fx .fx-btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.fx .fx-btn--light { background: #fff; color: var(--fx-ink); }
.fx .fx-cta-note { display: block; margin-top: 10px; font-size: var(--fx-small); color: var(--fx-ink-3); }
.fx :focus-visible { outline: 3px solid var(--fx-glow); outline-offset: 3px; border-radius: 6px; }

/* Hero: صورة كاملة + عنوان بكشف مقنّع. الصورة نفسها LCP ⇒ ظاهرة من أول لحظة */
.fx .fx-hero { position: relative; min-height: min(92svh, 860px); display: grid; align-items: end; overflow: hidden; color: #fff; isolation: isolate; }
.fx .fx-hero-media { position: absolute; inset: 0; z-index: -2; }
.fx .fx-hero-media img, .fx .fx-hero-media picture, .fx .fx-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx .fx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .62)); }
.fx .fx-hero-body { padding-block: clamp(96px, 14vh, 160px) clamp(48px, 9vh, 96px); }
.fx .fx-hero .fx-lead { color: rgba(255, 255, 255, .86); }
.fx .fx-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Ken Burns هادي للهيرو (6ث) — ثابت مع تقليل الحركة */
.fx .fx-kb img { animation: fx-kb 6s var(--fx-ease) both; }
@keyframes fx-kb { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Reveal — بيشتغل بس مع JS + دعم */
.fx-js .fx [data-fx="up"], .fx-js .fx [data-fx="mask"] { opacity: 0; transform: translateY(24px); transition: opacity var(--fx-t2) var(--fx-ease), transform var(--fx-t2) var(--fx-ease); }
.fx-js .fx [data-fx="mask"] { clip-path: inset(0 0 100% 0); transform: none; transition: clip-path var(--fx-t3) var(--fx-ease), opacity var(--fx-t2); }
.fx-js .fx [data-fx].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.fx-js .fx [data-fx-delay="1"] { transition-delay: 80ms; } .fx-js .fx [data-fx-delay="2"] { transition-delay: 160ms; } .fx-js .fx [data-fx-delay="3"] { transition-delay: 240ms; }
@supports (animation-timeline: view()) {
  .fx-js .fx [data-fx="scrub"] { animation: fx-scrub linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
}
@keyframes fx-scrub { from { opacity: .2; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }

/* Before/after — قبل/بعد بالسحب (لمس + كيبورد) */
.fx .fx-ba { position: relative; overflow: hidden; border-radius: var(--fx-r-lg); aspect-ratio: 16 / 10; background: var(--fx-paper-2); --pos: 50%; touch-action: pan-y; }
.fx .fx-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx .fx-ba .fx-ba-after { clip-path: inset(0 0 0 var(--pos)); }
.fx .fx-ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.fx .fx-ba .fx-ba-handle { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--pos); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.fx .fx-ba .fx-ba-handle::after { content: "⇆"; position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--fx-ink); display: grid; place-items: center; font-weight: 700; }
.fx .fx-ba-label { position: absolute; top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: var(--fx-small); }

/* Sticky mobile bar: أكشنين بالكتير، بيشيل واتساب والشات */
.fx .fx-sticky { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 50; display: none; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .35); }
@media (max-width: 760px) { .fx .fx-sticky { display: flex; } .fx .fx-sticky .fx-btn { flex: 1; min-height: 48px; padding: 0 14px; } body.fx-has-sticky { padding-bottom: 84px; } }
.fx .fx-sticky .fx-sticky-price { display: flex; flex-direction: column; justify-content: center; padding-inline: 12px; font-size: var(--fx-small); color: var(--fx-ink-2); }

/* Generic grids/cards (بدون كروت في كل حتة) */
.fx .fx-grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.fx .fx-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.fx .fx-media { border-radius: var(--fx-r-lg); overflow: hidden; background: var(--fx-paper-2); }
.fx .fx-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--fx-ease); }
.fx a:hover .fx-media img { transform: scale(1.03); }
.fx .fx-faq details { border-bottom: 1px solid var(--fx-line); padding: 18px 0; }
.fx .fx-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fx .fx-faq summary::after { content: "+"; font-size: 1.4em; line-height: 1; transition: transform var(--fx-t1); }
.fx .fx-faq details[open] summary::after { transform: rotate(45deg); }

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  .fx-js .fx [data-fx] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; animation: none !important; }
  .fx *, .fx *::before, .fx *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  @view-transition { navigation: none; }
}
