:root {
  --blue: #0a6cb8;
  --blue-deep: #085a9a;
  --blue-ink: #16324a;
  --gold: #c9962e;
  --gold-soft: #e8c36a;
  --ink: #1a2a38;
  --muted: #5c6b78;
  --line: #d7e0e8;
  --paper: #ffffff;
  --paper-soft: #f4f7fa;
  --dark: #102433;
  --shadow: 0 10px 30px rgba(16, 36, 51, .08);
  --radius: 12px;
  --header-h: 84px;
  --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, a, span, strong, li, button {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

body::selection { background: rgba(10, 108, 184, .16); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(180deg, #f7fafc 0%, #ffffff 28%, #ffffff 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  width: min(188px, 42vw);
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: right center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: .95rem;
  color: #3d5161;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1.4;
  transition: color .2s ease, background .2s ease;
}

.main-nav a:not(.nav-cta):hover {
  color: var(--blue);
  background: #f3f7fb;
}

.nav-cta {
  margin-inline-start: 8px;
  padding: 8px 16px !important;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 600;
}

.nav-cta:hover { background: var(--blue); color: #fff; }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-ink);
}

.section { padding: 96px 0; position: relative; }
.hero { padding: 72px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 56px;
}

.hero-copy { min-width: 0; max-width: 640px; }

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.45;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--dark);
}

h1 span,
h2 span { color: var(--blue); }

.hero-lead {
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  white-space: nowrap;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-primary:hover { background: var(--blue-deep); }

.btn-ghost {
  color: var(--blue-ink);
  border: 1px solid var(--line);
  background: #fff;
}

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

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  min-width: 0;
  padding: 16px 16px 0 0;
}

.hero-meta div + div {
  padding-inline: 16px 0;
  border-inline-start: 1px solid var(--line);
}

.hero-meta strong {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dark);
}

.hero-meta span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.7;
}

.hero-art {
  position: relative;
  min-height: 420px;
  isolation: isolate;
  overflow: hidden;
}

.orb, .ring { position: absolute; border-radius: 50%; pointer-events: none; }

.orb-blue {
  width: 280px;
  height: 280px;
  top: 70px;
  right: 48px;
  background: linear-gradient(160deg, #2a8fd4 0%, var(--blue) 55%, #064a82 100%);
}

.orb-gold {
  width: 112px;
  height: 112px;
  top: 42px;
  right: 250px;
  background: linear-gradient(160deg, #f0d089, var(--gold));
}

.ring-1 {
  width: 390px;
  height: 390px;
  top: 18px;
  right: 8px;
  border: 1px solid rgba(10, 108, 184, .16);
}

.ring-2 {
  width: 500px;
  height: 500px;
  top: -36px;
  right: -46px;
  border: 1px solid rgba(201, 150, 46, .18);
}

.art-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.art-card-main {
  left: 16px;
  bottom: 88px;
  width: min(280px, calc(100% - 32px));
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.mini-brand {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  background: var(--blue);
}

.art-card-main span,
.art-card-main strong { display: block; line-height: 1.45; }

.art-card-main span {
  font-size: .72rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: .08em;
}

.art-card-main strong {
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark);
}

.art-chip {
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: .78rem;
  line-height: 1.5;
  white-space: nowrap;
}

.chip-1 { top: 156px; left: 12px; }
.chip-2 { right: 16px; bottom: 36px; }

.hero-bottom-line {
  height: 1px;
  margin-top: 48px;
  background: var(--line);
}

.section-light { background: var(--paper-soft); }

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}

.section-heading h2,
.section-head-row h2,
.cta-box h2,
.approach-title h2 {
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--dark);
}

.lead-paragraph {
  font-size: 1.05rem;
  line-height: 2;
  color: #334756;
}

.about-copy > p:not(.lead-paragraph) { color: var(--muted); }

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.about-pills span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-ink);
  background: #fff;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
}

.services-section { background: #fff; }

.section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 40px;
}

.section-head-row > p {
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.95;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.service-card:hover { border-color: rgba(10, 108, 184, .35); }

.service-card.featured {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.service-number {
  color: #8a99a6;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
}

.featured .service-number { color: rgba(255, 255, 255, .5); }

.service-icon {
  width: 42px;
  height: 42px;
  margin: 22px 0 16px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.icon-blue { color: var(--blue); background: #eaf4fb; }
.icon-gold { color: #8a6414; background: #f7edd4; }
.featured .icon-gold { color: #fff; background: rgba(232, 195, 106, .22); }

.service-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
  color: var(--dark);
}

.featured h3 { color: #fff; }

.service-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.85;
  margin-bottom: 18px;
  flex: 1;
}

.featured p { color: rgba(255, 255, 255, .74); }

.service-link {
  position: static;
  margin-top: auto;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.5;
}

.featured .service-link { color: var(--gold-soft); }

.approach-section { background: var(--dark); color: #fff; }

.approach-card {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: stretch;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: #143044;
}

.section-tag.light { color: var(--gold-soft); }

.approach-title h2 { color: #fff; }
.approach-title h2 span { color: var(--gold-soft); }

.approach-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.step {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  display: flex;
  gap: 12px;
  min-width: 0;
}

.step > span {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
}

.step strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.step p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: .85rem;
  line-height: 1.8;
}

.cta-section { background: var(--paper-soft); }

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.cta-box p {
  margin-bottom: 0;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.9;
}

.btn-large { min-width: 168px; min-height: 50px; }

.site-footer {
  background: #0c1f2f;
  color: rgba(255, 255, 255, .7);
  padding: 28px 0;
}

.footer-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.footer-brand img {
  width: 168px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}

.footer-brand p {
  margin: 10px 0 0;
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}

.footer-links {
  display: flex;
  gap: 8px 18px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .84rem;
  line-height: 1.5;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  text-align: left;
  font-size: .78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .45);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 1050px) {
  .hero-grid,
  .split-grid,
  .approach-card,
  .section-head-row,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .hero-art { min-height: 360px; }
  .hero-copy { max-width: none; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-meta div + div { border-inline-start: 0; padding-inline: 0; }
  .footer-copy { text-align: right; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .container { width: min(100% - 28px, 680px); }
  .site-header { background: #fff; }
  .brand { width: 150px; }
  .brand img { height: 40px; }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    right: 14px;
    left: 14px;
    padding: 10px;
    display: grid;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: .2s ease;
    z-index: 120;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-nav a {
    padding: 12px 14px;
    white-space: normal;
  }

  .nav-cta {
    text-align: center;
    margin: 4px 0 0;
  }

  .section { padding: 72px 0; }
  .hero { padding-top: 40px; }

  h1 { font-size: clamp(1.7rem, 7.2vw, 2.35rem); line-height: 1.5; }

  .hero-lead { font-size: 1rem; }

  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div {
    padding: 12px 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-art { min-height: 320px; }
  .art-card-main { left: 12px; bottom: 64px; }
  .art-chip { white-space: normal; }

  .services-grid,
  .approach-steps { grid-template-columns: 1fr; }

  .approach-card,
  .cta-box { padding: 24px 20px; }

  .cta-box {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-wrap { text-align: center; }
  .footer-brand img { margin-inline: auto; }
  .footer-copy { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
