/* =========================================================
   MARVALET
   HOME PAGE
========================================================= */


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            #080808 0%,
            #080808 24%,
            rgba(8, 8, 8, 0.97) 32%,
            rgba(8, 8, 8, 0.82) 43%,
            rgba(8, 8, 8, 0.45) 57%,
            rgba(8, 8, 8, 0.12) 76%,
            rgba(8, 8, 8, 0.02) 100%
        ),
        var(--hero-image);

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}


.hero-container {
    width: 100%;

    margin: 0;

    padding-left: 45px;
    padding-right: 45px;
}


.hero-content {
    width: 58%;

    max-width: 690px;

    padding: 100px 0;
}


.hero h1 {
    margin-bottom: 25px;

    color: #ffffff;

    font-size:
        clamp(
            3rem,
            5vw,
            5rem
        );

    line-height: 0.98;

    letter-spacing: -2px;

    text-transform: uppercase;
}


.hero-text {
    max-width: 550px;

    margin-bottom: 30px;

    color: #b6b6b6;

    font-size: 1rem;
}


.hero-buttons {
    display: flex;

    gap: 14px;

    flex-wrap: wrap;
}



/* =========================================================
   TRUST STRIP
========================================================= */

.trust-strip {
    background: #111111;

    border-top: 1px solid #222222;

    border-bottom: 1px solid #222222;
}


.trust-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);
}


.trust-item {
    padding: 28px 20px;

    text-align: center;

    border-right: 1px solid #252525;
}


.trust-item:last-child {
    border-right: none;
}


.trust-icon {
    margin-bottom: 10px;
}


.trust-icon i {
    color: #ffffff;

    font-size: 1.45rem;
}


.trust-item h3 {
    margin-bottom: 6px;

    color: #ffffff;

    font-size: 0.8rem;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}


.trust-item p {
    color: #8f8f8f;

    font-size: 0.8rem;
}



/* =========================================================
   GENERAL HOMEPAGE SECTIONS
========================================================= */

.section {
    padding: 85px 0;
}


.section-dark {
    background: #111111;
}


.section-heading {
    max-width: 720px;

    margin: 0 auto 45px;

    text-align: center;
}


.section-heading h2 {
    margin-bottom: 12px;

    color: #ffffff;

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );

    line-height: 1.1;

    text-transform: uppercase;
}


.section-heading > p:not(.eyebrow) {
    color: #999999;
}


.home-services-section {
    background: #080808;
}


.home-gallery-section {
    background: #080808;
}



/* =========================================================
   SERVICES
========================================================= */

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.service-card {
    overflow: hidden;

    background: #111111;

    border: 1px solid #262626;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}


.service-card:hover {
    transform: translateY(-6px);

    border-color: #555555;
}


.service-card-image {
    height: 190px;

    overflow: hidden;

    background: #111111;
}


.service-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}


.service-card:hover
.service-card-image img {
    transform:
        scale(1.05);
}


.service-card-content {
    padding: 22px;
}


.service-card h3 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 1rem;

    text-transform: uppercase;
}


.service-card-content > p {
    color: #999999;

    font-size: 0.85rem;
}


.card-link {
    display: inline-block;

    margin-top: 20px;

    color: #ffffff;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


.card-link:hover {
    color: #c9cdd1;
}


.section-cta {
    margin-top: 35px;

    text-align: center;
}



/* =========================================================
   BEFORE & AFTER SECTION
========================================================= */

.before-after-section {
    padding: 90px 0;

    background: #0d0d0d;
}


.before-after-heading {
    margin-bottom: 45px;
}



/* =========================================================
   BEFORE / AFTER SLIDER
========================================================= */

.before-after-slider {
    --slider-position: 50%;

    position: relative;

    width: 100%;

    height: 520px;

    overflow: hidden;

    background: #080808;

    border: 1px solid #292929;

    cursor: ew-resize;

    user-select: none;

    touch-action: pan-y;
}



/* =========================================================
   BOTH IMAGES
========================================================= */

.comparison-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    pointer-events: none;

    user-select: none;
}



/* =========================================================
   AFTER IMAGE
========================================================= */

.comparison-after-image {
    z-index: 1;
}



/* =========================================================
   BEFORE IMAGE
========================================================= */

.comparison-before-layer {
    position: absolute;

    inset: 0;

    z-index: 2;

    overflow: hidden;

    clip-path:
        inset(
            0
            calc(
                100% -
                var(--slider-position)
            )
            0
            0
        );
}


.comparison-before-image {
    z-index: 2;
}



/* =========================================================
   SMALL OVERLAY
========================================================= */

.before-after-slider::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 3;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            transparent 25%,
            transparent 75%,
            rgba(0, 0, 0, 0.12) 100%
        );
}



/* =========================================================
   BEFORE / AFTER LABELS
========================================================= */

.result-label {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 6;

    padding: 8px 15px;

    background:
        rgba(
            5,
            5,
            5,
            0.88
        );

    border:
        1px solid #444444;

    color: #ffffff;

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    pointer-events: none;
}


.result-label-after {
    left: auto;
    right: 18px;

    background: #ffffff;

    color: #080808;
}



/* =========================================================
   VERTICAL DIVIDER
========================================================= */

.comparison-divider {
    position: absolute;

    top: 0;

    left:
        var(--slider-position);

    z-index: 7;

    width: 2px;
    height: 100%;

    background: #ffffff;

    transform:
        translateX(-50%);

    pointer-events: none;

    box-shadow:
        0 0 10px
        rgba(0, 0, 0, 0.45);
}



/* =========================================================
   SLIDER HANDLE
========================================================= */

.comparison-handle {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 1px;

    transform:
        translate(
            -50%,
            -50%
        );

    background: #ffffff;

    border:
        2px solid #ffffff;

    border-radius: 50%;

    color: #080808;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.45);
}


.comparison-handle i {
    font-size: 0.78rem;
}



/* =========================================================
   INVISIBLE RANGE CONTROL
========================================================= */

.comparison-range {
    position: absolute;

    inset: 0;

    z-index: 10;

    width: 100%;
    height: 100%;

    margin: 0;

    opacity: 0;

    cursor: ew-resize;

    appearance: none;

    -webkit-appearance: none;
}



/* =========================================================
   KEYBOARD ACCESSIBILITY
========================================================= */

.before-after-slider:focus-within
.comparison-handle {
    outline:
        2px solid #ffffff;

    outline-offset:
        5px;
}



/* =========================================================
   BEFORE / AFTER INFO
========================================================= */

.before-after-info {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 25px 0;
}


.before-after-info h3 {
    color: #ffffff;

    font-size: 1.2rem;

    text-transform: uppercase;
}


.service-type {
    margin-bottom: 7px;

    color: #8b8f93;

    font-size: 0.67rem;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.result-description {
    max-width: 650px;

    margin-top: 8px;

    color: #999999;

    font-size: 0.85rem;
}



/* =========================================================
   EMPTY RESULT
========================================================= */

.no-results {
    padding: 60px 20px;

    border:
        1px solid #292929;

    color: #888888;

    text-align: center;
}



/* =========================================================
   WHY MARVALET
========================================================= */

.why-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    align-items: center;

    gap: 80px;
}


.why-heading h2 {
    color: #ffffff;

    font-size:
        clamp(
            2.4rem,
            4vw,
            4rem
        );

    line-height: 1.05;

    text-transform: uppercase;
}


.why-content p {
    margin-bottom: 20px;

    color: #aaaaaa;
}


.why-content .btn {
    margin-top: 10px;
}



/* =========================================================
   GALLERY PREVIEW
========================================================= */

.gallery-preview {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            1fr
        );

    gap: 14px;
}


.gallery-preview-item {
    height: 330px;

    overflow: hidden;

    border:
        1px solid #242424;

    background: #111111;
}


.gallery-preview-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


.gallery-preview-item:hover img {
    transform:
        scale(1.04);
}



/* =========================================================
   FINAL CTA
========================================================= */

.cta-box {
    padding:
        65px
        30px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #101010,
            #171717
        );

    border:
        1px solid #292929;
}


.cta-box h2 {
    max-width: 800px;

    margin:
        0
        auto
        18px;

    color: #ffffff;

    font-size:
        clamp(
            2rem,
            4vw,
            3.3rem
        );

    line-height: 1.1;

    text-transform: uppercase;
}


.cta-box > p:not(.eyebrow) {
    max-width: 620px;

    margin:
        0
        auto
        28px;

    color: #999999;
}



/* =========================================================
   EMPTY MESSAGE
========================================================= */

.home-empty-message {
    grid-column:
        1 / -1;

    padding: 50px 20px;

    color: #888888;

    text-align: center;

    border:
        1px solid #292929;
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {


    /* HERO */

    .hero-container {
        width: 100%;

        margin: 0;

        padding-left: 35px;
        padding-right: 35px;
    }


    .hero-content {
        width: 66%;
    }



    /* SERVICES */

    .service-grid {
        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }



    /* BEFORE AFTER */

    .before-after-slider {
        height: 460px;
    }



    /* WHY */

    .why-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {


    /* ========================================
       PREVENT HORIZONTAL OVERFLOW
    ======================================== */

    .hero,
    .trust-strip,
    .home-services-section,
    .before-after-section,
    .section,
    .home-gallery-section {
        max-width: 100%;

        overflow-x: hidden;
    }



    /* ========================================
       HERO
    ======================================== */

    .hero {
        min-height: 700px;

        align-items: flex-end;

        background-image:
            linear-gradient(
                0deg,
                #080808 0%,
                #080808 20%,
                rgba(8, 8, 8, 0.96) 37%,
                rgba(8, 8, 8, 0.60) 62%,
                rgba(8, 8, 8, 0.12) 100%
            ),
            var(--hero-image);

        background-position:
            62% center;
    }


    .hero-container {
        width: 100%;

        margin: 0;

        padding-left: 20px;
        padding-right: 20px;
    }


    .hero-content {
        width: 100%;

        padding:
            320px
            0
            60px;
    }


    .hero h1 {
        font-size: 2.7rem;

        letter-spacing: -1px;
    }



    /* ========================================
       TRUST - MOBILE

       One full-width trust item per row.
    ======================================== */

    .trust-strip {
        width: 100%;

        overflow: hidden;

        background: #111111;
    }


    .trust-grid {
        width: 92%;

        margin: 0 auto;

        display: grid;

        grid-template-columns: 1fr;
    }


    .trust-item {
        width: 100%;

        min-height: 155px;

        padding:
            30px
            20px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        text-align: center;

        border-right: none;

        border-bottom:
            1px solid #252525;
    }


    .trust-item:last-child {
        border-bottom: none;
    }


    .trust-icon {
        margin-bottom: 12px;
    }


    .trust-icon i {
        color: #ffffff;

        font-size: 1.55rem;
    }


    .trust-item h3 {
        margin-bottom: 7px;

        color: #ffffff;

        font-size: 0.82rem;

        line-height: 1.3;

        letter-spacing: 0.5px;

        text-transform: uppercase;
    }


    .trust-item p {
        max-width: 260px;

        margin: 0 auto;

        color: #8f8f8f;

        font-size: 0.78rem;

        line-height: 1.6;
    }



    /* ========================================
       GENERAL SECTIONS
    ======================================== */

    .section {
        padding:
            65px
            0;
    }



    /* ========================================
       SERVICES
    ======================================== */

    .service-grid {
        grid-template-columns: 1fr;
    }


    .service-card-image {
        height: 240px;
    }



    /* ========================================
       BEFORE / AFTER
    ======================================== */

    .before-after-section {
        padding:
            70px
            0;
    }


    .before-after-slider {
        height: 360px;
    }


    .comparison-handle {
        width: 44px;
        height: 44px;
    }


    .result-label {
        top: 12px;

        padding:
            6px
            10px;

        font-size: 0.6rem;
    }


    .comparison-before-label {
        left: 12px;
    }


    .result-label-after {
        right: 12px;
    }


    .before-after-info {
        align-items: flex-start;

        flex-direction: column;
    }



    /* ========================================
       GALLERY
    ======================================== */

    .gallery-preview {
        grid-template-columns: 1fr;
    }


    .gallery-preview-item {
        height: 270px;
    }

}



/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {


    /* ========================================
       HERO
    ======================================== */

    .hero h1 {
        font-size: 2.4rem;
    }



    /* ========================================
       TRUST
    ======================================== */

    .trust-grid {
        width: 92%;

        grid-template-columns: 1fr;
    }


    .trust-item {
        min-height: 145px;

        padding:
            26px
            18px;
    }


    .trust-icon {
        margin-bottom: 10px;
    }


    .trust-icon i {
        font-size: 1.4rem;
    }


    .trust-item h3 {
        font-size: 0.78rem;
    }


    .trust-item p {
        max-width: 250px;

        font-size: 0.74rem;
    }



    /* ========================================
       BEFORE / AFTER
    ======================================== */

    .before-after-slider {
        height: 310px;
    }


    .comparison-handle {
        width: 42px;
        height: 42px;
    }



    /* ========================================
       SECTION HEADING
    ======================================== */

    .section-heading h2 {
        font-size: 2rem;
    }

}