
/* =========================================================
   e-PinMall Premium Inner Footer
   Add this block to assets/css/main.css
   ========================================================= */

.ep-inner-footer {
    margin-top: 55px;
    background: #0f172a;
    color: #cbd5e1;
}

.ep-inner-footer .container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.ep-inner-footer-top {
    padding: 42px 0 34px;
}

.ep-footer-intro {
    max-width: 790px;
    margin: 0 auto 35px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.ep-inner-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.15fr 1.15fr;
    gap: 38px;
}

.ep-footer-brand {
    min-width: 0;
}

.ep-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
}

.ep-footer-logo img {
    display: block;
    width: 150px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.ep-footer-brand p {
    max-width: 245px;
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.65;
}

.ep-inner-footer h3 {
    margin: 2px 0 15px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.ep-inner-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ep-inner-footer li {
    margin: 9px 0;
    font-size: 13px;
    line-height: 1.4;
}

.ep-inner-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.ep-inner-footer a:hover {
    color: #fff;
}

.ep-footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 17px;
}

.ep-footer-socials a {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.ep-footer-socials a:hover {
    background: #263449;
    transform: translateY(-2px);
}

.ep-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.ep-contact-icon {
    width: 20px;
    flex: 0 0 20px;
    color: #8fd3f4;
    text-align: center;
}

.ep-footer-contact-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 9px;
    background: #086fa4;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
}

.ep-footer-contact-btn:hover {
    background: #087fb9;
    transform: translateY(-1px);
}

.ep-footer-contact-btn span {
    font-size: 15px;
}

.ep-inner-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
}

.ep-footer-bottom-row {
    min-height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    text-align: center;
    color: #7f8da3;
    font-size: 11px;
}

.ep-footer-bottom-row span + span::before {
    content: "•";
    margin-right: 7px;
    color: #475569;
}

.ep-footer-whatsapp,
.ep-footer-backtop {
    position: fixed;
    z-index: 2000;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0,0,0,.20);
}

.ep-footer-whatsapp {
    right: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
    background: #25d366;
    color: #fff !important;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(37,211,102,.30);
}

.ep-footer-whatsapp:hover {
    color: #fff !important;
    transform: translateY(-3px);
}

.ep-footer-backtop {
    right: 27px;
    bottom: 84px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: #0876b0;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.ep-footer-backtop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ep-footer-backtop:hover {
    background: #0a88c5;
}

/* Make sure a legacy footer does not appear alongside this one. */
body.ep-inner-page #footer,
body.ep-inner-page .ep-home-footer,
body.ep-inner-page .legacy-footer {
    display: none !important;
}

@media (max-width: 900px) {
    .ep-inner-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 24px;
    }

    .ep-footer-brand {
        grid-column: 1 / -1;
    }

    .ep-footer-brand p {
        max-width: 390px;
    }
}

@media (max-width: 600px) {
    .ep-inner-footer {
        margin-top: 35px;
    }

    .ep-inner-footer .container {
        width: calc(100% - 24px);
    }

    .ep-inner-footer-top {
        padding: 32px 0 25px;
    }

    .ep-footer-intro {
        margin-bottom: 28px;
        font-size: 12px;
        line-height: 1.65;
    }

    .ep-inner-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 27px 20px;
    }

    .ep-footer-brand {
        grid-column: 1 / -1;
    }

    .ep-footer-logo img {
        width: 135px;
    }

    .ep-footer-brand p {
        font-size: 12px;
    }

    .ep-inner-footer h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .ep-inner-footer li {
        margin: 8px 0;
        font-size: 11.5px;
    }

    .ep-footer-contact {
        grid-column: 1 / -1;
    }

    .ep-footer-contact-btn {
        width: 100%;
        box-sizing: border-box;
        margin-top: 8px;
    }

    .ep-footer-socials {
        margin-top: 14px;
    }

    .ep-footer-bottom-row {
        min-height: 70px;
        padding: 11px 0;
        flex-direction: column;
        gap: 3px;
        font-size: 10px;
    }

    .ep-footer-bottom-row span + span::before {
        display: none;
    }

    .ep-footer-whatsapp {
        right: 15px;
        bottom: 15px;
        width: 51px;
        height: 51px;
    }

    .ep-footer-backtop {
        right: 21px;
        bottom: 77px;
        width: 38px;
        height: 38px;
    }
}


/* Hide the entire inner-page footer on mobile, matching the homepage mobile behavior. */
@media (max-width: 800px) {
    body.ep-inner-page .ep-inner-footer,
    body.ep-inner-page .ep-footer-whatsapp,
    body.ep-inner-page .ep-footer-backtop {
        display: none !important;
    }
}


/* Final protection against legacy/global image sizing. */
.ep-inner-footer .ep-footer-logo img {
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
}

/* Mobile: hide footer and floating controls completely. */
@media screen and (max-width: 800px) {
    /* Footer content stays hidden on mobile. Floating controls remain visible. */
    body.ep-inner-page .ep-inner-footer {
        display: none !important;
    }

    body.ep-inner-page .ep-footer-whatsapp {
        display: grid !important;
        right: 15px;
        bottom: 15px;
    }

    body.ep-inner-page .ep-footer-backtop {
        display: grid !important;
        right: 21px;
        bottom: 77px;
    }
}


/* Mobile menu reliability */
@media screen and (max-width: 800px) {
    body.ep-inner-page .nav {
        position: relative;
        z-index: 1500;
    }

    body.ep-inner-page .nav.open {
        display: block !important;
    }

    body.ep-inner-page .mobile-menu-btn {
        position: relative;
        z-index: 1600;
        cursor: pointer;
        touch-action: manipulation;
    }
}
