/* GENERAL SITE STYLES */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --primary-color: #1C4094;
    --light-color: #E6ECFA;
    --dark-color: #10235B;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

p, a, div {
    font-size: 18px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin: 10px 0;
    color: var(--primary-color);
}

img {
    width: 100%;
}

/* HEADER */

header {
    background-image: linear-gradient(to right, #E6ECF9, #99A2B6);
    margin: 20px 20px 0;
    border-radius: 40px 40px 0 0;
    padding-top: 40px;
    position: relative;
}

header .flex {
    justify-content: space-between;
}

header .logo {
    width: 20%;
}

header ul {
    display: flex;
}

header a {
    padding: 10px;
    margin: 0 25px;
    line-height: 1.3;
    transition: border 0.1s linear;
}

header a:hover {
    color: #FFF;
}

.header-navigation li a {
    font-weight: 700;
}

.header-navigation--mobile {
    display: none;
}


/* MENU MOBILE */

input[type="checkbox"] {
    visibility: hidden;
}

.navigation-mobile-content {
    position: absolute;
    border-radius: 20px 0 20px 20px;
    top: 100%;
    right: 5%;
    width: 90%;
    height: auto;
    background-color: var(--light-color);
    padding: 20px;
    box-shadow: -3px 3px 3px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

input[type="checkbox"]:checked~label~.navigation-mobile-content {
    opacity: 1;
    z-index: 1;
}

.navigation-mobile-content ul {
    display: flex;
    flex-direction: column;
}

.navigation-mobile-content a {
    display: block;
    border: none;
    padding: 10px 0;
}

.navigation-mobile-content li a {
    font-weight: 700;
}

/* SHOWCASE */

.showcase {
    background-image: linear-gradient(to right, #E6ECF9, #99A2B6);
    margin: 0 20px;
    border-radius: 0 0 40px 40px;
}

.showcase h1 {
    font-size: 48px;
    margin-top: 40px;
}

.showcase p {
    margin: 40px 0;
}

.showcase .grid {
    grid-template-columns: 45% 55%;
    gap: 30px
}

.showcase-links {
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-links a {
    margin-right: 25px;
}

.showcase-text {
    animation: slideFromLeft 0.5s ease-in;
}

.showcase img {
    animation: slideFromRight 0.5s ease-in;
}

/* CLIENTS */

.clients {
    padding: 100px 0;
}

.clients .flex {
    justify-content: space-around;
    margin: 80px 0;
}

.clients .grid {
    padding: 0 60px;
    gap: 40px;
}

/* OFFER */

.offer {
    background-color: var(--light-color);
    padding: 100px 0;
}

.offer .grid {
    gap: 50px;
}

.offer p {
    margin: 30px 0 50px;
}

/* ABOUT */

.about {
    padding: 100px 0;
}

.about img {
    width: 80%;
    justify-self: flex-end;
}

.about a {
    margin: 60px 0 0;
}

/* JOIN */

.join {
    background-color: var(--light-color);
    padding: 100px 0;
}

.join .flex {
    flex-direction: column;
    width: 60%;
}

.join a {
    margin: 60px 0 0;
}

/* FOOTER */

footer {
    background-color: var(--light-color);
    padding-bottom: 100px;
}

footer .container {
    border-top: 1px solid var(--primary-color);
}

footer .flex {
    justify-content: space-between;
}

.footer-logo, .footer-info {
    margin-top: 100px;
}

.footer-logo p, .footer-info p {
    font-size: 12px;
    margin-top: 10px;
}

.footer-info {
    text-align: right;
}

/* MEDIA QUERIES */

@media(max-width: 1280px) {
    .showcase .grid {
        grid-template-columns: 1fr;
    }

    .showcase img {
        width: 60%;
        justify-self: center;
    }

    .showcase-text {
        text-align: center;
        margin-top: 40px;
    }

    .clients .grid {
        padding: 0;
        gap: 15px;
    }
}

@media(max-width: 992px) {
    p, a, div {
        font-size: 16px;
    }

    header .logo {
        width: 50%;
    }

    .header-navigation, header .btn {
        display: none;
    }

    .header-navigation--mobile, .header-navigation--mobile .btn {
        display: block;
    }

    .showcase {
        position: relative;
        top: -1px;
    }

    .showcase h1 {
        font-size: 28px;
    }

    .clients .flex {
        justify-content: space-between;
    }

    .about img {
        width: 100%;
    }

    .join .flex {
        width: 100%;
    }
}

@media(max-width: 768px) {
    header {
        margin: 10px 10px 0;
        border-radius: 20px 20px 0 0;
    }

    header .logo {
        width: 50%;
    }

    .showcase {
        margin: 0 10px;
        border-radius: 0 0 20px 20px;
    }

    .grid, 
    .clients .grid, 
    .offer .grid, 
    .about .grid {
        grid-template-columns: 1fr;
    }

    .showcase img {
        width: 100%;
        justify-self: center;
    }

    .clients {
        padding: 40px 0;
    }

    .clients .flex {
        margin: 40px 0;
        align-items: center;
    }

    .clients img {
        width: 70%;
    }

    .clients .card {
        border-radius: 0px 20px 20px 20px;
    }

    .about,
    .join,
    .offer {
        padding: 40px 0;
        text-align: center;
    }

    .offer-item p {
        margin: 0 0 30px;
    }

    .about img {
        justify-self: center;
        width: 80%;
        border-radius: 20px 0 20px 20px;
    }

    .offer img {
        justify-self: center;
        width: 80%;
    }

    .offer .image-right {
        border-radius: 20px 0 20px 20px;
    }

    .offer .image-left {
        border-radius: 0 20px 20px 20px;
    }

    .join a {
        margin: 20px 0 0;
    }

    footer .flex {
        flex-direction: column;
    }

    .footer-logo, .footer-info {
        margin-top: 40px;
        text-align: center;
    }
}

@media(max-width: 576px) {
    p, a, div {
        font-size: 14px;
    }

    .showcase-links {
        flex-direction: column;
    }

    .showcase-links :first-child {
        margin-bottom: 20px;
    }
}