/* تصميم احترافي وواقعي لكروت الخدمات - متوافق مع الهاتف والكمبيوتر */

.legal-services-menu {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* تصميم الكارت الأساسي */
.service-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15), 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* أيقونة الخدمة */
.icon-container {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
}

.icon-container i {
    font-size: 28px;
    color: #ffffff;
}

.icon-container.secondary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.25);
}

.icon-container.outline {
    background: #ffffff;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.icon-container.outline i {
    color: #3b82f6;
}

.service-card:hover .icon-container {
    transform: scale(1.1) rotate(5deg);
}

/* عنوان الخدمة */
.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    font-family: 'Cairo', sans-serif;
}

/* وصف الخدمة */
.service-description {
    font-size: 1rem;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 1rem;
    font-family: 'Cairo', sans-serif;
}

/* الشارات */
.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.service-badge.featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.service-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.service-badge.urgent {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* مؤشرات الثقة */
.trust-indicators {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.trust-icon {
    color: #3b82f6;
    font-size: 1rem;
}

/* زر الإجراء */
.action-button {
    display: inline-block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.action-button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

/* الكارت المميز */
.service-card.featured {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.service-card.featured .service-title {
    color: #92400e;
}

/* قائمة المميزات مع علامات صح */
.service-features {
    margin: 0.9rem 0;
    padding: 0.6rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.service-features li {
    padding: 0.45rem 0;
    padding-right: 1.75rem;
    position: relative;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}

.service-features li:hover {
    color: #1e293b;
    padding-right: 2.2rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.service-features li:hover::before {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

/* تصميم متجاوب للهاتف */
@media (max-width: 768px) {
    .legal-services-menu {
        padding: 2rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .icon-container {
        width: 56px;
        height: 56px;
    }
    
    .icon-container i {
        font-size: 24px;
    }
    
    .service-title {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .service-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* قائمة المميزات على الهاتف */
    .service-features {
        margin: 1.2rem 0;
        padding: 0.8rem 0;
    }
    
    .service-features li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        padding-right: 1.8rem;
        line-height: 1.5;
    }
    
    .service-features li::before {
        width: 20px;
        height: 20px;
        font-size: 0.85rem;
    }
    
    .trust-indicators {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .trust-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .action-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .service-card {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}

/* تأثيرات الحركة */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
