/* FONT */
@font-face {
    font-family: 'Overpass';
    src: url(../font/Overpass/Overpass-VariableFont_wght.ttf) format('truetype');
    font-weight: 300 600;
}

@font-face {
    font-family: 'Ubuntu';
    src: url(../font/Ubuntu/Ubuntu-Regular.ttf) format('truetype');
    font-weight: 400 500 700;
}

body {
    font-family: 'Overpass', sans-serif;
}

button {
    font-family: 'Ubuntu', sans-serif;
}

.font-footer-grey {
    color: hsl(240, 2%, 79%);
}

.font-grey-body {
    color: hsl(207, 13%, 34%);
}

.font-blue {
    color: hsl(208, 49%, 24%);
}

.font-white {
    color: hsl(0, 0%, 100%);
}

.font-bold {
    font-weight: bold;
}

.font-transparent {
    opacity: 70%;
}

.font-medium {
    font-size: 2rem;
}

/* HEADER */
#hero {
    background-image: url(../images/bg-pattern-intro-mobile.svg);
    background-size: cover;
    background-position: center;
    height: 70vh;
    background-color: #FF4D5B;
    border-radius: 0 0 0 5rem;
}

.hero-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 2rem;
}

.hero-menu {
    display: none;
    position: relative;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-top: 4rem;
    color: white;
}

#check {
    display: none;
}

/* MENU MOBILE */
#check:checked~label {
    content: url(../images/icon-close.svg);
}

#check:checked~.hero-menu {
    display: flex;
    flex-direction: column;
    background-color: white;
    align-items: center;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85vw;
    height: 55vh;
    border-radius: .5rem;
    text-align: center;
}

#check:checked~.hero-menu .menu-1 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5em;
}

#check:checked~.hero-menu .menu-2 {
    margin-bottom: 1rem;
    background-color: #EFEFF1;
    padding: 1rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: .5rem;
    margin-bottom: 1.5rem;
}

#check:checked~.hero-menu .menu-3 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid hsl(207, 13%, 34%);
}

#check:checked~.hero-menu .menu-3 button:nth-child(1) {
    margin-top: 2rem;
    background-color: transparent;
    border: none;
}

#check:checked~.hero-menu .menu-3 button:nth-child(2) {
    background-color: #FB6263;
    border-radius: 2rem;
    border: none;
    color: white;
    padding: .5rem 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.hero-buttons button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 2rem;
}

.hero-buttons button:nth-child(1) {
    color: #FF4D5B;
}

.hero-buttons button:nth-child(2) {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

/* MAIN */
#intro {
    text-align: center;
    padding: 0 1rem;
}

#intro h2 {
    text-align: center;
    margin-top: 6rem;
}

#intro h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.intro-img {
    margin-top: 3rem;
}

.intro-1,
.intro-2 {
    padding: 0 2rem;
}

#mobile {
    background-image: url(../images/bg-pattern-circles.svg);
    background-size: cover;
    background-color: #3A3B59;
    background-position: top;
    border-radius: 0 5rem;
    margin-top: 20rem;
    margin-bottom: 4rem;
    position: relative;
    height: 70vh;
}

.mobile-text {
    text-align: center;
    color: white;
    position: absolute;
    top: 35%;
    padding: 2rem;
}

.mobile-text h3 {
    margin-bottom: 2rem;
}

.mobile-img {
    position: absolute;
    top: -35%;
    padding: 0 1rem;
}

#laptop {
    text-align: center;
    margin-bottom: 5rem;
}

.laptop-1,
.laptop-2 {
    padding: 0 2rem;
}

#laptop h3 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* FOOTER */
footer {
    background-color: #24242C;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 5rem 0;
    border-radius: 0 5rem 0 0;
    text-align: center;
}

.footer-logo {
    width: 20%;
}

footer p {
    margin-bottom: 2rem;
}

footer li {
    margin-bottom: .5rem;
}

/* MEDIA QUERIES */
@media screen and (min-width: 578px) {

    /* HEADER */
    #hero {
        background-image: url(../images/bg-pattern-intro-desktop.svg);
    }

    .hero-bar {
        margin: 0 5rem;
        display: flex;
    }

    .hero-menu {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        margin-left: 4rem;
        color: white;
    }

    .menu-1 {
        display: flex;
        gap: 3rem;
    }

    .menu-2 {
        display: none;
    }

    .menu-3 button:nth-child(1) {
        background-color: transparent;
        border: none
    }

    .menu-3 button:nth-child(2) {
        background-color: white;
        border: none;
        color: hsl(356, 100%, 66%);
        border-radius: 2rem;
    }

    .hero-burger {
        display: none;
    }

    /* MAIN */
    .intro-img {
        display: flex;
        flex-direction: row-reverse;
        content: url(../images/illustration-editor-desktop.svg);
        width: 45vw;
        margin-left: auto;
    }

    .intro-1,
    .intro-2 {
        width: 40%;
    }

    #laptop {
        display: flex;
        align-items: center;
    }

    .laptop-img {
        width: 100%;
    }

    .laptop-content {
        display: flex;
        flex-direction: column;
    }

    #mobile {
        height: 30vh;
        margin-bottom: 10rem;
    }

    .mobile-text {
        position: static;
        display: flex;
        width: 50%;
        flex-direction: column;
        margin-left: auto;
        text-align: left;
    }

    .mobile-img {
        width: 40%;
        top: 0;
    }

    /* FOOTER */
    footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 5rem 10rem;
    }

}