:root {
    --color-primary: #5d7b6f;
    --color-secondary: #eae7d6;
    --color-secondary-alpha: #5d7b6f90;
    --color-light: #ffffff;
    --color-light-grey: #dcdcdc;
}

body {
    margin: 0;
    font-family: "Roboto Slab", sans-serif;
    overflow-x: hidden;
    font-size: 1.1rem;
    line-height: 1.4;
    width: 100vw;
}

h1 {
    color: var(--color-secondary);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 2rem;
    margin: 0;
}

h2 {
    margin: 0;
    color: var(--color-secondary);
    font-size: 3rem;
}

h3 {
    margin: 0 0 24px 0;
}

h4 {
    color: var(--color-primary);
    margin: 0 0 24px 0;
}

img {
    width: 100%;
}

.o-section {
    position: relative;
    padding: 48px 5%;
}

.o-section--overlab {
    margin-top: -10%;
    padding-block: 0;
}

.o-section--dark {
    background-color: var(--color-primary);
    color: var(--color-light);
    text-align: center;
    position: relative;
    z-index: 2;
    padding-bottom: 15%;

    .o-section__design-element {
        position: absolute;
        z-index: 1;

        &:first-of-type {
            top: 4%;
            left: 2%;
            width: 60px;
        }

        &:nth-child(2) {
            top: 7%;
            right: 7%;
            width: 100px
        }

        &:nth-child(3) {
            bottom: 2%;
            width: 84px;
            left: 50%;
            transform: translate(-50%, 0);
        }
    }
}

.c-header {
    background-color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    width: 100vw;
    box-sizing: border-box;
}

.c-header__logo {
    width: 80px;
}

.c-header__menu {
    width: 100px;
    cursor: pointer;

    rect {
        fill: var(--color-secondary);
    }
}

.c-nav {
    position: absolute;
    top: 24px;
    background-color: #fff;
    padding: 12px 36px;
    font-size: 2rem;
    right: 10%;
    transition: right 200ms;
    z-index: 99;
    display: grid;
    box-shadow: 0 0 10px 2px var(--color-light-grey);
}

.c-nav__close {
    font-size: 3rem;
    justify-self: right;
    color: var(--color-primary);
    font-family: Arial, sans-serif;
    cursor: pointer;
}

.c-nav__list {
    list-style: none;
    padding: 0;
    line-height: 2;
}

.c-nav__item {
    width: fit-content;
    padding-inline: 12px;
    position: relative;
    z-index: 1;

    &::before {
        content: "";
        display: block;
        background-color: var(--color-secondary-alpha);
        width: 0;
        left: 0;
        top: 5%;
        z-index: -1;
        height: 90%;
        position: absolute;
        transition: 200ms;
    }

    &:hover::before {
        width: 100%;
    }

}

.c-nav__link {
    text-decoration: none;
    color: var(--color-primary)
}

.c-herostage {
    height: 65vh;
    background: linear-gradient(180deg, var(--color-primary) 85%, var(--color-secondary) 20%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.c-herostage__content {
    text-align: center;
    color: var(--color-light);
    padding-inline: 5%
}

.c-herostage__design-elements {
    position: absolute;
    right: 0;
    left: 5%;
    z-index: 1;
    top: 50%;
    transform: translate(0, -50%);
}

.c-herostage__media {
    width: 60%;
}

.c-herostage__img {
    width: 100%;
    border-radius: 12px;
}

.c-cards {
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 100px;
}

.c-card {
    border-radius: 12px;
    margin-top: 24px;
    display: grid;
    gap: 48px;
    text-align: center;
    padding: 48px;
    box-shadow: 0 0 10px 2px var(--color-light-grey);

}

.c-card__icon {
    background-color: var(--color-primary);
    padding: 24px;
    width: 48px;
    height: 48px;
    border-radius: 100%;
    justify-self: center;

    svg {
        fill: var(--color-secondary);
    }
}

.c-card__list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
}

.c-media-blocks {
    display: grid;
    gap: 48px;
    margin-top: 48px;

}

.c-media-block {
    display: grid;

    h3 {
        margin-top: 12px;
    }
}

.c-footer {
    background-color: var(--color-primary);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.c-footer__banner {
    background-color: var(--color-secondary);
    border-radius: 24px;
    width: 85%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    padding: 24px 5%;

    h3 {
        margin: 0
    }
}

.c-button {
    padding: 12px 24px;
    border-radius: 6px;
    outline: none;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-family: inherit;
    font-size: inherit;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 0 10px 2px var(--color-secondary);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 200ms;
    text-decoration: none;
    position: relative;

    &:hover {
        scale: 1.1;
        box-shadow: 0 0 10px 4px var(--color-secondary);
    }
}


.c-button__icon {
    padding-left: 48px;

    svg {
        width: 24px;
        position: absolute;
        top: 50%;
        transform: translate(0, -50%);
        left: 12px;
    }
}


.u-highlight {
    font-weight: 800;
    letter-spacing: 1px;
    display: block;
    font-size: 1.3rem;
    margin-bottom: 48px;
    color: var(--color-light);
}

.u-scroll-smooth {
    scroll-behavior: smooth;
}

.is-hidden {
    display: none;
}

@media screen and (min-width : 576px) {
    body {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .o-section--dark {
        padding-bottom: 7%;
    }

    .c-header {
        background: linear-gradient(90deg, var(--color-primary) 67%, var(--color-secondary) 33%);
    }

    .c-header__menu rect {
        fill: var(--color-primary)
    }

    .c-herostage {
        position: relative;
        height: 90vh;
        background: linear-gradient(90deg, var(--color-primary) 67%, var(--color-secondary) 33%);
    }

    .c-herostage__img {
        position: absolute;
        display: block;
        width: 25%;
        right: 15%;
        top: 3%;
        z-index: 1;
    }

    .c-herostage__content {
        position: absolute;
        top: 10%;
        left: 5%;
        text-align: left;

        p {
            width: 60%;
            margin: 24px 0 12px 0
        }
    }

    .c-herostage__design-elements {
        left: 40%;
        width: 50%;
        top: 40%;
    }

    .c-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        border-radius: 12px;
        box-shadow: 0 0 10px 2px var(--color-light-grey);
        margin-bottom: 100px;
    }

    .c-card {
        margin: 0;
        box-shadow: none;
        border-radius: 0;

        &:nth-child(1) {
            border-right: 2px solid var(--color-light-grey)
        }

        &:nth-child(2) {
            border-right: 2px solid var(--color-light-grey)
        }
    }

    .c-card__list {
        display: block;
    }

    .c-media-blocks {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}
