#background-wrapper {
    box-sizing: border-box;
    position: relative;
    top: 0;
    left: 0;
    width: var(--nl-full-width);
    height: var(--nl-half-width);
    overflow: hidden;
}

#background-image {
    box-sizing: border-box;
    width: 100%;
    height: var(--nl-full-heigth);
    position: absolute;
    object-position: 35% 0%;
    object-fit: cover;
    display: block;
    /* Ensure the image is displayed */
}

#background-video {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: var(--nl-full-width);
    height: var(--nl-half-width);
    object-fit: cover;
}

#background-overlay {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: var(--nl-full-width);
    height: var(--nl-half-width);
    background: linear-gradient(to right, rgba(20, 20, 20, 0.8), rgba(20, 20, 20, 0.2));
    pointer-events: none;
}

#partners {
    position: relative;
    display: block;
}

#partners div {
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#partners img {
    width: calc(var(--nl-size-unit) * 20);
    height: auto;
}

#partners img:first-of-type {
    margin-right: 2em;
}

#slogan-1 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* Align items to the top */
}

#slogan-1-img {
    width: calc(33 * 1em);
    height: auto;
    object-fit: contain;
    border-radius: 15px;        
    /* Maintain aspect ratio */
}

#slogan-1-1 {
    margin-left: 8em;
    display: flex;
    flex-direction: column;
}

#slogan-1-1-text {
    font-family: DM Sans;
    font-weight: 400;
    font-size: var(--nl-font-size-200);
    color: #969696;
    margin-bottom: var(--nl-size-unit);
}

#landmarks {
    display: flex;
    flex-direction: row;
    margin-top: 3em;
    justify-content: space-between;
    gap: 1%;
}

#landmarks .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #f0f0f0;
    border-radius: 10px;
    aspect-ratio: 2 / 1;
    padding: 2.5%;
}

#landmarks .card img {
    margin-bottom: var(--nl-size-unit);
    /* Space below the icon */
}

#landmarks .card h2 {
    font-weight: 300;
    margin-bottom: 0.5em;
}

#services .card-wide {
    display: flex;
    gap: 5%;
    flex-direction: row;
    margin-top: var(--nl-size-unit);
    padding: var(--nl-size-unit);
    background-color: white;
}

#services .card-wide:nth-child(2n+1) {
    flex-direction: row-reverse;
}

#services .card-wide .image img {
    width: calc(0.54 * var(--nl-max-content-width));
    height: auto;
    object-fit: contain;
    border-radius: 1em;
}

#services .card-wide:nth-child(2n+1) .image img {
    margin-left: auto;
}

#services .card-wide .service-text {
    width: 80%;
}

#services .card-wide>div:has(.service-text) {
    display: flex;
    align-items: center;
    /* Centers .service-text vertically */
}

#services .card-wide:nth-child(2n) .service-text {
    margin-right: auto;
}

#services .card-wide:nth-child(2n+1) .service-text {
    margin-left: auto;
}

#services .card-wide * {
    color: var(--nl-color-charcoal);
}

#services .card-wide h2 {
    font-family: DM Sans;
    font-weight: 500;
}

#testimonial {
    margin-top: 2em;
    background-color: var(--nl-color-green-tea);
    border-radius: 1em;
    padding: 1em;
    font-family: Manrope;
    font-weight: 300;
}

#testimonial p:not(:last-of-type) {
    margin-bottom: 1em;
    /* line-height: 1.1; */
}

#headline {
    color: white;
    position: absolute;
    top: 20%;
    left: var(--nl-content-padding);
    z-index: 0;
}

#headline-1 {
    width: 50em;
    font-weight: 600;
    line-height: 1.2;
}

#headline-2 {
    margin-top: var(--nl-size-unit);
    width: 35em;
    font-family: Manrope;
    font-weight: 200;
    line-height: 1.8;
}

#contact-button-1 {
    margin-top: 3em;
}


@media screen and (max-width: 1024px) {
    #background-wrapper {
        width: 100vw;
        height: 100vh;
    }

    #background-overlay {
        width: 100vw;
        height: 100vh;
    }

    #headline {
        top: 20%;
    }

    #headline-1 {
        width: 90%;
    }

    #headline-2 {
        width: 90%;
    }

    #contact-button-1 {
        margin-left: auto;
        margin-right: auto;
        width: 80%;
    }

    #partners img {
        width: 40%;
    }

    #slogan-1 {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    #slogan-1-img {
        width: 95%;        
    }

    #slogan-1-1 {
        margin: 8vw 1vw 0 1vw;
    }

    #slogan-1-1-text {
        margin-top: 4vw;
    }

    #landmarks {
        flex-direction: column;
        margin-top: 0;
        padding-top: 0;
    }

    #landmarks .card {
        margin-bottom: 2%;
    }

    #services .card-wide {
        flex-direction: column;
    }

    #services .card-wide:nth-child(2n+1) {
        flex-direction: column;
    }

    #services .card-wide:nth-child(n) .service-text {
        margin-left: unset;
        margin-right: unset;
        width: 100%;
    }

    #services .card-wide .image img {
        width: 100%;
    }

    #news-excerpts {
        margin-top: 1em;
        grid-template-columns: 1fr;
        width: 93%;
        gap: 1em;
    }
}