* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; direction:rtl; background:#f7f6f2; color:#222; }

/* NAV */
.nav { 
    /* تدرج يبدأ من "أخضر زيتوني فيراني" (يبرز الذهبي بقوة) وينتهي بكريمي لؤلؤي */
    background: linear-gradient(225deg, #2d4234 0%, #959c97 40%, #cbb17b 80%, #fdfbf7 100%); 
    padding: 0 40px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    height: 64px; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    /* ظل ناعم لزيادة الشعور بالسرعة والعمق */
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(203, 177, 123, 0.25);
}
.logo { color:#a8d85a; font-size:22px; font-weight:700; letter-spacing:1px; }
.logo span { color:#fff; }
.nav-links { display:flex; gap:28px; list-style:none; }
/* لون كلمات القائمة - أخضر زيتي عميق للتباين العالي */
.nav-links a { 
    color: #1a3a1a; /* درجة أخضر غامقة جداً تظهر بوضوح فوق الذهبي والكريمي */
    font-size: 16px; 
    text-decoration: none; 
    font-weight: 700; /* زيادة السمك لضمان القراءة */
    transition: all 0.2s ease; 
    
}

/* تأثير الماوس: يتحول للذهبي اللامع عند الوقوف عليه */
.nav-links a:hover { 
    color: #c5a059; 
    background: rgba(255, 255, 255, 0.2); /* خلفية بيضاء خفيفة جداً تبرز الكلمة */
    border-radius: 4px;
    transform: scale(1.05); /* تكبير بسيط جداً */
}
.nav-links a:hover { color:#a8d85a; }
.nav-cta { background:#a8d85a; color:#1a3a1a; border:none; padding:9px 22px; border-radius:6px; font-size:14px; font-weight:600; cursor:pointer; }

/* HERO */
.hero { 
    background:linear-gradient(135deg, #f4f8f2 0%, #e3f1dc 50%, #eef3f0 100%);
    min-height:560px;
    display:flex;
    align-items:center;
    padding:60px 60px 60px 40px;
    position:relative;
    overflow:hidden;
}

/* الإضاءات الخلفية */
.hero::before { 
    content:'';
    position:absolute;
    top:-60px;
    left:-60px;
    width:340px;
    height:340px;
    border-radius:50%;
    background:rgba(120,160,120,0.08);
}

.hero::after { 
    content:'';
    position:absolute;
    bottom:-80px;
    left:100px;
    width:220px;
    height:220px;
    border-radius:50%;
    background:rgba(120,160,120,0.06);
}

.hero-text { flex:1; z-index:2; }

/* البادج */
.hero-badge { 
    display:inline-block;
    background:rgba(110,168,58,0.15);
    color:#6ea83a;
    padding:6px 16px;
    border-radius:20px;
    font-size:13px;
    margin-bottom:18px;
    border:1px solid rgba(110,168,58,0.25);
}

/* العنوان */
.hero h1 { 
    font-size:42px;
    color:#2d3a2d;
    line-height:1.3;
    font-weight:700;
    margin-bottom:16px;
}

.hero h1 span { 
    color:#6ea83a;
}

/* النص */
.hero p { 
    color:#5f6f5f;
    font-size:16px;
    line-height:1.8;
    max-width:480px;
    margin-bottom:32px;
}

.hero-btns { display:flex; gap:14px; }

/* الأزرار */
.btn-primary { 
    background:#6ea83a;
    color:#fff;
    padding:13px 28px;
    border-radius:8px;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    border:none;
}

.btn-outline { 
    background:transparent;
    color:#6ea83a;
    padding:13px 28px;
    border-radius:8px;
    font-weight:600;
    font-size:15px;
    cursor:pointer;
    border:2px solid #6ea83a;
}

/* الصورة */
.hero-img { 
    width:340px;
    height:320px;
    background:linear-gradient(160deg,#eef6ea,#dcefd0);
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    z-index:2;
    position:relative;
    overflow:hidden;
}

.hero-img-inner { 
    width:90%;
    height:auto;
    border-radius:14px;
    background:linear-gradient(135deg,#f4f8f2,#e3f1dc);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.garden-icon { font-size:64px; }

.hero-img-label { 
    color:#6b8f6b;
    font-size:14px;
    font-weight:600;
}

/* STATS BAR */
.stats-bar { background:#fff; padding:28px 60px; display:flex; justify-content:space-around; border-bottom:1px solid #e8e4de; }
.stat { text-align:center; }
.stat-num { font-size:30px; font-weight:700; color:#2d5a2d; }
.stat-label { font-size:16px; color:#292828; margin-top:4px; }

/* SECTION */
.section { padding:60px 60px; }
.section-header { text-align:center; margin-bottom:40px; }
.section-tag { display:inline-block; background:#eaf5d6; color:#3a7a20; padding:5px 16px; border-radius:20px; font-size:13px; margin-bottom:12px; }
.section-title { font-size:30px; font-weight:700; color:#1a3a1a; margin-bottom:10px; }
.section-sub { color:#666; font-size:15px; max-width:520px; margin:0 auto; line-height:1.7; }
/* تنسيق الحاوية الرئيسية - 3 كروت في الصف */
.services-grid { 
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 20px; 
    direction: rtl; /* لضمان الترتيب من اليمين لليسار */
}

/* تنسيق الكارت والأنيميشن */
.service-card { 
    background: #fff; 
    border-radius: 14px; 
    border: 1px solid #e8e4de; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* الأنيميشن */
    overflow: hidden; /* لمنع خروج الصورة عن الحواف */
    padding: 0; /* أزلنا البادنج لأن الصور تأخذ عرض الكارت كاملاً */
}

/* حركة الكارت للأمام عند الوقوف عليه */
.service-card:hover { 
    transform: translateY(-8px); /* يتحرك للأعلى قليلاً */
    box-shadow: 0 12px 35px rgba(45,90,45,0.15); 
    z-index: 10;
}

/* تنسيق الصورة لتناسب الكارت */
.img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05); /* زووم خفيف للصورة عند الحركة */
}

/* ضبط شكل النصوص داخل الكارت */
.service-content {
    padding: 20px;
}

/* لجعل الكروت تظهر تحت بعضها في الموبايل */
@media (max-width: 992px) {
    .services-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}

@media (max-width: 600px) {
    .services-grid { 
        grid-template-columns: 1fr !important; 
    }
}
/* PROCESS */
.process-steps { display:flex; justify-content:space-between; position:relative; }
.process-steps::before { content:''; position:absolute; top:34px; right:10%; left:10%; height:2px; background:linear-gradient(to left,#a8d85a,#2d5a2d); z-index:0; }
.step { flex:1; text-align:center; z-index:1; padding:0 10px; }
.step-num { width:68px; height:68px; border-radius:50%; background:#2d5a2d; color:#a8d85a; font-size:22px; font-weight:700; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; border:4px solid #fff; box-shadow:0 0 0 2px #2d5a2d; }
.step h3 { font-size:15px; font-weight:600; color:#1a3a1a; margin-bottom:6px; }
.step p { font-size:13px; color:#333; line-height:1.6; }

/* PROJECTS */
.projects-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.project-card { border-radius:12px; overflow:hidden; position:relative; height:300px; cursor:pointer; }
.project-bg { width:100%; height:100%; display:flex; align-items:flex-end; padding:16px; }
.project-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-label { background:rgba(0,0,0,0.55); color:#fff; padding:6px 12px; border-radius:6px; font-size:13px; font-weight:600; backdrop-filter:blur(4px); }
.p1 { background:linear-gradient(135deg,#3a7a20,#6aab30); }
.p2 { background:linear-gradient(135deg,#1a5a4a,#2d8a6a); }
.p3 { background:linear-gradient(135deg,#4a6a1a,#7aaa30); }
.p4 { background:linear-gradient(135deg,#5a3a1a,#8a6a30); }
.p5 { background:linear-gradient(135deg,#1a3a5a,#3a6a8a); }
.p6 { background:linear-gradient(135deg,#3a1a5a,#7a4a9a); }

/* TESTIMONIALS */
.testimonials-bg { background:linear-gradient(135deg,#1a3a1a,#2d5a2d); padding:60px; }
.testimonials-bg .section-title { color:#fff; }
.testimonials-bg .section-sub { color:#b8d4a0; }
.testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:36px; }
.testi-card { background:rgba(255,255,255,0.08); border:1px solid rgba(168,216,90,0.2); border-radius:14px; padding:24px; }
.stars { color:#a8d85a; font-size:16px; margin-bottom:10px; }
.testi-text { color:#d5e8c4; font-size:14px; line-height:1.8; margin-bottom:14px; }
.testi-author { display:flex; align-items:center; gap:10px; }
.author-avatar { width:40px; height:40px; border-radius:50%; background:#a8d85a; display:flex; align-items:center; justify-content:center; font-weight:700; color:#1a3a1a; font-size:15px; }
.author-name { color:#fff; font-size:14px; font-weight:600; }
.author-city { color:#8ab870; font-size:12px; }

/* FAQ */
.faq-list { max-width:700px; margin:0 auto; }
.faq-item { border-bottom:1px solid #e8e4de; padding:18px 0; }
.faq-q { font-size:16px; font-weight:600; color:#1a3a1a; margin-bottom:8px; }
.faq-a { font-size:14px; color:#666; line-height:1.8; }

/* CTA SECTION */
.cta-section { background:#a8d85a; padding:60px; text-align:center; }
.cta-section h2 { font-size:32px; font-weight:700; color:#1a3a1a; margin-bottom:12px; }
.cta-section p { color:#3a6a1a; font-size:16px; margin-bottom:28px; }
.cta-btns { display:flex; justify-content:center; gap:14px; }
.cta-btn-main { background:#1a3a1a; color:#a8d85a; padding:14px 32px; border-radius:8px; font-size:16px; font-weight:700; cursor:pointer; border:none; }
.cta-btn-wa { background:#25d366; color:#fff; padding:14px 32px; border-radius:8px; font-size:16px; font-weight:600; cursor:pointer; border:none; }

/* FOOTER */
/* FOOTER المطور بتدرج ذهبي وأخضر */
.footer { 
    /* التدرج يبدأ من الزاوية العليا اليسرى ليتماشى مع الهيدر */
    background: linear-gradient(225deg, #2d4234 0%, #2d5a27 35%, #b8860b 85%, #f1d592 100%); 
    padding: 48px 60px 24px; 
    border-top: 1px solid rgba(203, 177, 123, 0.3); /* خط ذهبي رفيع في الأعلى للربط مع الهيدر */
}
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:36px; }
.footer-logo { font-size:24px; font-weight:700; color:#a8d85a; margin-bottom:12px; }
.footer-desc { color:#8ab870; font-size:14px; line-height:1.8; }
/* تكبير عناوين أعمدة الفوتر */
.footer-col h3 { 
    color: #d5e8c4; 
    font-size: 19px; /* تم تكبيره من 16px */
    font-weight: 700; 
    margin-bottom: 22px; 
    border-bottom: 2px solid rgba(168,216,90,0.2); 
    padding-bottom: 10px; 
    display: inline-block;
}

/* تكبير روابط الفوتر ونصوصه */
.footer-col a, .footer-desc { 
    color: #5bf08d; 
    font-size: 16px; /* تم تكبيره من 14px ليكون واضح جداً */
    line-height: 1.8; 
    text-decoration: none; 
    margin-bottom: 12px; 
    display: block;
    transition: 0.3s;
}

/* تكبير لوجو الفوتر */
.footer-logo { 
    font-size: 28px; /* تم تكبيره ليكون بارزاً */
    font-weight: 900; 
    color: #a8d85a; 
    margin-bottom: 15px; 
}

/* سطر الحقوق السفلي */
.footer-bottom { 
    font-size: 15px; /* تم تكبيره قليلاً */
    color: #ebf5e9; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 25px; 
    margin-top: 30px; 
    text-align: center; 
}
.whatsapp-float { position:fixed; bottom:28px; left:28px; background:#25d366; width:60px; height:60px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:35px; cursor:pointer; box-shadow:2px 2px 10px rgba(0,0,0,0.2); z-index:1000; animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
/* إصلاح الموبايل والتابلت */
@media (max-width: 768px) {
    .nav { padding: 0 15px; height: auto; flex-direction: column; gap: 10px; padding-bottom: 10px; }
    .nav-links { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .hero { flex-direction: column; text-align: center; padding: 40px 20px; }
    .hero h1 { font-size: 28px; }
    .hero-img { width: 100%; height: 250px; margin-top: 30px; }
    .services-grid, .testimonials-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .process-steps { flex-direction: column; gap: 30px; }
    .process-steps::before { display: none; }
    .footer { padding: 40px 20px !important; }
    .footer-grid { display: block !important; }
    .footer-col, .footer-grid > div { width: 100% !important; margin-bottom: 35px !important; text-align: center !important; }
}

/* تنسيق شبكة الخدمات */
.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}
.img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.service-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* إحصائيات الموبايل */
@media screen and (max-width: 768px) {
    .stats-bar {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
        padding: 5px !important;
    }
    .stat {
        padding: 15px 5px !important;
        background: #fafafa;
        border-radius: 10px;
        border: 1px solid #f0f0f0;
    }
    .stat-num { font-size: 24px !important; display: block; margin-bottom: 5px; }
    .stat-label { font-size: 12px !important; color: #666 !important; }
    .service-content { text-align: center !important; padding: 5px 5px !important; }
    .service-content h3 { font-size: 22px !important; margin-bottom: 12px !important; }
    .service-content p { font-size: 16px !important; line-height: 1.8 !important; }
    .service-content span { font-size: 15px !important; display: block; margin-top: 10px; }
}

/* معرض الأعمال - تابلت (من 769px إلى 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .project-card {
        height: 250px !important; /* ارتفاع مناسب للتابلت */
    }
}

/* معرض الأعمال - موبايل (أقل من 768px) */
@media (max-width: 768px) {
    #projects {
        padding: 20px 10px !important; /* تقليل الفراغات العلوية للسكشن */
    }

    .projects-grid {
        grid-template-columns: 1fr !important; /* صورة واحدة في السطر */
        gap: 15px !important; /* المسافة بين الصور طولياً */
        padding: 0 !important;
    }

    .project-card {
        width: 100% !important;
        height: auto !important; /* إلغاء الارتفاع الثابت لمنع الفراغ */
        margin: 0 0 10px 0 !important; /* مسافة بسيطة جداً تحت كل كارت */
        border-radius: 8px !important;
    }

    .project-bg {
        height: auto !important; /* يتبع حجم الصورة */
        aspect-ratio: 4 / 3; /* يحافظ على أبعاد الصورة ويمنع الفراغ الأسود أو الأبيض */
        margin: 0 !important;
        padding: 0 !important;
    }

    .project-bg img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

    /* الكونتينر */
    .project-bg {
        width: 100%;
        aspect-ratio: 4 / 3; /* نفس نسبة صورك */
        overflow: hidden; /* يمنع أي خروج */
        border-radius: 4px;
    }       

    /* الصورة نفسها (ده المهم 👇) */
    .project-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* أو contain لو عايزة بدون قص */
        display: block;
    }

}

/* خدمات - موبايل */
@media (max-width: 768px) {

    /* Section الأب */
    #services {
        padding: 20px 16px !important; 
        margin: 0 !important; /* يمنع أي فراغ خارجي */
        overflow-x: hidden;
        background: #f7f6f2; /* نفس الخلفية الأصلية */
    }

    /* الشبكة */
    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* عمود واحد للموبايل */
        gap: 12px; 
        margin: 0 auto;
        width: 100%;
        padding: 0;
    }

    /* الكارد */
    .service-card {
        width: 100% !important;
        margin: 0 auto; 
        border-radius: 5px;
        overflow: hidden;
    }

    /* الصورة */
    .img-container {
        width: 100%;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-radius: 5px 5px 0 0;
    }

    .service-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* المحتوى */
    .service-content {
        padding: 10px;
        text-align: right;
    }

    .service-content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .service-content p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .service-content span {
        font-size: 14px;
        font-weight: 500;
        color: #455233;
    }

}
/* --- تنسيق قسم رحلتك معنا (الخطوات) --- */
.process-steps-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 5px;
    padding: 5px;
}

@media (max-width: 768px) {
    .process-steps-container {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px;
    }
    .process-steps-container .step {
        width: 100% !important;
        margin: 0 !important;
    }
    .process-steps-container .fifth-step {
        grid-column: span 2; 
        width: 50% !important;
        margin: 0 auto !important;
    }
}