/* الألوان الأساسية المستوحاة من هوية الصورة */
:root {
    --primary-dark: #0f4c5c;     /* اللون الكحلي/الزيتي الداكن في الخلفية السفلى */
    --accent-teal: #1a93a5;      /* اللون الفيروزي المتوسط */
    --light-teal: #48b5c4;       /* اللون الفيروزي الفاتح للنصوص والعناوين الصغير */
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-light: #ffffff;
    --card-bg: #093744;          /* عمق خلفية الكروت الداخلية */
}

/* التنسيق العام وتصفير المسافات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- الهيدر و الـ Hero Section --- */
.hero-section {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 60px 0 120px 0;
    position: relative;
    border-bottom-left-radius: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* مربع الجملة التسويقية اليمين */
.slogan-box h1 {
    font-size: 2rem;
    color: var(--accent-teal);
    font-weight: 700;
    line-height: 1.4;
}

.slogan-box h1 span {
    background-color: var(--accent-teal);
    color: var(--text-light);
    padding: 2px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 5px;
}

/* شعار الشركة اليسار */
.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-logo {
    width: 80px;
    height: auto;
}

.logo-text h2 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text p {
    color: var(--accent-teal);
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 0.8rem;
    color: #666;
}

/* التعديل الجديد لضبط الدوائر أعلى اليسار فوق المنحنى */
.custom-shape-divider {
    position: absolute;
    bottom: -15px; /* يضع الدوائر فوق خط التقاطع تماماً */
    left: 15%;     /* يزيحها لليسار ليطابق الصورة */
    z-index: 10;   /* يضمن ظهورها فوق الخلفيات */
}

.circles-decor {
    display: flex;
    gap: 15px;     /* توزيع المسافة بين الدائرتين */
}

.circles-decor span {
    display: block;
    width: 20px;   /* حجم الدائرة */
    height: 20px;  /* حجم الدائرة */
    border: 4px solid var(--accent-teal); /* اللون الفيروزي المتناسق */
    background-color: var(--bg-white);    /* لتكون مفرغة من الداخل بلون الخلفية البيضاء */
    border-radius: 50%; /* لجعلها دائرية تماماً */
    box-shadow: none;
}

/* --- قسم نبذة عن الشركة والخدمات النصية --- */
.about-section {
    background-color: var(--accent-teal);
    padding: 60px 0;
    position: relative;
    margin-top: -50px;
    border-top-right-radius: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 700;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
}

.sub-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.text-services-list {
    list-style: none;
    padding-right: 15px;
}

.text-services-list li {
    font-size: 1.1rem;
    margin-bottom: 8px;
    position: relative;
}

.text-services-list li::before {
    content: "■";
    color: var(--light-teal);
    font-size: 0.8rem;
    position: absolute;
    right: -18px;
    top: 2px;
}

/* تركيب الصور المتداخلة (المبنى والرافعة) */
.about-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.main-building-img {
    width: 80%;
    background: #3892a4;
    padding: 0px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.9);
}

.main-building-img img {
    width: 100%;
    height: auto;
    display: block;
}

.excavator-img {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 55%;
}

.excavator-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.4));
}

/* --- قسم الكروت المصورة --- */
.services-cards-section {
    padding: 60px 0;
}

.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* الهيكل الموحد لكل كارت خدمات */
.service-card {
    background-color: var(--card-bg);
    border: 4px solid var(--light-teal);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* تنسيقات شبكة الصور داخل الكروت لتوزيعها مثل التصميم */
.card-images {
    display: grid;
    gap: 8px;
    padding: 10px;
    background-color: #1d4b5b;
}

/* تنسيق الشبكة الرباعية الموحد للشاشات الكبيرة */
.grid-4-layout { 
    grid-template-columns: repeat(2, 1fr); 
}

.card-images img {
    width: 100%;
    height: 180px; /* الارتفاع الافتراضي للكمبيوتر */
    object-fit: cover;
    border-radius: 6px;
    transition: filter 0.3s ease;
}

.card-images img:hover {
    filter: brightness(1.1);
}

/* العنوان السفلي لكل كارت */
.card-footer-title {
    background-color: var(--light-teal);
    color: var(--text-light);
    text-align: center;
    padding: 12px;
}

.card-footer-title h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

/* --- الفوتر --- */
.main-footer {
    background-color: #072730;
    padding: 30px 0;
    border-top: 2px solid var(--light-teal);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-item i {
    color: var(--light-teal);
    font-size: 1.2rem;
}

/* --- التجاوب مع الهواتف الذكية والأجهزة اللوحية (Media Queries المطور والمعتمد) --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image-wrapper {
        min-height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .main-building-img {
        width: 70%;
    }
    .excavator-img {
        width: 45%;
        left: 5%;
    }
}

@media (max-width: 768px) {
    .container {
        width: 92%; /* توفير مساحة متزنة ومريحة على شاشات الهواتف */
    }

    .header-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .logo-box {
        flex-direction: column;
    }
    .custom-shape-divider {
        display: none;
    }
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 20px;
    }

    /* تثبيت ظهور صورتين بجانب بعضهما في السطر داخل الكروت على الهاتف */
    .grid-4-layout {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 8px;
    }
    
    .grid-4-layout img {
        /* تطبيق مقاس العرض والارتفاع المستطيل الطولي نسبة 600 عرض في 800 ارتفاع */
        aspect-ratio: 8 / 6 !important; 
        height: auto !important; /* السماح للارتفاع بالتغير تلقائياً لحفظ أبعاد التناسب وبدون انضغاط */
    }
}

@media (max-width: 480px) {
    .container {
        width: 94%; /* زيادة العرض قليلاً للهواتف الصغيرة جداً لاستغلال المساحة */
    }
}
/* تعديل مقاس كروت الكمبيوتر ليتناسب مع صور 800 في 600 */
.card-images img {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
}
/* تعديل حجم المبنى والرافعة على شاشات الموبايل فقط */
@media (max-width: 768px) {
    .main-building-img {
        width: 360px !important;  /* تحكم في عرض المبنى على الموبايل */
        height: 409px !important; /* تحكم في ارتفاع المبنى على الموبايل */
        margin: 0 auto;           /* لتوسط المبنى في منتصف الشاشة */
    }
	/* ================= التنسيقات الخاصة بالأقسام الجديدة المضافة ================= */

/* قسم الخريطة والعنوان */
.info-section {
    padding: 40px 0;
    background-color: var(--primary-dark);
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.info-thumb {
    background-color: var(--card-bg);
    border: 2px solid var(--light-teal);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}
.info-header h3 {
    font-size: 1.6rem;
    color: var(--light-teal);
    margin-bottom: 15px;
    border-bottom: 1px solid #1d4b5b;
    padding-bottom: 10px;
}
.info-thumb p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}
.map-action-btn {
    display: inline-block;
    background-color: var(--accent-teal);
    color: white;
    padding: 8px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    position: relative;
    z-index: 2;
}
.map-action-btn:hover {
    background-color: var(--light-teal);
}
.info-icon-bg {
    position: absolute;
    left: 20px;
    bottom: 10px;
    font-size: 5rem;
    color: rgba(72, 181, 196, 0.1);
    z-index: 1;
}

/* قسم تواصل معنا */
.connect-section {
    padding: 60px 0;
    background-color: #0b3d4a;
}
.connect-title-wrap {
    text-align: center;
    margin-bottom: 40px;
}
.connect-title-wrap h2 {
    font-size: 2.2rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.connect-title-wrap h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--light-teal);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.connect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.connect-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(72, 181, 196, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}
.connect-card:hover {
    transform: translateY(-5px);
}
.connect-info {
    padding: 20px;
    text-align: center;
}
.connect-info small {
    display: block;
    color: var(--light-teal);
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: bold;
}
.connect-info h3 {
    font-size: 1.3rem;
    color: white;
}
.connect-img-link {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.connect-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* الفوتر الاحترافي الجديد */
.site-footer-new {
    background-color: #051f26;
    padding: 25px 0;
    text-align: center;
    border-top: 2px solid var(--card-bg);
    font-size: 0.95rem;
}
.copyright-text-wrap p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #a7c1c7;
}
.copyright-text-wrap a {
    color: var(--light-teal);
    text-decoration: none;
    font-weight: bold;
}
.copyright-text-wrap a:hover {
    text-decoration: underline;
}

/* شاشات الموبايل والتجاوب الذكي للأقسام الجديدة */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr; /* تحويل الخريطة والعنوان فوق بعض */
        gap: 20px;
    }
    .connect-grid {
        grid-template-columns: 1fr; /* تحويل كروت الاتصال الثلاثة فوق بعض في الموبايل */
        gap: 20px;
    }
    .connect-img-link {
        height: 140px; /* تقليل حجم صور الجيف التفاعلية على الهاتف */
    }
    .copyright-text-wrap p {
        flex-direction: column;
        text-align: center;
    }
}
	
	