/* === 🛠️ تنسيقات صفحة الخدمات (المحدثة) === */

/* 1. Hero Section */
.services-hero {
    padding-top: 180px; padding-bottom: 100px;
    background: var(--bg-hero);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.hero-subtitle {
    display: inline-block;
    background: var(--primary-light); color: var(--primary);
    padding: 8px 20px; border-radius: 50px;
    font-weight: bold; font-size: 0.9rem; margin-bottom: 20px;
    border: 1px solid rgba(255, 102, 0, 0.2);
}
.services-hero h1 {
    font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; color: var(--text-main);
}
.services-hero h1 span { color: var(--primary); }
.services-hero p {
    font-size: 1.2rem; color: var(--text-gray); max-width: 700px; margin: 0 auto 30px; line-height: 1.6;
}
.btn-primary-hero {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 15px 40px; border-radius: 50px; font-weight: bold;
    text-decoration: none; transition: 0.3s;
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.3);
}
.btn-primary-hero:hover { transform: translateY(-3px); background: var(--primary-dark); }

/* 2. SEO Text Section (الجديد) */
.seo-section { padding: 60px 0 20px; }
.seo-box {
    background: var(--bg-card);
    padding: 50px; border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    max-width: 900px; margin: 0 auto;
    box-shadow: var(--shadow);
}
.seo-box h2 {
    font-size: 2rem; color: var(--text-main); margin-bottom: 20px;
}
.seo-box p {
    font-size: 1.1rem; line-height: 2; color: var(--text-gray);
}
.seo-box strong { color: var(--primary); }

/* 3. Services Grid */
.services-list { padding: 100px 0; background-color: var(--bg-body); }

.services-grid {
    display: grid;
    /* 3 أعمدة في الشاشات الكبيرة */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.service-box {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer; /* مؤشر اليد */
    display: flex; flex-direction: column; align-items: center; text-align: center;
}

.service-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.icon-wrapper {
    width: 80px; height: 80px;
    background: var(--primary-light); color: var(--primary);
    border-radius: 50%; /* دائري */
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin-bottom: 25px;
    transition: 0.3s;
}
.service-box:hover .icon-wrapper {
    background: var(--primary); color: #fff; transform: rotate(10deg);
}

.service-box h3 {
    font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; color: var(--text-main);
}
.service-box p {
    color: var(--text-gray); font-size: 0.95rem; line-height: 1.7; margin-bottom: 25px;
}

/* جملة "اضغط للطلب" */
.tap-hint {
    font-size: 0.85rem; color: var(--primary); font-weight: bold;
    border: 1px solid var(--primary); padding: 5px 15px; border-radius: 20px;
    margin-top: auto; opacity: 0; transition: 0.3s;
}
.service-box:hover .tap-hint { opacity: 1; }

/* 4. Modal Styles (النافذة المنبثقة) */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}
.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto; padding: 40px;
    border-radius: 15px; width: 90%; max-width: 500px;
    position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease;
}
@keyframes slideDown { from {top: -50px; opacity: 0;} to {top: 0; opacity: 1;} }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

.close-btn {
    position: absolute; top: 15px; left: 20px;
    font-size: 2rem; font-weight: bold; color: var(--text-gray); cursor: pointer;
}
.close-btn:hover { color: var(--primary); }

.modal-header { text-align: center; margin-bottom: 25px; }
.modal-header h3 { font-size: 1.5rem; color: var(--text-main); margin-bottom: 5px; }

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-group label { 
    display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.95rem; 
    color: var(--primary); /* لون العناوين برتقالي */
}
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; 
    border: 1px solid var(--border);
    border-radius: 8px; font-family: 'Tajawal'; outline: none; transition: 0.3s;
    background-color: var(--bg-body);
    color: var(--text-main);
}
.form-group input:focus, .form-group textarea:focus { 
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,102,0,0.1); 
}
.modal-submit {
    width: 100%; background: var(--primary); color: #fff;
    padding: 14px; border: none; border-radius: 8px;
    font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.3s;
}
.modal-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* 5. CTA Section */
.cta-section { padding: 60px 0; margin-bottom: 80px; }
.cta-box {
    background: var(--primary); color: #fff;
    padding: 60px; border-radius: 20px; text-align: center;
    box-shadow: 0 20px 50px rgba(255, 102, 0, 0.25);
}
.cta-box h2 { color: #fff; margin-bottom: 15px; font-size: 2.5rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 35px; font-size: 1.2rem; }
.btn-white {
    background: #fff; color: var(--primary); padding: 15px 45px;
    border-radius: 50px; font-weight: bold; text-decoration: none;
    display: inline-block; transition: 0.3s;
}
.btn-white:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* === 📱 Mobile Responsive === */
@media (max-width: 991px) {
    .services-hero { padding-top: 140px; padding-bottom: 60px; }
    .services-hero h1 { font-size: 2.2rem; }
    
    .seo-box { padding: 30px 20px; }
    .seo-box h2 { font-size: 1.5rem; }
    
    /* شبكة الخدمات عمود واحد في الموبايل */
    .services-grid { grid-template-columns: 1fr; }
    
    .cta-box { padding: 40px 20px; }
    .cta-box h2 { font-size: 1.8rem; }
}