/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, #0B3C5D, #0A3454);
    color: white;
    padding: var(--space-xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 20%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* شعار الفوتر */
.footer-logo .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-md);
    text-decoration: none;
}

.footer-logo .logo {
    width: 50px;
    height: 50px;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* أقسام الفوتر */
.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-services li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    position: relative;
    padding-right: 15px;
}

.footer-links a::before,
.footer-services a::before {
    content: '›';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--secondary-color);
    padding-right: 20px;
}

.footer-links a:hover::before,
.footer-services a:hover::before {
    opacity: 1;
    right: -5px;
}

/* معلومات الاتصال */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.newsletter {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    width: 50px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: #E6B800;
    transform: scale(1.05);
}

/* الجزء السفلي من الفوتر */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--secondary-color);
}



/* التجاوب */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
    
    .whatsapp-float {
        left: 20px;
        bottom: 20px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn {
        padding: 15px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: var(--space-lg) 0 var(--space-md);
    }
    
    .footer-content {
        gap: var(--space-lg);
    }
    
    .whatsapp-float {
        left: 15px;
        bottom: 15px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        padding: 12px;
    }
}

/* زر الواتساب العائم - بتصميمك المميز */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* قيمة افتراضية للـ LTR */
    z-index: 1000;
}

/* إذا كان الموقع باللغة العربية (اتجاه RTL) */
html[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 30px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-btn i {
    font-size: 1.5rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.whatsapp-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* تحسينات للغة العربية */
.whatsapp-btn {
    direction: rtl;
    padding: 15px 25px 15px 20px;
}

.whatsapp-btn i {
    order: 2;
}

.whatsapp-text {
    order: 1;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px; /* لـ LTR */
    }
    
    html[dir="rtl"] .whatsapp-float {
        left: auto;
        right: 20px; /* لـ RTL */
    }
    
    .whatsapp-btn {
        padding: 12px 20px;
        gap: 8px;
    }
    
    .whatsapp-text {
        font-size: 0.9rem;
    }
    
    .whatsapp-btn i {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-btn {
        padding: 10px 15px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn i {
        font-size: 1.5rem;
        animation: none;
    }
}   