/**
 * Footer Styles
 * Extracted from footer.php
 *
 * @package Nashrah
 */

/* =====================================================
   FOOTER STYLES
   ===================================================== */
.alaw-footer {
    background: linear-gradient(180deg, var(--ct-primary) 0%, #f1f3f5 100%);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
    margin-top: 0;
    position: relative;
}

.alaw-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ct-accent-gradient);
}

.alaw-footer__brand h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

.alaw-footer__logo-img {
    max-height: 100px;
    height: auto;
    width: auto;
    display: block;
    margin-bottom: 1.5rem;
}

.alaw-footer__brand img,
.alaw-footer__brand .custom-logo {
    max-height: 100px !important;
    height: auto !important;
    width: auto !important;
    display: block;
    margin-bottom: 1.5rem;
}

.alaw-footer__social {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-top: 1.5rem;
    width: 100%;
}

.alaw-footer__social-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    background: rgba(12, 114, 162, 0.1);
    border: 2px solid var(--ct-accent);
    border-radius: 50%;
    color: var(--ct-accent);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.alaw-footer__social-link:hover {
    background: var(--ct-accent);
    color: var(--ct-text);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(12, 114, 162, 0.3);
}

.alaw-footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.alaw-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--ct-accent-gradient);
}

.alaw-footer__bottom a:hover {
    text-decoration: underline;
}

.alaw-footer ul.list-unstyled a {
    transition: color 0.3s ease;
}

.alaw-footer ul.list-unstyled a:hover {
    color: var(--ct-accent) !important;
}

/* =====================================================
   FLOATING WHATSAPP BUTTON
   ===================================================== */
.alaw-whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: whatsappBounce 2s ease-in-out infinite;
}

.alaw-whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.alaw-whatsapp-float:active {
    transform: scale(0.95);
}

.alaw-whatsapp-float i {
    position: relative;
    z-index: 2;
}

.alaw-whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* =====================================================
   RESPONSIVE - TABLET
   ===================================================== */
@media (max-width: 991.98px) {
    .alaw-footer__social {
        justify-content: flex-start;
        gap: 0.875rem;
    }

    .alaw-footer__social-link {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        font-size: 1.15rem;
    }
}

/* =====================================================
   RESPONSIVE - MOBILE
   ===================================================== */
@media (max-width: 767.98px) {
    .alaw-footer {
        padding-bottom: 2rem;
    }

    .alaw-footer h5::after {
        margin-inline: auto 0;
    }

    .alaw-footer__logo-img {
        max-height: 80px;
    }

    .alaw-footer__brand img,
    .alaw-footer__brand .custom-logo {
        max-height: 80px !important;
    }

    .alaw-footer__social {
        gap: 0.75rem !important;
        margin-top: 1.25rem;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }

    .alaw-footer__social-link {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.1rem;
    }

    .alaw-whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 575.98px) {
    .alaw-footer__logo-img {
        max-height: 70px;
    }

    .alaw-footer__brand img,
    .alaw-footer__brand .custom-logo {
        max-height: 70px !important;
    }

    .alaw-footer__social {
        gap: 0.625rem !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }

    .alaw-footer__social-link {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 1rem;
    }

    .alaw-footer .row > [class*="col-"] {
        margin-bottom: 2rem;
    }

    .alaw-footer .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    .alaw-whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 15px;
        left: 15px;
    }
}
