
/* =========================================
   Mozaic — عناصر مشتركة عبر كل الصفحات
   الهوية: "النظام الرسمي الهولندي بلمسة إنسانية" — ورق فاتح، حبر أسود، برتقالي
   كلون طابع/ختم مُلتزَم به بجرأة (حدود، أرقام خدمات، أزرار)، تركيبة أقرب لنموذج/سجل رسمي
   مبسّط منه لقالب "SaaS" التقليدي (بطاقات متساوية، Hero داكن، Eyebrow فوق العنوان).
========================================= */
.text-accent { color: var(--accent); }

.btn-accent, .btn-outline-accent {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 26px; border-radius: 4px; font-weight: 700; font-size: 0.88rem;
    font-family: var(--font-mono); letter-spacing: 0.01em;
    text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-accent {
    background: var(--accent); color: #161616;
    border: 1.5px solid #161616;
    box-shadow: 3px 3px 0 rgba(22,22,22,0.14);
}
.btn-accent:hover { background: var(--accent-hover); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(22,22,22,0.18); color: #161616; }
.btn-outline-accent { border: 1.5px solid var(--border-color); color: var(--text-primary); }
.btn-outline-accent:hover { border-color: var(--accent); color: var(--accent); }

.section-title { font-family: var(--font-heading); font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 700; color: var(--text-primary); margin: 0; }
.section-heading {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
    border-bottom: 1.5px solid var(--border-color); padding-bottom: 18px; margin-bottom: 44px;
}
.section-heading .section-code { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); font-weight: 600; white-space: nowrap; }

.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow span { transition: transform 0.2s ease; display: inline-block; }
[dir="rtl"] .link-arrow span { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover span { transform: scaleX(-1) translateX(4px); }

/* رأسية شبيهة بـ letterhead رسمي: ورق فاتح، خطّان أفقيان (فوق وتحت)، بدون Eyebrow فوق العنوان */
.page-hero {
    padding: 150px 0 60px;
    background: var(--bg-body);
    color: var(--text-primary);
    border-bottom: 3px solid var(--gunmetal);
    position: relative;
}
.page-hero::before {
    content: "";
    position: absolute; top: 92px; left: 0; right: 0;
    border-top: 1px solid var(--border-color);
}
.page-hero .hero-title { font-family: var(--font-heading); font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; margin: 0; letter-spacing: -0.01em; }

.cta-banner { background: var(--gunmetal); color: #fff; padding: 64px 0; }
.cta-banner-inner { text-align: center; }
.cta-banner-inner h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; margin: 0 0 22px; }
.cta-banner-inner p { color: rgba(255,255,255,0.75); margin-bottom: 26px; font-size: 1rem; }

/* =========================================
   زر الواتساب - الطابع المعماري الفخم
========================================= */

.whatsapp-button {
    position: fixed; /* 👈 هذا هو السطر الأهم لتثبيت الزر */
    right: 30px;     /* 👈 تحديد المسافة من يمين الشاشة (يمكنك تغييرها لـ left) */
    bottom: 40px;
    z-index: 9999;
    
    /* 👈 توسيط الأيقونة (مهم جداً حتى لا تظهر الأيقونة مائلة أو غير متمركزة) */
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    
    /* تأثير زجاجي داكن يندمج مع خلفية الموقع */
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* زوايا هندسية مستوحاة من كتل التصميم */
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    /* لون الأيقونة الافتراضي - أبيض هادئ */
    color: rgba(255, 255, 255, 0.85);
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* حركة انسيابية معمارية (Cubic Bezier) */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* إطار هندسي نحاسي خارجي مخفي يظهر عند الـ Hover */
.whatsapp-button::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--color-primary, #7a4319);
    border-radius: 16px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

/* تأثيرات التمرير (Hover Effects) */
.whatsapp-button:hover {
    transform: translateY(-6px);
    background: var(--color-primary, #7a4319);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 15px 30px rgba(122, 67, 25, 0.35);
}

/* إظهار الإطار الهندسي الخارجي وتكبيره بدقة */
.whatsapp-button:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* تحريك الأيقونة داخل الزر بشكل بسيط */
.whatsapp-button i {
    transition: transform 0.3s ease;
}

.whatsapp-button:hover i {
    transform: scale(1.1);
}

/* التجاوب مع الموبايل: فرض الظهور الإجباري */
@media (max-width: 768px) {
    .whatsapp-button {
        display: flex !important;      /* إجبار المتصفح على إظهار العنصر */
        visibility: visible !important; /* منع أي كود آخر من إخفائه */
        opacity: 1 !important;         /* التأكد من عدم وجود شفافية 0 */
        position: fixed !important;    /* إبقاء خاصية الطفو ثابتة */
        z-index: 999999 !important;    /* رفع الطبقة لأعلى مستوى ممكن */
        
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px; 
        font-size: 20px;
        border-radius: 10px;
    }
    
    .whatsapp-button::before {
        inset: -3px;
        border-radius: 13px;
    }
}
