/* أنماط القالب العام (_Layout) — نُقلت من داخل الصفحة ليحفظها المتصفح مؤقتًا */
:root {
    --primary: #0c75c0;
    --primary-dark: #095e9e;
    --whatsapp: #25d366;
    --dark: #1e293b;
    --gray: #f8fafc;
    --light: #ffffff;
    --text: #334155;
    --text-light: #64748b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    color: var(--text);
    line-height: 1.6;
    font-size: 15.5px;
    margin: 0;
    background: #f6f9fc;
    background-image: radial-gradient(900px 420px at 90% 0%, rgba(12,117,192,.07), transparent 60%),
                       radial-gradient(700px 380px at 5% 15%, rgba(12,117,192,.05), transparent 55%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.header {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.higher {
    background: var(--gray);
    padding: 0.5rem 1.5rem;
    font-size: 0.92rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

    .higher .contact-info,
    .higher .quick-links {
        display: flex;
        align-items: center;
        gap: 1.2rem;
    }

    .higher a {
        color: var(--text-light);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

        .higher a:hover {
            color: var(--primary);
        }

    .higher i {
        font-size: 1.05rem;
    }

.social-icons a i {
    background: color-mix(in srgb, var(--primary) 70%, white);
    padding: 0.45rem;
    font-size: 1.05rem;
    border-radius: 50%;
    transition: all 0.25s;
}

.social-icons a:hover i {
    background: var(--primary);
    color: white;
}

.lowest {
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

    .lowest img {
        max-height: 50px;
        width: auto;
    }

#nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.8rem;
}

    #nav-menu a {
        color: var(--text);
        text-decoration: none;
        font-weight: 500;
        font-size: 1.03rem;
        transition: color 0.25s;
    }

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

.buttons {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

.primary-btn,
.secondary-btn {
    padding: 0.55rem 1.35rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
    transition: all 0.25s;
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 18px rgba(12, 117, 192, 0.25);
}

    .primary-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

.secondary-btn {
    background: #fff;
    border-color: #e2e8f0;
    color: var(--text);
}

    .secondary-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.menu-icon {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 64px;
    height: 64px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    animation: pulse 2.4s infinite;
    text-decoration: none;
}

    .whatsapp-float:hover {
        transform: scale(1.08);
        animation: none;
        box-shadow: 0 12px 32px rgba(37,211,102,0.4);
    }

@keyframes pulse {
    0%

{
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
}

70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
}

100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
}

}

/* Footer */









.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    color: white;
    border-radius: 50%;
    margin-left: 0.7rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

    .social-icons a:hover {
        background: var(--primary);
        transform: translateY(-2px);
    }


/* Responsive */
@media (max-width: 992px) {
    .lowest

{
    gap: 1rem;
}

.menu-icon {
    display: block;
}

#nav-menu {
    display: none;
}

}

@media (max-width: 576px) {
    .higher

{
    font-size: 0.88rem;
    padding: 0.45rem 1rem;
    flex-direction: column;
    gap: 0.8rem;
}

.whatsapp-float {
    width: 58px;
    height: 58px;
    font-size: 2rem;
    bottom: 20px;
    left: 20px;
}

}

/* القائمة الجانبية للموبايل: تظهر بالتلاشي بدل الإزاحة الأفقية،
   لأن إزاحتها خارج الشاشة كانت تُوسّع عرض الصفحة في اتجاه RTL فتظهر الصفحة فارغة على الجوال */
.responsive-nav {
    position: fixed;
    inset: 0;
    right: 0;
    width: auto;
    height: auto;
    background: #fff;
    z-index: 9999;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.responsive-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}


/* style.css يخفي .buttons كاملة تحت 1280px، وبداخلها زر القائمة، فلا تظهر أي قائمة على الجوال والتابلت */
@media (max-width: 1280px) {
    header .lowest .buttons {
        display: flex;
        align-items: center;
        gap: .6rem;
    }
}

/* زر القائمة فقط عندما تختفي القائمة العلوية (≤ 992px) */
@media (min-width: 993px) {
    header .lowest .menu-icon {
        display: none;
    }
}

@media (max-width: 992px) {
    header .lowest .menu-icon {
        display: block;
    }
}

/* على الجوال: زرا التجربة والدخول موجودان داخل القائمة الجانبية */
@media (max-width: 576px) {
    header .lowest .buttons > a {
        display: none;
    }
}

/* بطاقات الحلول القطاعية في صفحة الوحدات */
.sector-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
}

.module-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

    .module-link:hover {
        color: var(--primary-dark);
    }

/* قائمة "حلول القطاعات" المنسدلة */
#nav-menu .nav-dropdown {
    position: relative;
}

#nav-menu .nav-caret {
    font-size: .7em;
    margin-inline-start: .25rem;
}

#nav-menu .nav-dropdown > .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1001;
    flex-direction: column;
    gap: 0;
    min-width: 230px;
    margin: 0;
    padding: .5rem;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 36, 54, .14);
}

#nav-menu .nav-dropdown:hover > .dropdown,
#nav-menu .nav-dropdown:focus-within > .dropdown {
    display: flex;
}

#nav-menu .dropdown li {
    font-size: 1rem;
}

#nav-menu .dropdown a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .8rem;
    border-radius: 8px;
    white-space: nowrap;
}

    #nav-menu .dropdown a:hover {
        background: #f1f6fb;
        color: var(--primary);
    }

    #nav-menu .dropdown a i {
        color: var(--primary);
        width: 1.1em;
    }

.responsive-nav .responsive-sub {
    margin: -.8rem 0 1.5rem;
    font-size: 1rem;
    color: var(--text-light);
}

    .responsive-nav .responsive-sub a {
        color: var(--primary);
    }

/* أقسام صفحة الوحدات: لا تختفي تحت الهيدر الثابت عند فتحها من رابط (#accounting...) */
.detail-row[id],
section[id] {
    scroll-margin-top: 170px;
}

/* ============ التذييل ============ */
/* style.css يطبّق على عنصر footer: flex + min-height 60vh + تدرج أزرق — نعيد ضبطها هنا */
footer.sf {
    display: block;
    min-height: 0;
    margin-top: 0;
    padding: 0 1.25rem;
    background:
        radial-gradient(700px 320px at 85% 0%, rgba(39, 168, 226, .16), transparent 60%),
        radial-gradient(600px 300px at 10% 100%, rgba(12, 117, 192, .14), transparent 60%),
        #0b1d30;
    color: #a9bbcc;
}

.sf-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3.5rem 0 0;
}

/* دعوة للبدء */
.sf-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem 2.2rem;
    margin-bottom: 3.2rem;
    border-radius: 22px;
    background: linear-gradient(120deg, #0c75c0, #27a8e2);
    box-shadow: 0 20px 44px rgba(12, 117, 192, .28);
}

    .sf-cta h2 {
        margin: 0 0 .35rem;
        color: #fff;
        font-size: clamp(1.25rem, 2.2vw, 1.6rem);
        font-weight: 800;
    }

    .sf-cta p {
        margin: 0;
        color: rgba(255, 255, 255, .88);
    }

.sf-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, background .2s;
}

    .sf-btn:hover {
        transform: translateY(-2px);
    }

.sf-btn-light {
    background: #fff;
    color: #0c75c0;
}

.sf-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, .6);
    color: #fff;
}

    .sf-btn-ghost:hover {
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

/* الأعمدة */
.sf-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.sf-logo img {
    display: block;
    height: 64px;
    width: auto;
}

.sf-brand p {
    max-width: 360px;
    margin: 1.1rem 0 1.3rem;
    font-size: .95rem;
    line-height: 1.8;
}

.sf-contact {
    display: grid;
    gap: .55rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

    .sf-contact a {
        display: inline-flex;
        align-items: center;
        gap: .7rem;
        color: #dbe6f0;
        text-decoration: none;
        font-size: .95rem;
    }

        .sf-contact a:hover {
            color: #fff;
        }

.sf-ic {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    color: #5cc3f0;
    font-size: .85rem;
}

.sf-ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

.sf-social {
    display: flex;
    gap: .55rem;
}

    .sf-social a {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, .14);
        color: #dbe6f0;
        text-decoration: none;
        transition: background .2s, border-color .2s, transform .2s;
    }

        .sf-social a:hover {
            background: #0c75c0;
            border-color: #0c75c0;
            color: #fff;
            transform: translateY(-2px);
        }

.sf-col h3 {
    position: relative;
    margin: .4rem 0 1.2rem;
    padding-bottom: .7rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

    .sf-col h3::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 28px;
        height: 3px;
        border-radius: 3px;
        background: #27a8e2;
    }

.sf-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .7rem;
}

.sf-col a {
    color: #a9bbcc;
    text-decoration: none;
    font-size: .95rem;
    transition: color .2s, padding .2s;
}

    .sf-col a:hover {
        color: #fff;
        padding-inline-start: .25rem;
    }

.sf-new {
    margin-inline-start: .35rem;
    padding: .1rem .5rem;
    border-radius: 999px;
    background: rgba(39, 168, 226, .18);
    color: #5cc3f0;
    font-size: .72rem;
    font-weight: 700;
}

/* شارات الثقة */
.sf-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin: 0;
    padding: 1.4rem 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

    .sf-trust li {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .45rem .9rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, .05);
        border: 1px solid rgba(255, 255, 255, .08);
        color: #dbe6f0;
        font-size: .85rem;
    }

        .sf-trust li i {
            color: #5cc3f0;
        }

/* الشريط السفلي */
.sf-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 1.5rem;
    padding: 1.3rem 0 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .88rem;
    color: #7f93a7;
    padding-inline-end: 96px; /* زر واتساب العائم في الزاوية */
}

.sf-bottom-links {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

    .sf-bottom-links a {
        color: #a9bbcc;
        text-decoration: none;
    }

        .sf-bottom-links a:hover {
            color: #fff;
        }

@media (max-width: 992px) {
    .sf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sf-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .sf-inner {
        padding-top: 2.5rem;
    }

    .sf-cta {
        padding: 1.5rem 1.3rem;
        margin-bottom: 2.4rem;
    }

    .sf-cta-actions,
    .sf-btn {
        width: 100%;
        justify-content: center;
    }

    .sf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.2rem;
    }

    .sf-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 6rem; /* مساحة لزر واتساب العائم */
    }
}
