/**
 * تصميم فوتر عصري واحترافي
 * Modern Professional Footer Design
 */

/* ===== Footer Main Styles ===== */
.main-footer {
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    color: #e0e6ed;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #14664c 0%, #f39c12 50%, #14664c 100%);
}

/* ===== Footer Top Section ===== */
.footer-top {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.footer-column {
    margin-bottom: 2.5rem;
}

/* ===== Widget Titles ===== */
.footer-widget h4,
.footer-widget .widget-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-widget h4::after,
.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #14664c, #f39c12);
    border-radius: 2px;
}

[dir="ltr"] .footer-widget h4::after,
[dir="ltr"] .footer-widget .widget-title::after {
    right: auto;
    left: 0;
}

/* ===== Footer Logo ===== */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 1.2rem;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

/* ===== Footer Description ===== */
.footer-desc {
    line-height: 1.9;
    margin-bottom: 1.8rem;
    color: #b8c5d6;
    font-size: 0.95rem;
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(20, 102, 76, 0.15), rgba(243, 156, 18, 0.15));
    color: #ffffff;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: linear-gradient(135deg, #14664c, #f39c12);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
    border-color: rgba(243, 156, 18, 0.5);
}

/* ===== Footer Links ===== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
    position: relative;
    padding-right: 1.2rem;
    transition: all 0.3s ease;
}

[dir="ltr"] .footer-links li {
    padding-right: 0;
    padding-left: 1.2rem;
}

.footer-links li::before {
    content: '\f0da';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 0;
    color: #f39c12;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

[dir="ltr"] .footer-links li::before {
    content: '\f0d9';
    right: auto;
    left: 0;
}

.footer-links li:hover::before {
    right: -5px;
    opacity: 1;
}

[dir="ltr"] .footer-links li:hover::before {
    right: auto;
    left: -5px;
}

.footer-links a {
    color: #b8c5d6;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #f39c12;
    padding-right: 0.5rem;
}

[dir="ltr"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 0.5rem;
}

/* ===== Contact Info ===== */
.footer-widget .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-widget .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.footer-widget .contact-item:hover {
    background: rgba(20, 102, 76, 0.1);
    border-color: rgba(20, 102, 76, 0.3);
    transform: translateX(-5px);
}

[dir="ltr"] .footer-widget .contact-item:hover {
    transform: translateX(5px);
}

.footer-widget .contact-item i {
    color: #f39c12;
    margin-top: 0.2rem;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.footer-widget .contact-item div {
    flex: 1;
}

.footer-widget .contact-item a {
    color: #e0e6ed;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-widget .contact-item a:hover {
    color: #f39c12;
}

/* ===== Footer Bottom ===== */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.8rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0;
    color: #9ba8b7;
    font-size: 0.95rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #9ba8b7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: #f39c12;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.2);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #14664c, #0d5940);
    color: white;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #f39c12, #e08e09);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

/* ===== WhatsApp Button ===== */
.whatsapp-button {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E, #075E54);
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.3), rgba(18, 140, 126, 0.3));
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

[dir="rtl"] .whatsapp-button {
    right: auto;
    left: 30px;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .footer-top {
        padding: 3rem 0 2rem;
    }
    
    .footer-widget h4,
    .footer-widget .widget-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .main-footer {
        margin-top: 3rem;
    }
    
    .footer-top {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-column {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-widget h4::after,
    .footer-widget .widget-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links li {
        padding-right: 0;
        padding-left: 0;
    }
    
    .footer-links li::before {
        display: none;
    }
    
    .footer-widget .contact-item:hover {
        transform: none;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .back-to-top,
    .whatsapp-button {
        right: 20px;
        bottom: 20px;
    }
    
    .whatsapp-button {
        bottom: 85px;
    }
    
    [dir="rtl"] .back-to-top,
    [dir="rtl"] .whatsapp-button {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 576px) {
    .footer-widget h4,
    .footer-widget .widget-title {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-desc {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-widget .contact-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .copyright p,
    .footer-bottom-links a {
        font-size: 0.85rem;
    }
}

