* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    background-color: #fbfaf6;
    line-height: 1.8rem;
    color: #494743;
}

h1, h2, h3, h4 {
    color: #32302b;
}

h1, h2, h3, h4, .email, .telephone, .instagram, nav a, #breadcrumbs, #rotator p, .yellow-bg a, .blue-bg a, form [type="submit"] {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

a {
    transition: color 0.3s ease-out;
    color: #494743;
    text-decoration: none;
}

a:hover {
    color: rgb(240, 185, 25);
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: block;
    width: 100%;
}

.grid:after {
    display: block;
    content: '';
    clear: both;
}

.grid .one-third, .grid .one-half, .grid .two-thirds {
    float: left;
    padding: 0 2.5rem;
    display: block;
}

.grid .one-third {
    width: 33.3%;
}

.grid .one-half {
    width: 50%;
}

.grid .two-thirds {
    width: 66.6%;
}

.grid .one-third:first-child, .grid .one-half:first-child, .grid .two-thirds:first-child {
    padding-left: 0;
}

.grid .one-third:last-child, .grid .one-half:last-child, .grid .two-thirds:last-child {
    padding-right: 0;
}

.grid .middle-third {
    padding: 0 1.25rem;
}

header {
    padding-top: 2.5rem;
}

header, header a {
    color: #494743;
    text-decoration: none;
}

header .email, header .telephone, header .instagram {
    display: inline-block;
    padding-left: 1.5rem;
    padding-top: 1rem;
}

header .logo {
    display: block;
    width: 300px;
    padding: 1rem 0;
}

header .logo img {
    width: 100%;
}

nav {
    margin-top: 1.5rem;
    background-color: #1e4470;
    border-bottom: 1px solid #fac11c;
}

nav ul, nav ul li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

nav a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease-out;
    margin-left: -0.25rem;
    position: relative;
}

nav ul li:first-child a {
    margin-left: 0;
}

nav a:hover, nav li.active a {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
}

nav li.active a {
    background-color: transparent;
}

nav li.active a:after {
    content: '';
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 1rem;
    background-color: #fbfaf6;
}

#breadcrumbs {
    background-color: #1e4470;
    color: #fff;
    padding: 2.5rem 0;
    padding-bottom: 3.1rem;
    position: relative;
}

#breadcrumbs:after {
    display: block;
    width: 100%;
    content: '';
    background: url(/storage/app/media/design/yellow_bg.jpg) repeat-x top left;
    height: 0.6rem;
    position: absolute;
    bottom: -1px;
}

#breadcrumbs h1, #breadcrumbs a {
    color: #fac11c;
    text-decoration: none;
}

#rotator, #rotator div {
    position: relative;
    height: 50vw;
    overflow: hidden;
}

#rotator.about, #rotator.about div {
    margin-top: 1.5rem;
    height: 65vw;
    max-height: 1200px;
}

#rotator div {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    width: 100%;
}

#rotator div.active {
    opacity: 1;
}

#rotator img {
    display: block;
    width: 100%;
}

#rotator p {
    font-size: 3rem;
    transform: translateY(-85%) translateX(-50%);
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 30rem;
    color: #fff;
    line-height: 3rem;
    text-shadow: rgba(0, 0, 0, 0.5) 1px 2px;
}

#rotator .pagination {
    position: absolute;
    bottom: 1.5rem;
    right: 2.5rem;
}

#rotator .pagination button {
    background-color: #1e4470;
    border: none;
    border-radius: 100%;
    width: 1rem;
    height: 1rem;
    position: relative;
    cursor: pointer;
    margin-left: 0.25rem;
}

#rotator .pagination button.active:after, #rotator .pagination button:hover:after {
    border-radius: 100%;
    background-color: #fac11c;
    display: block;
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
}

main h2 {
    font-size: 3rem;
    line-height: 3rem;
}

main h2:first-of-type {
    margin-top: 0;
}

main h3.no-top-margin {
    margin-top: 0;
}

#main {
    padding: 5rem 0;
}

#main h1 {
    font-size: 3rem;
}

.blue-bg, .yellow-bg, .testimonials {
    padding: 5rem 0;
    text-align: center;
}

.testimonials {
    padding-bottom: 0;
}

.blue-bg {
    margin-top: 5rem;
    background: url(/storage/app/media/design/blue_bg.gif) repeat top left;
    color: #fff;
}

.blue-bg h2 {
    color: #fac11c;
}

.blue-bg a, .blue-bg h3 {
    color: #fff;
}

.yellow-bg {
    background-color: #fac11c;
}

.yellow-bg h2 {
    color: #1e4470;
}

.yellow-bg a {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #fff;
    color: #1e4470;
    transition: all 0.3s ease-out;
    border: 2px solid transparent;
}

.yellow-bg a:hover {
    background-color: #fac11c;
    border: 2px solid #1e4470;
}

form input, form textarea, form select {
    width: 100%;
    padding: 1rem 0.5rem;
}

form input[name="email"] {
    display: none;
}

form label {
    display: block;
    margin-top: 1rem;
}

form label:first-of-type {
    margin-top: 0;
}

form [type="submit"] {
    display: inline-block;
    background-color: #fac11c;
    color: #1e4470;
    cursor: pointer;
    font-size: 1.25rem;
    border: none;
    padding: 1rem 2.5rem;
    width: auto;
    margin-top: 1rem;
}

.projectsandservices .grid {
    margin-bottom: 2.5rem;
}

.projectsandservices .grid:last-child {
    margin-bottom: 0;
}

.projectsandservices #rotator, .projectsandservices #rotator div {
    height: 40vw;
    max-height: 570px;
}

footer {
    padding-top: 6rem;
    color: #7d7b77;
    background-color: #1d1c1a;
}

footer a {
    color: #7d7b77;
    text-decoration: none;
}

footer h3, footer h4 {
    margin-top: 1rem;
    color: #fff;
    font-size: 2.5rem;
}

footer #footer {
    padding: 2.5rem 0;
    margin-top: 5rem;
    background-color: #191816;
}

@media screen and (max-width: 768px) {
    .container {
    }
    .grid .one-third, .grid .one-half, .grid .two-thirds {
        width: 100%;
        margin: 0 0 2.5rem 0;
        float: none;
        padding: 0;
    }
    .grid .one-third:last-of-type, .grid .one-half:last-of-type, .grid .two-thirds:last-of-type {
        margin-bottom: 0;
    }
    header {
        text-align: center;
    }
    header .one-third:first-child {
        margin-bottom: 0.5rem;
    }
    header .logo {
        max-width: 100%;
        margin: 0 auto;
    }
    header span.instagram, header span.telephone, header span.email {
        display: block;
        padding-left: 0;
        padding-top: 0;
    }
    nav .container {
        width: 100%;
    }
    main {
        text-align: justify;
    }
    #rotator p {
        font-size: 1.5rem;
        line-height: 1.5rem;
        text-align: center;
    }
    main h1, main h2 {
        text-align: center;
        line-height: 4rem;
    }
    footer {
        text-align: center;
    }
    footer ul, footer ul li {
        list-style: none;
        margin: 0;
        padding: 0;
    }
}