/* Footer Styles for Rabbani Phone Website */

/* Footer */
footer {
    background: linear-gradient(to bottom, #111111, var(--primary-color));
    color: var(--light-text);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, rgba(212, 175, 55, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(212, 175, 55, 0.03) 87.5%, rgba(212, 175, 55, 0.03)),
        linear-gradient(150deg, rgba(212, 175, 55, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(212, 175, 55, 0.03) 87.5%, rgba(212, 175, 55, 0.03));
    background-size: 40px 70px;
    opacity: 0.5;
    z-index: -1;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
    border-radius: 8px;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2) drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.footer-menu li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 12px;
}

.footer-menu li a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    font-size: 14px;
}

.footer-menu li a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    padding-left: 5px;
}

/* Responsive Menu Layout */
@media (min-width: 768px) {
    .footer-menu-container .row {
        gap: 0;
    }
    
    .footer-menu-container .col-6 {
        padding-right: 10px;
    }
    
    .footer-menu-container .col-6:last-child {
        padding-left: 10px;
        padding-right: 15px;
    }
}

.contact-info {
    line-height: 1.8;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--light-text);
    text-decoration: underline;
}

.footer h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--accent-color);
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 30px 0;
}

.copyright {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.social-media-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.quick-contact {
    margin-top: 20px;
}

.btn-contact {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-contact:hover {
    background-color: #25D366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.qr-code-container {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.qr-code {
    max-width: 100%;
    border-radius: 5px;
}

.qr-code-container:hover {
    transform: scale(1.05);
}

/* WhatsApp Float Button styles removed - replaced with live chat widget */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    width: 45px;
    height: 45px;
    bottom: 40px;
    left: 40px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    width: 45px;
    height: 45px;
    bottom: 85px;
    left: 20px;
    background-color: rgba(212, 175, 55, 0.9);
    color: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Footer */
@media (max-width: 767px) {
    footer {
        text-align: center;
        padding-bottom: 80px; /* Space for WhatsApp float */
    }
    
    .footer h4 {
        margin-top: 25px;
        font-size: 20px;
        padding-bottom: 10px;
    }
    
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
    
    .footer-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        justify-content: center;
    }
    
    .footer-menu li {
        padding-left: 0;
        margin-bottom: 8px;
        width: auto;
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 20px;
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .footer-menu li::before {
        display: none;
    }
    
    .footer-menu li a {
        padding: 8px 12px;
        display: block;
        font-size: 13px;
    }
    
    .footer-menu li:hover {
        background-color: rgba(212, 175, 55, 0.1);
        transform: translateY(-2px);
    }
    
    .footer-menu li a:hover {
        padding-left: 12px;
        border-bottom-color: transparent;
    }
    
    .footer-menu-container {
        margin-top: 15px;
    }
    
    .footer-menu-container .col-6 {
        padding: 0 5px;
    }
    
    .social-media-icons {
        justify-content: center;
        gap: 10px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        background-color: rgba(212, 175, 55, 0.15);
    }
    
    .footer-logo {
        margin: 0 auto 15px;
        height: 60px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        left: 20px;
        font-size: 16px;
    }
    
    .quick-contact {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    .btn-contact {
        padding: 10px 20px;
        font-size: 16px;
        border-radius: 30px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .contact-info {
        background-color: rgba(255, 255, 255, 0.05);
        padding: 15px;
        border-radius: 10px;
        margin-top: 20px;
    }
    
    .footer-divider {
        margin: 20px 0;
    }
}
