.content-box {
    width: 80%;
    margin: 0 auto;
}

.grey {
    background: #F5F5F5;
}

/* LAYOUT */

header {
    padding: 1.5rem 0;
}

header .content-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    max-width: 12rem;
}

#main-menu li {
    display: inline-block;
    margin: 0 1rem;
}

#main-menu li a {
    text-transform: uppercase;
    font-weight: 600;
    color: inherit;
}


#tel a {
    display: inline-block;
    background: url(../img/tel.svg) center left no-repeat;
    background-size: auto 100%;
    padding-left: 1.5rem;
    font-weight: 600;
    color: inherit;

}

#main-menu li a:hover,
#tel a:hover {
    color: #FFDB31;
}

section {
    margin-bottom: 4vw;
}

.home section {
    text-align: center;
}

#hero {
    background: url(../img/hero-bg.jpg) center center no-repeat;
    background-size: cover;
    padding: 10vw 0;
    position: relative;
}

#hero img {
    position: absolute;
    bottom: 0;
    right: 15%;
    width: auto;
    height: 95%;
}

#hero-text {
    background: #FFDB31;
    padding: 1.5rem;
    max-width: 26rem;
    text-align: left;
}

#main-content-top {
    background: url(../img/hero-bg.jpg) center center no-repeat;
    background-size: cover;
    padding: 3rem 0;
    position: relative;
}

.services img {
    height: 5rem;
    width: auto;
    margin: 0 auto 1.5rem auto;
}

.services .grey {
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.services a {
    display: block;
    color: inherit;
}

.inner:hover,
.services a:hover .grey {
    background: #FFDB31;
}

.notice {
    background: #F5F5F5;
    padding: 0.5rem;
    max-width: 30rem;
    margin: 0 auto;
}

#portfolio .button {
    margin-top: 2rem;
}

#how-we-work .work-item {
    display: flex;
    justify-content: space-between;
    background: #F5F5F5;
    text-align: left;
    margin-bottom: 2rem;
}

#how-we-work .work-item > div:first-of-type {
    width: 30%;
}

#how-we-work .work-item > div:last-of-type {
    width: 70%;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
}

#how-we-work h3 span {
    color: #FFDB31;
}

#about {
    background: #F5F5F5;
    text-align: left;
    position: relative;
    z-index: 0;
}

.offset-left {
    padding-left: 10%;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#offer {
    text-align: center;
    border-top: solid 0.25rem #f5f5f5;
    padding-top: 2rem;
}

.home #offer {
    border-top: none;
    padding-top: 0;
}

#offer p {
    max-width: 45rem;
    margin: 0 auto 1rem auto;
}

footer {
    background: #F5F5F5;
    padding: 1.5rem 0;
    font-size: smaller;
}

footer .content-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#foot-menu li,
#foot-info li {
    display: inline-block;
    margin: 0 1rem;
}

#foot-menu li a {
    color: inherit;
}

#copyright {
    padding: 1rem 0;
    text-align: center;
    font-size: smaller;
}

#newsletter {
    padding: 1rem 0;
    text-align: center;
    background: #FFDB31;
    color: #000;
}

#newsletter .flexi {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

#newsletter a {
    color: #000;
    font-weight: bold;
    text-decoration: underline;
}

#newsletter input[type="text"],
#newsletter input[type="email"] {
    font-family: inherit;
    border: solid 2px #000;
    border-radius: 0px;
    padding: 0.5rem;
    margin: 0 0.25rem;
}

#newsletter input[type="submit"] {
    display: inline-block;
    border: none;
    border-radius: 0px;
    background: #000;
    color: #FFDB31;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0.5rem 0.7rem;
    margin: 0 0.25rem;
    height: 2rem;
}

/* MEDIA QUERIES */

@media screen and (max-width: 1280px) {
    .content-box {
        width: 90%;
    }

    .offset-left {
        padding-left: 5%;
    }
}

@media screen and (max-width: 1199px) {

    header .content-box {
        flex-wrap: wrap;
    }

    #main-menu {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: solid 1px #ccc;
    }

    #hero img {
        right: 5%;
    }

    footer .content-box {
        display: block;
        text-align: center;
    }

    #foot-info {
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 868px) {

    #foot-info li,
    #foot-menu li {
        display: block;
        margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 767px) {

    #main-menu li {
        display: block;
        margin-bottom: 0.5rem;
    }

    #main-menu li:last-of-type {
        margin-bottom: 0;
    }

    #hero {
        padding: 2rem 0 26rem 0;
    }

    #hero img {
        right: 50%;
        margin-right: -8rem;
        height: auto;
        width: 16rem;
    }

    #hero-text {
        max-width: initial;
        text-align: center;
    }
}

@media screen and (max-width: 479px) {

    #logo {
        max-width: initial;
        width: 70%;
        margin: 0 auto 1rem auto;
    }

    #tel {
        margin: 0 auto;
    }

    h2,
    h1 {
        font-size: 2.5rem;
    }
}
