/* Custom properties */

:root {
    --navy-850: hsl(217, 28%, 15%);
    --navy-900: hsl(218, 28%, 13%);
    --navy-950: hsl(216, 53%, 9%);
    --navy-800: hsl(219, 30%, 18%);
    --teal-200: hsl(176, 68%, 64%);
    --cyan-500: hsl(198, 60%, 50%);
    --red-500: hsl(0, 100%, 63%);
    --white: hsl(0, 0%, 100%);
    --font1: 'Open Sans', sans-serif;
    --font2: 'Raleway', sans-serif;
    --padding-container: 90px 0;
}

/* General styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font1);
    background-color: var(--navy-900);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--padding-container);

}

/* Header section */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    --padding-container: 40px 0;
}

.nav_logo {
    width: 110px;
}

.nav_img {
    width: 100%;
    display: block;
}

.nav_link:first-of-type {
    margin-left: auto;
}

.nav_link {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font2);
    min-width: 65px;
    text-align: center;
    transition: font-weight .3s ease-in-out;

    &:hover {
        font-weight: 700;
        text-decoration: underline;
    }
}

.hero {
    position: relative;
    --padding-container: 0;
    background-color: var(--navy-850);
}

.hero_main {
    width: 100%;
    max-width: fit-content;
}

.hero_picture {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    top: 3rem;
    z-index: 3;
}

.hero_img {
    width: 100%;
    display: block;
    width: 100%;

}

.hero_info {
    text-align: center;
    color: var(--white);
    height: 0;
    position: relative;
    top: 4rem;
    padding: 1rem 1.5rem;
    z-index: 2
}

.hero_title {
    font-size: 1.7rem;
    font-family: var(--font2);
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.hero_paragraph {
    line-height: 1.5;
    margin: 1.5rem auto;
    line-height: 1.5;
    max-width: 545px;
    position: relative;
    z-index: 2;
}

.btn-started {
    display: inline-block;
    padding: 0.8rem 5rem;
    background-image: linear-gradient(to right, var(--teal-200), var(--cyan-500));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font2);
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.5;
    position: relative;
    transition: background-image .3s ease-in-out;

    &:hover {
        background-image: linear-gradient(to right, var(--teal-200), var(--teal-200));
    }
}

.curvy_bg {
    aspect-ratio: 375 / 141;
    width: 100vw;
    background-image: url('../images/bg-curvy-mobile.svg');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Features section */

.features {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;
    text-align: center;
    padding: 20em 0 2rem;
    color: var(--white);
}

.feature {
    line-height: 1.5;
    max-width: 300px;
}

.feature img {
    height: 80px;
}

.feature_title {
    margin: 1.5rem 0 1rem 0;
}

/* Productivity section */

.productivity_info {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1.5rem;
    padding: 2rem 0;
    color: var(--white);
    margin-top: 2rem;
}

.productivity_title {
    font-size: 1.3rem;
}

.icon-arrow-hover {
    display: none;
}

.btn-productivity {
    color: var(--teal-200);
    font-family: var(--font2);
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;

    &:hover {
        color: var(--white);

        .icon-arrow {
            display: none;
        }

        .icon-arrow-hover {
            display: inline-block;
        }
    }
}

.btn-productivity .btn-content {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px solid currentColor;
    line-height: 1;
    padding-bottom: 2px;
    margin-right: auto;
}

.btn-productivity .icon-arrow {
    display: inline-block;
    height: 1em;
    width: auto;
    vertical-align: baseline;
}

/* Testimonials section */

.testimonials {
    color: var(--white);
    padding: 0 2rem;
}

.testimonal_icon {
    height: 40px;
    width: 40px;
    position: relative;
    top: 2.2rem;
    margin: 0 10px;
    z-index: -1;
}

.testimonial {
    background-color: var(--navy-800);
    margin: 1.5rem 0;
    padding: 2rem;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.testimonial_profile {
    display: flex;
    align-items: end;
    gap: 1rem;
    margin-top: 1rem;
}

.testimonial_img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: 1rem;
}

.profile_info {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.5rem;
}

.testimonial_author {
    font-size: 0.9rem;
    font-weight: 700;
}

.testimonial_position {
    font-size: 0.7rem;
    margin-bottom: 0.5rem
}

/* Access section */

.access {
    text-align: center;
    color: var(--white);
    line-height: 1.5;
    background-color: var(--navy-850);
    box-shadow: 10px 10px 10px 5px var(--navy-950);
    border-radius: 8px;
    --padding-container: 2rem 1rem;
    position: relative;
    top: 15rem;
    max-width: 800px;
}

.access_title {
    margin-bottom: 1rem;
}

.access_input {
    width: 90%;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    margin: 2.5rem 1rem 1rem;
}

.access_submit {
    width: 90%;
    padding: 1rem;
    border-radius: 50px;
    border: none;
    margin: 1rem;
    background-image: linear-gradient(to right, var(--teal-200), var(--cyan-500));
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-image .3s ease-in-out;

    &:hover {
        background-image: linear-gradient(to right, var(--teal-200), var(--teal-200));
    }
}

/* Footer section */

.footer {
    background-color: var(--navy-950);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin-top: 5rem;
}

.footer_logo {
    margin: 14rem 0 2rem 0;
}

.footer_location {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin: 1rem;
    max-width: 350px;
}

.footer_location img {
    margin-top: 5px;
}

.contact_info {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin: 1rem;
}

.footer_links {
    margin: 3rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer_links a {
    text-decoration: none;
    color: var(--white);
    cursor: pointer;

    &:hover {
        font-weight: 700;
    }
}

.social_media {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
    color: var(--white);
}

.social_media a {
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 100%;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border .3s ease-in-out, color .3s ease-in-out;

    &:hover {
        border: 2px solid var(--teal-200);
        color: var(--teal-200);
    }
}

.attribution {
    text-align: center;
    color: var(--white);
    font-size: 0.8rem;
    margin-top: 5rem;
}


.attribution>a {
    text-decoration: none;
    color: var(--teal-200);
    font-weight: 700;
}

/* Media queries */
/* 768px */

@media (min-width: 768px) {
    .nav_logo {
        width: 150px;
    }

    .hero_info {
        height: 10em;
    }

    .curvy_bg {
        aspect-ratio: 1440 / 449;
        width: 100vw;
        background-image: url('../images/bg-curvy-desktop.svg');
    }

    .hero_title {
        font-size: 2rem;
        margin: 1rem auto;
        max-width: 700px;
    }

    .features {
        flex-direction: row;
        text-align: center;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 3rem;
        padding: 5rem 0 2rem;
    }

    .feature {
        max-width: 400px;
    }

    .access_title {
        font-size: 2rem;
    }

    .access_paragraph {
        max-width: 70%;
        margin: 0 auto;
    }

    .access_input {
        max-width: 55%;
    }

    .access_submit {
        max-width: 30%;
    }
}

/* 1012px */

@media (min-width: 1012px) {
    .hero_title {
        font-size: 2.5rem;
    }

    .features {
        padding: 0 0 2rem;
    }

    .productivity {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
        align-items: center;
    }

    .hero_picture {
        top: 0;
    }

    .productivity_info {
        max-width: 35vw;
    }

    .productivity_title {
        font-size: 2rem;
        max-width: 400px;
    }

    .testimonials {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
        padding: 0 2rem;
    }

    .testimonial {
        max-width: 350px;
    }

    .testimonal_icon {
        top: -0.5rem;
        left: 4.5rem;
    }

    .footer {
        padding: 1rem 5rem;
    }

    .footer_logo {
        margin-left: 1rem;
    }

    .footer_container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }

    .footer_links {
        margin: 14px 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .social_media {
        align-items: baseline;
        margin-top: 0.5rem;
    }
}