/* عليان – صفحة واحدة · بسيط ونظيف */
:root {
  --brand: #0047BA;
  --brand-dark: #003489;
  --brand-tint: #EAF0FB;
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --ink: #0F172A;
  --ink-2: #334155;
  --line: #E6EBF2;
  --radius: 14px;
  --radius-lg: 26px;
  --header-w: 440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
svg { flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 40px, 1080px); margin-inline: auto; }
.skip {
  position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- الهيدر (زجاجي، منحني) ---------- */
.site-header {
  position: fixed; z-index: 50;
  inset-block-start: 12px; inset-inline: 0; margin-inline: auto;
  width: min(calc(100% - 24px), var(--header-w));
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 16px 8px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px -24px rgba(15, 23, 42, .35);
  transition: background .3s, padding .3s var(--ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .menu { background: rgba(255, 255, 255, .97); }
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .78); padding-block: 8px 4px; }

.brand { display: block; line-height: 0; }
.brand img { height: 66px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand img { height: 55px; }

.menu-toggle {
  appearance: none; border: 0; background: transparent; cursor: pointer; padding: 0;
  width: 56px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  transition: background .2s;
}
.menu-toggle:hover { background: rgba(0, 71, 186, .08); }
.menu-toggle__bars { position: relative; width: 22px; height: 14px; }
.menu-toggle__bars i {
  position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease), background .2s;
}
.menu-toggle__bars i:first-child { top: 2px; }
.menu-toggle__bars i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] i:first-child { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-child { top: 6px; transform: rotate(-45deg); }

/* القائمة: بنفس عرض الهيدر */
.menu {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -26px rgba(15, 23, 42, .4);
  transform-origin: 50% 0;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97);
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu__list { display: grid; }
.menu__link {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border-radius: 18px; color: var(--ink); font-size: 1.4rem; font-weight: 700;
  transition: background .2s, color .2s;
}
.menu__num { font-size: .85rem; font-weight: 500; color: var(--ink-2); opacity: .6; min-width: 1.6em; font-variant-numeric: tabular-nums; }
.menu__label { flex: 1; }
.menu__arrow { opacity: .35; transition: transform .25s var(--ease), opacity .2s; }
.menu__link:hover, .menu__link[aria-current="true"] { background: rgba(0, 71, 186, .07); color: var(--brand); }
.menu__link:hover .menu__arrow { transform: translateX(-4px); opacity: 1; }
.menu__social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 6px; padding: 14px; border-radius: 18px;
  font-size: 1rem; font-weight: 700; color: var(--ink-2);
  border-top: 1px solid rgba(15, 23, 42, .08);
}
.menu__social:hover { color: var(--brand); }
.menu__arrow, .menu__social svg, .cbtn svg, .textlink svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- الواجهة: صورة بملء الشاشة ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; color: #fff; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    url("img/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #0A3C94 0%, #0A1F4D 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(7, 18, 44, .82) 0%, rgba(7, 18, 44, .45) 42%, rgba(7, 18, 44, .12) 100%);
}
.hero__inner { padding-block: 150px clamp(48px, 11vh, 110px); }
.hero__title {
  font-size: clamp(2.9rem, 12vw, 6.6rem); line-height: 1.36; font-weight: 800; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(7, 18, 44, .35);
}
.hero__title span { display: block; }
.hero__lead { margin-top: 24px; max-width: 36ch; font-size: clamp(1.15rem, 4vw, 1.4rem); line-height: 1.85; color: rgba(255, 255, 255, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border-radius: var(--radius); font-weight: 800; font-size: 1.1rem; line-height: 1.2;
  transition: transform .25s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--brand-tint); }
.btn--glass {
  color: #fff; background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .45);
}
.btn--glass:hover { background: rgba(255, 255, 255, .26); }

/* ---------- الأقسام ---------- */
.section { padding-block: clamp(88px, 16vw, 170px); }
.kicker { font-size: 1rem; font-weight: 700; color: var(--brand); margin-bottom: 24px; }
.statement {
  max-width: 24em; font-size: clamp(1.65rem, 5.2vw, 2.7rem); line-height: 1.6; font-weight: 700; color: var(--ink); letter-spacing: -.005em;
}
.num { display: block; font-size: .95rem; font-weight: 500; color: var(--brand); margin-bottom: 14px; font-variant-numeric: tabular-nums; }

/* عن الشركة */
.about__body { margin-top: clamp(56px, 9vw, 96px); display: grid; gap: 48px; }
.about__story p + p { margin-top: 22px; }
.about__story p { font-size: 1.2rem; }
.about__aims { display: grid; gap: 40px; align-content: start; }
.about__aims h3 { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }

/* الخدمات */
.services { background: var(--surface); }
.services__list { margin-top: clamp(56px, 9vw, 96px); display: grid; gap: 0 clamp(32px, 5vw, 64px); }
.services__list li { padding-block: 32px 36px; border-top: 1px solid var(--line); }
.services__list h3 { font-size: 1.5rem; line-height: 1.5; font-weight: 800; color: var(--ink); }
.services__list p { margin-top: 10px; font-size: 1.08rem; }

.process { margin-top: clamp(64px, 10vw, 120px); }
.process__title { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 800; color: var(--ink); }
.process__steps { counter-reset: step; margin-top: 32px; display: grid; }
.process__steps li { counter-increment: step; display: grid; gap: 2px; padding-block: 24px; border-top: 1px solid var(--line); }
.process__steps li::before {
  content: counter(step, decimal-leading-zero); font-size: .95rem; font-weight: 500; color: var(--brand); font-variant-numeric: tabular-nums;
}
.process__steps b { font-size: 1.25rem; font-weight: 800; color: var(--ink); line-height: 1.6; }
.process__steps span { font-size: 1.02rem; line-height: 1.8; }

/* التواصل */
.contact__lead { margin-top: 20px; max-width: 40em; font-size: 1.2rem; }
.contact__buttons { margin-top: clamp(40px, 7vw, 64px); display: grid; gap: 12px; }
.cbtn {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  transition: transform .25s var(--ease), background .2s, color .2s;
}
.cbtn:hover { transform: translateY(-2px); background: var(--brand-tint); color: var(--brand); }
.cbtn svg { color: var(--brand); }
.cbtn__text { display: grid; line-height: 1.5; }
.cbtn__text b { font-size: 1.35rem; font-weight: 800; }
.cbtn__text span, .cbtn__text bdi { font-size: 1rem; color: var(--ink-2); text-align: start; }
.cbtn--primary { background: var(--brand); color: #fff; }
.cbtn--primary svg, .cbtn--primary .cbtn__text bdi { color: #fff; }
.cbtn--primary:hover { background: var(--brand-dark); color: #fff; }

.contact__info { margin-top: clamp(56px, 9vw, 96px); display: grid; gap: 36px; }
.contact__info dt { font-size: .95rem; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.contact__info dd { font-size: 1.15rem; color: var(--ink); display: grid; gap: 6px; justify-items: start; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--brand); border-bottom: 1px solid transparent; transition: border-color .2s; }
.textlink:hover { border-bottom-color: currentColor; }

/* ---------- التذييل ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 36px; font-size: 1rem; }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__brand { display: grid; gap: 10px; justify-items: start; }
.site-footer__brand img { height: 44px; width: auto; }
.site-footer__brand p { color: var(--ink-2); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-footer__nav a { font-weight: 700; color: var(--ink); padding-block: 6px; }
.site-footer__nav a:hover { color: var(--brand); }
.site-footer__copy { font-size: .92rem; color: var(--ink-2); opacity: .8; }

/* ---------- ظهور تدريجي ---------- */
.reveal-hidden { opacity: 0; transform: translateY(22px); }
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ---------- الشاشات الأكبر ---------- */
@media (min-width: 720px) {
  .container { width: min(100% - 80px, 1080px); }
  .services__list { grid-template-columns: repeat(2, 1fr); }
  .about__body { grid-template-columns: 1.2fr 1fr; gap: clamp(48px, 8vw, 110px); align-items: start; }
  .process__steps { grid-template-columns: repeat(5, 1fr); column-gap: 28px; }
  .contact__buttons { grid-template-columns: repeat(3, 1fr); }
  .cbtn { padding: 26px 26px; }
  .contact__info { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
}
@media (min-width: 1000px) {
  .services__list { grid-template-columns: repeat(3, 1fr); }
  .hero__lead { max-width: 34ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal-hidden { opacity: 1; transform: none; }
}
@media print {
  .site-header { display: none; }
  .hero { min-height: 0; color: var(--ink); }
  .hero__bg, .hero::after { display: none; }
}
