/* ============================================================
   بنيان مكة — الموقع الرئيسي bunyan-makkah.com — v2
   Design system: "الملف العقاري" — gold / ink / paper, precision.
   Fonts self-hosted (OFL): Noto Kufi Arabic (display) + Tajawal.
   ============================================================ */

/* ---------- Fonts (Arabic + Latin subsets, WOFF2) ---------- */
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/noto-kufi-arabic-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/noto-kufi-arabic-800-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tajawal-400-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tajawal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/tajawal-500-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/tajawal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/tajawal-700-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/tajawal-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/tajawal-800-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/tajawal-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* hex fallbacks (older WebViews) */
  --gold: #C08A2E;
  --gold-deep: #8F6316;
  --gold-soft: #E2BE77;
  --ink: #241E14;
  --ink-2: #2F2819;
  --ink-line: #4A4130;
  --ink-text: #F2EDE2;
  --ink-muted: #B4A98F;
  --paper: #F4F0E5;
  --paper-deep: #ECE6D6;
  --card: #FBF8F1;
  --line: #DAD2BF;
  --muted: #6F644E;
  --wa: #1F7A52;
  --wa-deep: #17603F;
  --err: #A23B2C;

  --font-head: 'Noto Kufi Arabic', 'Tajawal', system-ui, sans-serif;
  --font-body: 'Tajawal', 'Noto Kufi Arabic', system-ui, sans-serif;

  --r-card: 10px;
  --r-btn: 8px;
  --r-field: 6px;

  --shadow-sm: 0 2px 8px -2px rgba(40, 32, 18, .10);
  --shadow-md: 0 14px 34px -14px rgba(40, 32, 18, .22);
  --shadow-lg: 0 24px 56px -20px rgba(30, 24, 12, .30);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 420ms;

  --sp-sec: clamp(4rem, 9vw, 6.75rem);
  --header-h: 66px;
}
@supports (color: oklch(0.5 0.1 76)) {
  :root {
    --gold: oklch(0.67 0.13 76);
    --gold-deep: oklch(0.51 0.105 76);
    --gold-soft: oklch(0.82 0.085 80);
    --ink: oklch(0.22 0.018 72);
    --ink-2: oklch(0.265 0.021 74);
    --ink-line: oklch(0.36 0.026 76);
    --ink-text: oklch(0.945 0.012 86);
    --ink-muted: oklch(0.735 0.032 82);
    --paper: oklch(0.962 0.013 88);
    --paper-deep: oklch(0.935 0.016 88);
    --card: oklch(0.98 0.008 90);
    --line: oklch(0.865 0.018 86);
    --muted: oklch(0.485 0.032 78);
    --wa: oklch(0.47 0.10 153);
    --wa-deep: oklch(0.40 0.09 153);
    --err: oklch(0.50 0.13 32);
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.4; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 800; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sec-ink :focus-visible, .hero :focus-visible { outline-color: var(--gold-soft); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Utilities ---------- */
.container { max-width: 1160px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; right: 16px; z-index: 200;
  background: var(--ink); color: var(--ink-text);
  padding: 10px 18px; border-radius: var(--r-btn);
  font-weight: 700; text-decoration: none; transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; unicode-bidi: embed; direction: ltr; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px;
  border: 1.5px solid transparent; border-radius: var(--r-btn);
  font-family: var(--font-body); font-weight: 800; font-size: 16.5px; line-height: 1.3;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease),
              background-color var(--dur-1) linear, border-color var(--dur-1) linear;
}
.btn:active { transform: scale(.98); }
.btn svg { flex: none; }
.btn-gold {
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 78%, #fff8e8) 0%, var(--gold) 55%);
  background-color: var(--gold);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), var(--shadow-sm);
}
.btn-gold:hover {
  background: var(--gold-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--shadow-md);
  transform: translateY(-1px);
}
.btn-ink { background: var(--ink); color: var(--ink-text); }
.btn-ink:hover { background: var(--ink-2); box-shadow: var(--shadow-md); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--card); box-shadow: var(--shadow-md); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); box-shadow: var(--shadow-md); }
.btn-line { border-color: var(--ink-line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: var(--card); }
.hero .btn-line, .sec-ink .btn-line { border-color: var(--ink-line); color: var(--ink-text); }
.hero .btn-line:hover, .sec-ink .btn-line:hover { border-color: var(--gold-soft); color: var(--gold-soft); background: transparent; }
.btn-lg { min-height: 56px; padding: 12px 30px; font-size: 17.5px; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 15px; font-weight: 700; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hdr {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
  }
}
.hdr {
  transition: box-shadow var(--dur-2) var(--ease);
}
.hdr.scrolled { box-shadow: var(--shadow-sm); }
.hdr-in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-inline-end: 6px; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--ink); line-height: 1.2; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: 0; }
.nav-main { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav-main a {
  text-decoration: none; font-weight: 700; font-size: 15.5px; color: var(--muted);
  padding: 8px 13px; border-radius: 6px;
  transition: color var(--dur-1) linear, background-color var(--dur-1) linear;
}
.nav-main a:hover { color: var(--ink); background: var(--paper-deep); }
.nav-main a[aria-current="page"] { color: var(--gold-deep); }
.hdr-cta { margin-inline-start: 10px; }
.mnav { display: none; }

@media (max-width: 991px) {
  .nav-main, .hdr-cta { display: none; }
  .mnav { display: block; margin-inline-start: auto; position: relative; }
  .mnav summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: var(--r-btn);
    border: 1.5px solid var(--line); background: var(--card);
  }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav .bars, .mnav .bars::before, .mnav .bars::after {
    content: ''; display: block; width: 20px; height: 2.5px; border-radius: 2px;
    background: var(--ink); position: relative;
    transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) linear;
  }
  .mnav .bars::before { position: absolute; top: -6.5px; }
  .mnav .bars::after { position: absolute; top: 6.5px; }
  .mnav[open] .bars { background: transparent; }
  .mnav[open] .bars::before { transform: translateY(6.5px) rotate(45deg); }
  .mnav[open] .bars::after { transform: translateY(-6.5px) rotate(-45deg); }
  .mnav-panel {
    position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
    min-width: 240px; padding: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; gap: 2px;
  }
  .mnav-panel a {
    text-decoration: none; font-weight: 700; font-size: 16.5px; color: var(--ink);
    padding: 12px 14px; border-radius: 8px;
  }
  .mnav-panel a:hover { background: var(--paper-deep); }
  .mnav-panel a[aria-current="page"] { color: var(--gold-deep); }
  .mnav-panel .btn { margin-top: 8px; }
}

/* ---------- Section scaffolding ---------- */
.sec { padding-block: var(--sp-sec); }
.sec-tint { background: var(--paper-deep); border-block: 1px solid var(--line); }
.sec-ink { background: var(--ink); color: var(--ink-text); }
.sec-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.overline {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 13.5px; color: var(--gold-deep);
  margin-bottom: 14px;
}
.sec-ink .overline, .hero .overline { color: var(--gold-soft); }
.overline::before {
  content: ''; width: 34px; height: 9px; flex: none;
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) 0 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) 100% 0 / 1.5px 100% no-repeat;
}
.sec-ink .overline::before, .hero .overline::before {
  background:
    linear-gradient(var(--gold-soft), var(--gold-soft)) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--gold-soft), var(--gold-soft)) 0 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--gold-soft), var(--gold-soft)) 100% 0 / 1.5px 100% no-repeat;
}
.sec-head h2 { font-size: clamp(1.7rem, 2.4vw + .7rem, 2.35rem); font-weight: 700; }
.sec-head .lead { margin-top: 14px; font-size: 18.5px; color: var(--muted); font-weight: 400; }
.sec-ink .sec-head .lead { color: var(--ink-muted); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--ink-text);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 640px at 14% -18%, rgba(192, 138, 46, .11), transparent 60%),
    radial-gradient(760px 480px at 90% 112%, rgba(192, 138, 46, .07), transparent 65%),
    repeating-linear-gradient(0deg, rgba(242, 237, 226, .02) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(90deg, rgba(242, 237, 226, .02) 0 1px, transparent 1px 76px);
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3.4rem, 8vw, 6.2rem) clamp(3.6rem, 8vw, 6rem);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--gold-soft);
  border: 1px solid var(--ink-line); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 22px; background: rgba(0, 0, 0, .18);
}
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.05rem, 4vw + .9rem, 3.45rem);
  font-weight: 800; line-height: 1.45; color: #fff;
  max-width: 15ch;
}
.mark-gold { color: var(--gold); }
.hero-sub {
  margin-top: 20px; font-size: clamp(1.06rem, .6vw + .9rem, 1.25rem);
  color: var(--ink-muted); max-width: 52ch; font-weight: 400;
}
.hero-sub strong { color: var(--ink-text); font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
@media (max-width: 560px) {
  .hero-ctas .btn { flex: 1 1 100%; }
}
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 26px; padding: 0; list-style: none;
  font-size: 14.5px; font-weight: 500; color: var(--ink-muted);
}
.hero-proof li { display: inline-flex; align-items: center; }
.hero-proof li + li::before { content: '·'; color: var(--gold); font-weight: 800; margin-inline: 12px; }
.hero-wa {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  color: var(--ink-muted); font-size: 15px; font-weight: 500; text-decoration: none;
}
.hero-wa strong { color: var(--ink-text); }
.hero-wa:hover strong { color: var(--gold-soft); }

/* Atlas panel (hero + section) */
.atlas-panel {
  position: relative;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  background: var(--ink-2);
  padding: 14px;
}
.atlas-panel::before, .atlas-panel::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.atlas-panel::before {
  top: -1px; inset-inline-start: -1px;
  border-top: 2px solid var(--gold); border-inline-start: 2px solid var(--gold);
  border-start-start-radius: var(--r-card);
}
.atlas-panel::after {
  bottom: -1px; inset-inline-end: -1px;
  border-bottom: 2px solid var(--gold); border-inline-end: 2px solid var(--gold);
  border-end-end-radius: var(--r-card);
}
.atlas-cap {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 6px 2px; font-size: 12.5px; color: var(--ink-muted); font-weight: 500;
}
.atlas-cap b { color: var(--gold-soft); font-weight: 700; }
.atlas-svg { width: 100%; height: auto; }
.atlas-svg .rd { stroke: var(--gold); fill: none; stroke-linecap: round; }
.atlas-svg .rd-2 { stroke: var(--gold-soft); opacity: .55; }
.atlas-svg .gridln { stroke: var(--ink-line); opacity: .5; }
.atlas-svg .lm { fill: var(--ink-text); }
.atlas-svg .lm-box { fill: none; stroke: var(--ink-muted); stroke-width: 1.2; }
.atlas-svg text {
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  fill: var(--ink-muted); direction: ltr;
}
.atlas-svg text.rd-name { fill: var(--gold-soft); font-weight: 700; font-size: 13.5px; }
html.js .atlas-anim .rd {
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw 1.6s var(--ease) forwards;
}
html.js .atlas-anim g:nth-of-type(3) .rd { animation-delay: .15s; }
html.js .atlas-anim g:nth-of-type(4) .rd { animation-delay: .3s; }
html.js .atlas-anim g:nth-of-type(5) .rd { animation-delay: .45s; }
html.js .atlas-anim g:nth-of-type(6) .rd { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.js .atlas-anim .rd { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-atlas { max-width: 560px; }
}

/* ---------- Steps (طريقتنا) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: step; }
.step {
  position: relative; counter-increment: step; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px 22px 22px;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.step::before {
  content: '0' counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 14.5px;
  color: var(--gold-deep);
  display: inline-block; margin-bottom: 14px;
  padding: 3px 13px; border: 1.5px solid var(--gold); border-radius: 999px;
  background: rgba(192, 138, 46, .09);
}
.step::after {
  content: '0' counter(step);
  position: absolute; top: -16px; inset-inline-end: 4px;
  font-family: var(--font-head); font-weight: 800; font-size: 92px; line-height: 1;
  color: var(--gold); opacity: .08; pointer-events: none;
}
.step h3 { font-family: var(--font-body); font-weight: 800; font-size: 18.5px; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--muted); line-height: 1.75; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Paths (بابين) ---------- */
.paths { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.2rem, 2.6vw, 1.8rem); align-items: stretch; }
.path {
  border-radius: var(--r-card); padding: clamp(1.6rem, 3.4vw, 2.4rem);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.path:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.path-owner { background: var(--ink); color: var(--ink-text); }
.path-seeker { background: var(--card); border: 1px solid var(--line); }
.path-kicker { font-size: 13.5px; font-weight: 800; color: var(--gold-soft); }
.path-seeker .path-kicker { color: var(--gold-deep); }
.path h3 { font-size: clamp(1.3rem, 1.4vw + .8rem, 1.6rem); font-weight: 700; color: #fff; }
.path-seeker h3 { color: var(--ink); }
.path p { font-size: 16px; color: var(--ink-muted); }
.path-seeker p { color: var(--muted); }
.path ul { list-style: none; padding: 0; display: grid; gap: 9px; margin-top: 2px; }
.path ul li { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; font-weight: 500; }
.path ul li::before { content: '—'; color: var(--gold); font-weight: 800; flex: none; }
.path .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Types (أنواع الوحدات) ---------- */
.types { display: grid; grid-template-columns: repeat(4, 1fr); }
.type {
  padding: 16px 22px 14px; border-inline-start: 1px solid var(--line);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  transition: background-color var(--dur-2) linear;
}
.type:hover { background: var(--card); }
.type:last-child { border-inline-end: 1px solid var(--line); }
.type svg { color: var(--gold-deep); margin-bottom: 12px; transition: transform var(--dur-2) var(--ease); }
.type:hover svg { transform: translateY(-3px) scale(1.05); }
.type h3 { font-family: var(--font-body); font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.type p { font-size: 15px; color: var(--muted); line-height: 1.7; }
@media (max-width: 860px) {
  .types { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .type:nth-child(2) { border-inline-end: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .types { grid-template-columns: 1fr; }
  .type { border-inline-end: 1px solid var(--line); }
}

/* ---------- Atlas section ---------- */
.atlas-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (min-width: 901px) {
  /* desktop: area list sits under the section heading (first/right column) */
  .atlas-wrap > .atlas-panel { order: 2; }
}
.area-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.area-btn {
  width: 100%; text-align: start; background: transparent; border: 0;
  border-inline-start: 2px solid var(--ink-line);
  padding: 12px 16px; cursor: pointer; border-radius: 0 6px 6px 0;
  transition: background-color var(--dur-1) linear, border-color var(--dur-1) linear;
}
.area-btn:hover { background: var(--ink-2); }
.area-btn[aria-expanded="true"] { border-inline-start-color: var(--gold); background: var(--ink-2); }
.area-btn .t { display: block; font-weight: 800; font-size: 16.5px; color: var(--ink-text); }
.area-btn .d {
  display: none; font-size: 14.5px; color: var(--ink-muted); font-weight: 400;
  margin-top: 4px; line-height: 1.7;
}
.area-btn[aria-expanded="true"] .d { display: block; }
.atlas-note { margin-top: 18px; font-size: 13px; color: var(--ink-muted); }

@media (max-width: 900px) { .atlas-wrap { grid-template-columns: 1fr; } }

/* ---------- Unit card ---------- */
.unit-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.2rem, 2.6vw, 1.8rem); align-items: stretch; }
.unit-card {
  display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden;
  transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.unit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.unit-media { position: relative; min-height: 240px; overflow: hidden; }
.unit-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.unit-card:hover .unit-media img { transform: scale(1.045); }
.unit-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 8px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 800;
  background: var(--ink); color: var(--gold-soft);
}
.badge-gold { background: var(--gold); color: var(--ink); }
.unit-body { padding: clamp(1.2rem, 2.4vw, 1.8rem); display: flex; flex-direction: column; }
.unit-body h3 { font-size: 20.5px; font-weight: 700; margin-bottom: 12px; }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.fact { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.fact .k { color: var(--muted); font-weight: 500; flex: none; }
.fact .dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); min-width: 20px; }
.fact .v { font-weight: 800; }
.unit-note { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.unit-ctas { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.units-side {
  background: var(--ink); color: var(--ink-text); border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column;
  justify-content: center; gap: 12px;
}
.units-side h3 { color: #fff; font-size: 20px; }
.units-side p { color: var(--ink-muted); font-size: 15.5px; }
.units-side .btn { margin-top: 10px; align-self: flex-start; }
@media (max-width: 960px) {
  .unit-grid { grid-template-columns: 1fr; }
  .unit-card { grid-template-columns: 1fr; }
  .unit-media { aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.2rem, 2.6vw, 1.8rem); }
.market {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: 10px;
}
.market .where { font-size: 13.5px; font-weight: 800; color: var(--gold-deep); }
.market h3 { font-size: 20px; }
.market p { font-size: 15.5px; color: var(--muted); }
.market .btn { margin-top: 14px; align-self: flex-start; }
@media (max-width: 820px) { .markets { grid-template-columns: 1fr; } }

/* ---------- Commitments ---------- */
.commits { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.2rem) clamp(1.8rem, 4vw, 3rem); }
.commit { display: flex; gap: 16px; align-items: flex-start; }
.commit-ic {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--gold-soft);
}
.sec-ink .commit-ic { background: var(--gold); color: var(--ink); }
.commit h3 { font-family: var(--font-body); font-size: 17.5px; font-weight: 800; margin-bottom: 4px; }
.commit p { font-size: 15px; color: var(--muted); line-height: 1.75; }
.sec-ink .commit p { color: var(--ink-muted); }
@media (max-width: 720px) { .commits { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 4px; font-weight: 800; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .x {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--gold-deep); color: var(--gold-deep);
  display: grid; place-items: center; position: relative;
  transition: transform var(--dur-2) var(--ease);
}
.faq summary .x::before, .faq summary .x::after {
  content: ''; position: absolute; background: currentColor;
}
.faq summary .x::before { width: 10px; height: 1.8px; }
.faq summary .x::after { width: 1.8px; height: 10px; transition: transform var(--dur-2) var(--ease); }
.faq details[open] summary .x::after { transform: rotate(90deg); }
.faq .a { padding: 0 4px 20px; color: var(--muted); font-size: 16px; max-width: 65ch; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; position: relative; overflow: hidden; }
.cta-final .container { position: relative; }
.cta-final h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-final p { color: var(--ink-muted); margin-top: 12px; font-size: 17px; }
.cta-final .hero-ctas { justify-content: center; }
.cta-contact { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; font-size: 15.5px; color: var(--ink-muted); }
.cta-contact a { color: var(--ink-text); text-decoration: none; font-weight: 700; }
.cta-contact a:hover { color: var(--gold-soft); }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
.form-side h2 { font-size: clamp(1.5rem, 2vw + .6rem, 2rem); margin-bottom: 12px; }
.form-side p { color: var(--muted); font-size: 16.5px; max-width: 46ch; }
.form-side .mini-facts { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 10px; }
.form-side .mini-facts li { display: flex; gap: 10px; font-size: 15.5px; font-weight: 500; }
.form-side .mini-facts li::before { content: '✓'; color: var(--gold-deep); font-weight: 800; flex: none; }
.lead-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-sm);
}
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.f-field { display: flex; flex-direction: column; gap: 7px; }
.f-field.full { grid-column: 1 / -1; }
.f-field label, .f-label { font-size: 15px; font-weight: 700; }
.f-field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.f-field input, .f-field select, .f-field textarea {
  min-height: 50px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-field);
  background: #fff; width: 100%;
  transition: border-color var(--dur-1) linear, box-shadow var(--dur-1) linear;
}
.f-field textarea { min-height: 104px; resize: vertical; }
.f-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' fill='none' stroke='%236F644E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
  padding-inline-end: 14px;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3.5px rgba(192, 138, 46, .22);
}
.f-field input[type="tel"] { direction: ltr; text-align: end; }
.f-field.err input, .f-field.err select { border-color: var(--err); }
.f-msg { display: none; font-size: 13.5px; color: var(--err); font-weight: 700; }
.f-field.err .f-msg { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-3 { grid-template-columns: 1fr 1fr 1fr; }
.seg label {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 10px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-field);
  font-weight: 700; font-size: 15.5px; background: #fff; text-align: center;
  transition: border-color var(--dur-1) linear, background-color var(--dur-1) linear;
}
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg input:checked + span { color: var(--ink); }
.seg label:has(input:checked) { border-color: var(--gold); background: rgba(192, 138, 46, .10); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.f-consent { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.f-consent a { color: var(--gold-deep); font-weight: 700; }
.f-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.f-actions .btn[disabled] { opacity: .6; cursor: progress; }
.hp-field { position: absolute; opacity: 0; height: 0; overflow: hidden; pointer-events: none; }
.f-status { grid-column: 1 / -1; display: none; border-radius: var(--r-field); padding: 14px 16px; font-size: 15.5px; font-weight: 500; }
.f-status.ok {
  display: block; background: rgba(192, 138, 46, .12);
  border: 1.5px solid var(--gold); color: var(--ink);
}
.f-status.bad {
  display: block; background: rgba(162, 59, 44, .08);
  border: 1.5px solid var(--err); color: var(--err);
}
.f-status .btn { margin-top: 12px; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; } .seg-3 { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: var(--ink-text); padding-block: clamp(2.8rem, 6vw, 4.4rem); }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw + .6rem, 2.9rem); color: #fff; max-width: 20ch; }
.page-hero .lead { margin-top: 14px; font-size: 18px; color: var(--ink-muted); max-width: 54ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 13.5px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs li + li::before { content: '←'; margin-inline: 8px; opacity: .6; }

/* ---------- Prose (privacy/terms/about) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 38px 0 12px; }
.prose h3 { font-size: 18px; font-family: var(--font-body); font-weight: 800; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; }
.prose ul { padding-inline-start: 22px; display: grid; gap: 6px; }
.prose .updated { font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); display: inline-block; padding: 3px 12px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: var(--ink-muted); margin-top: 0; }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.8rem, 4vw, 3rem); padding-block: clamp(2.6rem, 5vw, 3.8rem) 1.6rem; }
.ftr .brand-name { color: var(--ink-text); }
.ftr .brand-sub { color: var(--ink-muted); }
.ftr-about { font-size: 14.5px; max-width: 40ch; margin-top: 14px; line-height: 1.8; }
.ftr h4 { font-family: var(--font-body); color: var(--ink-text); font-size: 15.5px; font-weight: 800; margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.ftr a { color: var(--ink-muted); text-decoration: none; transition: color var(--dur-1) linear; }
.ftr a:hover { color: var(--gold-soft); }
.ftr-btm {
  border-top: 1px solid var(--ink-line);
  padding-block: 18px calc(18px + 8px);
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between;
  font-size: 13.5px;
}
.ftr-btm ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; }
@media (max-width: 820px) { .ftr-in { grid-template-columns: 1fr 1fr; } .ftr-in > :first-child { grid-column: 1 / -1; } }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 90;
  display: none;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding: 10px clamp(12px, 3vw, 18px) calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
}
.action-bar .btn { flex: 1; min-height: 50px; padding-inline: 10px; font-size: 15.5px; }
.action-bar .btn-line { border-color: var(--ink-line); color: var(--ink-text); }
.action-bar .btn-line:hover { border-color: var(--gold-soft); color: var(--gold-soft); background: transparent; }
@media (max-width: 767px) {
  .action-bar { display: flex; }
  body { padding-bottom: 78px; }
}

/* ---------- Reveal motion ---------- */
html.js .rv { opacity: 0; transform: translateY(16px); }
html.js .rv.in { opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
html.js .rv-g > * { opacity: 0; transform: translateY(14px); }
html.js .rv-g.in > * { opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
html.js .rv-g.in > :nth-child(2) { transition-delay: 70ms; }
html.js .rv-g.in > :nth-child(3) { transition-delay: 140ms; }
html.js .rv-g.in > :nth-child(4) { transition-delay: 210ms; }
html.js .rv-g.in > :nth-child(5) { transition-delay: 280ms; }
html.js .rv-g.in > :nth-child(6) { transition-delay: 350ms; }
@media (prefers-reduced-motion: reduce) {
  html.js .rv, html.js .rv-g > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Misc ---------- */
.ext-note { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin-block: var(--sp-sec); }

/* ============================================================
   v2 additions — imagery, placeholders & richer compositions
   ============================================================ */

/* ---------- Media placeholder (swap the <figure> for an <img>) ---------- */
.ph {
  position: relative; margin: 0;
  display: grid; align-content: center; justify-items: center; gap: 4px;
  text-align: center; padding: 22px;
  border: 1.5px dashed var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: var(--r-card);
  background:
    repeating-linear-gradient(45deg, rgba(192, 138, 46, .055) 0 12px, transparent 12px 24px),
    var(--paper-deep);
  color: var(--muted);
  overflow: hidden;
}
.ph > svg { color: var(--gold-deep); opacity: .85; margin-bottom: 8px; }
.ph b { font-weight: 800; font-size: 15px; color: var(--ink); line-height: 1.6; max-width: 26ch; }
.ph span { font-size: 12.5px; font-weight: 500; color: var(--muted); max-width: 30ch; }
.ph .ph-tag {
  position: absolute; top: 10px; inset-inline-start: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .2px;
  background: var(--gold); color: var(--ink);
  border-radius: 5px; padding: 2.5px 9px;
}
.ph-ink {
  border-color: color-mix(in srgb, var(--gold-soft) 45%, transparent);
  background:
    repeating-linear-gradient(45deg, rgba(226, 190, 119, .05) 0 12px, transparent 12px 24px),
    var(--ink-2);
}
.ph-ink b { color: var(--ink-text); }
.ph-ink span { color: var(--ink-muted); }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-11 { aspect-ratio: 1 / 1; }

/* ---------- Hero visual composition ---------- */
.hero-visual { position: relative; padding-bottom: 40px; }
.hero-shot {
  width: 100%; display: block; overflow: hidden;
  border: 1px solid var(--ink-line); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}
.hero-visual::before {
  /* gold frame offset behind the shot */
  content: ''; position: absolute; inset: 18px -14px 22px 14px;
  border: 1.5px solid var(--ink-line); border-radius: var(--r-card);
  pointer-events: none;
}
.hero-float {
  position: absolute; bottom: 0; inset-inline-start: -16px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 9px; padding-inline-end: 18px;
  box-shadow: var(--shadow-lg);
  text-decoration: none; max-width: min(94%, 350px);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.hero-float:hover { transform: translateY(-3px); }
.hero-float img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; flex: none; }
.hero-float b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.5; }
.hero-float small { display: block; font-size: 12.5px; color: var(--gold-deep); font-weight: 700; margin-top: 2px; }
@media (max-width: 900px) {
  .hero-visual { max-width: 560px; }
  .hero-float { inset-inline-start: 0; }
}

/* ---------- Skyline decoration (hero + final CTA) ---------- */
.skyline {
  position: absolute; bottom: -1px; inset-inline: 0; z-index: 0;
  width: 100%; height: auto; display: block;
  color: var(--gold-soft); opacity: .12; pointer-events: none;
}
.hero .hero-in { z-index: 1; }

/* ---------- Field gallery (شغلنا على الأرض) ---------- */
.media-figure {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--r-card); background: var(--paper-deep);
}
.media-figure > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; object-fit: cover;
}
.media-note {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  padding: 3px 9px; border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  color: var(--paper); font-size: 10.5px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
}
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(148px, auto); gap: 14px;
}
.gallery .ph { width: 100%; height: 100%; padding: 18px; }
.gallery .media-figure { width: 100%; height: 100%; min-height: 148px; }
.g-a { grid-column: span 2; grid-row: span 2; }
.g-b { grid-column: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(140px, auto); }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .g-a, .g-b { grid-column: span 1; }
}

/* ---------- Market card with media header ---------- */
.market-rich { padding: 0; }
.market-rich .market-media {
  position: relative; aspect-ratio: 16 / 7.5; overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.market-rich .market-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transition: transform .65s var(--ease); }
.market-rich:hover .market-media img { transform: scale(1.04); }
.market-rich .market-media .ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.market-rich .market-body {
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.market-rich .market-body .btn { margin-top: 14px; align-self: flex-start; }
.market-media .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
