/* =====================================================================
   مواقع المكاتب العقارية — نظام التصميم «فخامة هادية» (مستوحى من أسلوب مكاتب بيفرلي هيلز)
   عربي من الأساس (RTL). صور تملا الشاشة، خط خفيف، كريمي + كحلي غامق، ذهبي بس للخطوط الرفيعة،
   أزرار مستطيلة بإطار رفيع، وما فيه زحمة.
   المتغيرات --navy --gold --bg تجي من محرر التصميم (/api/site-config) فلا تغيّر أسماءها
   ===================================================================== */

:root {
  --navy: #13294b;
  --navy-2: #1c3864;
  --navy-ink: #0e1b30;
  --gold: #b08d4a;
  --gold-2: #cdb07a;
  --gold-ink: #7f6129;
  --gold-soft: #ece3d2;
  --bg: #f1ede6;
  --surface: #f7f4ef;
  --surface-2: #e8e2d8;
  --line: #d9d1c4;
  --line-2: #c4b9a7;
  --text: #2a303b;
  --muted: #535a66;
  --ok: #1f7a4d;
  --warn: #a86a12;
  --bad: #b42318;

  --wrap: 1300px;
  --gut: 70px;
  --gap: 20px;
  --head-h: 96px;
  --padt: 128px;
  --padb: 128px;
  --r-sm: 0px;
  --r-md: 0px;
  --r-lg: 0px;
  --radius: 0px;

  --head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --fs-h1: 56px;
  --fs-h2: 40px;
  --fs-h3: 24px;
  --fs-lead: 19px;
  --fs-body: 17px;
  --w-head: 300;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px rgba(14, 27, 48, 0.12);
}
@media (max-width: 1024px) { :root { --gut: 40px; --fs-h1: 46px; --fs-h2: 34px; --padt: 104px; --padb: 104px; } }
@media (max-width: 767px) {
  :root { --gut: 22px; --gap: 12px; --head-h: 72px; --padt: 80px; --padb: 80px; --fs-h1: 34px; --fs-h2: 28px; --fs-h3: 20px; --fs-lead: 17px; --fs-body: 16px; }
}

/* ===== الأساس ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; font-family: var(--body); font-size: var(--fs-body); font-weight: 400; line-height: 1.9;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-top: var(--head-h);
}
body.on-photo { padding-top: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: var(--w-head); color: var(--navy-ink); margin: 0 0 0.5em; text-wrap: balance; letter-spacing: 0; }
h1 { font-size: var(--fs-h1); line-height: 1.4; }
h2 { font-size: var(--fs-h2); line-height: 1.45; }
h3 { font-size: var(--fs-h3); line-height: 1.55; font-weight: 400; }
h4 { font-size: 17px; line-height: 1.6; font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
::selection { background: var(--gold-soft); color: var(--navy-ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; inset-inline-start: var(--gut); top: -80px; z-index: 300; background: var(--navy-ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap, .container { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.container.narrow { max-width: 860px; }

/* ===== الأقسام ===== */
.section, main > section { position: relative; padding-block: var(--padt) var(--padb); }
.section-alt, .tone-surface { background: var(--surface); }
.tone-dark { background: var(--navy-ink); color: #d9dde5; }
.tone-dark h2, .tone-dark h3 { color: #fff; }
.bleed { padding: 0 !important; }

/* عنوان القسم: نمط واحد في كل الموقع
   خط رفيع يرسم نفسه، رقم القسم + عنوان صغير، العنوان الكبير يمين، وسطر أو رابط يسار تحت */
.section-head { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; margin: 0 0 64px; padding-top: 28px; }
.section-head::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--line-2); transform-origin: right; }
.sh-title { grid-column: 1 / span 7; }
.sh-side { grid-column: 9 / -1; color: var(--muted); font-size: 16px; line-height: 1.8; }
.sh-side p { margin: 0 0 16px; }
.sh-side .link { margin-top: 4px; }
.section-head h2 { margin: 0; max-width: 20ch; }
.kicker, .eyebrow { display: flex; align-items: baseline; gap: 14px; font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--gold-ink); margin-bottom: 14px; }
.sh-num { font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: 0.04em; }
.sh-num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-start: 12px; opacity: 0.6; }
.tone-dark .kicker, .on-dark .kicker, .on-dark .eyebrow { color: var(--gold-2); }

/* ===== الأزرار: مستطيلة بإطار رفيع ===== */
.btn {
  --bh: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--bh); padding: 0 38px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 500 15px/1 var(--body); cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 160ms var(--ease-out);
}
.btn svg { flex: none; }
.btn .arr { display: inline-block; transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arr { transform: translateX(-5px); } }
.btn:active { transform: scale(0.98); transition-duration: 80ms; }
.btn-primary, .btn-gold { background: var(--navy-ink); color: #fff; border-color: var(--navy-ink); }
.btn-primary:hover, .btn-gold:hover { background: var(--navy); border-color: var(--navy); }
.btn-ghost { background: transparent; border-color: var(--navy-ink); color: var(--navy-ink); }
.btn-ghost:hover { background: var(--navy-ink); color: #fff; }
.btn-light, .btn-line { background: transparent; border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn-light:hover, .btn-line:hover { background: #fff; color: var(--navy-ink); border-color: #fff; }
.btn-sm { --bh: 44px; padding: 0 22px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-ink); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color 200ms; }
.link:hover { border-color: var(--navy-ink); }
.center-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 56px; }

/* ===== الهيدر ===== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--head-h);
  background: var(--bg); color: var(--navy-ink); border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}
.site-header .wrap { height: 100%; width: calc(100% - 2 * 40px); max-width: none; display: flex; align-items: center; gap: 28px; }
.site-header.scrolled { border-bottom-color: var(--line); }
body.on-photo .site-header:not(.scrolled):not(.menu-open) { background: transparent; color: #fff; }
body.on-photo .site-header:not(.scrolled):not(.menu-open)::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(180deg, rgba(8, 14, 26, 0.45), transparent); pointer-events: none; z-index: -1; }
.brand { display: flex; align-items: center; gap: 14px; font-family: var(--head); font-weight: 400; font-size: 20px; line-height: 1.3; color: inherit; }
.brand img { width: 44px; height: 44px; }
.brand small { display: block; font-family: var(--body); font-size: 12px; opacity: 0.75; }
.head-links { display: flex; gap: 32px; margin-inline-start: auto; font-size: 15px; }
.head-links a { position: relative; padding: 6px 0; }
.head-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out); }
.head-links a:hover::after, .head-links a.active::after { transform: scaleX(1); }
.header-cta { --bh: 46px; padding: 0 26px; font-size: 14px; background: transparent; color: inherit; border-color: currentColor; }
.header-cta:hover { background: var(--navy-ink); color: #fff; border-color: var(--navy-ink); }
body.on-photo .site-header:not(.scrolled):not(.menu-open) .header-cta:hover { background: #fff; color: var(--navy-ink); border-color: #fff; }
.menu-btn { position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; flex: none; }
.menu-btn span { position: absolute; inset-inline: 8px; height: 1px; background: currentColor; transition: transform 300ms var(--ease-out), opacity 200ms; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 29px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* القائمة: لوحة تملا الشاشة */
.menu-panel {
  position: fixed; inset: var(--head-h) 0 0; z-index: 99; background: var(--bg); color: var(--navy-ink);
  overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.menu-panel.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-panel .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-block: 56px 64px; }
.menu-main { grid-column: 1 / span 5; list-style: none; margin: 0; padding: 0; }
.menu-main a { display: block; font-family: var(--head); font-weight: 300; font-size: 38px; line-height: 1.5; padding: 6px 0; color: var(--navy-ink); transition: color 200ms, padding 300ms var(--ease-out); }
.menu-main a:hover, .menu-main a.active { color: var(--gold-ink); padding-inline-start: 12px; }
.menu-cols { grid-column: 7 / span 3; display: grid; gap: 32px; align-content: start; padding-top: 14px; }
.menu-cols h4 { font-family: var(--body); font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.menu-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-cols a { font-size: 16px; }
.menu-cols a:hover { color: var(--gold-ink); }
.menu-photo { grid-column: 10 / -1; position: relative; min-height: 380px; overflow: hidden; }
.menu-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-panel.open .menu-main li { animation: enter-up 600ms var(--ease-out) both; }
.menu-panel.open .menu-main li:nth-child(2) { animation-delay: 50ms; }
.menu-panel.open .menu-main li:nth-child(3) { animation-delay: 100ms; }
.menu-panel.open .menu-main li:nth-child(4) { animation-delay: 150ms; }
.menu-panel.open .menu-main li:nth-child(5) { animation-delay: 200ms; }
.menu-panel.open .menu-main li:nth-child(6) { animation-delay: 250ms; }
.site-header.menu-open { background: var(--bg); color: var(--navy-ink); border-bottom-color: var(--line); }
html.menu-lock { overflow: hidden; }

/* ===== الواجهة: صورة تملا الشاشة، عنوان كبير يمين والنص والأزرار يسار ===== */
.hero { position: relative; height: 100svh; min-height: 620px; padding: 0 !important; color: #fff; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: -6% 0; z-index: -2; background: var(--hero-img) center / cover no-repeat var(--navy-ink); animation: settle 2600ms var(--ease-out) both, drift 26s ease-in-out 2600ms infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 14, 26, 0.72) 0%, rgba(8, 14, 26, 0.28) 42%, rgba(8, 14, 26, 0.05) 70%), linear-gradient(270deg, rgba(8, 14, 26, 0.25), transparent 60%); }
.hero-inner { width: min(var(--wrap), 100% - 2 * var(--gut)); margin: 0 auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; padding-bottom: 104px; }
.hero-title { grid-column: 1 / span 7; }
.hero-side { grid-column: 9 / -1; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.9); font-size: 15px; margin-bottom: 20px; }
.hero .eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold-2); transform-origin: right; align-self: center; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.4vw, 78px); line-height: 1.28; margin: 0; }
.hero .lead { color: rgba(255, 255, 255, 0.9); font-size: 17px; line-height: 1.85; margin: 0; }
.hero-stat { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.hero-stat b { font-family: var(--body); font-weight: 300; font-size: 36px; line-height: 1.2; }
.hero-stat span { font-size: 14px; opacity: 0.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero .hero-actions .btn { --bh: 50px; padding: 0 28px; }
.hero .hero-actions .btn-primary { background: #fff; color: var(--navy-ink); border-color: #fff; }
.hero .hero-actions .btn-primary:hover { background: transparent; color: #fff; }
.hero .hero-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.hero .hero-actions .btn-ghost:hover { background: #fff; color: var(--navy-ink); }
.hero-down { position: absolute; bottom: 26px; left: 50%; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; color: #fff; opacity: 0.85; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes settle { from { transform: scale(1.1); } to { transform: none; } }
@keyframes drift { from { transform: none; } to { transform: scale(1.06) translateX(-1%); } }
@keyframes enter-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* أشكال الواجهة من المحرر */
[data-hero="center"] .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
[data-hero="center"] .hero-title, [data-hero="center"] .hero-side { grid-column: 1; max-width: 760px; }
[data-hero="center"] .hero .eyebrow { justify-content: center; }
[data-hero="center"] .hero .eyebrow::before { display: none; }
[data-hero="center"] .hero-stat { justify-content: center; }
[data-hero="center"] .hero-actions { justify-content: center; }
[data-hero="frame"] .hero { height: calc(100svh - 20px); margin: 0 20px; }

/* ===== البحث: شريط بخطوط سفلية ===== */
main > section.search-band { padding-block: 72px 0; }
.quick-search { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 36px; align-items: end; }
.quick-search label { margin: 0; font-size: 13px; color: var(--muted); }
.quick-search :is(select, input) { margin-top: 4px; border: 0; border-bottom: 1px solid var(--navy-ink); padding: 10px 0; font-size: 17px; color: var(--navy-ink); }

/* ===== العقارات: صور كبيرة والاسم والسعر عليها ===== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.listings { width: calc(100% - 2 * 20px); margin-inline: auto; }
.card { position: relative; display: block; overflow: hidden; color: #fff; aspect-ratio: 7 / 5; background: var(--surface-2); isolation: isolate; }
.card-img { position: absolute; inset: 0; z-index: -2; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 14, 26, 0.72) 0%, rgba(8, 14, 26, 0.12) 38%, transparent 60%); }
.card-body { position: absolute; inset-inline: 0; bottom: 0; padding: 32px 36px; display: flex; flex-direction: column; gap: 2px; }
.card-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; opacity: 0.88; }
.card-title { font-family: var(--head); font-weight: 300; font-size: 26px; line-height: 1.45; }
.card-price { font-size: 17px; letter-spacing: 0.02em; }
.card-price small { font-size: 14px; opacity: 0.8; }
.card-meta, .card-lic, .card-go { display: none; }
.badge { position: absolute; top: 24px; inset-inline-start: 24px; z-index: 1; background: var(--navy-ink); color: #fff; font-size: 13px; padding: 5px 14px; }
.badge.rent, .badge.sold { background: #fff; color: var(--navy-ink); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-img img { transform: scale(1.03); } }
.card.enter { animation: enter-up 500ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
/* أول عقار مختار: يملا الشاشة */
.feature { position: relative; display: block; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; isolation: isolate; margin-bottom: var(--gap); }
.feature img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; transition: transform 1600ms var(--ease-out); }
.feature::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 36%; z-index: -1; background: linear-gradient(0deg, rgba(8, 14, 26, 0.8), transparent); }
.feature-body { position: absolute; bottom: 56px; inset-inline-start: var(--gut); }
.feature-body .kicker { color: rgba(255, 255, 255, 0.85); margin-bottom: 8px; }
.feature-body b { display: block; font-family: var(--head); font-weight: 300; font-size: var(--fs-h2); line-height: 1.4; }
.feature-body span { font-size: 18px; }
@media (hover: hover) and (pointer: fine) { .feature:hover img { transform: scale(1.02); } }

/* ===== صورة كاملة ولوحة زجاجية (الخدمات والختام) ===== */
main > section.panel-photo { position: relative; min-height: 100svh; display: flex; align-items: center; isolation: isolate; overflow: hidden; padding-block: 96px; }
.panel-photo > img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; }
.glass {
  width: min(620px, 100% - 2 * var(--gut)); margin-inline-start: var(--gut); padding: 56px;
  background: rgba(12, 20, 36, 0.78); color: #e6e9ef; backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.glass.end { margin-inline-start: auto; margin-inline-end: var(--gut); }
.glass h2 { color: #fff; margin-bottom: 28px; }
.glass .kicker { color: var(--gold-2); }
.glass p { color: #d6dbe4; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.svc-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.svc-list .ico { display: none; }
.svc-list h3 { color: #fff; font-size: 20px; margin: 0 0 2px; }
.svc-list p { margin: 0; font-size: 15px; color: #c9cfda; }
.glass .btn { margin-top: 32px; }
.cp-path { padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.cp-path h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.cp-path p { margin-bottom: 18px; font-size: 16px; }
.cp-path .btn { margin-top: 0; }

/* شكل الخدمات في الصفحات الثانية */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gap); }
.service { padding-top: 24px; border-top: 1px solid var(--line-2); }
.service .ico { width: 40px; height: 40px; color: var(--gold-ink); display: grid; place-items: center; margin-bottom: 14px; }
.service h3 { font-size: 20px; }
.service p { color: var(--muted); font-size: 16px; margin: 0; }

/* ===== الأرقام ===== */
.statement { max-width: 22ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stat { padding: 28px 0 0; border-top: 1px solid var(--line-2); position: relative; }
.stat b { display: block; font-family: var(--body); font-weight: 300; font-size: 52px; line-height: 1.2; color: var(--navy-ink); }
.stat > span { color: var(--muted); font-size: 15px; }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

/* البطاقتين القديمتين */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cta { padding: 48px; background: var(--navy-ink); color: #fff; }
.cta h3 { color: #fff; }
.cta p { color: #cfd7e6; }
.cta.gold { background: var(--surface); color: var(--navy-ink); border: 1px solid var(--line); }
.cta.gold h3 { color: var(--navy-ink); }
.cta.gold p { color: var(--muted); }

/* ===== بانر عرض ===== */
main > section.banner-sec { padding: 0; }
.banner { position: relative; overflow: hidden; isolation: isolate; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gut) 96px; color: #fff; }
.banner .banner-bg { position: absolute; inset: -8% 0; z-index: -2; background: var(--banner-img) center / cover no-repeat var(--navy-ink); transition: transform 1400ms var(--ease-out); }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 14, 26, 0.72), rgba(8, 14, 26, 0.1) 60%); }
.banner.light { color: var(--navy-ink); }
.banner.light::after { background: linear-gradient(0deg, rgba(241, 237, 230, 0.95), rgba(241, 237, 230, 0.1) 60%); }
.banner-body { max-width: 600px; }
.banner h2 { color: inherit; }
.banner p { color: inherit; opacity: 0.92; font-size: var(--fs-lead); }
.banner .kicker { color: inherit; opacity: 0.85; }
.banner .ends { margin-top: 18px; font-size: 14px; opacity: 0.85; }
.banner.light .btn-light { border-color: var(--navy-ink); color: var(--navy-ink); }
@media (hover: hover) and (pointer: fine) { .banner:hover .banner-bg { transform: scale(1.02); } }

/* ===== صورة ونص ===== */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.split-img { grid-column: 1 / span 7; aspect-ratio: 6 / 5; overflow: hidden; background: var(--surface-2); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text { grid-column: 9 / -1; }
.split.flip .split-img { grid-column: 6 / -1; grid-row: 1; }
.split.flip .split-text { grid-column: 1 / span 4; grid-row: 1; }
.split-text p { color: var(--muted); font-size: var(--fs-lead); line-height: 1.85; }
.split-text .btn { margin-top: 16px; }

/* ===== معرض صور: حافة لحافة بفواصل صغيرة ===== */
.gallery-grid { width: calc(100% - 2 * 20px); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 44svh; gap: var(--gap); }
.gallery-grid figure { margin: 0; overflow: hidden; background: var(--surface-2); grid-column: span 6; }
.gallery-grid figure:nth-child(3n) { grid-column: span 12; grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery-grid figure:hover img { transform: scale(1.03); } }

/* ===== الأحياء ===== */
.area-list { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; border-top: 1px solid var(--line); }
.area-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding 300ms var(--ease-out); }
.area-list b { font-family: var(--head); font-weight: 300; font-size: 28px; color: var(--navy-ink); line-height: 1.4; }
.area-list small { color: var(--muted); font-size: 14px; display: inline-flex; gap: 10px; align-items: center; }
.area-list .arr { color: var(--gold-ink); }
@media (hover: hover) and (pointer: fine) { .area-list a:hover { padding-inline-start: 12px; } }

/* ===== الأسئلة الشائعة ===== */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; cursor: pointer; font-family: var(--head); font-weight: 300; font-size: 21px; color: var(--navy-ink); }
.faq-q i { flex: none; position: relative; width: 16px; height: 16px; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; top: 50%; inset-inline: 0; height: 1px; background: var(--navy-ink); transition: transform 300ms var(--ease-out); }
.faq-q i::after { transform: rotate(90deg); }
.faq-item.open .faq-q i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
.faq-a > p { overflow: hidden; margin: 0; color: var(--muted); max-width: 64ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding-bottom: 26px; }
.faq-q:focus-visible { outline: 1px solid var(--navy-ink); outline-offset: 4px; }

/* ===== آراء العملاء ===== */
.tst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px var(--gap); max-width: 1100px; margin-inline: auto; }
.tst { margin: 0; text-align: center; }
.tst p { font-family: var(--head); font-weight: 300; font-size: 24px; line-height: 1.75; color: var(--navy-ink); }
.tst cite { font-style: normal; font-size: 14px; color: var(--muted); }

/* ===== التواصل والخريطة ===== */
.contact-sec .split-text { grid-column: 1 / span 4; }
.contact-sec .map-box { grid-column: 6 / -1; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { color: var(--gold-ink); flex: none; }
.contact-sec .hero-actions { justify-content: flex-start; margin-top: 28px; }
.map-box { overflow: hidden; min-height: 520px; background: var(--surface-2); }
.map-box iframe { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; filter: grayscale(0.6) contrast(1.02); }

/* ===== رأس الصفحات الداخلية: نفس نمط العناوين ===== */
.page-hero { padding-block: 96px 64px; }
.page-hero .container { position: relative; padding-top: 28px; }
.page-hero .container::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--line-2); }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.3; margin-bottom: 16px; max-width: 18ch; }
.page-hero p { color: var(--muted); margin: 0; max-width: 56ch; font-size: var(--fs-lead); line-height: 1.8; }
.page-hero .kicker { color: var(--gold-ink) !important; }

/* ===== النماذج: خطوط سفلية ===== */
.panel { background: var(--surface); border: 1px solid var(--line); padding: 44px; }
.form-wrap { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { font-family: var(--head); font-weight: 300; color: var(--navy-ink); font-size: 24px; grid-column: 1 / -1; margin-top: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
label { display: block; font-weight: 400; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
label .req { color: var(--bad); }
input, select, textarea {
  width: 100%; font: 16px var(--body); color: var(--navy-ink);
  background-color: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 10px 0;
  transition: border-color 200ms ease;
}
select { appearance: none; -webkit-appearance: none; padding-inline-end: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230e1b30' stroke-width='1.3' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 0 center; }
textarea { min-height: 110px; resize: vertical; border: 1px solid var(--line-2); padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-ink); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.seg label { margin: 0; padding: 10px 18px; border: 1px solid var(--line-2); cursor: pointer; color: var(--navy-ink); font-size: 15px; background: transparent; transition: background-color 200ms, border-color 200ms, color 200ms; }
.seg label:hover { border-color: var(--navy-ink); }
.seg input:checked + label { background: var(--navy-ink); border-color: var(--navy-ink); color: #fff; }
.seg input:focus-visible + label { outline: 1px solid var(--navy-ink); outline-offset: 3px; }
.drop { border: 1px dashed var(--line-2); padding: 32px; text-align: center; cursor: pointer; background: var(--bg); transition: border-color 200ms, background-color 200ms; }
.drop:hover, .drop.over { border-color: var(--navy-ink); background: var(--surface); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.thumbs div { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--surface-2); animation: enter-up 250ms var(--ease-out) both; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; line-height: 1; }
.thumbs .file { display: grid; place-items: center; font-size: 12px; padding: 6px; text-align: center; color: var(--navy); background: var(--gold-soft); }
.alert { padding: 14px 16px; margin-bottom: 16px; font-size: 15px; }
.alert.err { background: #f8e6e3; color: var(--bad); border: 1px solid #efc6c0; }
.success { text-align: center; padding: 40px 20px; }
.success .check { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--ok); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; animation: pop 350ms cubic-bezier(.2, .9, .3, 1.2); }
.success .check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 450ms var(--ease-out) 220ms forwards; }
.success .ref { display: inline-block; font-family: var(--head); font-size: 22px; color: var(--navy-ink); border: 1px solid var(--line-2); padding: 8px 18px; margin: 8px 0 16px; letter-spacing: 0.04em; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px !important; margin: 20px 0 14px !important; line-height: 1.7; color: var(--text) !important; }
.consent input { width: auto; margin-top: 6px; flex: none; }
.consent a { text-decoration: underline; }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; opacity: 0; pointer-events: none; }

/* ===== الفلتر ===== */
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 28px; align-items: end; margin-bottom: 48px; background: transparent !important; border: 0 !important; padding: 0 !important; }
.filters label { font-size: 13px; }
.results-count { color: var(--muted); margin-bottom: 20px; font-size: 15px; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px solid var(--line); }

/* ===== الشهادات والثقة ===== */
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.cert { display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--line-2); padding: 24px 0; }
.cert .seal { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); display: grid; place-items: center; }
.cert h4 { margin: 0; }
.cert p { margin: 0; color: var(--muted); font-size: 14px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.trust { padding-top: 20px; border-top: 1px solid var(--line-2); display: grid; gap: 6px; }
.trust b { color: var(--navy-ink); font-weight: 400; font-size: 18px; }
.trust span { color: var(--muted); font-size: 15px; }
.legal { max-width: 780px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-inline-start: 20px; display: grid; gap: 8px; margin: 0 0 12px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== متابعة العرض ===== */
.track-card { border-top: 1px solid var(--line); padding-top: 20px; }
.track-steps { list-style: none; padding: 0; margin: 0; display: grid; }
.track-steps li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--muted); position: relative; }
.track-steps li i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; background: var(--surface-2); color: #7d8390; z-index: 1; }
.track-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 14px; top: 38px; width: 1px; height: calc(100% - 30px); background: var(--line); }
.track-steps li.done { color: var(--ok); }
.track-steps li.done i { background: #e3efe7; color: var(--ok); }
.track-steps li.on { color: var(--navy-ink); }
.track-steps li.on i { background: var(--navy-ink); color: #fff; }

/* ===== صفحة صاحب المكتب ===== */
.agent-page { min-height: 100vh; background: linear-gradient(180deg, var(--navy-ink) 0 280px, var(--bg) 280px); padding: 40px 0 64px; margin-top: calc(-1 * var(--head-h)); padding-top: calc(var(--head-h) + 40px); }
.agent-card { width: min(520px, 100% - 32px); margin: 0 auto; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; text-align: center; animation: enter-up 800ms var(--ease-out) 80ms both; }
.agent-top { padding: 34px 26px 18px; }
.avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 14px; border: 1px solid var(--gold); background: var(--gold-soft); display: grid; place-items: center; font-family: var(--head); font-size: 40px; color: var(--navy); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 22px 18px; }
.agent-actions a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--line); font-size: 13px; color: var(--navy-ink); transition: background-color 200ms; }
.agent-actions a:hover { background: var(--bg); }
.agent-links { display: grid; gap: 8px; padding: 0 22px 24px; }
.agent-links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border: 1px solid var(--line); transition: background-color 200ms; }
.agent-links a:hover { background: var(--bg); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.chip { font-size: 13px; border: 1px solid var(--line-2); color: var(--muted); padding: 3px 12px; }

/* ===== الفوتر: كحلي غامق ===== */
.site-footer { background: var(--navy-ink); color: #aeb6c4; padding: 112px 0 48px; }
.site-footer h4 { color: #c9cfda; font-family: var(--body); font-weight: 400; font-size: 14px; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.footer-grid > :first-child { grid-column: 1 / span 4; }
.footer-grid > :nth-child(2) { grid-column: 6 / span 2; }
.footer-grid > :nth-child(3) { grid-column: 8 / span 2; }
.footer-grid > :nth-child(4) { grid-column: 10 / span 3; }
.site-footer .brand { color: #fff; font-size: 24px; }
.site-footer .brand img { width: 56px; height: 56px; }
.site-footer p { font-size: 15px; color: #a7b0bf; margin-top: 20px; max-width: 40ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: #d4d9e2; }
.site-footer a { transition: color 200ms; }
.site-footer a:hover { color: var(--gold-2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 88px; padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: #98a1b1; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-lic { display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(255, 255, 255, 0.18); padding: 7px 14px; margin-top: 20px; font-size: 13px; color: #d4d9e2; }
.demo-bar { color: #d4d9e2; }
.site-footer :focus-visible { outline-color: #fff; }

.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; width: 54px; height: 54px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2); z-index: 60; transition: transform 200ms var(--ease-out); animation: enter-up 600ms var(--ease-out) 1400ms both; }
.wa-float:hover { transform: translateY(-2px); }
.demo-note { background: var(--gold-soft); color: var(--navy-ink); border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; margin-bottom: 10px; display: block; }

/* ===== صفحة العقار ===== */
main > section.prop-hero { position: relative; height: 92svh; min-height: 560px; padding: 0; overflow: hidden; background: var(--navy-ink); }
.ph-slides { position: absolute; inset: 0; }
.ph-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.ph-slides img.on { opacity: 1; }
.ph-slides img.on:first-child { animation: settle 2600ms var(--ease-out) both; }
.prop-hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 180px; background: linear-gradient(180deg, rgba(8, 14, 26, 0.45), transparent); pointer-events: none; }
.ph-nav { position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; background: none; border: 0; color: #fff; cursor: pointer; opacity: 0.85; transition: opacity 200ms; }
.ph-nav:hover { opacity: 1; }
.ph-prev { inset-inline-start: 24px; }
.ph-next { inset-inline-end: 24px; }
.ph-next svg { transform: scaleX(-1); }
.ph-all { position: absolute; bottom: 28px; inset-inline-end: 40px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; background: rgba(247, 244, 239, 0.95); color: var(--navy-ink); border: 0; padding: 12px 20px; font-size: 14px; cursor: pointer; transition: background-color 200ms; }
.ph-all:hover { background: #fff; }
.ph-count { position: absolute; bottom: 36px; inset-inline-start: 40px; z-index: 2; color: #fff; font-size: 14px; }

main > section.prop-info { padding-block: 64px var(--padb); }
.prop-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prop-top .badge { position: static; display: inline-block; margin-bottom: 16px; }
.prop-top h1 { font-size: var(--fs-h2); margin: 0; line-height: 1.45; }
.prop-top .card-loc { color: var(--muted); opacity: 1; font-size: 16px; margin-top: 6px; }
.prop-price { text-align: end; }
.prop-price small { display: block; color: var(--muted); font-size: 14px; }
.prop-price b { font-family: var(--head); font-weight: 300; font-size: 34px; color: var(--navy-ink); letter-spacing: 0.02em; }
.prop-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 48px; align-items: start; }
.prop-layout > * { min-width: 0; }
.prop-main { grid-column: 1 / span 8; padding-inline-end: 48px; }
.prop-desc { font-size: 18px; line-height: 2; color: var(--text); white-space: pre-line; max-width: 68ch; }
.prop-main .share-row { margin-top: 32px; }
.side-card { grid-column: 9 / -1; border-inline-start: 1px solid var(--line); padding-inline-start: 48px; position: sticky; top: calc(var(--head-h) + 32px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.fact b { display: block; font-family: var(--head); font-weight: 300; font-size: 28px; line-height: 1.3; color: var(--navy-ink); }
.fact > span { font-size: 14px; color: var(--muted); }
.sc-actions { display: grid; gap: 10px; margin-top: 36px; }
.lic-box { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; font-size: 14px; }
.lic-box b { color: var(--navy-ink); font-weight: 400; }
.lic-box img { flex: none; width: 72px; height: 72px; }
.lic-qr { background: #fff; padding: 4px; object-fit: contain; }
.sc-fal { color: var(--muted); font-size: 13px; margin-top: 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; height: 46px; padding: 0 18px; border: 1px solid var(--line-2); background: transparent; color: var(--navy-ink); font: inherit; font-size: 14px; cursor: pointer; transition: border-color 200ms, background-color 200ms, color 200ms; }
.share-btn:hover { border-color: var(--navy-ink); }
.share-btn.main { background: var(--navy-ink); color: #fff; border-color: var(--navy-ink); padding: 0 28px; }
.share-btn.main:hover { background: var(--navy); }

/* صور العقار: حافة لحافة */
main > section.prop-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding: 0 20px; }
.prop-mosaic button { all: unset; position: relative; overflow: hidden; cursor: zoom-in; height: 78svh; grid-column: span 6; background: var(--surface-2); }
.prop-mosaic button:nth-child(3n), .prop-mosaic button:only-child, .prop-mosaic button:last-child:nth-child(odd) { grid-column: span 12; height: 88svh; }
.prop-mosaic button:focus-visible { outline: 2px solid var(--navy-ink); outline-offset: -2px; }
.prop-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .prop-mosaic button:hover img { transform: scale(1.02); } }
.prop-map-sec .map-box { min-height: 0; aspect-ratio: 21 / 8; }
.prop-map-sec .map-box iframe { min-height: 0; height: 100%; }
.map-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; margin-top: 14px; color: var(--muted); }
.map-note a { color: var(--navy-ink); border-bottom: 1px solid var(--line-2); }
.ask form { max-width: 860px; }
.ask-seg label { font-size: 14px; }
.ask .actions { margin-top: 28px; }

/* عارض الصور */
#viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 20, 0.97); color: #fff; }
#viewer[open] { display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: 80px 1fr 80px; align-items: center; animation: fade 240ms ease both; }
#viewer::backdrop { background: rgba(8, 12, 20, 0.9); }
@keyframes fade { from { opacity: 0; } }
#viewer .v-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; }
#viewer .v-img { grid-column: 2; grid-row: 2; max-width: 100%; max-height: calc(100dvh - 180px); margin: auto; object-fit: contain; user-select: none; touch-action: pan-y; }
#viewer .v-nav { grid-row: 2; width: 52px; height: 52px; margin: auto; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color 200ms; }
#viewer .v-nav:hover { background: rgba(255, 255, 255, 0.1); }
#viewer .v-prev { grid-column: 1; transform: scaleX(-1); }
#viewer .v-next { grid-column: 3; }
#viewer .v-nav[hidden] { display: none; }
#viewer .v-close { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
#viewer .v-strip { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; padding: 12px 24px 22px; justify-content: safe center; scrollbar-width: none; }
#viewer .v-strip button { flex: none; width: 76px; height: 54px; padding: 0; border: 1px solid transparent; overflow: hidden; opacity: 0.45; cursor: pointer; background: none; transition: opacity 200ms; }
#viewer .v-strip button:hover { opacity: 0.8; }
#viewer .v-strip button.on { border-color: #fff; opacity: 1; }
#viewer .v-strip img { width: 100%; height: 100%; object-fit: cover; }
html.no-scroll { overflow: hidden; }
#flash { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--navy-ink); color: #fff; padding: 12px 20px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 200ms, transform 200ms var(--ease-out); z-index: 200; }
#flash.on { opacity: 1; transform: translate(-50%, 0); }
.m-cta { display: none; }

/* =====================================================================
   التجاوب
   ===================================================================== */
@media (max-width: 1100px) { .head-links { display: none; } .header-cta { margin-inline-start: auto; } }
@media (max-width: 1024px) {
  .services, .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .hero-title { grid-column: 1 / span 8; }
  .hero-side { grid-column: 9 / -1; }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-search { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > * { grid-column: span 6 !important; }
  .menu-main { grid-column: 1 / span 7; }
  .menu-cols { grid-column: 8 / -1; }
  .menu-photo { display: none; }
  .prop-main { grid-column: 1 / -1; padding: 0; }
  .side-card { grid-column: 1 / -1; position: static; border-inline-start: 0; padding: 40px 0 0; border-top: 1px solid var(--line); margin-top: 24px; }
  .split-img, .split-text, .split.flip .split-img, .split.flip .split-text, .contact-sec .split-text, .contact-sec .map-box { grid-column: 1 / -1; grid-row: auto; }
  .split-text { padding-top: 24px; }
}
@media (max-width: 767px) {
  .site-header .wrap { width: calc(100% - 2 * var(--gut)); gap: 12px; }
  .brand { font-size: 17px; }
  .brand img { width: 36px; height: 36px; }
  .header-cta { --bh: 40px; padding: 0 14px; font-size: 13px; }
  .menu-panel .wrap { grid-template-columns: 1fr; padding-block: 28px 48px; }
  .menu-main, .menu-cols { grid-column: 1 / -1; }
  .menu-main a { font-size: 28px; }
  .menu-cols { grid-template-columns: 1fr 1fr; padding-top: 24px; border-top: 1px solid var(--line); }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 84px; gap: 28px; }
  .hero-title, .hero-side { grid-column: 1; }
  .hero-stat { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .sh-title, .sh-side { grid-column: 1; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat b { font-size: 40px; }
  .grid, .cta-duo, .certs, .services { grid-template-columns: 1fr; }
  .listings { width: calc(100% - 2 * 12px); }
  .card { aspect-ratio: 4 / 5; }
  .card-body { padding: 24px; }
  .card-title { font-size: 22px; }
  .feature { height: 86svh; }
  .feature-body { bottom: 36px; inset-inline-end: var(--gut); }
  .glass { width: calc(100% - 2 * 12px); margin: 0 12px !important; padding: 32px 24px; }
  main > section.panel-photo { align-items: flex-end; padding: 40svh 0 12px; min-height: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .quick-search { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .gallery-grid { width: calc(100% - 2 * 12px); grid-auto-rows: 36svh; }
  .gallery-grid figure, .gallery-grid figure:nth-child(n) { grid-column: span 12; grid-row: span 1; }
  .banner { padding: 0 var(--gut) 56px; min-height: 86svh; }
  .panel { padding: 24px; }
  .footer-grid > * { grid-column: 1 / -1 !important; }
  .site-footer { padding-top: 72px; }
  .site-footer ul { gap: 0; }
  .site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
  main > section.prop-hero { height: 64svh; min-height: 380px; }
  .ph-nav { display: none; }
  .ph-all { inset-inline-end: 16px; bottom: 16px; }
  .ph-count { inset-inline-start: 16px; bottom: 24px; }
  main > section.prop-info { padding-top: 40px; }
  .prop-price { text-align: start; }
  main > section.prop-mosaic { padding: 0 12px; }
  .prop-mosaic button, .prop-mosaic button:nth-child(n) { grid-column: span 12; height: 52svh; }
  .prop-map-sec .map-box { aspect-ratio: 4 / 3; }
  .m-cta { display: flex; align-items: center; gap: 8px; position: fixed; inset-inline: 0; bottom: 0; z-index: 70; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .m-cta > div { flex: 1; min-width: 0; line-height: 1.3; }
  .m-cta small { display: block; font-size: 12px; color: var(--muted); }
  .m-cta b { font-family: var(--head); font-weight: 400; color: var(--navy-ink); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .m-cta .btn { flex: none; }
  body:has(.m-cta) { padding-bottom: 76px; }
  body:has(.m-cta) .wa-float { display: none; }
  input, select, textarea { font-size: 16px !important; }
  #viewer[open] { grid-template-columns: 0 1fr 0; }
  #viewer .v-nav { display: none; }
}

/* =====================================================================
   الموشن: الكلمات تطلع من تحت قناع، الصور تنكشف مثل الستارة، الخطوط ترسم نفسها،
   الصور الكبيرة تتحرك أبطأ من الصفحة (parallax)، والأرقام تعد. كله مرة وحدة.
   (يشتغل بس لما app.js يحط .js-motion — يعني بدون جافاسكربت كل شي ظاهر)
   ===================================================================== */
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.16em; margin-block: -0.16em; }
.w-mask > span { display: inline-block; }
.js-motion .w-mask > span { transform: translateY(110%); transition: transform 1150ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms + var(--d, 0ms)); }
.js-motion .in .w-mask > span { transform: none; }

.js-motion .rv { opacity: 0; transform: translateY(36px); transition: opacity 1000ms var(--ease-out), transform 1200ms var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.js-motion .rv.in { opacity: 1; transform: none; }
.js-motion .section-head.rv, .js-motion .prop-top.rv { opacity: 1; transform: none; }
.js-motion .section-head::before, .js-motion .page-hero .container::before, .js-motion .stat::before { transform: scaleX(0); transition: transform 1500ms var(--ease-out); }
.js-motion .section-head.in::before, .js-motion .page-hero .in::before { transform: none; }
.js-motion .section-head .kicker, .js-motion .section-head .sh-side { opacity: 0; transform: translateY(14px); transition: opacity 900ms var(--ease-out) 300ms, transform 900ms var(--ease-out) 300ms; }
.js-motion .section-head.in .kicker, .js-motion .section-head.in .sh-side { opacity: 1; transform: none; }

/* الصور: ستارة تنفتح من تحت، والصورة تصغر لحجمها */
.js-motion :is(.card, .feature, .gallery-grid figure, .prop-mosaic button, .split-img, .map-box).rv { opacity: 1; transform: none; position: relative; }
.js-motion :is(.card, .feature, .gallery-grid figure, .prop-mosaic button, .split-img, .map-box).rv::before { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--bg); transform-origin: top; pointer-events: none; transition: transform 1500ms cubic-bezier(0.77, 0, 0.18, 1); transition-delay: calc(var(--i, 0) * 140ms); }
.js-motion :is(.card, .feature, .gallery-grid figure, .prop-mosaic button, .split-img, .map-box).rv.in::before { transform: scaleY(0); }
.js-motion :is(.card, .feature, .gallery-grid figure, .prop-mosaic button, .split-img).rv img { scale: 1.2; transition: scale 2000ms var(--ease-out), transform 1200ms var(--ease-out); }
.js-motion :is(.card, .feature, .gallery-grid figure, .prop-mosaic button, .split-img).rv.in img { scale: 1; }
.js-motion .card .card-body, .js-motion .feature-body > :not(b) { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease-out) 700ms, transform 900ms var(--ease-out) 700ms; }
.js-motion .card.in .card-body, .js-motion .feature.in .feature-body > * { opacity: 1; transform: none; }

/* اللوحة الزجاجية تنزلق من جنب */
.js-motion .glass.rv { transform: translateX(-60px); }
.js-motion .glass.end.rv { transform: translateX(60px); }
.js-motion .glass.rv.in { transform: none; }
.js-motion .glass .svc-list li, .js-motion .glass .cp-path { opacity: 0; transform: translateY(14px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(500ms + var(--i, 0) * 90ms); }
.js-motion .glass.in .svc-list li, .js-motion .glass.in .cp-path { opacity: 1; transform: none; }

/* خط الأرقام يرسم نفسه */
.stat::before { content: ""; position: absolute; top: -1px; inset-inline: 0; height: 1px; background: var(--navy-ink); transform-origin: right; }
.js-motion .stats.in .stat::before { transform: none; transition-delay: calc(var(--i, 0) * 150ms + 200ms); }

/* الواجهة عند التحميل */
.js-motion .hero .eyebrow::before { transform: scaleX(0); transition: transform 1200ms var(--ease-out) 200ms; }
.js-motion .hero .in .eyebrow::before, .js-motion .hero .in.eyebrow::before { transform: none; }
.js-motion .hero .w-mask > span { --d: 250ms; transition-duration: 1300ms; }
.js-motion .hero-side > * { opacity: 0; transform: translateY(20px); transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: calc(700ms + var(--i, 0) * 120ms); }
.js-motion .hero-side.in > * { opacity: 1; transform: none; }
.hero-stat::after { content: ""; position: absolute; }

/* شريط تقدّم القراءة تحت الهيدر */
.scroll-line { position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--gold); transform-origin: right; transform: scaleX(var(--p, 0)); pointer-events: none; }
body.on-photo .site-header:not(.scrolled) .scroll-line { opacity: 0; }
/* الهيدر يختفي وأنت نازل ويرجع لما تطلع */
.site-header { transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform 500ms var(--ease-out); }
.site-header.away { transform: translateY(-100%); }
/* الصور الكبيرة: parallax */
[data-parallax] { translate: 0 calc(var(--py, 0) * 1px); will-change: translate; }

/* =====================================================================
   الحركة: تقليل / إيقاف
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  html { scroll-behavior: auto; }
}
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { [data-parallax] { translate: none; } .site-header.away { transform: none; } }

/* =====================================================================
   الخطوط والزوايا من المحرر
   ===================================================================== */
html[data-font="naskh"] { --head: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif; --w-head: 500; }
html[data-font="plex"] { --head: "IBM Plex Sans Arabic", system-ui, sans-serif; --w-head: 300; }
[data-radius="soft"] { --r-sm: 6px; --r-md: 12px; --r-lg: 18px; }
[data-radius="round"] { --r-sm: 999px; --r-md: 22px; --r-lg: 32px; }
[data-radius="soft"] :is(.card, .split-img, .map-box, .gallery-grid figure, .prop-mosaic button, .menu-photo, .glass, .panel) { border-radius: var(--r-md); }
[data-radius="round"] :is(.card, .split-img, .map-box, .gallery-grid figure, .prop-mosaic button, .menu-photo, .glass, .panel) { border-radius: var(--r-lg); }
[data-radius="round"] :is(.seg label, .share-btn, .badge, .ph-all) { border-radius: 999px; }

/* =====================================================================
   الثيمات
   ===================================================================== */
/* عصري: أبيض وأخضر زمردي */
html[data-theme="asri"] { --navy-ink: #0f2b25; --gold-ink: #0d6b55; --gold-soft: #e1f2ec; --line: #dfe7e4; --line-2: #c6d5cf; --muted: #4f5e59; --surface: #ffffff; --surface-2: #ebf2ef; }
[data-theme="asri"] .site-footer { background: #0c2a23; }

/* نجدي: بيج رملي وطيني */
html[data-theme="najdi"] { --navy-ink: #3b2214; --gold-ink: #8b4a26; --gold-soft: #f0dfcf; --line: #e0cfb9; --line-2: #cdb699; --muted: #6f5a4b; --surface: #fbf5ec; --surface-2: #ecdfcc; --text: #2e2118; }
[data-theme="najdi"] .site-footer { background: #2b1a10; }

/* فخامة: داكن فحمي ونحاسي */
html[data-theme="fakhama"] {
  --text: #e6e2db; --muted: #a39d93; --line: #2c2d31; --line-2: #3e3f44; --surface: #17181b; --surface-2: #1e1f23; --navy-ink: #f2ede4; --gold-ink: #d2a77a;
  --gold-soft: #2a2420; color-scheme: dark;
}
[data-theme="fakhama"] :is(.btn-primary, .btn-gold, .share-btn.main) { background: var(--gold); border-color: var(--gold); color: #111; }
[data-theme="fakhama"] .btn-ghost:hover, [data-theme="fakhama"] .header-cta:hover { color: #111; }
[data-theme="fakhama"] .seg input:checked + label { background: var(--gold); border-color: var(--gold); color: #111; }
[data-theme="fakhama"] .badge { background: #111; color: var(--navy-ink); }
[data-theme="fakhama"] .site-footer { background: #0a0b0c; border-top: 1px solid var(--line); }
[data-theme="fakhama"] .agent-page { background: linear-gradient(180deg, #17181b 0 280px, var(--bg) 280px); }
[data-theme="fakhama"] .alert.err { background: #2a1513; border-color: #4a2320; color: #f1a39b; }
[data-theme="fakhama"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23f2ede4' stroke-width='1.3' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* الأرقام اللاتينية بخط النص عشان ما تطلع أصغر من الحروف */
:is(.fact, .stat, .prop-price, .hero-float, .feature-body, .card-price) .num, .stat b.num, .hero-float b.num { font-family: var(--body); font-weight: 300; }

/* =====================================================================
   حركة سينمائية مع التمرير (مستوحاة من مقطع المرجع)
   الواجهة مثبتة: العنوان فوق والصورة بإطار تحت → الصورة تكبر لين تملا الشاشة →
   اسم المكتب ضخم والصورة داخل حروفه. بعدها جملة تنوّر كلمة كلمة وصورة تتوسع،
   صفوف خدمات ضخمة تنفتح صورتها لما توصل وسط الشاشة، وصور على شكل أسهم تتحرك.
   ===================================================================== */
body[data-page="home"] { padding-top: 0; }

/* عناوين بلونين: أول جملة غامقة والباقي رمادي */
.tt-mute { color: color-mix(in srgb, var(--navy-ink) 36%, var(--bg)); }
.tone-dark .tt-mute { color: rgba(255, 255, 255, 0.42); }

/* ===== الواجهة المثبتة: الكلام في الوسط، ومع التمرير يروح يمين ورسم معماري يرسم نفسه يسار =====
   --p يجي من app.js (0..1)، وكل خط له بداية --a ونهاية --b، والـ CSS يحسب كم انرسم منه */
main > section.hero-pin { height: 540vh; padding: 0; position: relative; }
.pin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; --p: 0; --t: 0; --tw: min(540px, 40vw); }
.hp-text {
  position: absolute; z-index: 3; top: 50%; width: var(--tw);
  inset-inline-start: calc((100% - var(--tw)) / 2);
  text-align: center; opacity: var(--fo, 1);
  transform: translate(calc(var(--t) * ((100vw - var(--tw)) / 2 - var(--gut))), -50%);
}
.hp-text .eyebrow { justify-content: center; }
.hp-text h1 { font-size: clamp(38px, 4.8vw, 76px); font-weight: 500; line-height: 1.22; margin: 0 auto 16px; }
.hp-text .lead { color: var(--muted); margin: 0 auto; font-size: 17px; line-height: 1.85; }
.hp-text .hero-actions { justify-content: center; margin-top: 28px; }
.hp-text .hero-actions .btn { --bh: 48px; padding: 0 26px; }

/* الرسم */
.hp-draw { opacity: var(--fo, 1); position: absolute; z-index: 2; top: 50%; inset-inline-end: var(--gut); width: min(860px, 54vw); transform: translateY(-44%); }
.hp-draw svg { display: block; width: 100%; height: auto; overflow: visible; }
.hp-draw .ln {
  stroke: var(--navy-ink); stroke-width: 1.6; stroke-dasharray: 1; vector-effect: non-scaling-stroke;
  stroke-dashoffset: calc(1 - clamp(0, (var(--p) - var(--a)) / (var(--b) - var(--a)), 1));
}
.hp-draw .ln.thin { stroke-width: 1.1; }
.hp-draw .ln.gold { stroke: var(--gold); }
.hp-draw .sun { fill: var(--gold-2); --k: clamp(0, (var(--p) - 0.56) / 0.16, 1); opacity: calc(var(--k) * 0.85); transform: translateY(calc((1 - var(--k)) * 60px)); }
.hp-draw .lit rect { fill: var(--gold-2); opacity: calc(clamp(0, (var(--p) - 0.62) / 0.14, 1) * 0.5); }
.hp-draw .lit rect:nth-child(2) { opacity: calc(clamp(0, (var(--p) - 0.66) / 0.14, 1) * 0.42); }
.hp-draw .lit rect:nth-child(3) { opacity: calc(clamp(0, (var(--p) - 0.7) / 0.14, 1) * 0.5); }
.hp-draw .lit rect:nth-child(4) { opacity: calc(clamp(0, (var(--p) - 0.74) / 0.14, 1) * 0.42); }

/* علامات صغيرة تأشر على الرسم */
.hp-tag { position: absolute; display: grid; gap: 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap;
  --k: clamp(0, (var(--p) - var(--a)) / 0.08, 1); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 16px)); }
.hp-tag b { font-family: var(--body); font-weight: 300; font-size: 26px; line-height: 1.2; color: var(--navy-ink); }
.hp-tag span { font-size: 13px; color: var(--muted); }
.hp-tag i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hp-tag.t1 { --a: 0.72; top: 0; left: 0; }
.hp-tag.t1 i { right: -26px; top: 50%; box-shadow: -1px 0 0 0 transparent; }
.hp-tag.t2 { --a: 0.78; top: 46%; left: -2%; }
.hp-tag.t3 { --a: 0.84; bottom: -4%; right: 6%; }
.hp-tag::after { content: ""; position: absolute; height: 1px; width: 22px; background: var(--gold); top: 50%; }
.hp-tag.t1::after, .hp-tag.t2::after { right: -22px; }
.hp-tag.t1 i, .hp-tag.t2 i { right: -28px; top: calc(50% - 3px); }
.hp-tag.t3::after { left: -22px; }
.hp-tag.t3 i { left: -28px; top: calc(50% - 3px); }

/* بعد الرسم: اسم المكتب يطلع، وكل ما تنزل يكبر. الصورة داخل الحروف ثابتة على الشاشة (fixed)
   والحروف تتوسع عليها مثل الشبابيك، لين تطلع الصورة كاملة وراها (نفس الصورة بنفس المكان، فما فيه قفزة) */
.hp-photo { position: absolute; inset: 0; z-index: 4; opacity: var(--po, 0); pointer-events: none; overflow: hidden; }
.hp-photo .hero-bg { position: absolute; inset: 0; background: var(--hero-img) center 55% / cover no-repeat var(--navy-ink); animation: none; }
.hp-brand { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: var(--bo, 0); pointer-events: none; }
.hp-brand b {
  font-family: var(--head); font-weight: 700; line-height: 1.05; padding: 0 0.05em; white-space: nowrap;
  font-size: calc(clamp(120px, 26vw, 420px) * var(--bs, 1));
  background: var(--hero-img) center 55% / cover no-repeat fixed var(--navy-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(calc((1 - var(--br, 1)) * 100%) -50% -30% -50%);
}
.hp-brand span { font-family: var(--head); font-weight: 400; font-size: clamp(22px, 3vw, 44px); color: var(--navy-ink); opacity: var(--bso, 0); transform: translateY(calc((1 - var(--bso, 0)) * 16px)); }
.js-motion .hp-text > * { animation: enter-up 1100ms var(--ease-out) backwards; }
.js-motion .hp-text > :nth-child(2) { animation-delay: 120ms; }
.js-motion .hp-text > :nth-child(3) { animation-delay: 240ms; }
.js-motion .hp-text > :nth-child(4) { animation-delay: 360ms; }
.hp-cue { opacity: calc(1 - var(--t, 0)) !important; }
.hp-cue { position: absolute; bottom: 24px; left: 50%; z-index: 3; width: 1px; height: 56px; background: linear-gradient(var(--navy-ink), transparent); opacity: calc(1 - var(--t)); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== جملة تنوّر كلمة كلمة + صورة تتوسع ===== */
.hl .w { color: color-mix(in srgb, var(--navy-ink) 22%, var(--bg)); transition: color 400ms ease; }
.hl .w.on { color: var(--navy-ink); }
.stmt2 .statement { font-size: clamp(30px, 3.6vw, 54px); font-weight: 400; line-height: 1.55; max-width: 24ch; margin: 0; }
.stmt2 .kicker { margin-bottom: 24px; }
.grow-photo { position: relative; height: 88vh; margin-top: 88px; overflow: hidden; clip-path: inset(0 var(--g, 14%)); }
.grow-photo img { width: 100%; height: 100%; object-fit: cover; scale: var(--gs, 1.2); }
[data-section="stats"] .stats { margin-top: 72px; }

/* ===== صفوف الخدمات الضخمة (قسم غامق) ===== */
main > section.svc-rows { background: var(--navy-ink); color: #cfd5df; padding-bottom: 0; }
.svc-rows .section-head::before { background: rgba(255, 255, 255, 0.16); }
.svc-rows .section-head h2 { color: #fff; }
.svc-rows .sh-num { color: rgba(255, 255, 255, 0.5); }
.svc-rows .kicker { color: var(--gold-2); }
.rows { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.srow { position: relative; display: block; color: #cfd5df; border-bottom: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; isolation: isolate; }
.srow-bg { position: absolute; inset: 0; z-index: -1; clip-path: inset(50% 0 50% 0); transition: clip-path 900ms cubic-bezier(0.77, 0, 0.18, 1); }
.srow-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); scale: 1.15; transition: scale 1400ms var(--ease-out); }
.srow.on .srow-bg { clip-path: inset(0 0 0 0); }
.srow.on .srow-bg img { scale: 1; }
.srow-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; min-height: 25vh; padding-block: 24px; }
.srow-txt { grid-column: 1 / span 3; font-size: 14px; line-height: 1.8; color: #aab3c2; margin: 0; }
.srow-word { grid-column: 5 / span 6; font-family: var(--head); font-weight: 400; font-size: clamp(52px, 8vw, 132px); line-height: 1.15; color: rgba(255, 255, 255, 0.5); transition: color 500ms ease; transform: skewY(calc(var(--skew, 0) * 1deg)); transform-origin: right center; }
.srow.on .srow-word { color: #fff; }
.srow-arr { grid-column: 12; justify-self: end; color: #fff; opacity: 0; transform: translateX(24px); transition: opacity 500ms ease, transform 700ms var(--ease-out); }
.srow.on .srow-arr { opacity: 1; transform: none; }

/* ===== صور على شكل أسهم + خطوات ===== */
.center-head { text-align: center; }
.center-head h2 { margin: 0 auto; max-width: 22ch; }
.chevrons { display: flex; justify-content: center; width: min(1100px, 100% - 2 * var(--gut)); margin: 64px auto 0; transform: translateX(calc(var(--cx, 0) * 1px)); }
.chev { flex: 1; aspect-ratio: 3 / 4; margin-inline: -2.4%; overflow: hidden; clip-path: polygon(28% 0, 100% 0, 72% 50%, 100% 100%, 28% 100%, 0 50%); background: var(--surface-2); }
.chev img { width: 100%; height: 100%; object-fit: cover; }
.chev:nth-child(3) img { filter: saturate(0.5); opacity: 0.8; }
.chev:nth-child(4) img { filter: saturate(0.2); opacity: 0.55; }
.js-motion .chev { opacity: 0; transform: translateX(-60px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: calc(var(--i, 0) * 140ms); }
.js-motion .chevrons.in .chev { opacity: 1; transform: none; }
.steps-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 112px; align-items: start; }
.steps-lead { grid-column: 1 / span 4; }
.steps-lead h3 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 400; line-height: 1.4; margin-bottom: 28px; }
.steps-lead .hero-actions { justify-content: flex-start; margin-top: 0; }
.steps { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: st; content: counter(st, decimal-leading-zero); color: var(--muted); font-size: 13px; padding-top: 6px; grid-row: span 2; }
.steps b { font-family: var(--head); font-weight: 400; color: var(--navy-ink); font-size: 21px; }
.steps span { color: var(--muted); font-size: 16px; }
.js-motion .steps li { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 130ms); }
.js-motion .steps.in li { opacity: 1; transform: none; }
.listings .grid .card[data-parallax] { will-change: translate; }

/* العقارات: عمودين بسرعات مختلفة (تذبذب) */
.listings .grid { align-items: start; }
.listings .grid .card:nth-child(even) { margin-top: 140px; }
.js-motion .card-title, .js-motion .section-head h2 { transform: skewY(calc(var(--skew, 0) * 0.5deg)); transform-origin: right center; }

@media (max-width: 1024px) {
  .srow-txt { grid-column: 1 / span 4; }
  .srow-word { grid-column: 5 / span 7; }
  .steps-lead, .steps { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  main > section.hero-pin { height: 440vh; }
  .pin-stage { --tw: calc(100vw - 2 * var(--gut)); }
  .hp-text { top: calc(var(--head-h) + 3vh); transform: none; }
  .hp-text .lead { font-size: 15px; }
  .hp-text .hero-actions { flex-direction: row; justify-content: center; margin-top: 20px; }
  .hp-text .hero-actions .btn { padding: 0 18px; }
  .hp-draw { top: auto; bottom: 7vh; inset-inline-end: 4vw; width: 92vw; transform: none; }
  .hp-tag { padding: 8px 10px; }
  .hp-tag b { font-size: 18px; }
  .hp-tag span { font-size: 11px; }
  .hp-tag.t1 { top: -6%; }
  .hp-tag.t3 { display: none; }
  .hp-brand b { font-size: calc(38vw * var(--bs, 1)); }
  .grow-photo { height: 60vh; margin-top: 48px; }
  .srow-in { grid-template-columns: 1fr auto; min-height: 0; padding-block: 28px; }
  .srow-word { grid-column: 1; grid-row: 1; }
  .srow-arr { grid-column: 2; grid-row: 1; }
  .srow-txt { grid-column: 1 / -1; grid-row: 2; }
  .chevrons { width: calc(100% - 2 * 12px); }
  .listings .grid .card:nth-child(even) { margin-top: 0; }
  .steps-grid { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  main > section.hero-pin { height: auto; }
  .pin-stage { position: relative; --p: 1 !important; --t: 1 !important; --fo: 1 !important; --po: 0 !important; --bo: 0 !important; }
  .hp-brand { display: none; }
}

/* أي عنصر يتحرك يمين ويسار ما يوسّع الصفحة (clip ما يكسر التثبيت) */
main { overflow-x: clip; }

/* =====================================================================
   الصفحات الداخلية: النماذج بخطوات جانبية، ومن نحن
   ===================================================================== */
.page-hero h1 { max-width: 20ch; }
main > section.form-page, section.form-page { padding-block: 24px var(--padb); }
.form-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.form-aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--head-h) + 32px); }
.form-aside .steps { margin-top: 8px; }
.form-aside .steps b { font-size: 19px; }
.form-aside .steps span { font-size: 15px; }
.form-note { margin-top: 28px; font-size: 14px; color: var(--muted); }
.form-note a { color: var(--navy-ink); border-bottom: 1px solid var(--line-2); }
.form-layout > .panel { grid-column: 6 / -1; }
.form-page .panel { background: var(--surface); border: 1px solid var(--line); padding: 48px; }
.js-motion .form-page .steps li { opacity: 0; transform: translateY(14px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(200ms + var(--i, 0) * 120ms); }
.js-motion .form-page .steps.in li { opacity: 1; transform: none; }

.statement-sm { font-family: var(--head); font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.7; color: var(--navy-ink); margin: 0 0 32px; }
.about-intro .split-img { aspect-ratio: 5 / 4; }

@media (max-width: 1024px) {
  .form-aside, .form-layout > .panel { grid-column: 1 / -1; position: static; }
  .form-aside { margin-bottom: 16px; }
}
@media (max-width: 767px) { .form-page .panel { padding: 24px; } }
