/* شركة إنسايت برو للتدريب — نظام التصميم (عربي/إنجليزي)
   الألوان من دليل الهوية: 2A3881 / 073A70 / 125DA8 / 00BAEB / A29F98
   الخط: Bahij TheSansArabic (يدعم العربية واللاتينية) */

@font-face { font-family: "Bahij"; src: url("../fonts/bahij-plain.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bahij"; src: url("../fonts/bahij-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #2A3881;
  --navy-dark: #1F2B69;
  --deep: #073A70;
  --blue: #125DA8;
  --cyan: #00BAEB;
  --stone: #A29F98;
  --ink: #1B2550;
  --muted: #5D6787;
  --line: #E3E8F2;
  --soft: #F4F7FC;
  --tint: #EAF0FA;
  --white: #fff;
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 12px 32px -14px rgba(23, 39, 92, .22);
  --shadow-sm: 0 2px 10px -4px rgba(23, 39, 92, .12);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: "Bahij", "Segoe UI", Tahoma, sans-serif; font-size: 1.0625rem; line-height: 1.75; color: var(--ink); background: var(--white); font-synthesis: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-weight: 900; line-height: 1.3; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.22; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 900; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
[dir="ltr"] .ic-arrow { transform: scaleX(-1); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: .6em 1.5em; font: 900 1rem/1.2 "Bahij", sans-serif; border-radius: var(--r-sm); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn-sm { min-height: 42px; padding: .45em 1.1em; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 18px -10px rgba(42, 56, 129, .8); }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { border-color: #C9D2E6; color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--tint); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--tint); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- الشريط العلوي والرأس ---------- */
.topbar { background: var(--deep); color: rgba(255, 255, 255, .8); font-size: .875rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-lic { display: inline-flex; align-items: center; gap: 8px; }
.topbar-lic .ic { color: var(--cyan); width: 16px; height: 16px; }
.topbar-links { display: flex; gap: 22px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--cyan); }
.topbar .ic { width: 15px; height: 15px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 8px 24px -16px rgba(23, 39, 92, .35); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 96px; }
.brand { flex: none; display: block; }
.brand img { height: 78px; width: auto; }
/* الشعار دائمًا على اليسار: في العربية يأتي آخرًا */
[dir="rtl"] .brand { order: 3; }
[dir="rtl"] .header-cta { order: 2; }
.main-nav { flex: 1; min-width: 0; }
.main-nav > ul { display: flex; justify-content: flex-start; gap: 2px; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav > ul > li > a { display: block; padding: 10px 9px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .96875rem; white-space: nowrap; }
.main-nav > ul > li > a:hover { color: var(--navy); background: var(--soft); }
.main-nav > ul > li > a[aria-current="page"] { color: var(--navy); background: var(--tint); font-weight: 900; }
.sub-toggle { display: none; }
.has-sub > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); opacity: .5; }
.sub { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 320px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.sub a:hover { background: var(--soft); color: var(--navy); }
.sub-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--navy); flex: none; }
.sub-ic .ic { width: 18px; height: 18px; }
.sub-all a { font-weight: 900; color: var(--navy); border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; padding-top: 14px; }
.nav-extra { display: none; }
.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); color: var(--navy); text-decoration: none; font-weight: 900; font-size: .9375rem; }
.lang-switch:hover { border-color: var(--navy); background: var(--soft); }
.lang-switch .ic { width: 18px; height: 18px; }
.burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-sm); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.burger .ic-close { display: none; }
.burger[aria-expanded="true"] .ic-open { display: none; }
.burger[aria-expanded="true"] .ic-close { display: block; }

/* ---------- الأقسام ---------- */
.sec { padding-block: clamp(52px, 7vw, 92px); }
.sec-tight { padding-block: clamp(20px, 3vw, 36px); }
.sec-soft { background: var(--soft); }
.sec-navy { background: var(--deep); color: rgba(255, 255, 255, .85); }
.sec-navy h2, .sec-navy h3 { color: #fff; }
.sec-head { max-width: 48rem; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-label { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 900; font-size: .9375rem; margin-bottom: 8px; }
.sec-label::before { content: ""; width: 28px; height: 2px; background: var(--cyan); border-radius: 2px; }
.sec-text { color: var(--muted); font-size: 1.125rem; margin: 0; }
.sec-navy .sec-text { color: rgba(255, 255, 255, .72); }
.sec-navy .sec-label { color: var(--cyan); }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.sec-head-row > div { max-width: 48rem; }
.more { flex: none; }

/* ---------- الواجهة الرئيسية ---------- */
.hero { padding-block: 22px 8px; }
.hero-box { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg); background: linear-gradient(135deg, #EEF2FB 0%, #F7F9FD 60%, #EAF4FB 100%); overflow: hidden; isolation: isolate; }
.hero-box::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%; z-index: -1; background: repeating-linear-gradient(90deg, rgba(42, 56, 129, .06) 0 3px, transparent 3px 16px); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: .875rem; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.pill .ic { color: var(--cyan); width: 18px; height: 18px; }
.hero h1 { color: var(--navy); margin-bottom: .35em; }
.hero .lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 34em; margin-bottom: 1.6em; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-pills li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .9375rem; color: var(--muted); }
.hero-pills b { color: var(--navy); font-size: 1.125rem; }
.hero-pills .ic { color: var(--blue); width: 18px; height: 18px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.hero-badge { position: absolute; inset-inline-start: -18px; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.hero-badge b { display: block; color: var(--ink); line-height: 1.3; }
.hero-badge small { color: var(--muted); font-size: .8125rem; }
.hb-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; }

/* بطاقة المجال (على طريقة الموقع المرجعي) */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fgrid-5 { grid-template-columns: repeat(5, 1fr); }
.fcard { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.fcard:hover { border-color: #C3CDE5; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.fcard-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--tint); color: var(--navy); margin-bottom: 16px; }
.fcard-ic .ic { width: 26px; height: 26px; }
.fcard-label { font-size: .8125rem; color: var(--stone); margin-bottom: 2px; }
.fcard h3 { font-size: 1.25rem; margin-bottom: .4em; }
.fcard p { color: var(--muted); flex: 1; font-size: 1rem; }
.fcard-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9375rem; font-weight: 900; color: var(--blue); }
.arrow-dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--navy); transition: .15s; }
.arrow-dot .ic { width: 18px; height: 18px; }
.fcard:hover .arrow-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.fgrid-5 .fcard { padding: 20px; }
.fgrid-5 .fcard p { display: none; }
.fgrid-5 .fcard h3 { font-size: 1.0625rem; }

/* شريط الأرقام */
.stats-band { display: grid; grid-template-columns: .8fr 2.2fr; align-items: center; gap: 24px; padding: clamp(26px, 4vw, 44px); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--navy), var(--deep)); color: #fff; }
.stats-title { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats li { padding: 16px 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; }
.stats b { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; color: #fff; }
.stats span { color: rgba(255, 255, 255, .78); font-size: .9375rem; }

/* مسارات الأفراد والجهات */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 4vw, 44px); background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); }
.path p { color: var(--muted); }
.path .ticks { margin-bottom: 26px; flex: 1; }
.path-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: #fff; color: var(--navy); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.path-dark { background: linear-gradient(135deg, var(--navy), var(--deep)); border-color: transparent; color: rgba(255, 255, 255, .85); }
.path-dark h2 { color: #fff; }
.path-dark p { color: rgba(255, 255, 255, .78); }
.path-dark .path-ic { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.path-dark .ticks .ic { color: var(--cyan); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ticks .ic { color: var(--blue); margin-top: .3em; }
.ticks-lg li { font-size: 1.125rem; margin-bottom: 12px; }

/* المنهجية */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.method li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.step-n { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; font-size: 1.125rem; }
.method h3 { margin-bottom: .25em; }
.method p { color: var(--muted); margin: 0; font-size: 1rem; }
.method-dark li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.method-dark .step-n { background: var(--cyan); color: var(--deep); }
.method-dark p { color: rgba(255, 255, 255, .75); }

/* لماذا نحن */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.why-img img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.why-list li { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }

/* الخدمات */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-4 { grid-template-columns: repeat(4, 1fr); }
.svc li { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.svc-ic { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--tint); color: var(--navy); margin-bottom: 14px; }
.svc-ic .ic { width: 24px; height: 24px; }
.svc h3 { font-size: 1.125rem; margin-bottom: .35em; }
.svc p { color: var(--muted); margin: 0; font-size: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 1rem; }
.sec-soft .chips li { background: #fff; }

/* المقالات */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.acard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .15s; }
.acard:hover { box-shadow: var(--shadow); }
.acard-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.acard-body { padding: 20px 22px 24px; }
.acard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .875rem; color: var(--muted); margin-bottom: 10px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--navy); font-weight: 900; font-size: .8125rem; }
.acard h3 { font-size: 1.1875rem; line-height: 1.45; }
.acard h3 a { color: var(--ink); text-decoration: none; }
.acard h3 a:hover { color: var(--blue); }
.acard p:last-child { color: var(--muted); font-size: 1rem; margin: 0; }
.afeature { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; margin-bottom: 26px; border-radius: var(--r-lg); }
.afeature-img img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.afeature-body { padding: clamp(24px, 4vw, 44px); align-self: center; }
.afeature h2 a { color: var(--ink); text-decoration: none; }
.afeature h2 a:hover { color: var(--blue); }

/* شريط الدعوة */
.cta-band { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--navy), var(--deep)); color: #fff; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 45%; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 3px, transparent 3px 16px); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.cta-band h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 38em; }
.cta-band .actions { flex: none; }

/* ---------- رأس الصفحات الداخلية ---------- */
.phero { padding-block: 22px 0; }
.phero-box { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: linear-gradient(135deg, #EEF2FB 0%, #F7F9FD 70%, #EAF4FB 100%); }
.phero-box.has-img { grid-template-columns: 1.2fr .8fr; }
.phero h1 { color: var(--navy); font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .3em; }
.phero .lead { color: var(--muted); font-size: 1.1875rem; max-width: 42em; margin: 0; }
.phero .actions { margin-top: 24px; }
.phero-img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--navy); font-weight: 900; }

/* ---------- من نحن ---------- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split-img { grid-template-columns: 1.3fr .7fr; align-items: center; }
.tall-img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-lg); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.45rem, 2.3vw, 1.95rem); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-inline-start: 22px; margin-bottom: .5em; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.prose blockquote { margin: 1.8em 0 0; padding: 22px 26px; border-inline-start: 4px solid var(--navy); background: var(--soft); border-radius: var(--r-sm); font-size: 1.125rem; color: var(--ink); }
.lic-box, .side-box { padding: 26px; }
.lic-box ul li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.lic-box ul li b { color: var(--navy); min-width: 56px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm-card { padding: clamp(24px, 4vw, 40px); }
.vm-card p { font-size: 1.125rem; line-height: 1.85; margin: 0; color: var(--muted); }
.vm-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--navy); margin-bottom: 14px; }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.values li { padding: 22px; }
.values p { color: var(--muted); font-size: 1rem; margin: 0; }
.goals li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.closing { max-width: 50rem; text-align: center; }
.closing p { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.75; color: var(--ink); }
.closing-sign { font-weight: 900; color: var(--navy) !important; margin: 0; }

/* ---------- صفحة المجالات ---------- */
.frows { display: grid; gap: 22px; }
.frow { display: grid; grid-template-columns: 1fr 1.3fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.frow:nth-child(even) .frow-img { order: 2; }
.frow-img img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.frow-body { padding: clamp(24px, 4vw, 40px); }
.frow-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.frow-body h2 a { color: var(--ink); text-decoration: none; }
.frow-body h2 a:hover { color: var(--blue); }
.frow-body p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags li { font-size: .875rem; padding: 5px 12px; background: var(--soft); border-radius: 999px; }
.tags .tag-more { background: none; color: var(--blue); font-weight: 900; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.modes > li { padding: 24px; }
.modes p { color: var(--muted); margin: 0; }
.modes-col { grid-template-columns: 1fr; gap: 12px; }
.modes-col li { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.modes-col .svc-ic { margin: 0; }
.modes-col h3 { margin-bottom: .15em; }

.field-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 5vw, 56px); align-items: start; }
.field-intro { font-size: 1.1875rem; line-height: 1.9; margin-bottom: 1.8em; }
.field-main h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-top: 1.1em; }
.topics { counter-reset: t; margin-bottom: 2em; display: grid; gap: 8px; }
.topics li { counter-increment: t; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.topics li::before { content: counter(t); display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--navy); font-weight: 900; font-size: .875rem; }
.topics li span { flex: 1; }
.topics li a { font-size: .875rem; font-weight: 900; text-decoration: none; color: var(--navy); padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 8px; }
.topics li a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.field-side { display: grid; gap: 18px; position: sticky; top: 110px; }
.side-box h3 { font-size: 1.125rem; }
.side-box ul li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-box ul li:last-child { border: 0; }
.side-modes li { display: flex; gap: 10px; }
.side-modes .ic { color: var(--blue); margin-top: .3em; }
.side-cta { background: linear-gradient(135deg, var(--navy), var(--deep)); border-color: transparent; color: rgba(255, 255, 255, .85); }
.side-cta h3 { color: #fff; }

/* ---------- الاستشارات والعملاء ---------- */
.cons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cons li { padding: 26px; }
.cons-n { display: block; font-weight: 900; font-size: 1.5rem; color: var(--cyan); margin-bottom: 8px; }
.cons p { color: var(--muted); margin: 0; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 32px; }
.logo-slot { display: grid; place-items: center; height: 100px; border: 1.5px dashed #CDD3E0; border-radius: var(--r); color: var(--stone); font-size: .875rem; background: #fff; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; padding: 28px; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 20px; font-size: 1.0625rem; flex: 1; }
.quote figcaption { display: flex; flex-direction: column; font-size: .875rem; color: var(--muted); }
.quote figcaption b { color: var(--ink); font-size: 1rem; }

/* ---------- المقال ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(28px, 5vw, 56px); align-items: start; }
.article-body { font-size: 1.125rem; line-height: 1.95; }
.article-side { position: sticky; top: 110px; }

/* ---------- الأسئلة الشائعة ---------- */
.faq-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.faq-nav { position: sticky; top: 110px; }
.faq-nav ul { display: grid; gap: 4px; }
.faq-nav a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.faq-nav a:hover { background: var(--soft); color: var(--navy); }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 1.5rem; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; font-weight: 900; font-size: 1.0625rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--navy); transition: transform .2s; }
.faq[open] summary .ic { transform: rotate(180deg); }
.faq[open] { border-color: #C3CDE5; }
.faq-a { padding: 0 20px 16px; color: var(--muted); }
.faq-a p { margin: 0; }
.faq-more { margin-top: 10px; }

/* ---------- النماذج ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.form-aside h2 { font-size: 1.5rem; margin-top: 1.3em; }
.form-aside h2:first-child { margin-top: 0; }
.form-aside .side-box { margin-top: 24px; }
.note { font-size: .875rem; color: var(--muted); margin-top: 18px; }
.next-steps { counter-reset: n; }
.next-steps li { counter-increment: n; position: relative; padding-bottom: 20px; padding-inline-start: 52px; }
.next-steps li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 900; border-radius: 50%; }
.next-steps li::after { content: ""; position: absolute; inset-inline-start: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.next-steps li:last-child::after { display: none; }
.next-steps b { display: block; }
.next-steps span { color: var(--muted); font-size: 1rem; }
.form-card { padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); }
.form-title { font-size: 1.5rem; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend { font-weight: 900; font-size: 1.125rem; padding: 0 0 10px; margin-bottom: 14px; width: 100%; border-bottom: 1px solid var(--line); }
.fgrid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.fld { margin-bottom: 14px; }
.fld-full { grid-column: 1 / -1; }
.fld label, .fld .lbl { display: block; font-size: .96875rem; margin-bottom: 6px; }
.req { color: #B42318; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #D5DCEA; border-radius: var(--r-sm); padding: 11px 14px; min-height: 50px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A3881' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; }
[dir="rtl"] select { background-position: left 14px center; padding-left: 40px; }
[dir="ltr"] select { background-position: right 14px center; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 186, 235, .22); }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
[dir="rtl"] input[dir="ltr"]:focus, [dir="rtl"] input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.fld.has-err input, .fld.has-err select, .fld.has-err textarea, .fld.has-err .drop { border-color: #B42318; }
.hint { font-size: .875rem; color: var(--muted); margin: 6px 0 0; display: flex; justify-content: space-between; gap: 10px; }
.count { margin-inline-start: auto; font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; }
.err { font-size: .875rem; color: #B42318; margin: 4px 0 0; }
.err:empty { display: none; }
.fld-check label { display: flex; gap: 10px; align-items: flex-start; font-size: .96875rem; }
.fld-check input { width: 20px; height: 20px; min-height: 0; margin-top: .35em; flex: none; accent-color: var(--navy); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border: 2px dashed #CDD5E5; border-radius: var(--r); text-align: center; cursor: pointer; background: var(--soft); transition: .15s; }
.drop:hover, .drop.is-over { border-color: var(--blue); background: #E8F4FB; }
.drop .ic { width: 32px; height: 32px; color: var(--navy); }
.drop-t { font-weight: 900; }
.drop-h { font-size: .875rem; color: var(--muted); }
.drop-f { font-size: .875rem; color: var(--blue); font-weight: 900; }
.drop:focus-within { outline: 3px solid var(--cyan); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 900; color: var(--muted); text-align: center; transition: .15s; }
.seg input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.form-done { text-align: center; padding: 32px 10px; }
.form-done:focus { outline: none; }
.done-ic { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #E3F6EC; color: #157F3B; margin-bottom: 14px; }
.done-ic .ic { width: 34px; height: 34px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-bottom: 16px; padding: 12px 16px; border-inline-start: 4px solid #B42318; background: #FEF3F2; color: #912018; border-radius: var(--r-sm); font-size: .96875rem; }

/* ---------- اتصل بنا ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.ccards { display: grid; gap: 12px; }
.ccards li { display: grid; grid-template-columns: 50px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }
.cc-ic { grid-row: span 2; display: grid; place-items: center; width: 50px; height: 50px; background: var(--tint); color: var(--navy); border-radius: 14px; }
.ccards h2 { font-size: .875rem; color: var(--muted); font-weight: 400; margin: 0; }
.ccards a, .ccards span:not(.cc-ic) { font-weight: 900; color: var(--ink); text-decoration: none; }
.ccards a:hover { color: var(--blue); text-decoration: underline; }
.map-box { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map-box iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- الصفحات القانونية و404 ---------- */
.legal { display: grid; grid-template-columns: 250px 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.legal-nav { position: sticky; top: 110px; }
.legal-nav a { display: block; padding: 8px 12px; font-size: .96875rem; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.legal-nav a:hover { background: var(--soft); color: var(--navy); }
.nf-in { text-align: center; padding-block: clamp(64px, 12vw, 140px); max-width: 40rem; }
.nf-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: .1em; }
.nf .actions { justify-content: center; }

/* ---------- التذييل ---------- */
.site-footer { background: #06264A; color: rgba(255, 255, 255, .72); font-size: 1rem; margin-top: clamp(20px, 4vw, 40px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr; gap: 40px; padding-block: 56px 40px; }
.f-about img { height: 86px; width: auto; margin-bottom: 18px; }
.f-lic { font-size: .875rem; display: grid; gap: 6px; }
.f-lic li { display: flex; gap: 8px; align-items: flex-start; }
.f-lic .ic { color: var(--cyan); width: 16px; height: 16px; margin-top: .3em; }
.f-h { font-size: 1.0625rem; color: #fff; margin-bottom: 16px; }
.f-links li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.f-contact .ic { color: var(--cyan); margin-top: .3em; }
.f-contact-dark .ic { color: var(--blue); }
.f-contact-dark a { color: var(--ink); font-weight: 900; text-decoration: none; }
.f-links-inline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: .875rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.fb-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 18px; }
.fb-in span:last-child { display: flex; gap: 20px; }

.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: #1E8E4E; color: #fff; border-radius: 999px; text-decoration: none; font-weight: 900; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.wa-float:hover { background: #157A41; color: #fff; }

/* ---------- الاستجابة للشاشات ---------- */
@media (max-width: 1360px) {
  .header-cta .btn { display: none; }
}
@media (max-width: 1240px) {
  .main-nav > ul > li > a { padding-inline: 7px; font-size: .9375rem; }
  .fgrid-5 { grid-template-columns: repeat(3, 1fr); }
  .svc-4 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .topbar-lic { display: none; }
  .topbar-in { justify-content: center; }
  .burger { display: inline-flex; }
  .header-in { min-height: 80px; justify-content: space-between; }
  .brand img { height: 64px; }
  [dir="rtl"] .brand { order: 3; }
  .main-nav { position: fixed; inset: var(--nav-top, 72px) 0 0 0; background: #fff; padding: 16px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; border-top: 1px solid var(--line); z-index: 49; }
  [dir="rtl"] .main-nav { transform: translateX(-100%); }
  .main-nav.is-open { transform: none !important; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { flex: 1; padding: 15px 4px; font-size: 1.125rem; border-radius: 0; }
  .main-nav > ul > li > a[aria-current="page"] { background: none; }
  .has-sub > a::after { display: none; }
  .sub-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; background: var(--soft); border-radius: var(--r-sm); color: var(--navy); cursor: pointer; }
  .sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .sub { position: static; width: 100%; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; }
  .has-sub.is-open .sub { display: block; }
  .nav-extra { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
  .nav-extra a { padding: 10px 4px; color: var(--muted); text-decoration: none; }
  .hero-box, .phero-box.has-img { grid-template-columns: 1fr; }
  .hero-badge { inset-inline-start: 12px; }
  .stats-band { grid-template-columns: 1fr; }
  .fgrid, .agrid, .quotes, .cons, .method { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .why, .split, .split-img, .vm, .field-layout, .article-layout, .form-layout, .contact-grid, .afeature { grid-template-columns: 1fr; }
  .why-img img { aspect-ratio: 16 / 9; }
  .tall-img { max-height: 320px; }
  .field-side, .article-side { position: static; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .faq-layout, .legal { grid-template-columns: 1fr; }
  .faq-nav, .legal-nav { position: static; }
  .faq-nav ul, .legal-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-nav a, .legal-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .875rem; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .topbar-links { gap: 14px; }
  .topbar-links a:nth-child(2) { display: none; }
  .lang-switch span { display: none; }
  .lang-switch { padding: 0 10px; }
  .brand img { height: 58px; }
  .hero { padding-top: 12px; }
  .hero-box, .phero-box { padding: 24px 20px; border-radius: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .fgrid, .fgrid-5, .agrid, .quotes, .cons, .paths, .modes, .svc, .svc-4, .why-list, .values, .fgrid-form, .seg, .method { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .frow:nth-child(even) .frow-img { order: 0; }
  .frow-img img { min-height: 0; aspect-ratio: 16 / 9; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .actions .btn { flex: 1 1 auto; }
  .fb-in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .topbar, .site-header, .wa-float, .cta-band { display: none; } }
