/* --- الإعدادات الأساسية ومتغيرات التصميم --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --primary-color: #003366; /* الأزرق الداكن (الاحترافية) */
    --secondary-color: #ffc107; /* الذهبي (التميز) */
    --whatsapp-color: #25D366; 
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.7;
    direction: rtl; 
    text-align: right;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Utilities (الأدوات المساعدة) --- */
.primary-bg { background-color: var(--primary-color); }
.white-text { color: var(--white) !important; }
.white-bg { background-color: var(--white); }

/* --- 1. رأس الصفحة وقائمة التنقل --- */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* تنسيق اللوجو والنص معاً */
.logo a {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-size: 1.8em;
    font-weight: 700;
}

.logo-img {
    height: 55px; /* حجم اللوجو */
    width: auto;
    margin-left: 10px; /* مسافة بين اللوجو والنص */
    transition: transform 0.3s;
}

.company-name {
    color: var(--secondary-color); /* لون اسم الشركة (ذهبي) */
}

.logo a:hover .logo-img {
    transform: scale(1.05); /* تأثير عند المرور بالماوس */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: var(--white);
    padding: 10px 15px;
    display: block;
    font-weight: 600;
    transition: color var(--transition-speed);
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* --- 2. القسم الرئيسي الترحيبي (Hero Section) --- */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('team-hero.jpg') center/cover no-repeat; 
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    padding-top: 250px; 
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 1.8em;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* --- 3. الأزرار (Buttons) --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.secondary-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.primary-btn:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

.secondary-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.whatsapp-btn {
    background-color: var(--whatsapp-color);
    color: var(--white);
    border-color: var(--whatsapp-color);
    margin-top: 15px;
}

.whatsapp-btn:hover {
    background-color: #1FAF59;
    border-color: #1FAF59;
}


/* --- 4. أقسام المحتوى العامة (Sections) --- */
.content-section {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* --- 4.1. قسم من نحن وقيمنا (About Us/Values) --- */
.values-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.value-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
    width: 32%;
    text-align: right;
    transition: all var(--transition-speed);
}

.value-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 600;
}

.value-item h3 i {
    color: var(--secondary-color);
    margin-left: 10px;
    font-size: 1.1em;
}

.contact-btn {
    border-color: var(--primary-color);
    background-color: var(--white);
    color: var(--primary-color);
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* --- 5. قسم الرؤية الاستراتيجية والتوسع (#strategy) --- */
.corporate-section {
    background-color: var(--primary-color);
}

.corporate-section .section-title::after {
    background-color: var(--secondary-color);
}

/* تنسيق بطاقات الرؤية (4 عناصر في شبكة) */
.corporate-features.vision-features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2x2 grid */
    gap: 30px;
    max-width: 900px; 
    margin: 40px auto;
}

.corporate-features.vision-features ul li {
    background-color: rgba(255, 255, 255, 0.15); 
    padding: 20px;
    border-radius: 8px;
    text-align: right;
    font-weight: 600;
    font-size: 1.05em;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    color: var(--white) !important; 
}

/* تنسيق الروابط داخل بطاقات الرؤية الاستراتيجية */
.corporate-features.vision-features ul li a.strategy-link {
    color: var(--white); 
    display: inline; 
    font-weight: inherit; 
    text-decoration: none;
    transition: color 0.3s;
}

.corporate-features.vision-features ul li a.strategy-link:hover {
    color: var(--secondary-color); 
    text-decoration: underline;
}

/* تنسيق أيقونات البطاقات */
.corporate-features.vision-features ul li i {
    color: var(--secondary-color) !important;
    margin-left: 15px;
    font-size: 1.5em;
}

.corporate-features.vision-features ul li:hover {
    background-color: rgba(255, 255, 255, 0.25);
}


/* --- 6. تذييل الصفحة (Footer) --- */
footer {
    background-color: #222;
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
    text-align: right;
}

.contact-info, .social-links {
    max-width: 45%;
    margin-bottom: 20px;
}

.contact-info h4, .social-links h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.contact-info p {
    margin-bottom: 8px;
    color: #ccc; /* لون نص العنوان والهاتف */
}

/* تنسيق الأيقونات بجوار النص (في التذييل) */
.contact-info p i {
    margin-left: 8px;
    color: var(--secondary-color);
}

.contact-info p a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info p a:hover {
    color: var(--secondary-color);
}

/* روابط السوشيال ميديا */
.social-links {
    text-align: center;
}
.social-links h4 {
    text-align: right;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2em;
    margin-left: 10px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.copyright-text {
    padding-top: 20px;
}

/* --- 7. زر الواتساب العائم (Floating WhatsApp) --- */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px; 
    width: 65px;
    height: 65px;
    background-color: var(--whatsapp-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 2em;
    line-height: 65px;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background-color 0.3s;
    animation: pulse 1.5s infinite; 
}

.floating-whatsapp:hover {
    background-color: #1FAF59;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- 8. التجاوب (Media Queries) --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.5em; }
    .hero-content .subtitle { font-size: 1.3em; }
    
    .values-grid { flex-direction: column; align-items: center; }
    .value-item { width: 90%; margin-bottom: 20px; }
    
    .corporate-features.vision-features ul { 
        grid-template-columns: 1fr; 
        max-width: 400px;
    }
    
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .contact-info, .social-links { max-width: 100%; }
}

@media (max-width: 600px) {
    .header-content { flex-direction: column; }
    nav ul { flex-direction: column; width: 100%; margin-top: 10px; }
    nav ul li { width: 100%; }
    .logo a { font-size: 1.3em; }
    .logo-img { height: 45px; } /* حجم اللوجو في الشاشات الصغيرة */
    .value-item { width: 100%; }
    .content-section { padding: 60px 0; }
    .floating-whatsapp { width: 55px; height: 55px; line-height: 55px; font-size: 1.5em; }
}
