/* =========================================================
   ELITE IT FINAL HEADER / HERO / FOOTER CLEANUP
   ========================================================= */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove accidental blank elements above site */
body > br:first-child,
body > p:empty:first-child,
body > div:empty:first-child {
    display: none !important;
}

/* ---------- HEADER ---------- */

.et-topbar,
.site-topbar,
header,
.site-header {
    margin-top: 0 !important;
}

.site-header,
.et-header {
    position: relative;
    z-index: 30;
}

/* ---------- HERO ---------- */

/* remove oversized gap below navigation */
.et-hero {
    padding-top: 58px !important;
    margin-top: 0 !important;
    min-height: auto !important;
}

.et-hero-in {
    padding-top: 0 !important;
    align-items: center !important;
}

/* Prevent inherited oversized top spacing */
.et-hero > .et-wrap,
.et-hero .et-wrap {
    margin-top: 0 !important;
}

@media (min-width: 1100px) {
    .et-hero {
        padding-top: 55px !important;
        padding-bottom: 70px !important;
    }
}

/* ---------- FOOTER ---------- */

footer {
    margin: 0 !important;
    padding: 54px 0 26px !important;
    overflow: hidden !important;
}

footer .et-wrap,
footer .footer-wrap,
footer .footer-grid {
    align-items: flex-start !important;
}

/* Better balanced columns */
footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr 1fr 1fr !important;
    gap: 52px !important;
}

/* Footer brand */
footer .footer-brand,
footer .brand,
footer .footer-logo-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

footer img[src*="elite-official-logo"],
footer .footer-logo img,
footer .brand img {
    width: 78px !important;
    height: auto !important;
    max-height: 78px !important;
    object-fit: contain !important;
    margin-bottom: 10px !important;
}

/* Avoid cramped duplicate logo/name treatment */
footer .brand-name,
footer .footer-brand-name {
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    margin: 0 0 4px !important;
}

footer .brand-subtitle,
footer .footer-subtitle {
    font-size: 11px !important;
    letter-spacing: .15em !important;
    opacity: .7 !important;
    margin-bottom: 20px !important;
}

/* Footer headings */
footer h3,
footer h4 {
    margin: 0 0 18px !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
}

/* Footer links */
footer ul {
    margin: 0 !important;
    padding: 0 !important;
}

footer li {
    margin: 0 0 11px !important;
}

footer a {
    line-height: 1.5 !important;
}

/* footer bottom copyright */
footer .footer-bottom,
footer .copyright {
    margin-top: 42px !important;
    padding-top: 22px !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
}

/* absolutely no visual garbage below footer */
footer + br,
footer + p:empty,
footer + div:empty {
    display: none !important;
}

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

@media (max-width: 900px) {

    .et-hero {
        padding-top: 36px !important;
    }

    footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 600px) {

    footer .footer-grid {
        grid-template-columns: 1fr !important;
    }

    footer img[src*="elite-official-logo"],
    footer .footer-logo img,
    footer .brand img {
        width: 70px !important;
    }
}
