/* ============================================================
   ELGHARBAL SERVICES — Professional Website
   File: public_html/css/style.css
   ============================================================ */

/* ===== المتغيرات ===== */
:root {
    --primary-950: #071721;
    --primary-900: #0f2536;
    --primary-800: #153249;
    --primary-700: #1a3a52;
    --primary-600: #24516f;

    --accent-700: #006faf;
    --accent-600: #0084d1;
    --accent-500: #1599e5;
    --accent-400: #38b6ff;
    --accent-100: #dff3ff;
    --accent-50: #eff9ff;

    --green-600: #059669;
    --green-500: #10b981;
    --green-100: #d1fae5;

    --red-600: #dc2626;
    --red-100: #fee2e2;

    --orange-500: #f59e0b;
    --orange-100: #fef3c7;

    --white: #ffffff;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    --font-main: "Tajawal", "Segoe UI", Arial, sans-serif;

    --container: 1220px;
    --header-height: 82px;

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 9px;

    --shadow-sm: 0 4px 16px rgba(15, 37, 54, 0.06);
    --shadow-md: 0 14px 38px rgba(15, 37, 54, 0.1);
    --shadow-lg: 0 28px 70px rgba(7, 23, 33, 0.17);

    --transition: 0.25s ease;
}

/* ===== إعادة الضبط ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--gray-800);
    background: var(--white);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

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

ul {
    list-style: none;
}

::selection {
    color: var(--white);
    background: var(--accent-600);
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section-space {
    padding-block: 110px;
}

/* ============================================================
   شاشة التحميل
   ============================================================ */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(0, 132, 209, 0.18),
            transparent 30%
        ),
        var(--primary-950);

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.page-loader.loaded {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    display: grid;
    width: 75px;
    height: 75px;
    margin-bottom: 17px;
    place-items: center;

    background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 132, 209, 0.3);

    font-size: 36px;
    animation: loaderPulse 1.4s infinite ease-in-out;
}

.loader-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 4px;
}

.loader-line {
    width: 150px;
    height: 3px;
    margin-top: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.loader-line span {
    display: block;
    width: 45%;
    height: 100%;
    background: var(--accent-400);
    border-radius: inherit;
    animation: loaderMove 1.1s infinite ease-in-out;
}

@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(1) rotate(-3deg);
    }

    50% {
        transform: scale(0.92) rotate(3deg);
    }
}

@keyframes loaderMove {
    from {
        transform: translateX(160%);
    }

    to {
        transform: translateX(-250%);
    }
}

/* ============================================================
   الشريط العلوي
   ============================================================ */

.top-strip {
    position: relative;
    z-index: 1100;
    min-height: 38px;
    color: rgba(255, 255, 255, 0.76);
    background: var(--primary-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 11.5px;
}

.top-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 20px;
}

.top-strip-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-strip-info a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color var(--transition);
}

.top-strip-info a:hover {
    color: var(--accent-400);
}

.top-strip-info span {
    color: var(--accent-400);
}

.top-strip-message {
    color: rgba(255, 255, 255, 0.53);
}

/* ============================================================
   القائمة الرئيسية
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 4px 22px rgba(15, 37, 54, 0.04);
    backdrop-filter: blur(15px);

    transition:
        background var(--transition),
        box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 35px rgba(15, 37, 54, 0.09);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 25px;
}

.site-logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}

.site-logo-mark {
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;

    color: var(--white);
    background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 132, 209, 0.24);

    font-size: 23px;
    transform: rotate(-3deg);
    transition: transform var(--transition);
}

.site-logo:hover .site-logo-mark {
    transform: rotate(4deg) scale(1.04);
}

.site-logo-content strong {
    display: block;
    color: var(--primary-900);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.site-logo-content small {
    display: block;
    margin-top: 4px;
    color: var(--gray-400);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.desktop-nav a {
    position: relative;
    padding: 28px 13px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
    transition: color var(--transition);
}

.desktop-nav a::after {
    position: absolute;
    right: 50%;
    bottom: 18px;
    width: 0;
    height: 2px;

    content: "";
    background: var(--accent-600);
    border-radius: 10px;

    transform: translateX(50%);
    transition: width var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary-900);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 22px;
}

.header-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 9px;
}

.language-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    color: var(--primary-900);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;

    font-size: 12px;
    font-weight: 800;
    transition:
        color var(--transition),
        background var(--transition);
}

.language-button:hover {
    color: var(--white);
    background: var(--primary-900);
    border-color: var(--primary-900);
}

.header-cta {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    padding-inline: 18px;

    color: var(--white);
    background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    border-radius: 10px;
    box-shadow: 0 9px 22px rgba(0, 132, 209, 0.2);

    font-size: 12.5px;
    font-weight: 700;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 132, 209, 0.28);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;

    background: var(--primary-900);
    border-radius: 10px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin-block: 5px;
    background: var(--white);
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
}

/* ============================================================
   الأزرار المشتركة
   ============================================================ */

.button {
    display: inline-flex;
    min-height: 53px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-inline: 23px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;

    transition:
        transform var(--transition),
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.button b,
.button span {
    position: relative;
    z-index: 2;
}

.button b {
    font-size: 18px;
    font-weight: 400;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    box-shadow: 0 13px 30px rgba(0, 132, 209, 0.23);
}

.button-primary:hover {
    box-shadow: 0 18px 40px rgba(0, 132, 209, 0.32);
}

.button-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.3);
}

.button-light {
    color: var(--primary-900);
    background: var(--white);
    box-shadow: 0 13px 35px rgba(0, 0, 0, 0.14);
}

.button-light:hover {
    color: var(--accent-700);
}

/* ============================================================
   الواجهة الرئيسية
   ============================================================ */

.hero-section {
    position: relative;
    min-height: calc(100vh - 120px);
    overflow: hidden;
    color: var(--white);
    background: var(--primary-950);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-background::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(
            90deg,
            rgba(7, 23, 33, 0.96),
            rgba(15, 37, 54, 0.87) 52%,
            rgba(7, 23, 33, 0.92)
        ),
        radial-gradient(
            circle at 75% 45%,
            rgba(0, 132, 209, 0.2),
            transparent 35%
        );
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;

    opacity: 0.23;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 55px 55px;

    mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
}

.hero-glow-one {
    top: 8%;
    left: 5%;
    width: 320px;
    height: 320px;
    background: rgba(0, 132, 209, 0.12);
}

.hero-glow-two {
    right: 35%;
    bottom: -180px;
    width: 440px;
    height: 440px;
    background: rgba(21, 153, 229, 0.08);
}

.hero-container {
    position: relative;
    z-index: 3;

    display: grid;
    min-height: calc(100vh - 120px);
    align-items: center;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 75px;
    padding-block: 75px 105px;
}

.hero-content {
    max-width: 690px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 7px 13px;

    color: #bae6fd;
    background: rgba(0, 132, 209, 0.11);
    border: 1px solid rgba(56, 182, 255, 0.17);
    border-radius: 50px;

    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-400);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(56, 182, 255, 0.1);
    animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-content h1 {
    max-width: 690px;
    margin-bottom: 23px;
    color: var(--white);
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.7px;
}

.hero-content h1::first-line {
    color: #ffffff;
}

.hero-description {
    max-width: 630px;
    margin-bottom: 33px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 16.5px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 21px;
    margin-top: 33px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11.5px;
}

.trust-item span {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    color: #86efac;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    font-size: 10px;
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 520px;
    place-items: center;
}

.hero-visual::before {
    position: absolute;
    width: 380px;
    height: 380px;
    content: "";
    background: radial-gradient(
        circle,
        rgba(0, 132, 209, 0.2),
        transparent 67%
    );
    border-radius: 50%;
    filter: blur(2px);
}

.hero-main-card {
    position: relative;
    z-index: 3;

    display: flex;
    width: min(100%, 410px);
    min-height: 420px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.035)
        );
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px;
    box-shadow:
        0 35px 75px rgba(0, 0, 0, 0.27),
        inset 0 1px rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(15px);

    text-align: center;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

[dir="ltr"] .hero-main-card {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.hero-card-top {
    position: absolute;
    top: 24px;
    right: 25px;
    left: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: rgba(255, 255, 255, 0.45);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-card-top i {
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
}

.hero-symbol {
    display: grid;
    width: 105px;
    height: 105px;
    margin-bottom: 24px;
    place-items: center;

    background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 31px;
    box-shadow: 0 25px 55px rgba(0, 132, 209, 0.33);

    font-size: 51px;
}

.hero-main-card h2 {
    color: var(--white);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 4px;
}

.hero-main-card p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.47);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.floating-card {
    position: absolute;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 11px;
    width: 205px;
    padding: 13px;

    color: var(--gray-800);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.floating-card-one {
    top: 95px;
    right: -12px;
    animation: floatOne 4.5s infinite ease-in-out;
}

.floating-card-two {
    bottom: 85px;
    left: -20px;
    animation: floatTwo 5s infinite ease-in-out;
}

.floating-icon {
    display: grid;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    place-items: center;
    background: var(--accent-50);
    border-radius: 11px;
    font-size: 21px;
}

.floating-card strong {
    display: block;
    color: var(--primary-900);
    font-size: 11.5px;
}

.floating-card small {
    display: block;
    margin-top: 2px;
    color: var(--gray-500);
    font-size: 9.5px;
}

@keyframes floatOne {
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatTwo {
    50% {
        transform: translateY(10px);
    }
}

.hero-visual-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.orbit-one {
    width: 490px;
    height: 490px;
}

.orbit-two {
    width: 570px;
    height: 570px;
    border-style: dashed;
}

.hero-scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    color: rgba(255, 255, 255, 0.38);
    font-size: 9.5px;
    transform: translateX(-50%);
}

.hero-scroll i {
    font-style: normal;
    font-size: 17px;
    animation: scrollArrow 1.5s infinite ease-in-out;
}

@keyframes scrollArrow {
    50% {
        transform: translateY(6px);
    }
}

/* ============================================================
   العناوين المشتركة
   ============================================================ */

.section-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading.heading-row {
    display: flex;
    max-width: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading h2 {
    margin-top: 10px;
    color: var(--primary-900);
    font-size: clamp(29px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.section-heading p {
    max-width: 650px;
    margin-top: 15px;
    color: var(--gray-500);
    font-size: 14.5px;
    line-height: 1.9;
}

.section-heading.centered p {
    margin-inline: auto;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent-600);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.section-kicker::before {
    width: 25px;
    height: 2px;
    content: "";
    background: currentColor;
}

.section-kicker.light {
    color: #7dd3fc;
}

/* ============================================================
   فئات الحلول
   ============================================================ */

.solutions-section {
    position: relative;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(0, 132, 209, 0.055),
            transparent 25%
        ),
        var(--white);
}

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

.solution-category {
    position: relative;
    min-height: 325px;
    padding: 29px 25px;
    overflow: hidden;

    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.solution-category::after {
    position: absolute;
    right: -70px;
    bottom: -85px;
    width: 190px;
    height: 190px;

    content: "";
    background: var(--accent-50);
    border-radius: 50%;

    transition:
        background var(--transition),
        transform var(--transition);
}

.solution-category:hover {
    color: var(--white);
    background: var(--primary-900);
    border-color: var(--primary-900);
    box-shadow: var(--shadow-lg);
    transform: translateY(-9px);
}

.solution-category:hover::after {
    background: rgba(0, 132, 209, 0.13);
    transform: scale(1.2);
}

.category-number {
    position: absolute;
    top: 23px;
    left: 23px;
    color: var(--gray-300);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

[dir="ltr"] .category-number {
    right: 23px;
    left: auto;
}

.category-icon {
    display: grid;
    width: 67px;
    height: 67px;
    margin-bottom: 29px;
    place-items: center;

    background: var(--accent-50);
    border: 1px solid var(--accent-100);
    border-radius: 19px;

    font-size: 31px;
    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.solution-category:hover .category-icon {
    background: rgba(0, 132, 209, 0.17);
    border-color: rgba(56, 182, 255, 0.18);
    transform: rotate(-4deg) scale(1.06);
}

.solution-category h3 {
    margin-bottom: 10px;
    color: var(--primary-900);
    font-size: 18px;
    font-weight: 800;
    transition: color var(--transition);
}

.solution-category:hover h3 {
    color: var(--white);
}

.solution-category p {
    position: relative;
    z-index: 2;
    color: var(--gray-500);
    font-size: 12.5px;
    line-height: 1.9;
    transition: color var(--transition);
}

.solution-category:hover p {
    color: rgba(255, 255, 255, 0.62);
}

.category-link {
    position: absolute;
    right: 25px;
    bottom: 25px;
    z-index: 2;

    color: var(--accent-600);
    font-size: 11.5px;
    font-weight: 700;
    transition: color var(--transition);
}

[dir="ltr"] .category-link {
    right: auto;
    left: 25px;
}

.solution-category:hover .category-link {
    color: #7dd3fc;
}

/* ============================================================
   الأرقام
   ============================================================ */

.numbers-section {
    color: var(--white);
    background:
        linear-gradient(
            90deg,
            rgba(0, 132, 209, 0.07),
            transparent 30%,
            rgba(0, 132, 209, 0.05)
        ),
        var(--primary-900);
}

.numbers-grid {
    display: grid;
    min-height: 180px;
    align-items: center;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.number-item {
    position: relative;
    padding: 26px;
    text-align: center;
}

.number-item:not(:last-child)::after {
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 0;
    width: 1px;

    content: "";
    background: rgba(255, 255, 255, 0.1);
}

[dir="ltr"] .number-item:not(:last-child)::after {
    right: 0;
    left: auto;
}

.number-item strong {
    display: block;
    color: var(--white);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.number-item strong::after {
    color: var(--accent-400);
    content: "+";
    font-size: 18px;
}

.number-item span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11.5px;
}

/* ============================================================
   الخدمات
   ============================================================ */

.services-section {
    background: var(--gray-50);
}

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

.service-card {
    position: relative;
    display: flex;
    min-height: 355px;
    flex-direction: column;
    padding: 27px;

    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);

    transition:
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.service-card:hover {
    border-color: rgba(0, 132, 209, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-7px);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 25px;
}

.service-icon {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;

    color: var(--accent-600);
    background: var(--accent-50);
    border: 1px solid var(--accent-100);
    border-radius: 17px;

    font-size: 28px;
    transition:
        color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.service-card:hover .service-icon {
    color: var(--white);
    background: var(--accent-600);
    transform: rotate(-4deg);
}

.service-index {
    color: var(--gray-300);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.service-card h3 {
    margin-bottom: 11px;
    color: var(--primary-900);
    font-size: 17px;
    font-weight: 800;
}

.service-card > p {
    margin-bottom: 19px;
    color: var(--gray-500);
    font-size: 12.5px;
    line-height: 1.9;
}

.service-price {
    margin-bottom: 17px;
    color: var(--gray-500);
    font-size: 10.5px;
}

.service-price strong {
    display: block;
    color: var(--accent-700);
    font-size: 14px;
}

.service-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 17px;

    color: var(--primary-900);
    border-top: 1px solid var(--gray-100);

    font-size: 11.5px;
    font-weight: 700;
    transition: color var(--transition);
}

.service-action span {
    color: var(--accent-600);
    font-size: 17px;
    transition: transform var(--transition);
}

.service-action:hover {
    color: var(--accent-600);
}

.service-action:hover span {
    transform: translateX(-4px);
}

[dir="ltr"] .service-action:hover span {
    transform: translateX(4px);
}

/* ============================================================
   لماذا نحن؟
   ============================================================ */

.why-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(0, 132, 209, 0.17),
            transparent 31%
        ),
        linear-gradient(135deg, var(--primary-950), var(--primary-800));
}

.why-section::after {
    position: absolute;
    right: -160px;
    bottom: -220px;
    width: 520px;
    height: 520px;

    content: "";
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.why-grid {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 80px;
}

.why-content h2 {
    max-width: 500px;
    margin-block: 13px 20px;
    color: var(--white);
    font-size: clamp(32px, 4.5vw, 49px);
    font-weight: 800;
    line-height: 1.3;
}

.why-content > p {
    max-width: 530px;
    margin-bottom: 29px;
    color: rgba(255, 255, 255, 0.61);
    font-size: 14.5px;
    line-height: 2;
}

.why-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.why-card {
    display: flex;
    min-height: 190px;
    gap: 15px;
    padding: 24px;

    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(9px);

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 182, 255, 0.19);
    transform: translateY(-5px);
}

.why-icon {
    display: grid;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    place-items: center;

    color: #7dd3fc;
    background: rgba(0, 132, 209, 0.14);
    border-radius: 12px;

    font-size: 18px;
}

.why-card h3 {
    margin-bottom: 7px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.why-card p {
    color: rgba(255, 255, 255, 0.52);
    font-size: 11.5px;
    line-height: 1.9;
}

/* ============================================================
   الحلول التفصيلية
   ============================================================ */

.detailed-solutions {
    background: var(--white);
}

.detail-row {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
}

.detail-row + .detail-row {
    margin-top: 105px;
}

.detail-row.reversed .detail-visual {
    order: 2;
}

.detail-row.reversed .detail-content {
    order: 1;
}

.detail-visual {
    position: relative;
    display: grid;
    min-height: 440px;
    overflow: hidden;
    place-items: center;

    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.detail-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 40px 40px;
}

.detail-visual::after {
    position: absolute;
    width: 270px;
    height: 270px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, 0.025),
        0 0 0 90px rgba(255, 255, 255, 0.018);
}

.electrical-visual {
    background: linear-gradient(135deg, #0f2536, #006faf);
}

.security-visual {
    background: linear-gradient(135deg, #171f2f, #374151);
}

.network-visual {
    background: linear-gradient(135deg, #102a43, #0084d1);
}

.solar-visual {
    background: linear-gradient(135deg, #4a2b0a, #d97706);
}

.detail-big-icon {
    position: relative;
    z-index: 2;
    display: grid;
    width: 125px;
    height: 125px;
    place-items: center;

    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 34px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);

    font-size: 58px;
}

.detail-code {
    position: absolute;
    right: 28px;
    bottom: 24px;
    z-index: 2;

    color: rgba(255, 255, 255, 0.44);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

[dir="ltr"] .detail-code {
    right: auto;
    left: 28px;
}

.detail-content h2 {
    max-width: 570px;
    margin-block: 12px 19px;
    color: var(--primary-900);
    font-size: clamp(29px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.35;
}

.detail-content > p {
    max-width: 590px;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 2;
}

.detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px 18px;
    margin-block: 25px;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 600;
}

.detail-list li::before {
    display: grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;

    color: var(--green-600);
    background: var(--green-100);
    border-radius: 50%;
    content: "✓";

    font-size: 10px;
    font-weight: 800;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-600);
    font-size: 12.5px;
    font-weight: 800;
    transition:
        color var(--transition),
        gap var(--transition);
}

.text-link:hover {
    gap: 15px;
    color: var(--accent-700);
}

/* ============================================================
   مراحل العمل
   ============================================================ */

.process-section {
    background:
        linear-gradient(
            135deg,
            rgba(0, 132, 209, 0.04),
            transparent 40%
        ),
        var(--gray-50);
}

.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.process-grid::before {
    position: absolute;
    top: 45px;
    right: 7%;
    left: 7%;
    height: 1px;

    content: "";
    background: linear-gradient(
        90deg,
        transparent,
        var(--gray-300),
        transparent
    );
}

.process-card {
    position: relative;
    z-index: 2;
    min-height: 225px;
    padding: 24px 19px;

    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);

    transition:
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.process-card:hover {
    border-color: rgba(0, 132, 209, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.process-number {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 23px;
    place-items: center;

    color: var(--white);
    background: var(--primary-900);
    border: 5px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--gray-200);

    font-size: 10px;
    font-weight: 800;
}

.process-card:hover .process-number {
    background: var(--accent-600);
}

.process-card h3 {
    margin-bottom: 8px;
    color: var(--primary-900);
    font-size: 14px;
    font-weight: 800;
}

.process-card p {
    color: var(--gray-500);
    font-size: 11px;
    line-height: 1.9;
}

/* ============================================================
   المشاريع
   ============================================================ */

.projects-section {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px;
}

.project-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-7px);
}

.project-media {
    position: relative;
    height: 255px;
    overflow: hidden;
    background: var(--primary-900);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.07);
}

.project-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;

    background:
        radial-gradient(
            circle,
            rgba(0, 132, 209, 0.2),
            transparent 42%
        ),
        linear-gradient(135deg, var(--primary-900), var(--primary-700));

    font-size: 57px;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7, 23, 33, 0.75),
        transparent 60%
    );
}

.project-type {
    position: absolute;
    right: 17px;
    bottom: 16px;
    z-index: 2;

    padding: 6px 11px;
    color: var(--white);
    background: rgba(0, 132, 209, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    backdrop-filter: blur(7px);

    font-size: 9.5px;
    font-weight: 700;
}

[dir="ltr"] .project-type {
    right: auto;
    left: 17px;
}

.project-open {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;

    display: grid;
    width: 41px;
    height: 41px;
    place-items: center;

    color: var(--primary-900);
    background: var(--white);
    border-radius: 11px;
    box-shadow: var(--shadow-md);

    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transform: translateY(-7px);
    transition:
        opacity var(--transition),
        transform var(--transition);
}

[dir="ltr"] .project-open {
    right: 16px;
    left: auto;
}

.project-card:hover .project-open {
    opacity: 1;
    transform: translateY(0);
}

.project-content {
    padding: 22px;
}

.project-content h3 {
    margin-bottom: 8px;
    color: var(--primary-900);
    font-size: 16px;
    font-weight: 800;
}

.project-content p {
    display: -webkit-box;
    margin-bottom: 13px;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 11.5px;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.project-location {
    color: var(--gray-500);
    font-size: 10.5px;
}

.projects-empty {
    padding: 70px 25px;
    background: var(--gray-50);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    text-align: center;
}

.projects-empty-icon {
    display: grid;
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    place-items: center;
    background: var(--accent-50);
    border-radius: 23px;
    font-size: 35px;
}

.projects-empty h3 {
    color: var(--primary-900);
    font-size: 18px;
}

.projects-empty p {
    margin-top: 7px;
    color: var(--gray-500);
    font-size: 12.5px;
}

/* ============================================================
   التواصل
   ============================================================ */

.contact-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 132, 209, 0.18),
            transparent 28%
        ),
        linear-gradient(135deg, var(--primary-950), var(--primary-800));
}

.contact-section::before {
    position: absolute;
    right: -200px;
    bottom: -260px;
    width: 600px;
    height: 600px;

    content: "";
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, 0.018),
        0 0 0 140px rgba(255, 255, 255, 0.012);
}

.contact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.contact-content h2 {
    max-width: 580px;
    margin-block: 13px 18px;
    color: var(--white);
    font-size: clamp(32px, 4.7vw, 50px);
    font-weight: 800;
    line-height: 1.3;
}

.contact-content > p {
    max-width: 570px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 2;
}

.contact-information {
    display: grid;
    gap: 12px;
    margin-top: 31px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 460px;
    padding: 13px;

    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 12px;

    transition:
        background var(--transition),
        transform var(--transition);
}

a.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.095);
    transform: translateX(-4px);
}

[dir="ltr"] a.contact-info-item:hover {
    transform: translateX(4px);
}

.contact-info-icon {
    display: grid;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    place-items: center;

    color: #7dd3fc;
    background: rgba(0, 132, 209, 0.14);
    border-radius: 11px;

    font-size: 17px;
}

.contact-info-item small {
    display: block;
    color: rgba(255, 255, 255, 0.42);
    font-size: 9.5px;
}

.contact-info-item strong {
    display: block;
    margin-top: 2px;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
}

.contact-form-card {
    padding: 34px;
    color: var(--gray-800);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}

.form-header {
    margin-bottom: 25px;
}

.form-header > span {
    color: var(--accent-600);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1px;
}

.form-header h3 {
    margin-block: 6px;
    color: var(--primary-900);
    font-size: 24px;
    font-weight: 800;
}

.form-header p {
    color: var(--gray-500);
    font-size: 11.5px;
}

.contact-form {
    position: relative;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--gray-700);
    font-size: 11.5px;
    font-weight: 700;
}

.form-group label b {
    color: var(--red-600);
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 12px 13px;

    color: var(--gray-800);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    outline: none;

    font-size: 12.5px;
    transition:
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group input,
.form-group select {
    min-height: 47px;
}

.form-group textarea {
    min-height: 125px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: var(--white);
    border-color: var(--accent-500);
    box-shadow: 0 0 0 4px rgba(0, 132, 209, 0.1);
}

.form-submit {
    width: 100%;
    margin-top: 3px;
}

.form-submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.form-privacy {
    margin-top: 12px;
    color: var(--gray-400);
    text-align: center;
    font-size: 9.5px;
}

.form-alert {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 600;
}

.form-alert.success {
    color: #065f46;
    background: var(--green-100);
    border-right: 4px solid var(--green-500);
}

.form-alert.error {
    color: #991b1b;
    background: var(--red-100);
    border-right: 4px solid var(--red-600);
}

[dir="ltr"] .form-alert.success,
[dir="ltr"] .form-alert.error {
    border-right: 0;
    border-left: 4px solid;
}

/* ============================================================
   الفوتر
   ============================================================ */

.site-footer {
    color: rgba(255, 255, 255, 0.63);
    background: #071721;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 55px;
    padding-block: 68px 55px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.footer-logo > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;

    color: var(--white);
    background: linear-gradient(135deg, var(--accent-500), var(--accent-700));
    border-radius: 13px;

    font-size: 22px;
}

.footer-logo strong {
    display: block;
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
}

.footer-logo small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 8px;
    letter-spacing: 1px;
}

.footer-about p {
    max-width: 390px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11.5px;
    line-height: 1.95;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-column h3 {
    position: relative;
    margin-bottom: 12px;
    padding-bottom: 11px;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.footer-column h3::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 25px;
    height: 2px;
    content: "";
    background: var(--accent-500);
}

[dir="ltr"] .footer-column h3::after {
    right: auto;
    left: 0;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, 0.47);
    font-size: 11px;
    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-column a:hover {
    color: #7dd3fc;
    transform: translateX(-3px);
}

[dir="ltr"] .footer-column a:hover {
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;

    border-top: 1px solid rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.35);

    font-size: 10px;
}

.footer-bottom a {
    color: #7dd3fc;
}

/* ============================================================
   واتساب والعودة للأعلى
   ============================================================ */

.whatsapp-floating {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;

    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 8px;
    padding: 8px 15px 8px 9px;

    color: var(--white);
    background: #25d366;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 40px;
    box-shadow: 0 14px 35px rgba(37, 211, 102, 0.3);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.whatsapp-floating:hover {
    box-shadow: 0 18px 45px rgba(37, 211, 102, 0.42);
    transform: translateY(-4px);
}

.whatsapp-floating span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    font-size: 19px;
}

.whatsapp-floating small {
    font-size: 10px;
    font-weight: 800;
}

.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 88px;
    z-index: 890;

    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    color: var(--white);
    background: var(--primary-900);
    border-radius: 11px;
    box-shadow: var(--shadow-md);

    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        background var(--transition);
}

.back-to-top.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-600);
}

[dir="ltr"] .whatsapp-floating,
[dir="ltr"] .back-to-top {
    right: auto;
    left: 22px;
}

/* ============================================================
   تأثير الظهور
   ============================================================ */

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* إذا كان JavaScript معطلاً */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ============================================================
   اللغة الإنجليزية
   ============================================================ */

[dir="ltr"] body {
    font-family: var(--font-main);
}

[dir="ltr"] .hero-content h1,
[dir="ltr"] .section-heading h2,
[dir="ltr"] .why-content h2,
[dir="ltr"] .contact-content h2 {
    letter-spacing: -1px;
}

[dir="ltr"] .form-group input,
[dir="ltr"] .form-group textarea,
[dir="ltr"] .form-group select {
    text-align: left;
}

/* ============================================================
   الأجهزة اللوحية
   ============================================================ */

@media (max-width: 1100px) {
    :root {
        --header-height: 74px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-menu {
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;

        display: flex;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;

        background: var(--white);
        border: 1px solid transparent;
        border-radius: 0 0 15px 15px;
        box-shadow: var(--shadow-lg);

        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);

        transition:
            max-height 0.35s ease,
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .mobile-menu.active {
        max-height: 520px;
        padding: 10px;
        visibility: visible;
        opacity: 1;
        border-color: var(--gray-200);
        transform: translateY(0);
    }

    .mobile-menu a {
        padding: 12px 14px;
        color: var(--gray-700);
        border-bottom: 1px solid var(--gray-100);
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
    }

    .mobile-menu a:last-child {
        color: var(--accent-700);
        border-bottom: 0;
    }

    .mobile-menu a:hover {
        color: var(--accent-700);
        background: var(--accent-50);
    }

    .hero-container {
        grid-template-columns: 1fr 0.85fr;
        gap: 35px;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .hero-visual {
        min-height: 460px;
    }

    .hero-main-card {
        min-height: 370px;
    }

    .orbit-one {
        width: 410px;
        height: 410px;
    }

    .orbit-two {
        width: 470px;
        height: 470px;
    }

    .floating-card {
        width: 185px;
    }

    .solution-categories,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-grid,
    .contact-grid {
        gap: 45px;
    }

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

    .process-grid::before {
        display: none;
    }
}

/* ============================================================
   الجوال والأجهزة الصغيرة
   ============================================================ */

@media (max-width: 820px) {
    html {
        scroll-padding-top: 82px;
    }

    .section-space {
        padding-block: 75px;
    }

    .top-strip-message {
        display: none;
    }

    .top-strip-inner {
        justify-content: center;
    }

    .top-strip-info {
        gap: 14px;
    }

    .header-cta {
        display: none;
    }

    .hero-section,
    .hero-container {
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding-block: 75px 95px;
        text-align: center;
    }

    .hero-content {
        max-width: 740px;
        margin-inline: auto;
    }

    .hero-eyebrow {
        margin-inline: auto;
    }

    .hero-content h1 {
        max-width: 730px;
        margin-inline: auto;
        font-size: clamp(37px, 9vw, 55px);
        letter-spacing: -1px;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        min-height: 430px;
        margin-top: 10px;
    }

    .hero-main-card {
        min-height: 360px;
    }

    .hero-scroll {
        display: none;
    }

    .solution-categories,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .number-item:nth-child(2)::after {
        display: none;
    }

    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .why-content {
        text-align: center;
    }

    .why-content h2,
    .why-content > p {
        margin-inline: auto;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .detail-row.reversed .detail-visual,
    .detail-row.reversed .detail-content {
        order: initial;
    }

    .detail-visual {
        min-height: 380px;
    }

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

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

    .contact-content {
        text-align: center;
    }

    .contact-content h2,
    .contact-content > p,
    .contact-info-item {
        margin-inline: auto;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 40px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   الهواتف
   ============================================================ */

@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 26px), var(--container));
    }

    .section-space {
        padding-block: 62px;
    }

    .top-strip {
        display: none;
    }

    .header-inner {
        min-height: 69px;
    }

    .site-logo-mark {
        width: 43px;
        height: 43px;
        border-radius: 12px;
        font-size: 20px;
    }

    .site-logo-content strong {
        font-size: 15px;
    }

    .site-logo-content small {
        display: none;
    }

    .language-button {
        width: 39px;
        height: 39px;
    }

    .mobile-menu-button {
        width: 41px;
        height: 41px;
    }

    .mobile-menu {
        right: 10px;
        left: 10px;
    }

    .hero-container {
        padding-block: 65px 72px;
    }

    .hero-eyebrow {
        font-size: 9px;
    }

    .hero-content h1 {
        font-size: 38px;
        line-height: 1.25;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.9;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-trust {
        gap: 11px;
    }

    .trust-item {
        font-size: 10px;
    }

    .hero-visual {
        min-height: 370px;
    }

    .hero-main-card {
        width: 88%;
        min-height: 320px;
        padding: 25px;
        border-radius: 25px;
        transform: none;
    }

    [dir="ltr"] .hero-main-card {
        transform: none;
    }

    .hero-symbol {
        width: 88px;
        height: 88px;
        font-size: 42px;
    }

    .hero-main-card h2 {
        font-size: 24px;
    }

    .orbit-one {
        width: 340px;
        height: 340px;
    }

    .orbit-two {
        display: none;
    }

    .floating-card {
        width: 165px;
        padding: 10px;
    }

    .floating-card-one {
        top: 40px;
        right: -3px;
    }

    .floating-card-two {
        bottom: 37px;
        left: -3px;
    }

    .floating-card strong {
        font-size: 10px;
    }

    .floating-card small {
        font-size: 8.5px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading.heading-row {
        display: block;
    }

    .section-heading.heading-row .text-link {
        margin-top: 15px;
    }

    .section-heading h2,
    .why-content h2,
    .contact-content h2,
    .detail-content h2 {
        font-size: 30px;
    }

    .section-heading p {
        font-size: 13px;
    }

    .solution-categories,
    .services-grid,
    .why-features,
    .process-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .solution-category {
        min-height: 300px;
    }

    .numbers-section {
        padding-block: 15px;
    }

    .number-item {
        padding: 22px 12px;
    }

    .number-item strong {
        font-size: 34px;
    }

    .number-item:nth-child(2)::after {
        display: block;
    }

    .number-item:nth-child(odd)::after {
        display: block;
    }

    .number-item:nth-child(even)::after {
        display: none;
    }

    .why-card {
        min-height: auto;
    }

    .detail-row + .detail-row {
        margin-top: 75px;
    }

    .detail-visual {
        min-height: 310px;
        border-radius: 20px;
    }

    .detail-big-icon {
        width: 100px;
        height: 100px;
        font-size: 46px;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .process-card {
        min-height: auto;
    }

    .project-media {
        height: 225px;
    }

    .contact-form-card {
        padding: 25px 18px;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-header h3 {
        font-size: 21px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
        padding-block: 55px 45px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding-block: 16px;
        text-align: center;
    }

    .whatsapp-floating {
        right: 13px;
        bottom: 13px;
        min-height: 49px;
        padding: 7px;
    }

    .whatsapp-floating small {
        display: none;
    }

    .back-to-top {
        right: 16px;
        bottom: 76px;
    }

    [dir="ltr"] .whatsapp-floating,
    [dir="ltr"] .back-to-top {
        right: auto;
        left: 13px;
    }
}

/* ============================================================
   الشاشات الصغيرة جداً
   ============================================================ */

@media (max-width: 370px) {
    .site-logo-content strong {
        font-size: 13px;
    }

    .header-actions {
        gap: 5px;
    }

    .hero-content h1 {
        font-size: 33px;
    }

    .hero-trust {
        align-items: flex-start;
        flex-direction: column;
    }

    .floating-card {
        width: 150px;
    }

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

/* ============================================================
   تقليل الحركة حسب إعداد المستخدم
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   الطباعة
   ============================================================ */

@media print {
    .page-loader,
    .top-strip,
    .site-header,
    .hero-scroll,
    .whatsapp-floating,
    .back-to-top,
    .contact-form-card {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-section,
    .why-section,
    .contact-section,
    .numbers-section {
        color: #000;
        background: #fff;
    }
}

/* ===== Maintenance portal entry ===== */

.portal-entry-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    background:
        linear-gradient(135deg, #d7aa3f, #f1d17b);
    color: #102535 !important;
    box-shadow:
        0 9px 24px rgba(201, 151, 43, .25);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none !important;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.portal-entry-button:hover {
    color: #102535 !important;
    transform: translateY(-2px);
    box-shadow:
        0 13px 30px rgba(201, 151, 43, .34);
    filter: brightness(1.04);
}

.portal-entry-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .62);
    font-size: 16px;
    line-height: 1;
}

.portal-entry-button strong {
    color: inherit;
    font-size: inherit;
    font-weight: 800;
}

.mobile-menu .portal-mobile-link {
    display: flex;
    align-items: center;
    gap: 9px;
    border-color: rgba(215, 170, 63, .42);
    background: rgba(215, 170, 63, .13);
    color: #d7aa3f !important;
    font-weight: 800;
}

.footer-portal-link {
    color: #e7c66e !important;
    font-weight: 700;
}

@media (max-width: 1320px) {
    .portal-entry-button {
        width: 46px;
        padding: 7px;
    }

    .portal-entry-button strong {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (max-width: 560px) {
    .portal-entry-button {
        width: 42px;
        min-height: 42px;
        border-radius: 12px;
    }

    .portal-entry-icon {
        width: 25px;
        height: 25px;
        font-size: 15px;
    }
}

@media print {
    .portal-entry-button,
    .portal-mobile-link {
        display: none !important;
    }
}


/* ============================================================
   Official institution logo
   ============================================================ */

.site-logo {
    gap: 0;
}

.official-site-logo {
    display: block;
    width: 54px;
    height: 70px;
    object-fit: contain;
    padding: 2px;
    background: #ffffff;
    border-radius: 11px;
    box-shadow: 0 8px 24px rgba(15, 37, 54, .14);
    transition: transform var(--transition);
}

.site-logo:hover .official-site-logo {
    transform: translateY(-2px);
}

.official-footer-logo {
    display: block;
    width: 72px;
    height: auto;
    max-height: 102px;
    object-fit: contain;
    padding: 2px;
    background: #ffffff;
    border-radius: 12px;
}

.official-loader-logo {
    display: block;
    width: 92px;
    height: auto;
    max-height: 130px;
    object-fit: contain;
    padding: 3px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
}

@media (max-width: 760px) {
    .official-site-logo {
        width: 47px;
        height: 61px;
        border-radius: 9px;
    }

    .official-footer-logo {
        width: 66px;
    }

    .official-loader-logo {
        width: 82px;
    }
}

@media (max-width: 370px) {
    .official-site-logo {
        width: 43px;
        height: 57px;
    }
}
