/* =========================================
   1. الإعدادات العامة والمتغيرات
========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--color3);
    font-family: "Tajawal", sans-serif;
    overflow-x: hidden;
}
ul li, ol li {
    list-style: none; 
}

:root {
    --color1 : #2C1A12; /* بني خشبي داكن */
    --color2 : #5D4037; /* بني متوسط */
    --color3 : #F9F6F0; /* بيج كريمي فاتح */
    --color4 : #C19A6B; /* ذهبي خشبي فاخر */
}

/* =========================================
   2. الهيدر والقائمة (Header & Nav Desktop)
========================================= */
header {
    position: relative;
    overflow: hidden;
}
header .container.ab {
    background-color: rgba(44, 26, 18, 0.9); 
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    position: absolute;
    z-index: 100;
    top: 15px;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
}
header .nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}
header .nav h2 {
    font-family: "Almarai", sans-serif;
    font-weight: bold;
    color: var(--color4);
    font-size: 24px;
}
header .nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    width: auto;
}
header .nav ul li a {
    text-decoration: none;
    color: var(--color3);
    font-size: 17px;
    transition: .3s;
    font-weight: 500;
}
header .nav ul li a:hover, header .nav ul li a.active {
    color: var(--color4) !important;
}
#link {
    display: none;
}

/* =========================================
   3. سيكشن الواجهة والنصوص (Hero Section)
========================================= */
header img {
    width : 100%;
    height: 100vh ;
    object-fit: cover; 
}
header.before::after {
    content: '';
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.55); 
    z-index: 1;
} 
.shape {
    font-family: "Cairo", sans-serif;
    position: absolute;
    padding: 40px 30px;
    direction: rtl;
    text-align: center;
    background-color: rgba(44, 26, 18, 0.75); 
    border: 1px solid var(--color4);
    color: var(--color3);
    top: 30vh; /* يضمن النزول عن النبار تماماً */
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    border-radius: 10px;
    z-index: 4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.shape h1 {
    line-height: 1.7;
    font-size: 24px;
}

/* =========================================
   4. الأزرار وأيقونات الاتصال العائمة
========================================= */
.btnCall {
    text-decoration: none;
    background: linear-gradient(45deg, var(--color2), var(--color1));
    padding: 12px 25px;
    color: var(--color3) !important;
    font-family: "Cairo", sans-serif;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid var(--color4);
}
.btnCall:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(193, 154, 107, 0.4);
}
.call, .callW {
    position: fixed;
    z-index: 1000;
    bottom: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.call { left: 20px; background-color: var(--color4); }
.callW { right: 20px; background-color: #25D366; }
.call a, .callW a { text-decoration: none; color: white; font-size: 24px; display: flex; }
.call a { color: var(--color1); }

/* =========================================
   5. سيكشن الإحصائيات (Flawless Stats Layout)
========================================= */
.stat h2 {
    text-align: center;
    font-family: "Cairo", sans-serif;
    font-size: 32px;
    color: var(--color1);
    margin: 60px 0 20px;
}
.information {
    padding: 20px 0;
}
.information .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 0 20px;
}
.information .one {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--color4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.information .one i {
    font-size: 36px;
    color: var(--color2);
    margin-bottom: 12px;
}
.information .one h2 {
    font-weight: 800;
    font-size: 38px;
    color: var(--color4);
    margin: 5px 0;
}
.information .one p {
    color: var(--color1);
    font-size: 16px;
    font-weight: 700;
}

/* =========================================
   6. الصفحات الداخلية (Services & Paints & About)
========================================= */
.grid.ab, .paints {
    display: grid;
    grid-template-columns: repeat(auto-fit , minmax(300px,1fr));
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 50px;
}
.grid.ab .co {
    position: relative;
    height: 400px; 
    border-radius: 15px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.grid.ab .co img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0.35;
    transition: 0.4s;
}
.grid.ab .co:hover img { transform: scale(1.05); opacity: 0.2; }
.grid.ab .co h2 {
    position: relative;
    z-index: 5;
    color: var(--color4);
    text-align: center;
    padding: 40px 20px 10px;
    font-size: 22px;
    font-family: "Cairo", sans-serif;
}
.paints .co-color {
    border-radius: 15px; 
    padding: 40px 20px;
    color: var(--color3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.paints .co-color img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--color4); margin-top: 15px; }

.about { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 0 20px; margin-top: 60px; }
.about .text { width: 50%; }
.about .photo { width: 45%; position: relative; }
.about img { width: 100%; height: auto; border-radius: 10px; }

/* =========================================
   7. تأثيرات الحركة العامة والفوتر
========================================= */
.hiddens { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.moves { opacity: 1 !important; transform: translateY(0); }

footer { background-color: #1A0F0A; text-align: center; padding: 50px 0 20px; border-top: 3px solid var(--color4); }
footer .grid { display: grid; grid-template-columns: repeat(auto-fit , minmax(280px,1fr)); gap: 30px; padding: 0 20px; }
footer .grid .co h2 { font-size: 22px; color: var(--color4) ; margin-bottom: 15px; }
footer .grid .co p, footer .grid .co ul li a, .footer { color: var(--color3); line-height: 1.6; text-decoration: none; font-size: 15px; }
footer ul li { margin-bottom: 8px; }
footer ul li a:hover { color: var(--color4); }
.footer { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

/* =========================================
   8. شاشات الموبايل والتجاوب الكامل (Responsive)
========================================= */
.container { margin-left: auto; margin-right: auto; }
@media (min-width:768px) { .container { width: 750px; } }
@media (min-width: 992px) { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1100px; } }

@media (max-width: 768px) {
    #link {
        display: block;
        font-size: 28px;
        color: var(--color4);
        cursor: pointer;
        z-index: 101;
    }
    header .nav ul {
        display: none; /* مخفية افتراضياً */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0; /* تفتح من اليسار بسلاسة */
        width: 270px;
        height: 100vh;
        background-color: var(--color1);
        z-index: 100;
        padding: 90px 20px 20px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
        align-items: flex-start;
        justify-content: flex-start;
        gap: 15px;
    }
    header .nav ul.open {
        display: flex; /* تظهر كـ Sidebar عند الفتح */
    }
    header .nav ul li {
        width: 100%;
        text-align: right;
    }
    header .nav ul li a {
        font-size: 19px;
        display: block;
        padding: 10px;
        border-bottom: 1px solid rgba(193, 154, 107, 0.15);
    }
    .shape { width: 92%; top: 22vh; padding: 25px 15px; }
    .shape h1 { font-size: 16px; }
    
    /* ضبط الإحصائيات لتكون جدول متناسق عمودين في الموبايل */
    .information .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    .information .one { padding: 20px 10px; }
    .information .one h2 { font-size: 28px; }
    .information .one p { font-size: 14px; }
    .information .one i { font-size: 28px; }

    .about { flex-direction: column; }
    .about .text, .about .photo { width: 100%; }
}