/* الألوان المستوحاة من اللوجو */
:root {
    --primary-green: #899a80; 
    --dark-green: #4a5d43;    
    --cream-light: #f2ead6;   
    --text-color: #333333;
    --white: #ffffff;
    --whatsapp-color: #25d366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--cream-light); /* خلفية مريحة للعين لكامل الموقع */
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container { width: 90%; max-width: 1200px; margin: auto; overflow: hidden; }

/* Header & Socials */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;}
.logo { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 50px; }
.logo h1 { color: var(--dark-green); font-size: 1.5rem; margin: 0; }

nav ul { list-style: none; display: flex; gap: 20px; }
nav ul li a { text-decoration: none; color: var(--dark-green); font-weight: 700; transition: 0.3s; }
nav ul li a:hover { color: var(--primary-green); }

.header-social { display: flex; gap: 10px; }
.header-social a {
    display: flex; align-items: center; justify-content: center;
    width: 35px; height: 35px; background-color: var(--primary-green); color: var(--white);
    border-radius: 50%; text-decoration: none; transition: 0.3s;
}
.header-social a:hover { background-color: var(--dark-green); transform: scale(1.1); }

/* Hero Section */
.hero { padding: 4rem 0; background-color: var(--cream-light); }
.hero-wrapper { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.hero-content { flex: 1; min-width: 300px; }
.hero-content h2 { font-size: 2.8rem; margin-bottom: 1rem; color: var(--dark-green); line-height: 1.2; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; color: #555; }

.hero-buttons { display: flex; gap: 15px; }
.btn {
    display: inline-block; background-color: var(--dark-green); color: var(--white);
    padding: 12px 30px; text-decoration: none; border-radius: 5px; border: 2px solid var(--dark-green);
    font-family: inherit; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn:hover { background-color: var(--primary-green); border-color: var(--primary-green); color: var(--white); }
.btn-outline { background-color: transparent; color: var(--dark-green); }
.btn-outline:hover { background-color: var(--dark-green); color: var(--white); }

.hero-image { flex: 1; min-width: 300px; text-align: left; }
.hero-image img { width: 100%; border-radius: 15px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* Sections Common */
.section-title { text-align: center; color: var(--dark-green); margin-bottom: 2rem; font-size: 2.2rem; }
.services { padding: 4rem 0; background-color: var(--white); }
.projects { padding: 4rem 0; background-color: var(--cream-light); }

/* Projects Grid */
/* تخطيط شبكة المشاريع الجديد (2 فوق، 3 تحت) */
.projects-gallery-layout {
    display: grid;
    /* نقسم المساحة إلى 6 أجزاء متساوية لتسهيل التوزيع */
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

/* التنسيق الأساسي للمربع */
.project-box {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* الصف العلوي (كل مربع يأخذ 3 أجزاء من أصل 6 = النصف) */
.top-row {
    grid-column: span 3;
}

/* الصف السفلي (كل مربع يأخذ جزئين من أصل 6 = الثلث) */
.bottom-row {
    grid-column: span 2;
}

.project-box .project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-box .project-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1; /* لملء المساحة المتبقية */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project-box .project-info h3 {
    color: var(--dark-green);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* زر عرض المزيد */
.btn-more {
    display: inline-block;
    padding: 8px 25px;
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn-more:hover {
    background-color: var(--dark-green);
    color: var(--white);
}

/* توافق الشاشات الصغيرة (الجوال) */
@media(max-width: 900px) {
    /* على الجوال، كل المربعات ستأخذ العرض بالكامل وتصبح تحت بعضها */
    .top-row, .bottom-row {
        grid-column: span 6;
    }
}
/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { background: var(--cream-light); padding: 2.5rem 1.5rem; border-radius: 12px; text-align: center; transition: 0.3s; border-bottom: 5px solid var(--primary-green); }
.service-card:hover { transform: translateY(-5px); }
.service-card i { font-size: 3rem; color: var(--dark-green); margin-bottom: 20px; }
.service-card h3 { color: var(--dark-green); margin-bottom: 1rem; font-size: 1.4rem; }

/* Contact Info Section */
.contact-info-section { padding: 4rem 0; background-color: var(--white); border-top: 1px solid #eaeaea; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: center; }
.info-item { background-color: var(--cream-light); padding: 2rem; border-radius: 12px; transition: 0.3s; }
.info-item:hover { transform: translateY(-5px); background-color: var(--primary-green); color: var(--white); }
.info-item:hover h3, .info-item:hover p, .info-item:hover i { color: var(--white); }
.info-item i { font-size: 2.5rem; color: var(--dark-green); margin-bottom: 15px; transition: 0.3s;}
.info-item h3 { color: var(--dark-green); margin-bottom: 10px; transition: 0.3s;}
.info-item p { font-size: 1.1rem; font-weight: bold; transition: 0.3s;}

/* Footer */
footer { background-color: var(--dark-green); color: var(--cream-light); text-align: center; padding: 1.5rem 0; font-size: 1.1rem;}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px; background-color: var(--whatsapp-color); color: white;
    width: 60px; height: 60px; border-radius: 50%; text-align: center; font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 1000; display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* Responsive */
/* Responsive - توافق الشاشات والهواتف */
@media(max-width: 900px) {
    /* تصغير القائمة العلوية للهواتف خصيصاً */
    header { 
        padding: 5px 0; /* تقليل الحشوة العلوية والسفلية لأقصى حد */
    }
    .header-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 5px; /* تقليل المسافة بين اللوجو والروابط */
    }
    .logo-img { 
        height: 35px; /* تصغير اللوجو على الجوال */
    }
    .logo h1 { 
        font-size: 1.1rem; /* تصغير خط اسم الشركة */
    }
    nav ul { 
        margin-top: 0; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 12px; /* تقليل المسافة بين الروابط نفسها */
    }
    nav ul li a {
        font-size: 0.85rem; /* تصغير خط الروابط لتناسب الشاشة */
    }
    .admin-link {
        padding: 3px 10px;
        font-size: 0.8rem;
    }

    /* باقي تعديلات الجوال (البانر وزر الواتساب) */
    .hero-wrapper { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .whatsapp-float { bottom: 20px; left: 20px; width: 50px; height: 50px; font-size: 30px; }
}
/* تمييز رابط الإدارة في القائمة العلوية */
.admin-link {
    background-color: var(--dark-green);
    color: var(--white) !important;
    padding: 5px 15px;
    border-radius: 5px;
}
.admin-link:hover {
    background-color: var(--primary-green) !important;
}

/* تنسيق زر عرض الموقع الصغير */
.map-btn-small {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px; /* تصغير حواف الزر */
    background-color: var(--dark-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem; /* تصغير حجم الخط */
    transition: 0.3s;
}

.map-btn-small:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* عكس الألوان عند تمرير الماوس على المربع */
.info-item:hover .map-btn-small {
    background-color: var(--white);
    color: var(--dark-green);
}