/* ── 0. BASE: Black background ── */
.main-footer {
    background-color: #000000 !important;
    background-image: none !important;
}

/* ── 1. HEIGHT: Min padding for top bar & widgets ── */
.main-footer .upper-box {
    padding: 25px 0 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-footer .widgets-section {
    padding: 10px 0 0px !important;
}

/* ── 2. FOOTER COLUMN base ── */
.main-footer .footer-column {
    padding: 5px 15px;
    box-sizing: border-box;
}

/* ── 3. TYPOGRAPHY: High-contrast bold white ── */
.main-footer .widget-title {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.main-footer .text,
.main-footer .user-links li a {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.main-footer .user-links li a:hover {
    color: var(--theme-color1) !important;
    padding-left: 4px;
    transition: padding-left 0.2s ease;
}

/* ── 4. SERVICE PILLS ── */
.service-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    padding: 5px 13px;
    border-radius: 30px;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: all 0.3s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.service-pill:hover {
    background: var(--theme-color1);
    border-color: var(--theme-color1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ── 5. FOOTER IMAGE ── */
.footer-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.footer-image img:hover {
    transform: scale(1.04);
}

/* ── 6. FAB TRANSITIONS (smooth hide on footer scroll) ── */
.nearby-nurses-fab,
.nearby-fab {
    transition: opacity 0.4s ease, pointer-events 0s ease 0.4s !important;
}

/* ── 7. RESPONSIVE: DESKTOP (≥ 992px) — 5-col no-wrap ── */
@media (min-width: 992px) {
    .main-footer .widgets-section .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        align-items: flex-start;
    }

    .main-footer .widgets-section .row>.footer-column:nth-child(1) {
        flex: 0 0 16%;
        max-width: 16%;
    }

    .main-footer .widgets-section .row>.footer-column:nth-child(2) {
        flex: 0 0 14%;
        max-width: 14%;
    }

    .main-footer .widgets-section .row>.footer-column:nth-child(3) {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .main-footer .widgets-section .row>.footer-column:nth-child(4) {
        flex: 0 0 18%;
        max-width: 18%;
    }

    .main-footer .widgets-section .row>.footer-column:nth-child(5) {
        flex: 0 0 18%;
        max-width: 18%;
    }
}

/* ── 8. RESPONSIVE: TABLET (576px–991px) — 2–3 col wrap ── */
@media (max-width: 991px) {
    .main-footer .widgets-section .row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start;
    }

    /* About + Explore: side by side */
    .main-footer .widgets-section .row>.footer-column:nth-child(1),
    .main-footer .widgets-section .row>.footer-column:nth-child(2) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    /* Services: full width on tablet for pills to breathe */
    .main-footer .widgets-section .row>.footer-column:nth-child(3) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    /* Contact + Image: side by side */
    .main-footer .widgets-section .row>.footer-column:nth-child(4),
    .main-footer .widgets-section .row>.footer-column:nth-child(5) {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Upper box: email left, phone right */
    .main-footer .upper-box .contact-info {
        text-align: inherit;
    }
}

/* ── 9. RESPONSIVE: MOBILE (< 576px) — 2-col then full ── */
@media (max-width: 575px) {
    .main-footer .upper-box {
        padding: 12px 0 8px !important;
    }

    /* Stack email + phone, center them */
    .main-footer .upper-box .contact-info {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 8px;
    }

    .main-footer .upper-box .contact-info a {
        font-size: 14px !important;
    }

    /* 2-col grid: About + Explore, Contact + Image */
    .main-footer .widgets-section .row>.footer-column {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Services full width on mobile */
    .main-footer .widgets-section .row>.footer-column:nth-child(3) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Image centered on mobile */
    .main-footer .footer-image {
        text-align: center !important;
    }

    .service-pill {
        font-size: 11px !important;
        padding: 4px 10px;
    }
}

/* ── 10. COPYRIGHT BAR ── */
.main-footer .footer-bottom {
    padding: 0 !important;
    background: transparent !important;
}

.main-footer .footer-bottom .inner-container {
    padding: 4px 0 !important;
}

.main-footer .footer-bottom .copyright-text p {
    font-size: 10px !important;
    letter-spacing: 0.4px;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}