@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,600;0,700;1,200&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all .5s ease-in-out;
    list-style: none;

}

.wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.top {
    padding: 5px 25px 40px;
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    width: 100%;
    background-image: url(images/bg-hero-desktop.svg);
    background-color: hsl(193, 100%, 96%);
    background-blend-mode: overlay;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-bottom: 70px;
    position: relative;
}

.top nav {
    width: 100%;
}

.top nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;

}

.top nav ul li .logo{
    width: 100px;
    height: 100px;
}

.top nav ul li span{
    font-size: 25pt;
    font-weight: bolder;
}

.top nav ul li:last-child {
    background-color: #fff;
    padding: 10px;
    margin-right: 30px;
    width: 150px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 1px 1px 1px 1px #eee;
}

ul li a {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

#new {
    display: flex;
    flex-wrap: wrap;
}

#top-text {
    flex: 50%;
    /* top: 100px; */
    padding: 20px;
}

#top-text>h1 {
    font-size: 28px;
}

#top-text>p {
    font-size: 18px;
}

.top button {
    width: 50%;
    padding: 5px;
    background: hsl(322, 100%, 66%);
    border-radius: 25px;
    border: none;
    margin-top: 20px;
    height: 2rem;
}

.top button a {
    text-decoration: none;
    color: rgb(238, 234, 234);
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

button:hover {
    background-color: hsl(322, 86%, 77%);
}

#new .mockup {
    width: 100%;
    flex: 50%;
}

.image {
    width: 18%;
}

.box2,
.box3,
.box4,
.box5 {
    background: #fff;
    margin: 15px auto 0;
    padding: 10px;
    grid-column: 1 / 4;
    width: 90%;
    height: 200px;
    border-radius: 5px;
    box-shadow: 1px 2px 2px 2px #eee;
    position: relative;
}

.box2 img {
    float: right;
}

.div-text {
    width: 50%;
    padding: 10px;
    position: absolute;
    top: 35px;
    left: 60px;
}

.box3 img {
    float: left;
    width: 20%;
}

.box3 div {
    width: 50%;
    padding: 10px;
    position: absolute;
    top: 35px;
    right: 40px;
}

.box4 img {
    float: right;
}

.box5 {
    width: 40%;
    height: 140px;
    text-align: center;
    padding: 10px 20px;
    position: relative;
    top: 60px;
    z-index: 2;
    border: 1px solid #eee;
    box-shadow: unset;
}

.box5 h2 {
    margin: 15px 0;
    font-size: 20px;
}

.box5 button {
    width: 180px;
    padding: 5px;
    background: hsl(322, 100%, 66%);
    border-radius: 25px;
    border: none;
    box-shadow: 1px 1px 1px #eee;
    margin-top: 10px;
}

.box5 button:hover {
    background-color: hsl(322, 75%, 55%);
}

.box5 a {
    text-decoration: none;
    color: rgb(238, 234, 234);
    font-weight: 600;
}

footer {
    height: 280px;
    width: 100%;
    padding: 15px;
    grid-column: 1 / 4;
    grid-row: 7 / 8;
    background: hsl(192, 100%, 9%);
    z-index: 1;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;

}

footer section {
    width: 100%;
    margin: 30px 20px 0;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;

}

a,
i {
    color: #fff;
    text-decoration: none;
}

.footer-div1 {
    height: 150px;
    position: relative;
    left: -30px;
    display: block;
    padding: 10px;
    line-height: 2;
}

[class$="envelope"] {
    font-size: 12px;
}


.footer-div1 .footer-logo{
    width: 100px;
    height: 100px;
}
    
.footer-div1 .footer-logo span{
    font-size: 25pt;
    font-weight: bolder;
}

.footer-div2,
.footer-div3 {
    display: flex;
    flex-direction: column;
    width: 150px;
    line-height: 2;

}

footer section a:hover {
    text-decoration: underline;

}

.footer-div4 {
    width: 20%;
    padding: 15px;
    display: flex;
    margin-right: 20px;
    justify-content: space-around;

}

.footer-div4>a {
    padding: 10px 15px;
    height: 50px;
    border-radius: 100%;
    border: 1px solid rgb(177, 174, 174);
    font-size: 20px;

}

.footer-div4 :hover i {
    color: hsl(322, 100%, 66%);
}

footer p {
    float: right;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}

@media screen and (max-width: 1007px) {
    .top {
        height: 100%;
        display: grid;
        place-items: center;
        margin-bottom: 40px;

    }

    #new {
        flex-direction: column;
        justify-content: center;
        width: 80%;
    }

    #top-text {
        position: relative;
        top: 40px;

    }

    #new .mockup {
        width: 100%;
        margin-top: 50px;
    }

    .top nav {
        display: flex;
        position: absolute;
        width: 100%;
        top: 10px;
    }

    .top nav ul li .logo{
        width: 60px;
        height: 60px;
    }
    
    .top nav ul li span{
        font-size: 15pt;
        font-weight: bolder;
    }

    .top button {
        margin: 20px;
    }

    .image {
        width: 25%;
    }

    .div-text {
        width: 60%;
        top: 0;
        left: 0;
        text-align: center;
        margin: 10px auto;
    }

    .div-text h2 {
        font-size: 24px;
        line-height: 2;
    }

    .div-text p {
        font-size: 15px;
        line-height: 1.7;
    }

    .box3 img {
        width: 25%;
    }

    .box3 div {
        width: 60%;
        top: 0;
        right: 0;
        margin: 15px auto;
        text-align: center;
    }

    .box3 div h2 {
        font-size: 24px;
        line-height: 2;
    }

    .box3 div p {
        font-size: 15px;
        line-height: 1.7;
    }

    .box5 {
        width: 70%;
        height: 100%;
        padding: 12px;
        top: 60px;

    }

    .box5 h2 {
        font-size: 14px;
    }

    .box5 button {
        width: 70%;
        padding: 8px 15px;
        margin: 0 auto;
    }


    .footer-div1 {
        display: block;
        line-height: 2.1;
        font-size: 15px;
    }

    .footer-div1 .footer-logo{
        width: 50px;
        height: 50px;
    }
        
    .footer-div1 .footer-logo span{
        font-size: 15pt;
        font-weight: bolder;
    }

    .footer-div4 {
        width: 30%;
        display: flex;
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    .wrapper {
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        gap: unset;
        position: relative;
    }

    .logo {
        width: 130px;
    }

    .top {
        height: 120vh;
        display: grid;
        place-items: center;
        margin-bottom: 40px;
        position: relative;

    }

    #new {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        position: absolute;
        top: 50px;
    }

    #top-text {
        width: 90%;
        padding: 10px;
        text-align: center;
        margin: 0 auto;
    }

    #new .mockup {
        width: 90%;
        align-self: center;
        margin-top: 40px;
    }

    .top nav {
        display: flex;
        position: absolute;
        width: 100%;
        justify-content: center;
        top: 10px;
    }

    .top nav ul li .logo{
        width: 50px;
        height: 50px;
    }
    
    .top nav ul li span{
        font-size: 15pt;
        font-weight: bolder;
    }

    .top nav ul li:last-child {
        background-color: #fff;
        padding: 10px;
        margin-right: 10px;
        width: 100px;
    }

    #top-text>h1 {
        font-size: 25px;
        line-height: 1.5;
    }

    #top-text>p {
        font-size: 16px;
        line-height: 1.5;
    }

    .top button {
        width: 70%;
        padding: 5px;
        background: hsl(322, 100%, 66%);
        margin: 30px;
        position: relative;
    }

    .top button a {
        font-weight: 600;
        padding: 12px;

    }

    .box2,
    .box3,
    .box4,
    .box5 {
        background: #fff;
        margin: 20px auto;
        padding: 10px;
        display: flex;
        flex-direction: column;
        width: 300px;
        height: 350px;

    }

    .image {
        width: 80%;
        margin: 0 auto;
    }

    .div-text {
        width: 100%;
        padding: 10px;
        margin: 180px 0;
        top: 0;
        left: 0;
        text-align: center;
    }

    .div-text h2 {
        font-size: 18px;
        line-height: 2;
    }

    .div-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    .box3 div {
        width: 100%;
        padding: 10px;
        top: 0;
        right: 0;
        margin: 190px auto;
        text-align: center;
    }

    .box3 img {
        width: 80%;
    }

    .box3 div h2 {
        font-size: 18px;
        line-height: 2;
    }

    .box3 div p {
        font-size: 14px;
        line-height: 1.7;
    }

    .box5 {
        width: 90%;
        height: 60%;
        padding: 12px;
        top: 50px;

    }

    .box5 h2 {
        font-size: 14px;
    }

    .box5 button {
        width: 70%;
        padding: 8px 15px;
        margin: 0 auto;
        box-shadow: 2px 2px 2px #eee;
    }

    footer {
        height: 100%;
    }

    footer section {
        flex-direction: column;
        align-items: flex-start;
        width: 90%;
        height: 100%;
        margin: 60px auto;
        padding: 15px;

    }

    .footer-div1 {
        width: 100%;
    }

    .footer-div2,
    .footer-div3 {
        margin-top: 20px;
        display: flex;
        align-items: flex-start;
        width: 100%;
        text-align: center;

    }

    .footer-div4 {
        width: 100%;
        margin: 40px auto 0;
    }

    footer p {
        float: none;
        font-size: 13px;
        text-align: center;
        position: relative;
        bottom: 70px;
    }

    .footer-logo {
        width: 60%;

    }
}