/***** Import the reset and the @font face rules ******/
@import url("reset-type.css");

/*********** Your rules go below this line ************/

body {
    font-family: FuturaStdBook, sans-serif;
    color: #333;
    font-size: 16px;
}

#page {
    width: 960px;
    margin: auto;
}

/*********** Header Rules **************/

header {
    height: 110px;
    padding-top: 15px;
    position: relative;
}

.logo {
    display: block;
    position: relative;
}

.logo img {
    width: 90px;
}

.logo h1 {
    color: #5d5d5d;
    text-transform: uppercase;
    font-size: 24px;
    position: absolute;
    top: 41px;
    left: 42px;
}

.logo h2 {
    font-family: FuturaStdLightCondensedObliqu;
    color: #5d5d5d;
    font-size: 24px;
    position: absolute;
    top: 70px;
    left: 80px;
}

header nav {
    width: 480px;
    position: absolute;
    bottom: 0;
    right: 0;
    background: #cccccc;
}

header nav ul {
    overflow: hidden;
    padding-left: 10px;
    display: flex;
}

header nav ul li {
    display: inline-block;
}

header nav ul li a {
    display: block;
    text-transform: uppercase;
    color: #e66b5b;
    font-family: FuturaStdBoldCondensed;
    font-size: 24px;
    padding: 10px;
}

header nav ul li a:hover {
    color: #017c8d;
}

/************* Map rules ************/

#map {
    height: 454px;
    position: relative;
}

#map img,
#small-map img {
    display: block;
}

#small-map {
    height: 116px;
}

#map a {
    display: block;
    width: 100%;
    text-align: center;
    position: absolute;
    left: 0;
    bottom: 15px;
    font-family: FuturaStdBoldCondensed;
    font-size: 24px;
    color: #bdbf55;
}

#map a:hover {
    color: #e66b5b;
}

/*************** Top Rules ****************/

#top {
    overflow: hidden;
    display: flex;
}

.col {
    width: 200px;
    padding: 20px;
}

#top .col {
    height: 200px;
    display: table;
}

#top .col p {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    font-family: FuturaStdLightCondensed;
    font-size: 24px;
    line-height: 1.5em;
}

.people {
    background: #bebe55;
}
.technology {
    background: #e66b5b;
}
.solutions {
    background: #8ac4c5;
}
.projects {
    background: #017c8d;
}

/**************** Content rules ****************/

#content {
    overflow: hidden;
    background: #ccc;
    padding: 30px 30px 30px 0;
}

#content article {
    display: grid;
    grid-template-columns: 480px 1fr;
    grid-template-rows: 0.9fr 1.1fr 1fr 1fr 1fr;
    column-gap: 30px;
}

#content article h1 {
    grid-row: 1/2;
    margin-bottom: 0;
}

#content article p:first-of-type {
    grid-row: 2/5;
    margin-bottom: 0;
}

#content article p:last-of-type {
    grid-row: 5/6;
    margin-bottom: 0;
}

#content article img {
    grid-row: 1/6;
}

#content h1,
#middle h1 {
    font-family: FuturaStdBoldCondensed;
    font-size: 30px;
    margin-bottom: 0.5em;
    color: #5c5c5c;
}

#content p,
#middle p {
    margin-bottom: 1em;
    line-height: 1.5em;
}

/**************** Footer rules ****************/

footer {
    display: flex;
    overflow: hidden;
    background: #5c5c5c;
    padding: 30px 0;
    color: #ebebeb;
}

footer a {
    color: #ebebeb;
}

footer .logo h1 {
    color: #ebebeb;
}

footer p,
footer li {
    margin-bottom: 1em;
}

/**************** middle rules ****************/

a {
    color: #017c8d;
}

.thirds-layout #middle {
    background: url(images/33-66bg.gif) repeat-y;
    overflow: hidden;
    display: flex;
}

.thirds-layout aside {
    width: 320px;
    padding-bottom: 30px;
    flex: 1;
}

#middle article {
    padding: 20px;
    overflow: hidden;
}

.thirds-layout #maincontent {
    width: 640px;
    flex: 2;
}

#middle #maincontent img {
    margin-bottom: 20px;
}

#newsletter {
    overflow: hidden;
    display: flex;
}

#newsletter input[type="text"] {
    width: 75%;
    border: 2px solid #5c5c5c;
    border-right: none;
    padding: 8px;
    height: 20px;
}

#newsletter input[type="submit"] {
    width: 15%;
    text-align: center;
    font-family: FuturaStdBoldCondensed;
    border: 2px solid #5c5c5c;
    background: #017c8d;
    color: #ebebeb;
    height: 40px;
    font-size: 20px;
}

::-webkit-input-placeholder {
    font-family: FuturaStdLightCondensedObliqu;
}

:-moz-placeholder {
    /* Firefox 18- */
    font-family: FuturaStdLightCondensedObliqu;
}

::-moz-placeholder {
    /* Firefox 19+ */
    font-family: FuturaStdLightCondensedObliqu;
}

:-ms-input-placeholder {
    font-family: FuturaStdLightCondensedObliqu;
}

.half-layout #middle {
    background: url(images/50-50bg.gif) repeat-y;
    overflow: hidden;
    display: flex;
}

.half-layout aside {
    width: 480px;
    padding-bottom: 30px;
}

.half-layout aside article:first-of-type,
.half-layout aside article:last-of-type {
    display: block;
}

.half-layout aside article {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
}

.half-layout aside article h1 {
    grid-column: 2;
}

.half-layout aside article p {
    grid-column: 2;
}

.half-layout #maincontent {
    width: 480px;
}

.globe {
    grid-row: 1/3;
}

/***************** Blog Rules *****************/

#maincontent h2 {
    font-family: FuturaStdBoldCondensed;
    font-size: 24px;
    margin-bottom: 0.2em;
    text-transform: uppercase;
}

#maincontent .date {
    font-family: FuturaStdLightCondensedObliqu;
}
