/*** Body *********************************************/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body .content{
    width: 100%;
    margin: 0 auto;
}


/*** Sub Heading  *************************************/
.subhead {
    position: relative;
    height: 200px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    & img {
        position: absolute;
        width: 100%;
        height: 200%;
        z-index: -1;
    }

    & h2 {
        font-size: 1.2rem;
        color: white;
        text-align: center;
    }

    &::after {
        content:"";
        position: absolute;
        height: inherit;
        width: 100%;
        
        background-size: contain;
        background-position: center;
        background-color: rgba(0,0,0,.3);
        backdrop-filter: blur(2px);
        z-index: -1;
    }
}

/*** Why We Do It - Section #4 ***********************************/   
.wwdi-wrapper {
    position: relative;
    width: 100%;
    height: clamp(600px, 40vw, 750px);


    .wwdi-bg-img {
        position: absolute;
        top:0;
        left:0;

        width: 100%;
        height: 100%;

        overflow: hidden;

        &::before {
            content:'';
            position: absolute;
            width: 100%;
            height: 100%;
            
            background-color: #101010;

            background-blend-mode: multiply;
            opacity: .55;

        }

        & img {
            object-fit: cover;
            object-position: center;
            height: 100%;
            width: 100%;
        }
    }
}

.wwdi {
    height: 100%;
    display: flex;
    flex-direction: column;

    position: relative;
    align-items: center;
    justify-content: center;
    /* backdrop-filter: blur(2px); */
}

.wwdi-content {
    border-radius: 3px;
    padding: 0 20px 0 20px;
    backdrop-filter: blur(1px);

    & h2 {
        font-family: Oswald;
        font-size: clamp(28px, 4vw, 46px);
        color: white;
    }
    
    & p {
        /* font-family: Rubik; */
        font-size: clamp(12px, 3vw, 18px);
        font-weight: 400;
        color:white;
        margin: 0;
    }
}


/*** Values - Section #5 *****************************************/
.values-wrapper {
    /* border: 1px solid red; */
    background-color: white;
    padding: 1rem 0 1rem 0;
}

.values-header {
    & h2 {
        margin-bottom: 20px;

        font-family: Oswald;
        font-size: clamp(28px, 4vw, 46px);
        font-weight: 500;
        color: black;
        text-align: center;
    }
}

.values {
    width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
}

.value {
    height: 100%;
    padding: 10px;

    text-align: center;
    color: white;

    background-color: rgb(255, 142, 101);
    box-shadow: 3px 3px 3px #000;

    &:nth-child(5) {
        display: none;
    }
}

.value p {
    font-size: clamp(.8rem, 3vw, 1rem);
}


/*** Img Scroller *************************************************/
.scroller {
    width: 95%;
    margin: 0 auto;
    overflow: hidden;
    padding-bottom: 20px;
}

.scroller[data-animated=true] {
    overflow: hidden;

    -webkit-mask: linear-gradient(
        90deg,
        transparent, 
        white 3%, 
        white 97%,
        transparent
    );
    
    mask: linear-gradient(
        90deg,
        transparent, 
        white 5%, 
        white 95%,
        transparent
    );
}

.scroller[data-animated=true] .scroller-inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll 30s linear infinite;
}

.scroller-inner {
    display: flex;
    flex-wrap: wrap;

    margin: 0;
    padding-inline: 0rem;
    list-style: none;

    
    padding-block: 1rem;
    gap: 1rem;
}

.scroller-inner img {
    width: clamp(100px, 15vw, 250px);
    padding: .5rem;
    background-color: dodgerblue;
    box-shadow: 0 0.5rem 1rem -.25rem rgb(30, 29, 29);
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - .5rem));
    }
}


/*** Media Queries ***********************************************/
@media(min-width: 426px) {

    .values {
        width: 80%;
        gap: 1rem;

        .value {
            padding: 20px;
        }
    }

    /*** Why We Do It - Section #4 ***********************************/   
     .scroller {
        width: 80%;
    }
}

@media(min-width: 768px) {
    /*** SUBHEAD SECTION ****************************************/
    .subhead {
        & h2 {
            font-size: clamp(1.2rem, 3vw, 1.8rem);
        }

    }


    /*** VALUES SECT ***********************************************/
    .values-wrapper {
        height: fit-content;
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .values {
        grid-template-columns: repeat(3, 1fr);

        .value {
            &:nth-child(5) {
                display: block;
                position: relative;

                grid-row: 1/3;
                grid-column: 1;

                & img {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }


    /*** WWDI SECT ***********************************************/
    .wwdi-wrapper {
        width: 100%;
    }

    .wwdi-content {
        width: 80%;
    }
}

@media(min-width: 1200px) {
    .values-wrapper {
        padding: 0 0 6rem 0;
    }

    .values {
        gap: 2rem;

        .value p {
            font-size: 1.05rem;
        }
    }

    .wwdi-content {
        width: 60%;

        & p {
            font-size: 1.3rem;
        }
    }
}