/* ==========================================================================
   Footer Styles - Al-Tawajud Modern Engineering
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
    z-index: var(--z-fixed);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
    background: #1da851;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.45);
}

/* Footer - Light corporate with accent top stripe */
.site-footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-500), var(--accent-500), var(--secondary-500)) 1;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-grid);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
}

.footer__main {
    padding: var(--space-16) 0 var(--space-10);
    position: relative;
    z-index: 1;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
    gap: var(--space-10);
}

.footer__col--about {
    padding-left: 0;
}

.footer__logo img {
    max-height: 64px;
    width: auto;
    filter: none;
    margin-bottom: var(--space-4);
}

.footer__about-text {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: var(--space-6);
    font-size: 0.9375rem;
}

.footer__title {
    color: var(--color-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-5);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 3px;
    background: var(--primary-500);
    border-radius: var(--radius-full);
}

.footer__links li {
    margin-bottom: 0.65rem;
}

.footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.25s ease;
    padding: 0.25rem 0;
}

.footer__links a:hover {
    color: var(--primary-600);
    transform: translateX(-4px);
}

.footer__links a:hover svg {
    color: var(--primary-500);
}

.footer__links svg {
    opacity: 0.4;
    color: var(--accent-500);
    transition: opacity 0.25s ease;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer__contact li a {
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.footer__contact li a:hover {
    color: var(--primary-600);
}

.footer__contact svg {
    flex-shrink: 0;
    color: var(--primary-500);
    margin-top: 3px;
}

.footer__social {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--space-5);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-secondary);
    color: var(--secondary-600);
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 169, 224, 0.1);
    transition: all 0.25s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-link--facebook:hover { background: #1877f2; color: white; border-color: #1877f2; }
.social-link--twitter:hover { background: #1da1f2; color: white; border-color: #1da1f2; }
.social-link--instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743); color: white; border-color: transparent; }
.social-link--linkedin:hover { background: #0a66c2; color: white; border-color: #0a66c2; }
.social-link--youtube:hover { background: #ff0000; color: white; border-color: #ff0000; }

.footer__bottom {
    background: var(--primary-700);
    padding: var(--space-4) 0;
    position: relative;
    z-index: 1;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    margin: 0;
    text-align: center;
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer__col--about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__col--about {
        grid-column: span 1;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .footer__main {
        padding: var(--space-8) 0 var(--space-6);
    }

    .footer__about-text {
        font-size: 0.875rem;
    }

    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
    }
}
