/* ==========================================================================
   Zimam HQ — style.css
   1. Tokens   2. Base   3. Layout   4. Buttons   5. Header   6. Hero
   7. Sections   8. Services   9. About   10. Why   11. Steps   12. Contact
   13. Footer   14. Motion   15. Responsive   16. RTL / Arabic
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  --navy-950: #0B1324;
  --navy-900: #101D35;
  --navy-800: #16264A;
  --gold: #C7AA72;
  --gold-soft: #D7BD86;
  --gold-deep: #7D6330;            /* gold for text on light backgrounds (AA contrast) */
  --white: #FFFFFF;
  --offwhite: #F7F6F2;
  --ink: #17203A;
  --muted-light: #566075;          /* secondary text on light */
  --muted-dark: #A8B1C2;           /* secondary text on navy */
  --line-light: rgba(16, 29, 53, 0.10);
  --line-gold: rgba(199, 170, 114, 0.28);

  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Georgia, "Times New Roman", serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --section-y: clamp(4rem, 8vw, 7rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(11, 19, 36, 0.05), 0 10px 30px -12px rgba(11, 19, 36, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
  --logo-h: 64px;
}

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 { line-height: 1.15; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.005em; }
h3 { font-size: 1.125rem; letter-spacing: 0; }

:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px; }
.section--light :focus-visible { outline-color: var(--gold-deep); }

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* 3. LAYOUT ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--offwhite); color: var(--ink); }
.section--dark {
  background: radial-gradient(120% 80% at 80% 0%, var(--navy-900) 0%, var(--navy-950) 60%);
  color: var(--white);
}

.section__head { max-width: 44rem; margin-block-end: clamp(2rem, 5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-block: 0.6rem 1rem; }
.section__intro { color: var(--muted-light); font-size: 1.0625rem; }
.section--dark .section__intro { color: var(--muted-dark); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow--gold { color: var(--gold); }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }

/* 4. BUTTONS ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--navy-950);
  box-shadow: 0 6px 20px -8px rgba(199, 170, 114, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(199, 170, 114, 0.85); }

.btn--ghost {
  background: rgba(11, 19, 36, 0.35);
  border-color: rgba(215, 189, 134, 0.65);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(199, 170, 114, 0.14); border-color: var(--gold-soft); transform: translateY(-2px); }

.btn--sm { min-height: 42px; padding: 0.55rem 1.2rem; font-size: 0.875rem; }

/* 5. HEADER ------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--navy-950);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* soft fade from the header into the hero photo while at the top of the page */
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  height: 56px;
  background: linear-gradient(180deg, var(--navy-950), rgba(11, 19, 36, 0));
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.site-header.is-scrolled::after, .site-header.nav-open::after { opacity: 0; }
/* kept fully opaque so the logo artwork blends seamlessly into the header */
.site-header.is-scrolled,
.site-header.nav-open {
  background: var(--navy-950);
  box-shadow: 0 1px 0 var(--line-gold), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--header-h);
  padding-block: 0.5rem;
  transition: min-height 0.3s var(--ease);
}

/* Logo: the original artwork is shown untouched. CSS only crops the empty
   navy margin around it and blends its near-black backdrop into the header. */
.brand { display: inline-flex; flex: none; }
.logo {
  position: relative;
  display: block;
  height: var(--logo-h);
  aspect-ratio: 784 / 710;
  overflow: hidden;
  direction: ltr;               /* image offsets below are physical on purpose */
  transition: height 0.3s var(--ease);
}
.logo img {
  position: absolute;
  left: -30.61%;
  top: -42.25%;
  width: 161.22%;
  max-width: none;
  height: auto;
  mix-blend-mode: lighten;
}

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0.1rem;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--gold-soft); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 0.75rem; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid rgba(215, 189, 134, 0.55);
  border-radius: var(--radius-sm);
  color: var(--gold-soft);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lang-btn .icon { width: 1.05rem; height: 1.05rem; }
.lang-btn:hover { background: rgba(199, 170, 114, 0.14); border-color: var(--gold-soft); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(215, 189, 134, 0.55);
  border-radius: var(--radius-sm);
}
.menu-btn__bars { position: relative; display: block; width: 18px; height: 12px; }
.menu-btn__bars span {
  position: absolute;
  inset-inline: 0;
  height: 1.5px;
  background: var(--gold-soft);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { top: 5px; }
.menu-btn__bars span:nth-child(3) { top: 10px; }
.nav-open .menu-btn__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .menu-btn__bars span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* 6. HERO --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;                                /* keeps the slow zoom inside the hero */
  display: flex;
  align-items: center;
  min-height: clamp(640px, 100svh, 980px);
  padding-block: calc(var(--header-h) + 3rem) 6rem;
  color: var(--white);
  text-align: center;
  background-color: var(--navy-950);               /* fallback if the photo fails to load */
}

/* Layer 1: the photograph (this is the part that slowly zooms) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("./images/hero-office.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform-origin: 60% 45%;
  will-change: transform;
}

/* Layer 2: dark overlay so the text stays readable (does not move) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(11, 19, 36, 0.72) 0%, rgba(11, 19, 36, 0) 100%),
    linear-gradient(180deg, rgba(11, 19, 36, 0.78) 0%, rgba(11, 19, 36, 0.38) 38%, rgba(11, 19, 36, 0.5) 72%, #0B1324 100%);
  pointer-events: none;
}

.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__title {
  max-width: 17ch;
  margin-block: 1rem 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(5, 9, 18, 0.55);
}
.hero__lead {
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 14px rgba(5, 9, 18, 0.6);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-block: 2.25rem 1.75rem; }
.hero__note {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 1px 10px rgba(5, 9, 18, 0.7);
}

.scroll-cue {
  position: absolute;
  inset-block-end: 1.5rem;
  inset-inline-start: 50%;
  width: 28px;
  height: 46px;
  margin-inline-start: -14px;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(215, 189, 134, 0.55);
  border-radius: 999px;
}
.scroll-cue span {
  width: 3px;
  height: 9px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--gold-soft);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* 7. SECTION SHARED CARD ------------------------------------------------ */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset-inline: 1.5rem;
  inset-block-start: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(199, 170, 114, 0.55); box-shadow: 0 2px 4px rgba(11, 19, 36, 0.05), 0 22px 44px -18px rgba(11, 19, 36, 0.3); }
.card:hover::before { opacity: 1; }

/* 8. SERVICES ----------------------------------------------------------- */
.grid--services { grid-template-columns: 1fr; }
.service { padding: clamp(1.5rem, 3vw, 2.25rem); }
.service__icon, .why__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-block-end: 1.25rem;
  background: var(--navy-950);
  color: var(--gold-soft);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line-gold);
}
.service h3 { font-size: 1.3rem; }
.service__desc { margin-block: 0.6rem 1.25rem; color: var(--muted-light); }

.ticks { display: grid; gap: 0.6rem; }
.ticks li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.62em;
  width: 0.7rem;
  height: 1px;
  background: var(--gold-deep);
}

/* 9. ABOUT -------------------------------------------------------------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__text h2 { margin-block: 0.6rem 1.4rem; }
.about__text > p:not(.eyebrow) { color: var(--muted-dark); font-size: 1.0625rem; margin-block-end: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block-start: 1.75rem; }
.chips li {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-soft);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(199, 170, 114, 0.06);
}

.about__panel {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 38, 74, 0.7), rgba(11, 19, 36, 0.6));
}
.about__rule { display: block; width: 3rem; height: 2px; margin-block-end: 1.5rem; background: var(--gold); }
.about__statement {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
}
.about__sub { margin-block-start: 1.25rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }

/* 10. WHY --------------------------------------------------------------- */
.grid--why { grid-template-columns: 1fr; }
.why { padding: clamp(1.5rem, 3vw, 2rem); }
.why h3 { margin-block-end: 0.5rem; font-size: 1.1rem; }
.why p { color: var(--muted-light); font-size: 0.95rem; }

/* 11. STEPS ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 2rem; counter-reset: none; }
.step { position: relative; padding-inline-start: 4.5rem; }
.step::before {                       /* vertical connector (mobile) */
  content: "";
  position: absolute;
  inset-inline-start: 1.6rem;
  inset-block: 3.4rem -2rem;
  width: 1px;
  background: linear-gradient(180deg, var(--line-gold), transparent);
}
.step:last-child::before { display: none; }
.step__num {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-soft);
  background: var(--navy-950);
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.step h3 { margin-block: 0.35rem 0.5rem; font-size: 1.2rem; }
.step p { color: var(--muted-dark); font-size: 0.95rem; }

/* 12. CONTACT ----------------------------------------------------------- */
.contact {
  display: grid;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(120% 120% at 0% 0%, var(--navy-800) 0%, var(--navy-950) 70%);
  border: 1px solid var(--line-gold);
  box-shadow: 0 30px 60px -30px rgba(11, 19, 36, 0.55);
  color: var(--white);
}
.contact__main, .contact__side { padding: clamp(1.75rem, 5vw, 3.5rem); }
.contact__main h2 { margin-block: 0.6rem 1rem; }
.contact__lead { max-width: 36rem; color: var(--muted-dark); font-size: 1.0625rem; }
.contact__list { display: grid; gap: 1.1rem; margin-block: 2rem; }
.contact__label { display: block; margin-block-end: 0.25rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  border-block-end: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact__link .icon { color: var(--gold-soft); }
.contact__link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.contact__side {
  border-block-start: 1px solid var(--line-gold);
  background: rgba(255, 255, 255, 0.03);
}
.contact__side h3 { margin-block-end: 1.25rem; font-size: 1rem; color: var(--gold-soft); }
.ticks--light li { color: rgba(255, 255, 255, 0.88); }
.ticks--light li::before { background: var(--gold); }

/* 13. FOOTER ------------------------------------------------------------ */
.site-footer {
  padding-block-start: clamp(3rem, 6vw, 4.5rem);
  background: var(--navy-950);
  color: var(--muted-dark);
  border-block-start: 1px solid var(--line-gold);
}
.footer__grid { display: grid; gap: 2.5rem; padding-block-end: 2.5rem; }
.brand--footer .logo { --logo-h: 150px; height: var(--logo-h); }
.footer__desc { max-width: 26rem; margin-block-start: 1.25rem; font-size: 0.95rem; }
.footer__col h3 { margin-block-end: 1rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a { font-size: 0.95rem; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--gold-soft); }
.footer__bar { padding-block: 1.5rem; border-block-start: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.85rem; }

/* 14. MOTION ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero: photo fades in, then drifts in a very slow zoom */
  .hero__bg { animation: hero-fade 1.6s var(--ease) both, hero-zoom 30s ease-in-out infinite alternate; }

  /* Hero text arrives one piece at a time */
  .hero .reveal { transition-duration: 1s; }
  .hero__inner > .reveal:nth-child(1) { transition-delay: 0.15s; }
  .hero__inner > .reveal:nth-child(2) { transition-delay: 0.4s; }
  .hero__inner > .reveal:nth-child(3) { transition-delay: 0.7s; }
  .hero__inner > .reveal:nth-child(4) { transition-delay: 1s; }
  .hero__inner > .reveal:nth-child(5) { transition-delay: 1.3s; }

  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .grid .reveal:nth-child(2n) { transition-delay: 0.08s; }
  .grid--why .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
  .grid--why .reveal:nth-child(3n) { transition-delay: 0.16s; }
  .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
  .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
  .steps .reveal:nth-child(4) { transition-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 15. RESPONSIVE (mobile-first values above; larger screens below) ------- */
@media (max-width: 959px) {
  :root { --header-h: 76px; --logo-h: 58px; }
  .menu-btn { display: inline-flex; }
  .header__cta { display: none; }
  .header__actions { margin-inline-start: auto; }

  .nav {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--navy-950);
    border-block-end: 1px solid var(--line-gold);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding-block: 1rem; font-size: 0.9rem; border-block-end: 1px solid rgba(255, 255, 255, 0.07); }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: inline-flex; width: 100%; margin-block-start: 1.25rem; }

  .hero__bg { background-position: 60% center; }
  .hero { padding-block-end: 5.5rem; }
}

@media (max-width: 479px) {
  .hero__actions .btn, .contact__actions .btn { width: 100%; }
  .lang-btn span { font-size: 0.82rem; }
  .hero { min-height: 620px; }
}

@media (min-width: 640px) {
  .grid--why { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .step::before { display: none; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --logo-h: 92px; --header-h: 112px; }
  /* compact sticky header once the page is scrolled */
  .site-header.is-scrolled { --logo-h: 52px; --header-h: 72px; }

  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1.15fr 0.85fr; }
  .contact { grid-template-columns: 1.4fr 1fr; }
  .contact__side { border-block-start: 0; border-inline-start: 1px solid var(--line-gold); display: flex; flex-direction: column; justify-content: center; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .step { padding-inline-start: 0; padding-block-start: 5rem; }
  .step__num { inset-inline-start: 0; }
  .step::before {                          /* horizontal connector (desktop) */
    display: block;
    inset-inline-start: 3.7rem;
    inset-inline-end: -1rem;
    inset-block: 1.6rem auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--line-gold), rgba(199, 170, 114, 0.08));
  }
  .step:last-child::before { display: none; }
  .section__head--center + .steps { margin-block-start: 0; }
}

@media (min-width: 1100px) {
  .grid--why { grid-template-columns: repeat(3, 1fr); }
}

/* 16. ARABIC / RTL ------------------------------------------------------ */
html[lang="ar"] {
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Noto Naskh Arabic", system-ui, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Noto Naskh Arabic", system-ui, sans-serif;
}
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; font-weight: 600; }
html[lang="ar"] .hero__title { line-height: 1.3; letter-spacing: 0; max-width: 20ch; font-weight: 700; }
html[lang="ar"] h2 { letter-spacing: 0; font-weight: 600; }
html[lang="ar"] .about__statement { line-height: 1.4; }
/* Letter-spacing and uppercase break Arabic joining — switch them off */
html[lang="ar"] .eyebrow,
html[lang="ar"] .nav__link,
html[lang="ar"] .hero__note,
html[lang="ar"] .about__sub,
html[lang="ar"] .contact__label,
html[lang="ar"] .footer__col h3,
html[lang="ar"] .btn { letter-spacing: 0; text-transform: none; }
html[lang="ar"] .eyebrow { font-size: 0.9rem; }
html[lang="ar"] .nav__link { font-size: 0.95rem; }
html[lang="ar"] .hero__note, html[lang="ar"] .about__sub { font-size: 0.9rem; }
html[lang="ar"] .contact__label, html[lang="ar"] .footer__col h3 { font-size: 0.85rem; }

[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .icon-arrow { transform: scaleX(-1) translateX(3px); }
