
nav.gray {
    background: #ebeff2;
}
nav.gray ul li:first-child{
    margin-left: 1.6rem;
}
@media (max-width: 768px) {
    nav.gray ul li:first-child{
        margin-left: 0.3rem;
    }
}
nav.gray a {
    color: var(--text-primary);
}
nav.gray a.rounded {
    color: white;
    border-radius: 42px;
    background-color: #277db8;
    padding: 0.3rem 1rem 0.42rem 1rem;
}
nav.gray a.rounded:hover {
    background-color: #2f95da;
    text-decoration: none;
}
nav.gray a.rounded:active {
    position: relative;
    inset-block-start: 1px;
}
input[type=button], input[type=submit] {
    margin: unset;
}

/* ABOVE FOLD */
section.above-fold {
    min-height: 480px;
    background-image: url('../images/abovefold.jpg');
    background-position: center;
    background-size: cover;
    display: grid;
    align-items: center;
    padding: 0;
}
.above-fold img {
    height: 90px;
}
.above-fold h3 {
    color: var(--text-isecondary);
    font-weight: 400;
    margin-top: 0.5rem;
}
.above-fold .content {
    margin: 1rem 4.4rem;
}

/* ABOVE FOLD MOBILE */
section.above-fold-mobile {
    padding: 0;
}
section.above-fold-mobile h1{
    color: var(--text-primary);
}
section.above-fold-mobile h3{
    font-weight: 400;
}
section.above-fold-mobile .image{
    background-image: url('../images/abovefold_mobile.jpg');
    height: 345px;
    background-position: center;
    background-size: cover;
}
.above-fold-mobile .content {
    padding: 2rem 0;
    text-align: center;
    background: #ebeff2;
}
/* AFTER FOLD */
section.after-fold {
    max-width: var(--cap-width);;
    margin: auto;
    display: grid;
    grid-template: auto 1fr / 1fr 1fr 1fr;
    column-gap: 2rem;
    place-items: center;
}
@media (max-width: 768px) {
    section.after-fold {
        max-width: var(--cap-width-mobile);
        margin: auto;
        padding: 2rem;
        grid-template: 1fr / 1fr;
        column-gap: 1rem;
    }
}
.after-fold h2 {
    grid-column: 1/-1;
}
.card {
    margin: auto;
    display: grid;
    grid-template: 170px auto auto / 1fr;
    place-items: center;
    padding: 1rem;
}
.card img {
    max-width: 190px;
    max-height: 130px;
    margin: auto auto 0 auto;
}
.card h3 {
    margin: 1rem 0 0.5rem 0;
    line-height: 1.5rem;
}
.card p {
    text-align: center;
}

/* VIDEOS */
section.videos {
    background: #ebeff2;
}
section.videos .content {
    max-width: var(--cap-width);;
    margin: auto;
    display: grid;
    grid-template: auto 1fr / repeat(4, 1fr);
    grid-gap: 1rem;
}
@media (max-width: 768px) {
    section.videos .content {
        grid-template: auto 1fr / repeat(2, 1fr);
    }
}
.videos h2 {
    grid-column: 1/-1;
}
.video-card {
    cursor: pointer;
    display: grid;
    gap: 0.7rem;
    position: relative;
    place-content: first baseline;
}
.video-card h4{
    text-align: center;
}
.video-card .play-btn {
    position: absolute;
    margin: 22% 45%;
    box-shadow: 1px 1px 5px -3px rgba(0,0,0,0.8);
}

/* BENEFITS */
section.benefits {
    max-width: var(--cap-width);;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2rem 4rem;
    grid-gap: 4rem;
}
@media (max-width: 990px) {
    section.benefits {
        padding: 2rem 1rem;
        grid-gap: 2rem;
    }
}

@media (max-width: 768px) {
    section.benefits {
        padding: 2rem;
        grid-template-columns: 1fr;
    }
}
.benefits h2{
    grid-column: 1 / -1;
}
.side-card {
    display: grid;
    grid-template: auto 1fr / auto 1fr; 
    column-gap: 2rem;
}
@media (max-width: 990px) {
    .side-card {
        gap: 0.65rem;
    }
}
@media (max-width: 768px) {
    .side-card {
        max-width: var(--cap-width-mobile);
        margin: auto;
        grid-template: auto 1fr 1fr/ 1fr;
        gap: 0.5rem;
        place-items: center;
        text-align: center;
    }
}
.side-card .circle-background {
    grid-row: 1 / -1;
    border-radius: 50%;
    background-color: #f1f4f6;
    height: 180px;
    width: 180px;
}
@media (max-width: 990px) {
    .side-card .circle-background {
        zoom: 0.7;
    }
}
@media (max-width: 768px) {
    .side-card .circle-background {
        zoom: 1;
    }
}
.side-card .circle-background img {
    width: 180px;
    height: 180px;
    padding: 2rem;
}

/* CUSTOMERS */
section.customers {
    max-width: var(--cap-width);;
    margin: auto;
}
.customers .logos {
    flex: 1 1 100px;
    display: inline-grid;
    place-content: baseline;
    place-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding: 3%;
}
.above-fold-p {
    text-align: center;
    padding: 0 clamp(1rem, 10vw, 10vw);
}

section.products-intro {
    padding-bottom: 0;
}
section.products .product-img-txt {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 1fr;
    border-radius: 10px;
    background-color: #ebeff2;
    margin: 1.5rem clamp(2.5rem, 15vw, 10rem);
    margin-bottom: clamp(2.5rem, 15vw, 7rem) ;
}

@media (max-width: 768px) {
    section.products .product-img-txt {
        grid-template-columns: 1fr;

    }
}
section.products .product-img-txt .desc{
    display: grid;
    gap: clamp(0.5rem, 1vw, 2rem);
    margin: clamp(0.5rem, 5vw, 1.5rem);
    align-content: center;
}
section.products img {
    min-height: 320px;
    object-fit: cover;
}
section.products img:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
section.products img:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
@media (max-width: 768px) {
    section.products img {
        border-top-left-radius: 10px !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 10px !important;
        border-bottom-right-radius: 0 !important;
    }
}

.right-image {
    grid-template-areas: "desc img";
}

@media (max-width: 768px) {
    .right-image {
        grid-template-areas: 
        "img"
        "desc";
    }
}

.right-image img {
    grid-area: img;
}

.right-image .desc {
    grid-area: desc;
}

#videowrapper{
    position: relative;
    height: calc(40.25vw - 45px);
    min-height: calc(350px - 120px);
    overflow: hidden;
}

#video{
    width:100%; 
    height:40.25vw; 
    min-height: 350px;
    margin-top: -45px;
    zoom: 1.25;
}

@media (max-width: 768px) {
    #video{
        min-height: 350px;
        margin-top: -60px;
        zoom: 1;
    }
}