.content-box {
    width: 80%;
    margin: 0 auto;
}

.grey {
    background: #FFDB31;
}

/* LAYOUT */

header {
    padding: 1.5rem 0;
}

header .content-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    width: 12rem;
}

#main-menu li {
    display: inline-block;
    margin: 0 1rem;
}

#main-menu li a {
    color: inherit;
	
}

#tel a {
    display: inline-block;
    background: url("../img/tel.svg") center left no-repeat;
    background-size: auto 100%;
    padding-left: 1.8rem;
    color: inherit;
    font-weight: 600;
}

#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: 1vw 0vw 25vw 0;
    position: relative;
}

#hero img {
    position: absolute;
    bottom: 0;
    right: 15%;
    width: auto;
    height: 95%;
}

#hero-text {
    background: #FFDB31;
    padding: 1.7rem;
    max-width: 26rem;
    text-align: center;
	font-weight: 400;
}

#main-content-top {
    background: url("../img/hero-bg.jpg") center center no-repeat;
    background-size: cover;
    padding: 10rem;
    position: relative;
}

.container {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;	
	padding: 50px 8%;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	grid-gap: 30px;
}

.gallery img {
	width: 100%;
}

.services img {
    height: 2rem;
    width: auto;
    margin: 0 auto 1.5rem auto;
}

.services .grey {
	padding: 0.8rem;
	text-align: center;
	margin-top: 2rem;
}

.services a {
    display: block;
    color: inherit;
}

.services a:hover .grey {
    background: #e7e7e7;
}

#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: 75%;
    padding: 0.7rem 0.5rem 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;
    margin-top: 4rem;
}

footer .content-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

#foot-info li,
#foot-menu li {
    display: inline-block;
    margin: 0 1rem;
}

#foot-menu li a {
    color: inherit;
}

#foot-menu li a:hover {
    color: #FFDB31;
}

#copyright {
    padding: 1rem 0;
    font-size: smaller;
    text-align: center;
}

#qr {
	width: 170px;
}

/* 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:860px) {

    #main-menu li {
        display: block;
        margin-bottom: 0.5rem;
    }

    #main-menu li:last-of-type {
        margin-bottom: 0;
    }
	
	#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;
    }

    h1,
    h2 {
        font-size: 2rem;
    }
}
