/* Elite IT final visual cleanup */

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

section {
    position: relative;
}

/* cleaner section rhythm */
section:not(.et-hero) {
    scroll-margin-top: 90px;
}

/* Cards */
.et-card,
.v8-card,
.related-card,
.product-card {
    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.et-card:hover,
.v8-card:hover,
.related-card:hover,
.product-card:hover {
    transform: translateY(-4px);
}

/* Related products belongs to main content, not below footer */
section:has(h2) {
    overflow: hidden;
}

/* footer must always visually terminate the page */
footer {
    position: relative;
    z-index: 5;
    margin-bottom: 0 !important;
}

footer + * {
    margin-top: 0;
}

/* No orphan whitespace after page */
body {
    min-height: 100vh;
}

body::after {
    display: none !important;
}

/* tighten redundant access-control presentation */
[id*="access"],
[class*="access"] {
    box-sizing: border-box;
}

/* Professional section spacing */
@media (min-width: 900px) {
    section {
        padding-top: clamp(48px, 5vw, 80px);
        padding-bottom: clamp(48px, 5vw, 80px);
    }
}

/* Mobile cleanup */
@media (max-width: 768px) {
    h1 {
        text-wrap: balance;
    }

    section {
        overflow-x: clip;
    }
}
