/* Below-fold sections: don't compete with hero for LCP */
.aboutSection,
.whyChooseUs,
.seoLinksSection,
.faqSection2,
.contactSection {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Static homepage hero — replaces Revolution Slider for fast LCP */
.hero-static {
    position: relative;
    min-height: 973px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-static__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    z-index: 0;
}

.hero-static__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 17, 63, 0.72) 0%, rgba(2, 17, 63, 0.25) 55%, transparent 100%);
    z-index: 1;
}

.hero-static__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 120px 15px 80px;
}

.hero-static__eyebrow {
    display: inline-block;
    background-color: #fc3329;
    letter-spacing: -0.18px;
    font-size: 18px;
    line-height: 40px;
    padding: 0 21px;
    margin: 0 0 24px;
}

.hero-static__title {
    font-size: clamp(26px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 24px;
    max-width: 630px;
}

.hero-static__lead {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 540px;
}

@media (max-width: 767px) {
    .hero-static {
        min-height: clamp(520px, 118vw, 973px);
    }

    .hero-static__content {
        padding-top: 80px;
    }
}

/* Legacy slider_01 min-height fallback for pages still using RS */
.slider_01 .rev_slider_wrapper {
    min-height: 973px;
    position: relative;
    z-index: 1;
}

.slider_01 .rev_slider_wrapper .rev_slider {
    min-height: inherit;
}

@media (max-width: 767px) {
    .slider_01 .rev_slider_wrapper {
        min-height: clamp(520px, 118vw, 973px);
    }
}

/* Service intro: limit shift from carousel init below the fold */
.serviceSlider.owl-carousel:not(.owl-loaded) {
    min-height: 480px;
}

.serviceSlider .ss01Content {
    min-height: 200px;
}

/* Service row: balance the orange copy block and the right-side slider.
   Reduce orange padding + heading size so heights match instead of leaving
   a large empty gap beneath the cards. */
@media (min-width: 1200px) {
    .serviceSection > .container > .row,
    .serviceSection .row {
        align-items: center;
    }

    .serviceLeft {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .serviceLeft h2 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 24px;
    }

    .serviceLeft p {
        font-size: 16px;
        line-height: 1.65;
    }
}

.about-spec-row .testCatItem {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-spec-row .testCatItem p {
    flex: 1 1 auto;
}

.testCatItem a {
    color: #fc3329;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.testCatItem:hover a {
    color: #ffffff;
}

/* Logo and content images: explicit box for Lighthouse */
.logo img,
.footerLogo img {
    width: 180px;
    height: auto;
    aspect-ratio: 1300 / 350;
}

img.rev-slidebg {
    width: 100%;
    height: auto;
    aspect-ratio: 1408 / 736;
}

.serviceSlider img,
.serviceItem img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}

button.menuBtn,
button#backtotop {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    font: inherit;
    color: inherit;
}

/* Inner pages: reserve banner space and paint bg before theme.css finishes */
.pageBanner {
    min-height: 320px;
    background: url(../images/bg/10.jpg) no-repeat center center / cover;
    background-color: #02113f;
}

.pageBanner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 17, 63, 0.8);
    z-index: 0;
}

.pageBanner .container {
    position: relative;
    z-index: 1;
}

/* System font first — avoid 6s FOIT while Google Fonts load */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.heebo {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Heebo", sans-serif;
}
