/* ==========================================
   Zawame Travel - Footer Styles (css/footer.css)
   ========================================== */

.footer {
    background: #060D17;
    color: #94A3B8;
    padding: 80px 0 0 0;
    font-size: 0.9rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

.footer h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.footer h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Accent border line under section headings */
.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--mustard-yellow);
    border-radius: 2px;
}

.footer p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #94A3B8;
}

/* Link List & Hover Transitions */
.footer a {
    display: inline-block;
    color: #94A3B8;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    width: 100%;
}

.footer a:hover {
    color: var(--mustard-light);
    transform: translateX(5px);
}

/* Contact Details Block */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #94A3B8;
    list-style: none;
}

.footer-contact i {
    color: var(--mustard-yellow);
    font-size: 1rem;
    width: 20px;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.footer-social a:hover {
    background: var(--mustard-yellow);
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Bottom Strip */
.footer-bottom {
    background: #03070D;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #64748B;
    margin-bottom: 0;
    width: auto;
}

.footer-bottom-links a:hover {
    color: var(--mustard-light);
    transform: none;
}

/* Floating Action Buttons */
.whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.whatsapp:hover {
    background: #1eb859;
    transform: scale(1.1);
}
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.back-top {
    position: fixed;
    bottom: 90px; /* Moved up to prevent hiding behind WhatsApp */
    right: 30px;
    background: var(--mustard-yellow);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none; /* Keep this 'none', let JS change it to 'flex' on scroll */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 99;
    font-size: 1.5rem; /* Ensures the icon is visible */
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Optional: Fallback in case you are using an SVG instead of an icon font */
.back-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.back-top:hover {
    background: var(--mustard-dark);
    transform: translateY(-3px);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* Tablet View */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

/* Mobile View */
@media (max-width: 576px) {
    .footer {
        padding-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .back-top {
        bottom: 75px; /* Neatly stacks above the mobile WhatsApp button */
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem; /* Scaled down slightly for mobile */
    }
}