/**
 * تنسيقات موحدة لواجهات الصفحات العامة
 * (الرئيسية، من نحن، الخدمات، التواصل، إلخ)
 */

@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap");

:root {
    --primary: #003049;
    --primary-light: #669bbc;
    --accent-dark: #780000;
    --accent: #c1121f;
    --cream: #fdf0d5;
    --header-h: 72px;
    --ink: #0f172a;
    --muted: #475569;
    --line: #e5e7eb;
    --bg: #f7f8fa;
    --card-bg: #fff;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 4px 24px rgba(0, 48, 73, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 48, 73, 0.12);
    --transition: 0.2s ease;
    --help-ease: cubic-bezier(0.22, 1, 0.36, 1);
    /* عرض الحاويات والأقسام */
    --wrap-max: 1140px;
    --wrap-padding: 24px;
    --section-padding-y: 56px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: "Tajawal", system-ui, sans-serif;
    color: var(--ink);
    background: var(--card-bg);
    line-height: 1.65;
}
a {
    color: inherit;
    text-decoration: none;
}
.wrap {
    max-width: var(--wrap-max);
    margin: 0 auto;
    padding: 0 var(--wrap-padding);
}
@media (max-width: 600px) {
    .wrap {
        padding: 0 16px;
    }
}

/* ========== هيدر ========== */
/* تعديل: هيدر زجاجي (Glass) لاندماج أجمل مع الهيرو */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 30px rgba(0, 48, 73, 0.06);
    transition: var(--transition);
}

.site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    min-height: 72px;
}

.header-nav-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary);
    transition: var(--transition);
}
.brand:hover {
    opacity: 0.92;
}

.brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    box-shadow: 0 2px 12px rgba(0, 48, 73, 0.12);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.brand__name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand__title {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 500;
}

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

.nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(0, 48, 73, 0.75);
    padding: 8px 14px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.nav a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
    background: rgba(0, 48, 73, 0.08);
}
.nav a:hover::before {
    width: 70%;
}
.nav a.active {
    color: var(--primary);
    background: rgba(0, 48, 73, 0.1);
    font-weight: 700;
}
.nav a.active::before {
    width: 70%;
}

.nav-right {
    display: flex;
    align-items: center;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 12px;
    background: var(--primary);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 48, 73, 0.28);
    transition: all 0.25s ease;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-login:hover {
    background: #001f33;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 48, 73, 0.4);
}

/* زر القائمة (هامبرجر) — يظهر على الجوال فقط */
.header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 12px;
    background: rgba(0, 48, 73, 0.08);
    color: var(--primary);
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.header-menu-toggle:hover {
    background: rgba(0, 48, 73, 0.14);
}
.header-menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}
.menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s var(--help-ease), opacity 0.25s ease;
}
.site-header--menu-open .header-menu-toggle .menu-toggle-bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.site-header--menu-open .header-menu-toggle .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}
.site-header--menu-open .header-menu-toggle .menu-toggle-bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* قائمة الجوال: بعرض الصفحة كامل، تحت الهيدر، تظهر فوق المحتوى (لا تزيح الهيرو) */
.header-nav-dropdown {
    display: none;
}

@media (max-width: 768px) {
    .header-menu-toggle {
        display: flex;
    }
    /* إخفاء القائمة داخل الصف على الجوال (نعرض القائمة المنسدلة بدلاً منها) */
    .header-nav-wrap {
        display: none;
    }
    /* القائمة المنسدلة: ثابتة تحت الهيدر، فوق الهيرو، لا تزيح المحتوى */
    .header-nav-dropdown {
        display: block;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 40px rgba(0, 48, 73, 0.12);
        transition: max-height 0.35s var(--help-ease);
        z-index: 99;
    }
    .site-header--menu-open .header-nav-dropdown {
        max-height: 85vh;
        overflow-y: auto;
    }
    .header-nav-dropdown__inner {
        padding: 20px var(--wrap-padding) 28px;
    }
    .header-nav-dropdown .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .header-nav-dropdown .nav a {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 12px;
    }
    .header-nav-dropdown .nav a::before {
        display: none;
    }
    .header-nav-dropdown .nav-right {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--line);
    }
    .header-nav-dropdown .btn-login {
        width: 100%;
        justify-content: center;
        padding: 14px 22px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .site-header__row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .header-nav-wrap {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* ========== هيرو (اندماج أنعم + تقليل الشريط الأبيض + Fade علوي + هالة) ========== */
/* ========== HERO (إعادة تصميم كاملة: Modern SaaS / Glass Panel) ========== */

/* أساسيات */
.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: clamp(28px, 6vh, 64px) 0;
    margin-top: 0;
    background:
        radial-gradient(
            1200px 600px at 20% 10%,
            rgba(102, 155, 188, 0.35),
            rgba(102, 155, 188, 0) 55%
        ),
        radial-gradient(
            900px 520px at 85% 25%,
            rgba(193, 18, 31, 0.2),
            rgba(193, 18, 31, 0) 60%
        ),
        linear-gradient(
            180deg,
            #031a28 0%,
            #042237 40%,
            #032a44 70%,
            #022033 100%
        );
    background-color: #021a2a;
}

/* طبقة نقاط خفيفة (تتلاشى من المركز) */
.hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at 1px 1px,
        rgba(255, 255, 255, 0.06) 1px,
        transparent 1.5px
    );
    background-size: 24px 24px;
    opacity: 0.4;
    mask-image: radial-gradient(
        ellipse 70% 55% at 50% 40%,
        black 20%,
        transparent 72%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 70% 55% at 50% 40%,
        black 20%,
        transparent 72%
    );
}

/* Blobs ضوئية ناعمة */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            520px 520px at 25% 25%,
            rgba(102, 155, 188, 0.3),
            rgba(102, 155, 188, 0) 70%
        ),
        radial-gradient(
            560px 560px at 78% 30%,
            rgba(193, 18, 31, 0.18),
            rgba(193, 18, 31, 0) 72%
        ),
        radial-gradient(
            720px 520px at 50% 90%,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0) 70%
        );
    filter: blur(6px);
}

/* محتوى */
.hero > .wrap {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    justify-items: center;
    text-align: center;
}

/* على الموبايل: عمود واحد */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

/* حاوية النص بدون تنسيق */
.hero-copy {
    max-width: 640px;
    text-align: center;
}

/* Badge فوق العنوان */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(253, 240, 213, 0.14);
    border: 1px solid rgba(253, 240, 213, 0.24);
    color: rgba(253, 240, 213, 0.98);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.hero-badge i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow:
        0 0 0 4px rgba(193, 18, 31, 0.2),
        0 0 12px rgba(193, 18, 31, 0.4);
    flex-shrink: 0;
}

/* العنوان والنص */
.hero-title {
    margin: 12px 0 0;
    font-size: clamp(30px, 4.2vw, 50px);
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-sub {
    margin-top: 14px;
    margin-inline: auto;
    font-size: clamp(1.05rem, 1.35vw, 1.18rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 520px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

/* أزرار الهيرو */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
    justify-content: center;
}

/* زر أساسي (Accent) */
.hero .btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #a80e18 100%);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(193, 18, 31, 0.28);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}
.hero .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 60px rgba(193, 18, 31, 0.34);
    filter: brightness(1.05);
}

/* زر ثانوي (Outline Glass) */
.hero .btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}
.hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-3px);
}

/* عنصر بصري يمين (اختياري الآن) */
.hero-visual {
    display: grid;
    place-items: center;
    min-height: 300px;
}
@media (max-width: 900px) {
    .hero-visual {
        display: none;
    }
}
.hero-visual-card {
    width: min(340px, 100%);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    padding: 20px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.hero-visual-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.hero-visual-card .mini {
    border-radius: 16px;
    background: linear-gradient(
        145deg,
        rgba(102, 155, 188, 0.24),
        rgba(0, 48, 73, 0.2)
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.75;
}

/* ========== HERO للصفحات الفرعية (نفس خلفية الصفحة الرئيسية) ========== */
.hero--flat {
    min-height: auto !important;
    padding: 54px 0 44px;
    background:
        radial-gradient(
            1200px 600px at 20% 10%,
            rgba(102, 155, 188, 0.35),
            rgba(102, 155, 188, 0) 55%
        ),
        radial-gradient(
            900px 520px at 85% 25%,
            rgba(193, 18, 31, 0.2),
            rgba(193, 18, 31, 0) 60%
        ),
        linear-gradient(
            180deg,
            #031a28 0%,
            #042237 40%,
            #032a44 70%,
            #022033 100%
        ) !important;
    background-color: #021a2a;
}
.hero--short {
    min-height: 240px;
    padding: 52px 0;
}
.hero--flat .wrap {
    position: relative;
    z-index: 1;
}
.hero--flat .hero-title,
.hero--flat .hero-sub {
    text-align: center;
}

/* أزرار عامة */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #001c2e 100%);
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(0, 48, 73, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #001f33 0%, #000d14 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 48, 73, 0.45);
}
.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary-light);
}
.btn-outline:hover {
    background: rgba(102, 155, 188, 0.12);
    color: var(--primary) !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 48, 73, 0.15);
}

/* مجموعة أزرار الأقسام (الأمان والخصوصية، تواصل معنا) */
.section-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1.75rem;
}
.section-actions .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    min-height: 44px;
}
.section-actions .btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff !important;
    border: 2px solid transparent;
    box-shadow: 0 4px 14px rgba(193, 18, 31, 0.25);
}
.section-actions .btn-accent:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 18, 31, 0.3);
}
.section-actions .btn-outline {
    background: #fff;
    color: var(--primary) !important;
    border: 2px solid var(--line);
}
.section-actions .btn-outline:hover {
    background: var(--bg);
    border-color: var(--primary-light);
    color: var(--primary) !important;
}

/* ========== أقسام المحتوى (أسلوب tm4ex) ========== */
.section {
    padding: var(--section-padding-y) 0;
}
@media (min-width: 768px) {
    .section {
        padding: 64px 0;
    }
}
.section--alt {
    background: var(--bg);
    border-top: 1px solid var(--line);
}
.section-white {
    background: #fff;
}
.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-head .section-title,
.section-head h2,
.section-head .muted,
.section-head p {
    text-align: center;
}
.section-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.section-head .section-title,
.section-head h2 {
    margin: 0 0 8px;
}
.section-head h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.section-head p,
.section-head .muted,
.section .muted {
    margin: 0 auto;
    max-width: 560px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}
.muted {
    color: var(--muted);
}
.h3 {
    margin: 0 0 10px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
}
.text-brand {
    color: var(--primary-light);
}

/* شبكات وبطاقات (tm4ex) */
.mt-8 { margin-top: 2rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.p-6 { padding: 1.5rem; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}
.card-title {
    font-weight: 700;
    color: var(--primary);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .grid-4 { grid-template-columns: 1fr; }
}

/* مميزات البوابة و"لماذا" — نفس شكل البطاقات، 4 أو 3 أعمدة */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1100px) {
    .features-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .features-grid,
    .features-grid-4 {
        grid-template-columns: 1fr;
    }
}
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}
.feature-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--primary);
    display: grid;
    place-items: center;
}
.feature-card__icon svg {
    width: 26px;
    height: 26px;
}
.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 10px;
}
.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* قيم — شبكة بطاقات */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}
.values-grid .card {
    text-align: center;
    padding: 1.5rem;
}
.values-grid .card .num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}
.values-grid .card .label {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* نداء الإجراء (CTA) — خلفية بيضاء */
.cta-band {
    background: #fff;
    border-top: 1px solid var(--line);
    color: var(--ink);
    padding: 56px 24px;
    text-align: center;
}
.cta-band h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}
.cta-band p {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 1rem;
}
.cta-band .btn-ghost {
    background: var(--primary);
    color: #fff !important;
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.05s ease;
    text-decoration: none;
}
.cta-band .btn-ghost:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ظهور عند التمرير (reveal) */
.reveal {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
    transition: opacity 0.5s ease, transform 0.55s var(--help-ease);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========== تذييل (نفس خلفية الهيرو) ========== */
.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            1200px 600px at 20% 10%,
            rgba(102, 155, 188, 0.35),
            rgba(102, 155, 188, 0) 55%
        ),
        radial-gradient(
            900px 520px at 85% 25%,
            rgba(193, 18, 31, 0.2),
            rgba(193, 18, 31, 0) 60%
        ),
        linear-gradient(
            180deg,
            #031a28 0%,
            #042237 40%,
            #032a44 70%,
            #022033 100%
        );
    background-color: #021a2a;
    color: #e6eef6;
    padding-top: 48px;
}
.site-footer > .wrap {
    position: relative;
    z-index: 1;
}
/* طبقة نقاط خفيفة في الفوتر */
.site-footer::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at 1px 1px,
        rgba(255, 255, 255, 0.06) 1px,
        transparent 1.5px
    );
    background-size: 24px 24px;
    opacity: 0.4;
    mask-image: radial-gradient(
        ellipse 80% 60% at 50% 50%,
        black 15%,
        transparent 70%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 80% 60% at 50% 50%,
        black 15%,
        transparent 70%
    );
}
/* Blobs ضوئية في الفوتر */
.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            520px 520px at 25% 25%,
            rgba(102, 155, 188, 0.3),
            rgba(102, 155, 188, 0) 70%
        ),
        radial-gradient(
            560px 560px at 78% 30%,
            rgba(193, 18, 31, 0.18),
            rgba(193, 18, 31, 0) 72%
        ),
        radial-gradient(
            720px 520px at 50% 90%,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0) 70%
        );
    filter: blur(6px);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }
    .footer-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-social {
        justify-content: center;
    }
    .newsletter {
        margin-inline: auto;
    }
}

.footer-col .footer-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    margin-bottom: 14px;
}
.footer-col .footer-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}
.footer-col .footer-motto {
    font-size: 0.9rem;
    color: #cdd7e6;
}
.footer-head {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 14px;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.footer-list a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
}
.footer-list a::after {
    content: "";
    position: absolute;
    inset: auto 0 -2px 0;
    height: 2px;
    background: var(--primary-light);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.footer-list a:hover {
    color: var(--primary-light);
}
.footer-list a:hover::after {
    transform: scaleX(1);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}
.footer-social .social-link:hover {
    background: var(--primary-light);
    color: #fff;
}
.footer-follow {
    color: #cdd7e6;
    font-size: 0.9rem;
    margin-top: 10px;
}

.newsletter {
    display: flex;
    align-items: center;
    margin-top: 14px;
    background: rgba(31, 41, 55, 0.6);
    border-radius: 10px;
    overflow: hidden;
    max-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.newsletter input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.newsletter input::placeholder {
    color: #9ca3af;
}
.newsletter button {
    background: var(--accent);
    border: none;
    padding: 12.5px 16px;
    cursor: pointer;
    color: #fff;
    transition: background 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.newsletter button:hover {
    background: var(--accent-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0 28px;
    text-align: center;
    font-size: 0.9rem;
    color: #cdd7e6;
}

/* ========== هيرو للصفحات الفرعية — نفس الخلفية والنقاط والـ blobs ========== */
.hero--flat::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at 1px 1px,
        rgba(255, 255, 255, 0.06) 1px,
        transparent 1.5px
    );
    background-size: 24px 24px;
    opacity: 0.4;
    mask-image: radial-gradient(
        ellipse 70% 55% at 50% 40%,
        black 20%,
        transparent 72%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 70% 55% at 50% 40%,
        black 20%,
        transparent 72%
    );
}

.hero--flat::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            520px 520px at 25% 25%,
            rgba(102, 155, 188, 0.3),
            rgba(102, 155, 188, 0) 70%
        ),
        radial-gradient(
            560px 560px at 78% 30%,
            rgba(193, 18, 31, 0.18),
            rgba(193, 18, 31, 0) 72%
        ),
        radial-gradient(
            720px 520px at 50% 90%,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0) 70%
        );
    filter: blur(6px);
}

.hero--flat .hero-bg {
    display: none;
}
.hero--short {
    min-height: 240px;
    padding: 48px 0;
}
.hero--flat .hero-title,
.hero--flat .hero-sub {
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.hero--flat .hero-sub {
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
    margin-inline: auto;
}

/* ========== صفحات المحتوى (من نحن، الخدمات، إلخ) ========== */
.page-content {
    padding: 48px 0 64px;
    min-height: 50vh;
}
.page-hero {
    text-align: center;
    padding: 32px 24px 40px;
    background: linear-gradient(180deg, var(--cream) 0%, #faf6f0 100%);
    border-bottom: 1px solid rgba(0, 48, 73, 0.06);
}
.page-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    color: var(--primary);
    margin: 0 0 8px;
    font-weight: 800;
}
.page-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* محتوى الصفحات الداخلية — نفس عرض الأقسام الرئيسية */
.page-content {
    padding: 0;
    background: #fff;
}
.page-content > .wrap {
    max-width: var(--wrap-max);
    padding-top: var(--section-padding-y);
    padding-bottom: 64px;
}
@media (min-width: 768px) {
    .page-content > .wrap {
        padding-top: 64px;
    }
}
.page-content .section .wrap {
    padding-top: 0;
    padding-bottom: 0;
}
.prose {
    max-width: 100%;
    margin: 0 auto;
}
.prose h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 2rem 0 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
    font-size: 1.125rem;
    color: var(--ink);
    margin: 1.25rem 0 0.5rem;
    font-weight: 700;
}
.prose p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.8;
}
.prose ul,
.prose ol {
    margin: 0 0 1rem;
    padding-inline-start: 1.5rem;
    padding-inline-end: 0;
    color: var(--muted);
    line-height: 1.8;
}
.prose li {
    margin-bottom: 0.5rem;
}
.prose a {
    color: var(--primary-light);
    font-weight: 600;
}
.prose a:hover {
    color: var(--accent);
    text-decoration: underline;
}
.prose .contact-grid {
    margin-top: 1.5rem;
}
.prose .card,
.prose .contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
}
.prose .faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.04);
}
.prose .faq-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--primary);
}
.prose .faq-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* ========== صفحة التواصل — ترتيب وتخطيط ========== */
.contact-top {
    margin-bottom: 2rem;
}
.contact-top h2 {
    font-size: 1.35rem;
    color: var(--primary);
    margin: 1.5rem 0 0.5rem;
    font-weight: 800;
}
.contact-top h2:first-child {
    margin-top: 0;
}
.contact-top p {
    margin: 0 0 0.75rem;
    color: var(--muted);
    line-height: 1.8;
}
.contact-top a {
    color: var(--primary-light);
    font-weight: 600;
}
.contact-intro {
    margin: 0 0 1.75rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 100%;
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}
.contact-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
}
.contact-form-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.contact-form .form-group {
    margin-bottom: 1rem;
}
.contact-form .form-group:last-of-type {
    margin-bottom: 1.25rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}
.contact-form .form-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}
.contact-form .form-input::placeholder {
    color: #9ca3af;
}
.contact-form .form-textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-form .btn-block {
    width: 100%;
    padding: 0.75rem 1.25rem;
}
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-cards-wrap {
        order: 2;
    }
    .contact-form-wrap {
        order: 1;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
}
.contact-card h3 {
    font-size: 1.125rem;
    color: var(--primary);
    margin: 0 0 0.75rem;
    font-weight: 700;
}
.contact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}
.contact-card a {
    color: var(--primary-light);
    font-weight: 600;
}
