/**
 * Mustasfaa.com - Footer Stylesheet
 * Handles responsive grid layout, legal disclaimer section, floating WhatsApp CTA, and mobile sticky CTA bar
 */

.main-footer {
    background-color: #0F172A; /* Slate 900 */
    color: #94A3B8; /* Slate 400 */
    padding: 70px 0 0 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--primary);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

@media (min-width: 992px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.25fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-about .logo-light .logo-text {
    color: var(--white);
}

.footer-desc {
    margin-top: 15px;
    line-height: 1.6;
}

.trust-badges-footer {
    margin-top: 20px;
}

.trust-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 500;
}

.trust-badge-item .icon {
    width: 16px;
    height: 16px;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2.5px;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94A3B8;
    display: inline-block;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.footer-contact-info li a {
    color: #94A3B8;
}

.footer-contact-info li a:hover {
    color: var(--white);
}

.footer-contact-info .icon {
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-cta-box {
    margin-top: 10px;
}

/* Highlighted Medical Disclaimer Banner (facilitation disclosure) */
.footer-disclaimer {
    background-color: #0b0f19; /* Deeper slate */
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-disclaimer p {
    color: #64748B; /* Slate 500 */
    margin-bottom: 0;
}

.footer-disclaimer p strong {
    color: #E2E8F0;
}

.footer-disclaimer a {
    color: var(--secondary);
    text-decoration: underline;
}

.footer-disclaimer a:hover {
    color: var(--white);
}

/* Bottom Copyright Bar */
.footer-bottom {
    background-color: #0b0f19;
    padding: 20px 0;
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 768px) {
    .footer-bottom-container {
        flex-direction: row;
    }
}

.copyright-text {
    font-size: 0.8rem;
    color: #64748B;
    margin-bottom: 0;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #64748B;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--white);
}

/* Floating WhatsApp Button with ripple effect */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

/* Mobile Sticky Enquiry Action Bar */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 10px 16px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
    z-index: 990;
    border-top: 1px solid var(--border);
}

.mobile-sticky-cta .btn {
    width: 100%;
    margin-top: 0;
}

/* Adjust layout bottom margin on mobile when sticky bar is active */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Offset the mobile sticky CTA height */
    }
    .floating-whatsapp {
        bottom: 80px; /* Push WhatsApp button up so it doesn't overlap sticky bar */
        width: 50px;
        height: 50px;
        right: 20px;
    }
    .floating-whatsapp .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}
