/* Critical performance layer for mariresearch.com. */

/*
 * The sticky-header placeholders are injected after load. LiteSpeed UCSS
 * cannot see them while it scans the server-rendered HTML and may remove the
 * theme's original display rules. Keep them collapsed until the matching
 * header is actually sticky; otherwise an 88px white band appears on desktop.
 */
html body .header-placeholder {
    display: none !important;
}

html body .header.sticky-true.active.transparent-false + .header-placeholder {
    display: block !important;
}

@font-face {
    font-family: "CambriaLocal";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("cambria-latin.woff") format("woff");
}

@font-face {
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 200 900;
    font-stretch: 100%;
    font-display: swap;
    src: url("nunito-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
        U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Nunito Sans";
    font-style: italic;
    font-weight: 200 900;
    font-stretch: 100%;
    font-display: swap;
    src: url("nunito-sans-latin-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
        U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The original hero points at the retired marihc.com host. */
.home .vc_custom_1696167165328 {
    background-image: url("mari-hero.webp") !important;
    min-height: clamp(620px, calc(100svh - 96px), 900px) !important;
    background-position: center !important;
    background-size: cover !important;
}

/* Replace the old insecure HTTP background request with a local asset. */
.home .vc_custom_1550834305264 {
    background-image: url("map-transparent-dark.webp") !important;
}

/* Reserve space for the two header states before their images arrive. */
.header-logo img.logo {
    width: 170px;
    height: 92px;
    object-fit: contain;
}

.header-logo img.sticky-logo {
    width: 144px;
    height: 92px;
    object-fit: contain;
}

iframe {
    max-width: 100%;
}

/* Native scrolling replaces the 60 KB NiceScroll dependency. */
.mobile-container,
.modal-container,
.site-sidebar {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Skip layout/paint work for home-page sections well below the first view. */
@supports (content-visibility: auto) {
    .home main.page-content > .wpb-content-wrapper > .vc_row:nth-child(n + 4) {
        content-visibility: auto;
        contain-intrinsic-size: auto 760px;
    }
}

@media (max-width: 767px) {
    .home .vc_custom_1696167165328 {
        min-height: 680px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
