/* ============================================================
   مجلس التقنية — نظام التصميم (مستوحى من Apple، وضع فاتح)
   الخطوط: IBM Plex Sans Arabic + Inter (مستضافة محليًا) | اللون: #9b1e77
   ============================================================ */

/* ----- الخطوط المحلية (font-display: swap لتجنّب حجب العرض) ----- */
/* IBM Plex Sans Arabic — المقطع العربي */
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-300-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+2066-2069;
}
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+2066-2069;
}
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+2066-2069;
}
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+2066-2069;
}
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+2066-2069;
}
/* IBM Plex Sans Arabic — المقطع اللاتيني */
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-arabic-latin-300-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter — لاتيني (أرقام وكلمات إنجليزية) */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
    --ink: #1d1d1f;
    --bg: #ffffff;
    --bg-soft: #f5f5f7;
    --muted: #6e6e73;
    --accent: #9b1e77;
    --accent-d: #7d1860;
    --line: #d2d2d7;
    --line-soft: #ececf0;
    --maxw: 1080px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --shadow: 0 30px 60px -25px rgba(0, 0, 0, .28);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "IBM Plex Sans Arabic", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}

.num {
    font-family: "Inter", sans-serif;
    font-feature-settings: "tnum";
    letter-spacing: .02em;
}

/* رابط تخطّي للوصولية — مخفي عموديًا (لا يسبّب فائضًا أفقيًا) ويظهر عند التركيز */
.hp {
    position: fixed;
    top: 0;
    right: 16px;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 12px 12px;
    z-index: 100;
    transform: translateY(-130%);
    transition: transform .2s var(--ease);
}

.hp:focus {
    transform: translateY(0);
}

/* ---------------- الترويسة ---------------- */
header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background .4s var(--ease), border-color .4s var(--ease);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    gap: 20px;
}

.brand {
    font-weight: 700;
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand-mark {
    height: 31px;
    width: auto;
    flex: none;
    display: block;
}

.brand-footer {
    display: inline-flex;
}

.footer-logo {
    height: 48px;
    width: auto;
    display: block;
    margin-bottom: 14px;
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: .22em;
    color: var(--muted);
    font-weight: 500;
    margin-top: 1px;
}

.menu {
    display: flex;
    gap: 28px;
    align-items: center;
}

.menu a {
    font-size: 15px;
    opacity: .82;
    transition: opacity .2s;
}

.menu a:hover {
    opacity: 1;
}

.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    transition: transform .2s var(--ease), background .2s;
}

.nav-cta:hover {
    background: var(--accent-d);
    transform: translateY(-1px);
}

.burger {
    display: none;
    background: none;
    border: 0;
    font-size: 22px;
    color: var(--ink);
    cursor: pointer;
    line-height: 1;
    padding: 6px;
}

/* ---------------- شريط تنبيه الصيانة (للمسؤول فقط) ---------------- */
.maint-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 200;
    background: #b45309;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 10px 18px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .15);
}
.maint-bar a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------------- القوائم المنسدلة (مستويان) ---------------- */
.menu-item.has-children {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.submenu-toggle {
    background: none;
    border: 0;
    padding: 4px;
    color: var(--ink);
    opacity: .7;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: transform .2s var(--ease), opacity .2s;
}
.menu-item.has-children:hover .submenu-toggle,
.menu-item.has-children:focus-within .submenu-toggle { opacity: 1; }

.submenu {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .1);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
    z-index: 60;
}
/* جسر غير مرئي يمنع انغلاق القائمة عند تحريك المؤشّر نحوها */
.submenu::before {
    content: "";
    position: absolute;
    top: -10px; left: 0; right: 0; height: 10px;
}
.menu-item.has-children:hover .submenu,
.menu-item.has-children:focus-within .submenu,
.menu-item.has-children.open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.menu-item.has-children.open .submenu-toggle { transform: rotate(180deg); }

.submenu a {
    display: block;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 14.5px;
    opacity: .9;
    white-space: nowrap;
    transition: background .15s, opacity .15s;
}
.submenu a:hover { background: var(--line-soft); opacity: 1; }

/* ---------------- البطل (Hero) ---------------- */
.hero {
    padding: 148px 0 90px;
    text-align: center;
    overflow: hidden;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 18px;
}

.eyebrow i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

h1 {
    font-size: clamp(40px, 7vw, 82px);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 auto;
    max-width: 16ch;
}

.lead {
    font-size: clamp(18px, 2.4vw, 22px);
    color: var(--muted);
    max-width: 64ch;
    margin: 24px auto 0;
    font-weight: 400;
}

.cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 30px;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    transition: transform .2s var(--ease), background .2s, opacity .2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    border: 0;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--accent-d);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--accent);
    background: transparent;
}

.btn-ghost:hover {
    opacity: .7;
}

/* لوحة المؤشرات (Mockup) */
.stage {
    margin-top: 62px;
    perspective: 1400px;
}

.panel {
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fff, #fbfbfd);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
    transform: rotateX(7deg);
    transform-origin: center top;
}

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

.panel-top b {
    font-size: 14px;
}

.panel-top .dots {
    display: flex;
    gap: 6px;
}

.panel-top .dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e3e3e8;
    display: block;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.kpi {
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: right;
}

.kpi .v {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

.kpi .k {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 110px;
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 16px;
}

.bars span {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--accent), #c247a3);
    opacity: .9;
}

/* ---------------- الأقسام العامة ---------------- */
section {
    padding: clamp(80px, 11vw, 140px) 0;
}

.soft {
    background: var(--bg-soft);
}

.sec-head {
    text-align: center;
    max-width: 66ch;
    margin: 0 auto 60px;
}

.sec-head .kicker {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
}

.sec-head h2 {
    font-size: clamp(30px, 4.4vw, 52px);
    font-weight: 700;
    line-height: 1.18;
}

.sec-head p {
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
    margin-top: 16px;
}

/* الركائز */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pillar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.soft .pillar {
    background: #fff;
}

.pillar:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px -28px rgba(0, 0, 0, .22);
}

.ic {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(155, 30, 119, .09);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.pillar h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pillar p {
    color: var(--muted);
    font-size: 14.5px;
}

/* بطاقات الخدمات */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .25);
}

.card .ic {
    margin-bottom: 22px;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: 15px;
}

.card .more {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
    display: inline-block;
}

/* الأعمال */
.proj-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.proj {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 34px;
    flex: 1 1 420px;
    max-width: 520px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.soft .proj {
    background: #fff;
}

.proj:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px -28px rgba(0, 0, 0, .22);
}

.proj .tag {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
}

.proj h3 {
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 10px;
}

.proj p {
    color: var(--muted);
    font-size: 15px;
    max-width: 50ch;
}

.proj .meta {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.proj .vis {
    height: 120px;
    margin-top: 24px;
    border-radius: 16px;
    background: linear-gradient(145deg, #fbfbfd, #f0eef4);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.proj .vis::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(155, 30, 119, .07) 1px, transparent 1px),
        linear-gradient(rgba(155, 30, 119, .07) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* العملاء */
.clients {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.client {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 12px;
    min-height: 80px;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: .3s var(--ease);
}

.client:hover {
    color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -22px rgba(0, 0, 0, .22);
}

/* الأرقام */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat .n {
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat .l {
    color: var(--muted);
    font-size: 15px;
    margin-top: 8px;
}

/* المنهجية */
.process {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.step {
    text-align: center;
    padding: 10px;
}

.step b {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-family: "Inter", sans-serif;
}

.step h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

/* التواصل */
.contact {
    text-align: center;
}

.contact h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.14;
    max-width: 18ch;
    margin: 0 auto;
}

.contact .lead {
    margin-top: 18px;
}

.info {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 34px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 16px;
}

.info a {
    color: var(--ink);
    font-weight: 500;
}

/* ---------------- التذييل ---------------- */
footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, .8fr);
    gap: 40px;
}

.footer-grid h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.95;
}

.footer-grid a:hover {
    color: var(--ink);
}

.footer-grid .brand {
    margin-bottom: 14px;
}

/* روابط الفوتر (تدعم مستويين: أب وأبناء مُزاحون) */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-links > a { display: block; }
.footer-sub {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-inline-start: 14px;
    margin-bottom: 4px;
    border-inline-start: 1px solid var(--line);
}
.footer-sub a { font-size: 13.5px; opacity: .9; }

.copyright {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
    flex-wrap: wrap;
}

/* ---------------- رأس الصفحات الفرعية ---------------- */
.page-hero {
    padding: 120px 0 46px;
    text-align: center;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.page-hero .kicker {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.page-hero h1 {
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 700;
}

.page-hero p {
    color: var(--muted);
    margin-top: 12px;
    font-size: 16px;
}

/* ---------------- مستند السياسات ---------------- */
.doc {
    max-width: 840px;
    margin: 0 auto;
    padding: 56px 22px 110px;
    line-height: 1.9;
}

.doc h2 {
    font-size: 21px;
    font-weight: 700;
    color: var(--accent);
    margin: 44px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.doc h2:first-child {
    margin-top: 0;
}

.doc ul {
    list-style: none;
}

.doc li {
    position: relative;
    padding: 11px 22px 11px 0;
    border-bottom: 1px solid var(--line-soft);
    color: #2a2a2e;
    font-size: 15.5px;
}

.doc li:last-child {
    border-bottom: 0;
}

.doc li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 19px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.doc .sub {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    padding-right: 4px;
}

/* صفّ نسخ داخل صفحة مُدارة (::copy العنوان | القيمة) */
.doc .copy-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    margin: 22px 0;
    box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .22);
}
.doc .copy-row { margin-bottom: 18px; }
.doc .copy-row:last-child { margin-bottom: 0; }
.doc .copy-lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.doc .copy-val {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 14px 16px;
}
.doc .copy-num { font-size: 18px; font-weight: 600; direction: ltr; }
.doc .copy-row li::before { content: none; }

/* ---------------- الحسابات البنكية ---------------- */
.acct-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 22px 100px;
}

.acct {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .25);
}

.acct .holder {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.acct .row {
    margin-bottom: 22px;
}

.acct .row .lbl {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.acct .row .val {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 14px 16px;
}

.acct .row .val span {
    font-size: 18px;
    font-weight: 600;
}

.copy {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--accent);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 980px;
    cursor: pointer;
    transition: .2s var(--ease);
    white-space: nowrap;
}

.copy:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.note {
    margin-top: 26px;
    background: rgba(155, 30, 119, .05);
    border: 1px solid rgba(155, 30, 119, .18);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 14px;
    color: #4a4a4f;
    line-height: 1.85;
}

.note b {
    color: var(--accent);
}

.note a {
    color: var(--accent);
}

/* ---------------- نموذج التواصل ---------------- */
.form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 22px 100px;
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .25);
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.field input,
.field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 15px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field input:focus,
.field textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155, 30, 119, .12);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field .err {
    color: #c2185b;
    font-size: 13px;
    margin-top: 6px;
}

.hpot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.alert {
    border-radius: 14px;
    padding: 15px 18px;
    font-size: 14.5px;
    margin-bottom: 24px;
    line-height: 1.8;
}

.alert-ok {
    background: rgba(40, 167, 69, .08);
    border: 1px solid rgba(40, 167, 69, .25);
    color: #1c7a32;
}

.alert-err {
    background: rgba(194, 24, 91, .07);
    border: 1px solid rgba(194, 24, 91, .25);
    color: #a01248;
}

/* ---------------- ظهور تدريجي (تحسين تدريجي) ---------------- */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------------- الاستجابة ---------------- */
@media (max-width: 980px) {
    .menu {
        display: none;
        position: absolute;
        top: 58px;
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid var(--line);
        padding: 8px 22px 16px;
    }

    .nav.open .menu {
        display: flex;
    }

    .menu a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line-soft);
        opacity: 1;
        font-size: 16px;
    }

    /* القوائم المنسدلة على الجوال: عنصر الأب صف، والقائمة الفرعية تتوسّع بالنقر */
    .menu-item.has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0;
        border-bottom: 1px solid var(--line-soft);
    }
    .menu-item.has-children > .menu-link {
        border-bottom: 0;
        flex: 1 1 auto;
    }
    .submenu-toggle {
        opacity: .85;
        padding: 12px 6px;
    }
    .submenu {
        position: static;
        width: 100%;
        flex-basis: 100%;
        min-width: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 6px;
        transform: none;
        /* مطوية افتراضيًا على الجوال؛ تظهر فقط عند .open */
        display: none;
        opacity: 1;
        visibility: visible;
    }
    .menu-item.has-children.open .submenu { display: flex; }
    /* إلغاء سلوك hover على اللمس لتجنّب الفتح العَرَضي */
    .menu-item.has-children:hover .submenu,
    .menu-item.has-children:focus-within .submenu {
        display: none;
    }
    .menu-item.has-children.open:hover .submenu,
    .menu-item.has-children.open:focus-within .submenu {
        display: flex;
    }
    .submenu a {
        padding: 10px 0 10px 14px;
        border-bottom: 1px dashed var(--line-soft);
    }

    .burger {
        display: block;
    }

    .pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process {
        grid-template-columns: repeat(3, 1fr);
    }

    .clients {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .kpis {
        grid-template-columns: 1fr 1fr;
    }

    .svc-grid,
    .proj-grid,
    .stats,
    .process {
        grid-template-columns: 1fr;
    }

    .clients {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel {
        transform: none;
    }

    .stats {
        gap: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .panel {
        transform: none;
    }
}
