:root {
    /* Colors */
    --primary-gradient: linear-gradient( to right, hsl(136, 65%, 51%), hsl(192, 70%, 51%));
    --DarkBlue: hsl(233, 26%, 24%);
    --LimeGreen: hsl(136, 65%, 51%);
    --BrightCyan: hsl(192, 70%, 51%);
    --GrayishBlue: hsl(233, 8%, 62%);
    --LightGrayishBlue: hsl(220, 16%, 96%);
    --VeryLightGray: hsl(0, 0%, 98%);
    --White: hsl(0, 0%, 100%);
    /* Typography */
    --main-font: 'Public Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Public Sans', sans-serif;
}

header {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-around;
    padding: 20px;
    grid-gap: 47%;
}

.hamburger {
    margin-top: 0.4em;
}

.btn-ri-h,
nav {
    display: none;
}

button {
    padding: 15px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    color: white;
    background: var(--primary-gradient);
    /* background: linear-gradient(to right, hsl(136, 65%, 51%), hsl(192, 70%, 51%)); */
}

.intro {
    overflow: hidden;
    display: grid;
    grid-gap: 100px;
}

.hero-img {
    background-image: url('../images/bg-intro-mobile.svg');
    background-position: 10% -22%;
    background-size: 120% 100%;
    background-repeat: no-repeat;
    height: 315px;
    padding: 20px;
}

.mockups img {
    width: 100%;
    transform: translateY(-138px);
}

.hero {
    padding-bottom: 90px;
    text-align: center;
}

.hero div:first-child {
    font-size: 40px;
    color: var(--DarkBlue);
    /* color: hsl(233, 26%, 24%); */
    margin-bottom: 20px;
}

.hero div:nth-child(2) {
    margin-bottom: 20px;
    color: var(--GrayishBlue);
    /* color: hsl(233, 8%, 62%); */
    line-height: 25px;
}

.why {
    padding: 20px;
    background-color: var(--LightGrayishBlue);
    /* background-color: hsl(220, 16%, 96%); */
    padding-top: 70px;
}

br {
    display: none;
}

.why>div:first-child {
    font-size: 32px;
    color: var(--DarkBlue);
    /* color: hsl(233, 26%, 24%); */
    margin-bottom: 20px;
}

.why>div:nth-child(2) {
    margin-bottom: 60px;
    color: var(--GrayishBlue);
    /* color: hsl(233, 8%, 62%); */
    line-height: 25px;
}

.services {
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
}

.why>div:first-child,
.why>div:nth-child(2),
.service,
.articles>div:first-child {
    text-align: center;
}

.service img {
    margin-bottom: 30px;
}

.service>div:nth-child(2) {
    color: var(--DarkBlue);
    /* color: hsl(233, 26%, 24%); */
    margin-bottom: 30px;
    font-size: 24px;
}

.why div:nth-child(3) {
    color: var(--GrayishBlue);
    /* color: hsl(233, 8%, 62%); */
    line-height: 25px;
}

.latest {
    padding: 30px;
    padding-top: 80px;
    padding-bottom: 70px;
    text-align: center;
    background: var(--VeryLightGray);
    /* background: hsl(0, 0%, 98%); */
}

.latest>div:first-child {
    font-size: 34px;
    color: var(--DarkBlue);
    /* color: hsl(233, 26%, 24%); */
    margin-bottom: 20px;
}

.articles {
    display: grid;
    gap: 30px;
    padding-bottom: 30px;
}

.article {
    text-align: left;
    padding: 30px;
}

.articles img {
    width: 100%;
    border-radius: 5px;
    height: 190px;
}

.article>div:first-child {
    font-size: 10px;
    color: var(--GrayishBlue);
    /* color: hsl(233, 8%, 62%); */
    margin-bottom: 10px;
}

.article>div:nth-child(2) {
    margin-bottom: 10px;
    color: var(--DarkBlue);
    /* color: hsl(233, 26%, 24%); */
}

.article>div:nth-child(3) {
    margin-bottom: 0px;
    color: var(--GrayishBlue);
    /* color: hsl(233, 8%, 62%); */
    font-size: 13px;
}

.card {
    background: white;
}

footer {
    padding: 30px;
    background-color: var(--DarkBlue);
    /* background-color: hsl(233, 26%, 24%); */
    display: grid;
    gap: 20px;
    text-align: center;
    color: white;
}

footer .logo {
    display: grid;
    grid-gap: 15px;
}

footer .logo img {
    justify-self: center;
}

footer>div:nth-child(2)>div {
    font-weight: 400;
    margin-top: 15px;
    font-size: 15px;
}

footer>div:nth-child(3)>div {
    font-weight: 400;
    margin-bottom: 15px;
    font-size: 15px;
}

footer>div:last-child>div {
    margin-top: 1.5em;
    font-size: 13px;
    color: var(--GrayishBlue);
    /* color: hsl(233, 8%, 62%); */
}

.social {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    grid-gap: 15px;
    justify-content: center;
    text-size-adjust: 23;
}


/* /============================================================== */

@media screen and (min-width: 1024px) {
    /* ---------header---------- */
    header {
        display: flex;
        justify-content: space-between;
        padding: 20px 150px;
        align-items: center;
    }
    .hamburger {
        display: none;
    }
    .btn-ri-h,
    nav {
        display: inherit;
    }
    nav ul {
        display: flex;
        list-style: none;
    }
    nav ul li {
        margin: 0 20px;
        font-size: 16px;
        color: var(--GrayishBlue);
        /* color: hsl(233, 8%, 62%); */
        cursor: pointer;
        position: relative;
    }
    nav ul li:hover {
        color: var(--DarkBlue);
        /* color: hsl(233, 26%, 24%); */
    }
    nav ul li:hover::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--LimeGreen);
        /* background-color: hsl(136, 65%, 51%); */
        left: 0;
        bottom: -32px;
    }
    header button:hover,
    .hero button:hover,
    footer button:hover {
        opacity: 0.7;
    }
    /* ---------intro------------ */
    .container {
        display: flex;
        flex-direction: row-reverse;
    }
    .hero {
        text-align: left;
        padding-top: 180px;
        padding-bottom: 180px;
        padding-left: 150px;
        width: 60%;
    }
    .hero-img {
        background: url('../images/bg-intro-desktop.svg');
        background-position: -10px -200px;
        background-size: 1050px 900px;
        background-repeat: no-repeat;
        height: 650px;
        width: 70%;
    }
    .mockups img {
        transform: translate(120px, -115px);
    }
    .intro {
        overflow: inherit;
    }
    .mockups {
        position: relative;
        left: 20px;
        bottom: 20px;
        overflow: hidden;
    }
    .hero div:first-child {
        font-size: 50px;
        color: var(--DarkBlue);
        /* color: hsl(233, 26%, 24%); */
        margin-bottom: 20px;
    }
    /* -----------------why section----- */
    .why {
        padding: 100px 150px;
    }
    .why>div:first-child,
    .why>div:nth-child(2),
    .service,
    .articles>div:first-child {
        text-align: left;
    }
    br {
        display: inherit;
    }
    .services {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .service {
        text-align: left;
    }
    /* ----------article----------- */
    .latest {
        text-align: left;
        padding: 20px 150px;
    }
    .articles {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    footer {
        grid-template-columns: 1fr 1fr 2fr 1fr;
        padding: 20px 150px;
    }
    footer>div:nth-child(3)>div {
        font-weight: 400;
        margin-top: 15px;
        font-size: 15px;
    }
    footer>div:nth-child(2)>div:hover,
    footer>div:nth-child(3)>div:hover {
        color: var(--LimeGreen);
        /* color: hsl(136, 65%, 51%); */
    }
    .menu {
        text-align: left;
    }
    footer .logo {
        padding-top: 15px;
        justify-self: start;
        grid-gap: 20px;
    }
    .btn {
        align-self: center;
        text-align: right;
    }
    button {
        cursor: pointer;
    }
    .social {
        cursor: pointer;
    }
}