/* =========================================================
   KUANTUM SERVIS v0.13.0 — FINAL MICRO POLISH
   - Home hero: tiny breathing room below header
   - Footer page: no white tail
   - Footer CTA eyebrow visible + tighter vertical rhythm
   - LOCALVERI credit styling
   - Empty brand cards removed by renderer, visual grid kept clean
========================================================= */

/* 1) Home hero: move the whole banner down just a touch, not dramatically. */
body.home .ks-banner,
body.blog .ks-banner{
    margin-top:16px!important;
}
body.home .ks-banner__inner,
body.blog .ks-banner__inner{
    padding-top:calc(var(--ks-header-safe-home) + var(--ks-adminbar-safe) + 38px)!important;
}

/* 2) Footer CTA: reduce the disproportionate gap above it. */
.ks-footer-v2{
    padding-top:20px!important;
}
.ks-footer-v2__cta-wrap{
    margin-bottom:42px!important;
}
.ks-footer-v2__cta .ks-eyebrow,
.ks-footer-v2__cta .ks-eyebrow--light{
    color:#8edcff!important;
    opacity:1!important;
    text-shadow:0 0 24px rgba(142,220,255,.18);
}

/* Keep the real footer separated from the CTA, while keeping the page rhythm balanced. */
.ks-footer-v2__body{
    margin-top:0!important;
}

/* 3) Footer page itself: make the dark footer visually reach the bottom of the viewport. */
html:has(body.ks-footer-page),
body.ks-footer-page,
body.ks-footer-page #wrap_all,
body.ks-footer-page #main,
body.ks-footer-page .main_color,
body.ks-footer-page .container_wrap,
body.ks-footer-page .template-page,
body.ks-footer-page .content,
body.ks-footer-page .entry-content-wrapper{
    background:#031428!important;
}
body.ks-footer-page #wrap_all,
body.ks-footer-page #main{
    min-height:100vh!important;
}
body.ks-footer-page .template-page,
body.ks-footer-page .content,
body.ks-footer-page .entry-content-wrapper{
    padding-bottom:0!important;
    margin-bottom:0!important;
}
body.ks-footer-page .ks-footer-v2{
    margin-bottom:0!important;
    background:#fff!important;
}
body.ks-footer-page #main:after,
body.ks-footer-page .main_color:after{
    content:none!important;
    display:none!important;
}
body.ks-footer-page #socket,
body.ks-footer-page #footer{
    margin:0!important;
}

/* 4) Bottom attribution. */
.ks-footer-v2__bottom-inner{
    justify-content:space-between!important;
    flex-wrap:wrap;
}
.ks-footer-v2__credit{
    color:#7893ab!important;
}
.ks-footer-v2__credit a{
    color:#8edcff!important;
    font-weight:800!important;
    letter-spacing:.7px;
    text-decoration:none!important;
}
.ks-footer-v2__credit a:hover{
    color:#fff!important;
}

/* 5) Logo grid: if anything still resolves as visually empty, don't let an empty shell consume space. */
.ks-logo-card:empty{
    display:none!important;
}
.ks-logo-card img[src=""],
.ks-logo-card img:not([src]){
    display:none!important;
}
.ks-logo-card:not(:has(img)):not(:has(strong)){
    display:none!important;
}

@media(max-width:767px){
    body.home .ks-banner,
    body.blog .ks-banner{
        margin-top:10px!important;
    }
    body.home .ks-banner__inner,
    body.blog .ks-banner__inner{
        padding-top:calc(78px + var(--ks-adminbar-safe))!important;
    }
    .ks-footer-v2{padding-top:14px!important}
    .ks-footer-v2__cta-wrap{margin-bottom:28px!important}
    .ks-footer-v2__bottom-inner{justify-content:flex-start!important;gap:10px 18px!important}
}
