/* ============================================
   FOOTER STYLES - BAFAI Website (FULL)
   Includes bottom white decorative image
   ============================================ */

/* Footer Variables */
:root {
    --footer-bg: #1e293b;
    --footer-text: #cbd5e1;
    --footer-heading: #ffffff;
    --footer-border: #1e293b;
    --footer-hover: #4f46e5;
    --footer-transition: all 0.3s ease;
}

/* Main Footer Container */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    z-index: 1;
}

/* ===== WHITE DECORATIVE IMAGE AT BOTTOM EDGE ===== */
.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 100px;
    background-image: url('../img/3-1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    /* transform: skewY(-2deg); */
    transform-origin: bottom left;
    opacity: 0.1;          /* Adjust between 0 (fully transparent) and 1 (fully opaque) */
    pointer-events: none;
    z-index: 2;
}

/* Fallback if you don't have an image yet – simple white curve */
/*
.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: white;
    border-radius: 40px 40px 0 0;
    pointer-events: none;
    z-index: 2;
}
*/

/* Ensure footer content sits ABOVE the white image */
.footer .container,
.footer .footer-top,
.footer .footer-bottom {
    position: relative;
    z-index: 3;
}

/* Footer Top Section */
.footer-top {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--footer-border);
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes dark logo white – adjust if your logo is already light */
}

/* Footer About Text */
.footer-about p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--footer-text);
    font-size: 0.875rem;
}

/* (App Store buttons removed – no CSS needed) */

/* Footer Widget */
.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-title {
    color: var(--footer-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #503a98, #21a37a);
    border-radius: 3px;
}

/* Footer Menu */
.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu ul li {
    margin-bottom: 0.75rem;
}

.footer-menu ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--footer-transition);
    display: inline-block;
    font-size: 0.875rem;
}

.footer-menu ul li a:hover {
    color: var(--footer-hover);
    transform: translateX(5px);
}

/* Newsletter Section */
.footer-newsletter p {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.subscribe-form {
    position: relative;
    margin-bottom: 1rem;
}

.subscribe-form span {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--footer-text);
    z-index: 1;
}

.subscribe-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-border);
    border-radius: 2rem;
    color: var(--footer-heading);
    transition: var(--footer-transition);
    font-size: 0.875rem;
}

.subscribe-form .form-control:focus {
    outline: none;
    border-color: var(--footer-hover);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.subscribe-form .form-control::placeholder {
    color: var(--footer-text);
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8125rem;
}

/* Footer Links (Terms & Conditions / Privacy Policy) */
.footer-link {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-link li a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: var(--footer-transition);
}

.footer-link li a:hover {
    color: var(--footer-hover);
}

/* Social Icons */
.social-icon {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--footer-transition);
    font-size: 0.875rem;
}

.social-icon a:hover {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: white;
    transform: translateY(-3px);
}

/* Row Gap Utilities */
.row-gap-4 {
    row-gap: 1.5rem;
}
.row-gap-2 {
    row-gap: 0.5rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 991px) {
    .footer-top {
        padding: 3rem 0 2rem;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu ul li a:hover {
        transform: translateX(0) translateY(-2px);
    }
    
    .footer-about {
        text-align: center;
    }
    
    .social-icon {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-link {
        justify-content: center;
        margin: 0.75rem 0;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-logo img {
        height: 38px;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .social-icon a {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    /* Adjust white image height on mobile if needed */
    .footer::before {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .footer-link {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999; /* high value to ensure it's above everything */
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #503a98; /* fallback */
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.fab-btn:hover {
    background: #3b2a73;
    transform: scale(1.05);
}

.clear-cart {
    background: #dc3545;
}

.clear-cart:hover {
    background: #c82333;
}

.scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}