/* ==========================================================
   HOSTING MAGAZINE — ENTERPRISE FOOTER V1
   Global footer design system
   ========================================================== */


/* ----------------------------------------------------------
   HIDE LEGACY AZERA SHOP FOOTER
   The custom HM footer is injected separately via wp_footer.
   ---------------------------------------------------------- */

footer:not(.hm-site-footer),
#footer:not(.hm-site-footer),
.footer:not(.hm-site-footer),
.footer-bottom-wrap,
.footer-bottom,
.site-info:not(.hm-footer-site-info){
    display:none!important;
}


/* ----------------------------------------------------------
   ROOT
   ---------------------------------------------------------- */

.hm-site-footer{
    position:relative;

    width:100%;

    margin:0!important;
    padding:0!important;

    overflow:hidden;

    border:0!important;

    background:
        radial-gradient(
            circle at 14% 0%,
            rgba(16,185,129,.10),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 110%,
            rgba(37,99,235,.16),
            transparent 30%
        ),
        #071426!important;

    color:#cbd5e1!important;
}

.hm-site-footer::before{
    content:"";

    position:absolute;
    top:0;
    left:0;
    right:0;

    height:3px;

    background:
        linear-gradient(
            90deg,
            #10b981 0%,
            #2563eb 55%,
            #60a5fa 100%
        );
}

.hm-footer-shell{
    position:relative;
    z-index:1;

    width:min(1180px,calc(100% - 48px));

    margin:0 auto;

    padding:48px 0 27px;
}


/* ----------------------------------------------------------
   MAIN ROW
   ---------------------------------------------------------- */

.hm-footer-main{
    display:grid;
    grid-template-columns:minmax(260px,.85fr) minmax(0,1.35fr);

    gap:70px;
    align-items:start;

    padding-bottom:34px;
}


/* ----------------------------------------------------------
   BRAND
   ---------------------------------------------------------- */

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

.hm-footer-brand__logo{
    display:inline-flex;
    align-items:center;

    margin-bottom:18px;

    text-decoration:none!important;
}

.hm-footer-brand__logo img{
    display:block;

    width:auto;
    max-width:175px;
    height:50px;

    object-fit:contain;

    filter:
        brightness(0)
        invert(1);

    opacity:.96;
}

.hm-footer-brand__fallback{
    color:#ffffff!important;

    font-size:21px;
    font-weight:900;

    letter-spacing:-.02em;
}

.hm-footer-brand__title{
    max-width:390px;

    margin:0 0 8px!important;

    color:#ffffff!important;

    font-size:18px!important;
    line-height:1.35!important;
    font-weight:850!important;
}

.hm-footer-brand__text{
    max-width:410px;

    margin:0!important;

    color:#94a3b8!important;

    font-size:13px!important;
    line-height:1.7!important;
}


/* ----------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------- */

.hm-footer-nav-wrap{
    min-width:0;
}

.hm-footer-nav__label{
    margin:0 0 15px!important;

    color:#60a5fa!important;

    font-size:10px!important;
    line-height:1.2!important;
    font-weight:900!important;

    letter-spacing:.11em!important;
    text-transform:uppercase!important;
}

.hm-footer-nav{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:10px;
}

.hm-footer-nav a{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:12px;

    min-height:48px;

    padding:12px 14px;

    border:1px solid rgba(148,163,184,.16);
    border-radius:10px;

    background:rgba(255,255,255,.035);

    color:#e2e8f0!important;

    font-size:12.5px!important;
    line-height:1.3!important;
    font-weight:750!important;

    text-decoration:none!important;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease!important;
}

.hm-footer-nav a::after{
    content:"→";

    flex:0 0 auto;

    color:#60a5fa;

    font-size:14px;
    font-weight:900;
}

.hm-footer-nav a:hover{
    transform:translateY(-2px);

    border-color:rgba(96,165,250,.42);

    background:rgba(37,99,235,.10);

    color:#ffffff!important;
}


/* ----------------------------------------------------------
   BOTTOM
   ---------------------------------------------------------- */

.hm-footer-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:30px;

    padding-top:24px;

    border-top:1px solid rgba(148,163,184,.16);
}

.hm-footer-legal{
    margin:0!important;

    color:#94a3b8!important;

    font-size:11.5px!important;
    line-height:1.6!important;
}

.hm-footer-legal strong{
    color:#e2e8f0!important;
    font-weight:800!important;
}

.hm-footer-meta{
    display:flex;
    align-items:center;

    gap:8px;

    flex:0 0 auto;

    color:#64748b;

    font-size:10.5px;
    font-weight:700;
}

.hm-footer-meta__dot{
    width:6px;
    height:6px;

    border-radius:999px;

    background:#10b981;

    box-shadow:
        0 0 0 4px rgba(16,185,129,.10);
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media(max-width:900px){

    .hm-footer-shell{
        width:min(100% - 36px,1180px);

        padding-top:42px;
    }

    .hm-footer-main{
        grid-template-columns:1fr;

        gap:32px;
    }

    .hm-footer-nav{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media(max-width:620px){

    .hm-footer-shell{
        width:min(100% - 28px,1180px);

        padding-top:36px;
        padding-bottom:23px;
    }

    .hm-footer-main{
        gap:28px;

        padding-bottom:27px;
    }

    .hm-footer-brand__logo img{
        max-width:150px;
        height:44px;
    }

    .hm-footer-brand__title{
        font-size:17px!important;
    }

    .hm-footer-brand__text{
        font-size:12.5px!important;
    }

    .hm-footer-nav{
        grid-template-columns:1fr;
    }

    .hm-footer-nav a{
        min-height:46px;

        font-size:12.5px!important;
    }

    .hm-footer-bottom{
        display:block;

        padding-top:20px;
    }

    .hm-footer-legal{
        font-size:11px!important;
    }

    .hm-footer-meta{
        margin-top:15px;
    }

}


/* ----------------------------------------------------------
   VERY SMALL
   ---------------------------------------------------------- */

@media(max-width:380px){

    .hm-footer-shell{
        width:calc(100% - 22px);
    }

    .hm-footer-nav a{
        padding-left:12px;
        padding-right:12px;
    }

}



/* ==========================================================
   FOOTER LOGO FIX V1
   Preserve original Hosting Magazine logo colors
   ========================================================== */

.hm-site-footer .hm-footer-brand__logo{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;

    padding:8px 10px!important;

    border:1px solid rgba(255,255,255,.10)!important;
    border-radius:12px!important;

    background:rgba(255,255,255,.96)!important;

    box-shadow:
        0 8px 24px rgba(0,0,0,.10)!important;
}

.hm-site-footer .hm-footer-brand__logo img{
    width:auto!important;
    max-width:175px!important;
    height:auto!important;
    max-height:50px!important;

    object-fit:contain!important;

    filter:none!important;
    opacity:1!important;
}

@media(max-width:620px){

    .hm-site-footer .hm-footer-brand__logo{
        padding:7px 9px!important;
    }

    .hm-site-footer .hm-footer-brand__logo img{
        max-width:150px!important;
        max-height:44px!important;
    }

}
