/* ---------- Tokens ---------- */
.rh-light {
  --bg: #FFFFFF;
  --bg-2: #F5F5F5;
  --fg: #111111;
  --fg-hover: #302E2F;
  --muted: #5A5A5A;
  --line: #E6E6E6;
  --line-strong: #CACACA;
  --wing: #CACACA;
  --band-bg: #302E2F;
  --band-fg: #FFFFFF;
  --band-muted: #CACACA;
  --band-line: #5A5A5A;
  --header: rgba(255, 255, 255, .9);
  color-scheme: light;
}

.rh-dark {
  --bg: #302E2F;
  --bg-2: #383637;
  --fg: #FFFFFF;
  --fg-hover: #E6E6E6;
  --muted: #CACACA;
  --line: #454243;
  --line-strong: #5A5A5A;
  --wing: #5A5A5A;
  --band-bg: #242223;
  --band-fg: #FFFFFF;
  --band-muted: #CACACA;
  --band-line: #5A5A5A;
  --header: rgba(48, 46, 47, .9);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}

a { color: inherit; }

img,
svg { display: block; }

section[id] { scroll-margin-top: 80px; }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.band :focus-visible { outline-color: var(--band-fg); }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
}

.skip:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.sec { padding-block: 72px; }

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.rh-ar .mirror { transform: scaleX(-1); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.rh-en .eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.h1 {
  margin: 0;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.3;
  color: var(--fg);
}

.rh-en .h1 { line-height: 1.08; letter-spacing: -.025em; }

.tagline {
  margin: 0;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.6;
  color: var(--fg);
}

.rh-en .tagline { line-height: 1.35; letter-spacing: -.01em; }

.h2 {
  margin: 0;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.4;
  color: var(--fg);
}

.rh-en .h2 { line-height: 1.15; letter-spacing: -.02em; }

.lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.rh-en .lead { line-height: 1.65; }

.body {
  margin: 0;
  font-size: 17px;
  line-height: 1.95;
  color: var(--muted);
}

.body-strong { color: var(--fg); }

.rh-en .body { font-size: 16px; line-height: 1.7; }

.small {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.rh-en .small { line-height: 1.6; }

.label {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Logo (light/dark swap) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 34px;
}

.logo-dark { display: none !important; }
.rh-dark .logo-light { display: none !important; }
.rh-dark .logo-dark { display: block !important; }

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.nav-desk {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  padding: 10px 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s;
}

.nav-link:hover { color: var(--fg); }

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.seg-btn {
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.seg-btn:hover { color: var(--fg); }

.seg-btn[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s;
}

.icon-btn:hover { border-color: var(--fg); }

/* theme icon: moon in light, sun in dark */
.ico-sun { display: none; }
.rh-dark .ico-sun { display: block; }
.rh-dark .ico-moon { display: none; }

/* menu icon: bars when closed, × when open */
.ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }
.menu-btn[aria-expanded="true"] .ico-menu { display: none; }

.nav-mob {
  display: flex;
  flex-direction: column;
  padding: 4px 20px 16px;
  border-top: 1px solid var(--line);
}

.nav-mob[hidden] { display: none; }

.nav-mob a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--fg-hover);
  color: var(--bg);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}

.btn-ghost:hover { border-color: var(--fg); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.cta-row .btn { flex: 1 1 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 72px;
}

/* faint grid texture that fades out */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 10%, transparent 75%);
  opacity: 1;
}

.hero-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-text .cta-row { align-self: stretch; }

.h1-soft { color: var(--muted); }

/* "How it works" panel */
.flow {
  position: relative;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 28px 56px -32px rgba(0, 0, 0, .22);
}

.rh-dark .flow {
  background: var(--bg-2);
  box-shadow: none;
}

.flow-title {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.rh-en .flow-title {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 24px;
}

.step:last-child { padding-bottom: 0; }

/* connector line between step numbers */
.step::before {
  content: "";
  position: absolute;
  inset-inline-start: 17.5px;
  top: 40px;
  bottom: 4px;
  width: 1px;
  background: var(--line-strong);
}

.step:last-child::before { display: none; }

.step-num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.rh-dark .step-num { background: var(--bg-2); }

.step:first-child .step-num {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.step-title {
  margin: 5px 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--fg);
}

.flow-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 44px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
}

.flow-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: color .15s;
}

.flow-foot:hover .flow-phone { color: var(--muted); }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.about-head,
.svc-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.values {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.value {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}

.value-title {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

/* ---------- Services ---------- */
.svc { background: var(--bg-2); }

.svc-head { max-width: 640px; }

.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s;
}

.card:hover { border-color: var(--line-strong); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg);
}

.card-num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
}

.card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fg);
}

.rh-en .card-title { line-height: 1.3; }

/* ---------- CTA band ---------- */
.band {
  position: relative;
  overflow: hidden;
  padding: 44px 24px;
  border-radius: 24px;
  background: var(--band-bg);
  color: var(--band-fg);
}

.band-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 720px;
}

.band-in .cta-row { align-self: stretch; }

.band .eyebrow { color: var(--band-muted); }
.band .h2 { color: var(--band-fg); }
.band .body { color: var(--band-muted); }

.band .btn-primary {
  background: var(--band-fg);
  color: var(--band-bg);
}

.band .btn-primary:hover {
  background: #E6E6E6;
  color: var(--band-bg);
}

.band .btn-ghost {
  border-color: var(--band-line);
  color: var(--band-fg);
}

.band .btn-ghost:hover { border-color: var(--band-fg); }

.band-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--band-muted);
}

/* Wing lines grow out of the band's end edge (right in EN, left in AR).
   They live in their own grid cell (never behind the text); the negative
   inline-end margin (= band padding) lets them touch the band's edge. */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

.band-in { order: 1; }

.band-art {
  order: 2;
  justify-self: end;
  width: 75%;
  max-width: 340px;
  margin-inline-end: -24px;
  opacity: .6;
  pointer-events: none;
  color: var(--band-line);
}

.band-art svg {
  width: 100%;
  height: auto;
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); }

.foot-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 48px;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 360px;
}

.foot-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.foot-phone {
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: color .15s;
}

.foot-phone:hover { color: var(--muted); }

.socials {
  display: flex;
  gap: 10px;
}

.foot-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.foot-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.foot-bottom a:hover { color: var(--fg); }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .cta-row .btn { flex: 0 0 auto; }
  .band-in .cta-row { align-self: auto; }
}

@media (min-width: 768px) {
  .wrap { padding-inline: 32px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    border-top: 0;
  }

  .value {
    padding-block: 28px 0;
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }

  .band { padding: 64px 56px; }
  .band-art { margin-inline-end: -56px; }


  .foot-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .foot-contact { align-items: flex-end; }

  .foot-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .nav-desk { display: flex; }
  .menu-btn,
  .nav-mob,
  .nav-mob[hidden] { display: none; }
  .hdr-in { height: 76px; }
  .logo img { height: 38px; }
}

@media (min-width: 1024px) {
  .wrap { padding-inline: 40px; }
  .sec { padding-block: 120px; }
  .hero { padding-block: 104px 120px; }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 72px;
    align-items: center;
  }

  .hero-text { gap: 24px; }
  .hero-text .cta-row { align-self: auto; }

  .flow { padding: 36px 32px; }


  .h1 { font-size: 72px; }
  .rh-en .h1 { font-size: 64px; }
  .tagline { font-size: 30px; }
  .h2 { font-size: 46px; }
  .lead { font-size: 18px; max-width: 540px; }
  .body,
  .rh-en .body { font-size: 18px; }

  .about-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 72px;
  }

  .values { margin-top: 80px; }

  .svc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 56px;
  }

  .card { padding: 32px; }
  .band {
    grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
    align-items: center;
    gap: 56px;
    padding: 88px 80px;
  }

  .band-art {
    justify-self: stretch;
    width: auto;
    max-width: none;
    margin-inline-end: -80px;
    opacity: .7;
  }
}
