/* =====================================================================================
   Right Move Real Estate Development — Design Tokens (v5.2.0)
   Refined luxury brand system: Prestige Deep Navy, Architectural Warm Gold,
   Clean Paper surfaces, and crisp IBM Plex Sans Arabic typography.
   ===================================================================================== */
:root {
  /* brand palette */
  --navy-950: #041220;
  --navy-900: #071f38;
  --navy-850: #082544;
  --navy-800: #0a2b4c;
  --navy-700: #103c68;
  --navy-600: #18528c;
  --navy-500: #2369ad;
  --navy-100: #eef4f9;

  --gold-700: #8c6a15;
  --gold-600: #a47e1d;
  --gold-500: #c59b27;
  --gold-400: #dfb746;
  --gold-300: #edd17b;
  --gold-200: #f6e6b3;
  --gold-100: #fdf9ee;

  /* luxury gradients */
  --grad-gold: linear-gradient(135deg, #dfb746 0%, #c59b27 60%, #a47e1d 100%);
  --grad-gold-soft: linear-gradient(135deg, rgba(223, 183, 70, 0.14) 0%, rgba(197, 155, 39, 0.04) 100%);
  --grad-navy: linear-gradient(145deg, #071f38 0%, #0a2b4c 60%, #0d3864 100%);
  --grad-dark-card: linear-gradient(160deg, #0a2540 0%, #06192c 100%);
  --grad-hero-scrim: linear-gradient(180deg, rgba(7, 31, 56, 0.75) 0%, rgba(7, 31, 56, 0.35) 50%, rgba(7, 31, 56, 0.88) 100%);

  /* background & surfaces */
  --paper:    #fbf9f5;
  --paper-2:  #f3eee6;
  --paper-3:  #e7e1d5;
  --surface:  #ffffff;
  --surface-2:#fcfbf8;

  /* typography tones */
  --ink:      #0c1926;
  --ink-2:    #374758;
  --ink-3:    #647485;
  --ink-muted:#8897a6;

  /* structural lines */
  --line:        #e4dfd5;
  --line-subtle: #efebe2;
  --line-gold:   rgba(197, 155, 39, 0.32);
  --line-dark:   rgba(255, 255, 255, 0.12);

  /* semantic mappings */
  --bg: var(--paper);
  --text: var(--ink);
  --text-muted: var(--ink-2);
  --accent: var(--gold-500);
  --accent-hover: var(--gold-400);
  --focus: var(--navy-600);

  /* type scale (IBM Plex Sans Arabic) */
  --fs-2xs: .75rem;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --fs-xl: clamp(1.45rem, 1.25rem + .9vw, 1.95rem);
  --fs-2xl: clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem);
  --fs-3xl: clamp(2.35rem, 1.8rem + 2.8vw, 3.85rem);
  --fs-4xl: clamp(2.85rem, 2rem + 4.2vw, 4.85rem);

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.8;

  /* spacing */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  --s-10: clamp(4.5rem, 3rem + 5vw, 7.5rem);

  /* refined border radius */
  --r-xs: 6px;
  --r-1: 10px;
  --r-2: 16px;
  --r-3: 24px;
  --r-pill: 9999px;

  --measure: 68ch;
  --wrap: 1260px;
  --wrap-narrow: 920px;
  --nav-h: 76px;

  /* shadows */
  --sh-sm: 0 2px 6px rgba(12, 25, 38, 0.04);
  --sh-1: 0 4px 16px -2px rgba(12, 25, 38, 0.06), 0 2px 6px rgba(12, 25, 38, 0.04);
  --sh-2: 0 12px 32px -4px rgba(12, 25, 38, 0.09), 0 4px 12px rgba(12, 25, 38, 0.04);
  --sh-3: 0 24px 56px -10px rgba(12, 25, 38, 0.16), 0 8px 24px rgba(12, 25, 38, 0.06);
  --sh-card: 0 4px 20px -2px rgba(12, 25, 38, 0.05), 0 0 0 1px var(--line);
  --sh-card-hover: 0 16px 40px -8px rgba(12, 25, 38, 0.12), 0 0 0 1px var(--gold-400);
  --sh-gold: 0 8px 26px -4px rgba(197, 155, 39, 0.35);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: .18s;
  --dur-mid: .32s;

  --z-nav: 100;
  --z-dropdown: 150;
  --z-modal: 300;
}

/* dark section variant */
.on-dark {
  --bg: var(--navy-950);
  --surface: #0a2540;
  --surface-2: #081e35;
  --text: #f7f9fb;
  --text-muted: #c1d0df;
  --ink-3: #92a8bd;
  --line: var(--line-dark);
  --line-subtle: rgba(255, 255, 255, 0.07);
  --accent: var(--gold-400);
  --focus: var(--gold-300);
  --sh-card: 0 12px 36px -6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; width: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Luxury Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #eef2f7;
}
::-webkit-scrollbar-thumb {
  background: #0a2b4c;
  border-radius: 999px;
  border: 2px solid #eef2f7;
}
::-webkit-scrollbar-thumb:hover {
  background: #c59b27;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #0a2b4c #eef2f7;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

.num, time, .stat b { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

img, picture, video { display: block; max-width: 100%; height: auto; }
img { background: var(--paper-2); }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) ease; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -.01em;
  color: var(--navy-950);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #ffffff; }

h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { margin: 0 0 var(--s-4); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2 * var(--s-5), var(--wrap)); margin-inline: auto; box-sizing: border-box; }
.wrap--narrow { width: min(100% - 2 * var(--s-5), var(--wrap-narrow)); margin-inline: auto; box-sizing: border-box; }
@media (max-width: 640px) {
  .wrap { width: min(100% - 2 * var(--s-3), var(--wrap)); }
  .wrap--narrow { width: min(100% - 2 * var(--s-3), var(--wrap-narrow)); }
}
.section { padding-block: var(--s-9); position: relative; }
.section--tight { padding-block: var(--s-7); }
.section--paper2 { background: var(--paper-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em;
  color: var(--gold-600); margin-bottom: var(--s-3);
  background: var(--gold-100); padding: .3rem .85rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-gold);
}
.on-dark .eyebrow {
  color: var(--gold-300); background: rgba(223, 183, 70, 0.12);
  border-color: rgba(223, 183, 70, 0.25);
}
.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; line-height: 1.65; }

/* luxury buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.65rem; border-radius: var(--r-1);
  background: var(--grad-gold); color: #071f38;
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  box-shadow: var(--sh-gold);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
  position: relative; overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(197, 155, 39, 0.45);
  color: #041220;
  filter: brightness(1.05);
}
.btn:active { transform: translateY(0) scale(.98); }

.btn--navy {
  background: var(--grad-navy); color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(7, 31, 56, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn--navy:hover {
  color: #ffffff;
  box-shadow: 0 12px 30px -4px rgba(7, 31, 56, 0.5);
  border-color: var(--gold-400);
}

.btn--ghost {
  background: var(--surface); color: var(--navy-800);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.btn--ghost:hover {
  border-color: var(--accent); color: var(--gold-600);
  background: #ffffff; box-shadow: var(--sh-1);
}

.on-dark .btn--ghost {
  background: rgba(255, 255, 255, 0.06); color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.on-dark .btn--ghost:hover {
  border-color: var(--gold-400); color: var(--gold-300);
  background: rgba(255, 255, 255, 0.12);
}
.btn svg { width: 18px; height: 18px; stroke-width: 2; transition: transform var(--dur-fast) ease; }
.btn:hover svg { transform: translateX(-3px); }
