/* ==========================================================================
   XMR THEME 3.11.0
   Project-specific homepage experience
========================================================================== */

body.page-home {
    background: #f4f6f8;
}

/* Hero */

body.page-home .nesa-hero {
    min-height: 720px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

body.page-home .nesa-hero::after {
    content: "";
    position: absolute;
    right: -14vw;
    bottom: -42%;
    z-index: 1;
    width: min(62vw, 920px);
    aspect-ratio: 1;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(223, 23, 40, .20),
            rgba(223, 23, 40, 0) 68%
        );
}

body.page-home .nesa-hero__content {
    position: relative;
    padding-left: clamp(18px, 2.6vw, 38px);
}

body.page-home .nesa-hero__content::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 4px;
    left: 0;
    width: 4px;
    background: var(--theme-primary, var(--primary, #df1728));
    border-radius: 999px;
    box-shadow: 0 0 28px rgba(223, 23, 40, .42);
}

body.page-home .nesa-hero h1 {
    max-width: 890px;
    text-shadow: 0 12px 32px rgba(0, 0, 0, .30);
}

body.page-home .nesa-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .82);
}

body.page-home .nesa-hero__actions {
    margin-top: 34px;
}

body.page-home .nesa-hero__actions .button {
    min-height: 54px;
    padding: 15px 23px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .025em;
}

body.page-home .nesa-hero__scroll {
    bottom: 28px;
}

/* Credibility band */

body.page-home .nesa-trust--compact {
    position: relative;
    z-index: 4;
    padding: 46px 0 54px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(18, 27, 38, .06);
}

body.page-home .nesa-trust--compact .nesa-trust__head {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: end;
    margin-bottom: 30px;
}

body.page-home .nesa-trust--compact .nesa-trust__head h2 {
    margin: 8px 0 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

body.page-home .nesa-trust--compact .nesa-trust__head p {
    max-width: 680px;
    margin: 0;
    color: #687481;
    font-size: 16px;
    line-height: 1.72;
}

body.page-home .nesa-trust--compact .nesa-trust__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-color: #dce2e7;
}

body.page-home .nesa-trust--compact .nesa-trust__card {
    min-height: 190px;
    padding: 27px 25px;
}

body.page-home .nesa-trust--compact .nesa-trust__card h3 {
    margin-top: 30px;
    font-size: 20px;
}

body.page-home .nesa-trust--compact .nesa-trust__card p {
    font-size: 14px;
}

/* Main BRP product programmes */

body.page-home .brp-offer-cards--dark {
    padding: clamp(88px, 9vw, 126px) 0;
    background:
        radial-gradient(
            circle at 7% 0%,
            rgba(223, 23, 40, .30),
            transparent 30%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(47, 91, 150, .15),
            transparent 34%
        ),
        linear-gradient(145deg, #081019, #151f2a 64%, #0c141d);
}

body.page-home .brp-offer-cards--dark .brp-offer-cards__head {
    margin-bottom: 38px;
    padding-bottom: 34px;
}

body.page-home .brp-offer-cards--dark .brp-offer-cards__head h2 {
    max-width: 980px;
    font-size: clamp(42px, 5.7vw, 74px);
}

body.page-home .brp-offer-cards--dark .brp-offer-card {
    min-height: 100%;
    border-radius: 18px;
}

body.page-home .brp-offer-cards--dark .brp-offer-card__media {
    min-height: 260px;
}

body.page-home .brp-offer-cards--dark .brp-offer-card__media img {
    padding: 22px 20px 14px;
}

body.page-home .brp-offer-cards--dark .brp-offer-card__content {
    padding: 24px;
}

body.page-home .brp-offer-cards--dark .brp-offer-card__content p {
    font-size: 13px;
}

/* Service and ownership support */

body.page-home .nesa-split {
    padding-top: clamp(82px, 9vw, 128px);
    padding-bottom: clamp(82px, 9vw, 128px);
}

body.page-home .nesa-split__media img {
    height: clamp(500px, 53vw, 680px);
    border-radius: 22px;
}

body.page-home .nesa-split__content h2 {
    max-width: 760px;
    font-size: clamp(42px, 5vw, 70px);
    letter-spacing: -.045em;
}

body.page-home .nesa-split__content p {
    max-width: 690px;
}

body.page-home .nesa-split__content li {
    padding: 14px 0;
}

body.page-home .nesa-split__content .button {
    min-height: 52px;
    margin-top: 8px;
    padding: 14px 21px;
    border-radius: 8px;
}

body.page-home .nesa-split--dark {
    background:
        radial-gradient(
            circle at 82% 10%,
            rgba(223, 23, 40, .13),
            transparent 30%
        ),
        #111922;
}

body.page-home .nesa-split--image-right {
    background:
        linear-gradient(
            135deg,
            rgba(223, 23, 40, .045),
            transparent 48%
        ),
        #f3f5f7;
}

body.page-home .nesa-split--image-right .nesa-split__media img {
    box-shadow: 0 30px 80px rgba(25, 34, 44, .16);
}

/* Latest news */

body.page-home .nesa-actuality-grid {
    padding: clamp(82px, 8vw, 116px) 0;
    background: #ffffff;
}

body.page-home .nesa-actuality-grid__head {
    margin-bottom: 40px;
}

body.page-home .nesa-actuality-card {
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(20, 28, 40, .07);
}

/* Closing CTA */

body.page-home .nesa-cta {
    min-height: 610px;
}

body.page-home .nesa-cta__media img {
    object-position: center center;
}

body.page-home .nesa-cta__overlay {
    background:
        linear-gradient(
            90deg,
            rgba(6, 12, 18, .92) 0%,
            rgba(6, 12, 18, .65) 54%,
            rgba(6, 12, 18, .18) 100%
        );
}

body.page-home .nesa-cta h2 {
    max-width: 860px;
    font-size: clamp(44px, 5.6vw, 76px);
    letter-spacing: -.045em;
}

body.page-home .nesa-cta__actions .button {
    min-height: 52px;
    padding: 14px 21px;
    border-radius: 8px;
}

@media (max-width: 1080px) {
    body.page-home .nesa-trust--compact .nesa-trust__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-home .nesa-trust--compact .nesa-trust__card:nth-child(2) {
        border-right: 0;
    }

    body.page-home .nesa-trust--compact .nesa-trust__card:nth-child(-n + 2) {
        border-bottom: 1px solid #dce2e7;
    }
}

@media (max-width: 900px) {
    body.page-home .nesa-trust--compact .nesa-trust__head {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.page-home .nesa-split__media img {
        height: 500px;
    }
}

@media (max-width: 700px) {
    body.page-home .nesa-hero {
        min-height: 690px;
    }

    body.page-home .nesa-hero__content {
        padding-left: 18px;
    }

    body.page-home .nesa-hero__content::before {
        width: 3px;
    }

    body.page-home .nesa-hero__actions {
        margin-top: 26px;
    }

    body.page-home .nesa-trust--compact {
        padding: 54px 0;
    }

    body.page-home .nesa-trust--compact .nesa-trust__grid {
        grid-template-columns: 1fr;
    }

    body.page-home .nesa-trust--compact .nesa-trust__card,
    body.page-home .nesa-trust--compact .nesa-trust__card:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #dce2e7;
    }

    body.page-home .nesa-trust--compact .nesa-trust__card:last-child {
        border-bottom: 0;
    }

    body.page-home .brp-offer-cards--dark .brp-offer-card__media {
        min-height: 230px;
    }

    body.page-home .nesa-split__media img {
        height: 390px;
    }

    body.page-home .nesa-cta {
        min-height: 650px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-home .nesa-hero::after {
        display: none;
    }
}
