/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
img,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

a b {
    display: none;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html,body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-size: 16px;
    color: #666666;
}

blockquote {
    font-style: italic;
    margin-bottom: 2px;
}

a {
    color: #666666;
}

a:hover {
    color: #ffd204;
}

#container {
    width: 950px;
    margin: 0 auto;
    position: relative;
    height:auto !important;
    height:100%;
    min-height:100%;
}

#container header {
    height: 198px;
}

#container section {
    padding: 0 48px 150px;
}

#container footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    height: 48px;
    padding-top: 48px;
}

/* HEADER */
img.logo {
    padding-top: 58px;
    padding-left: 48px;
    float: left;
}

img.tagline {
    padding-top: 118px;
    padding-right: 48px;
    float: right;
}

/* MENU */
nav#menu {
    width: 100%;
    height: 39px;
    background: url("../img/nav-bg.png") repeat-x;
    text-align: center;
}

nav#menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 48px 8px 34px;
    display: inline-block;
    text-transform: uppercase;
    background: url("../img/nav-split.png") no-repeat top right;
}

nav#menu a:hover,
nav#menu a.active {
    color: #ffd204;
}

nav#menu a:last-child {
    background: none;
    padding-right: 8px;
}

nav#menu .mobile-menu {
    padding-top: 9px;
    display: none;
}

/* SLIDE */
div.slide {
    margin-bottom: 20px;
}

/* MAIN SECTION */
section div.content {
    display: inline-block;
    width: 540px;
    vertical-align: top;
}

section div.side {
    float: right;
    width: 274px;
    margin-top: 20px;
}

section div.content h1 {
    font-size: 42px;
    line-height: 40px;
    font-weight: normal;
    font-style: italic;
}

section div.content h2 {
    font-size: 32px;
    line-height: 28px;
    font-weight: normal;
    font-style: italic;
}

section#media div.content {
    width: 420px;
}

/* LOGIN */
.login {
    background: url('../img/login-bg.png') center center no-repeat;
    width: 272px;
    height: 284px;
    position: relative;
    margin-bottom: 24px;
}

.login h4 {
    color: #ffcc00;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 4px;
    left: 12px;
    font-size: 22px;
    line-height: 23px;
    font-weight: normal;
}

.login h5 {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 44px;
    left: 18px;
    font-size: 18px;
    font-weight: normal;
}

.login p {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 70px;
    left: 18px;
    font-size: 12px;
    line-height: 16px;
    width: 230px;
}

.login form label,
.login form input {
    position: absolute;
    left: 18px;
}

.login form label.user_id {
    top: 110px;
    text-transform: uppercase;
}

.login form label.password {
    top: 174px;
    text-transform: uppercase;
}

.login form input#user_id,
.login form input#password {
    background: transparent;
    border: none;
    padding-bottom: 1px;
    padding-left: 5px;
    padding-top: 5px;
    width: 230px;
    color: #aaaaaa;
}

.login form input#user_id {
    top: 134px;
}

.login form input#password {
    top: 200px;
}

.login form input#submit {
    width: 131px;
    height: 46px;
    top: 233px;
    left: 50%;
    margin-left: -65px;
    background: transparent url('../img/submit.png') center center no-repeat;
    border: none;
    text-indent: -9999px;
}

p.credentials {
    font-size: 12px;
    font-style: italic;
}

/* FOOTER */
footer {
    text-align: center;
    font-size: 14px;
    background: url("../img/footer-split.png") top center no-repeat;
}

footer small {
    display: inline-block;
    text-align: left;
    vertical-align: bottom;
    width: 560px;
    margin: 0 12px;
}

footer nav {
    display: inline;
    vertical-align: top;
}

footer nav.legal a {
    text-decoration: none;
}

footer nav.social {
    margin-left: 50px;
    vertical-align: top;
}

footer nav.social a {
    display: inline-block;
    vertical-align: middle;
    width: 28px;
    height: 28px;
    background: url("../img/social.png") no-repeat;
}

footer nav.social a.facebook { background-position: 0 0; }
footer nav.social a.flickr { background-position: -28px 0; }
footer nav.social a.pinterest { background-position: -55px 0; }
footer nav.social a.twitter { background-position: -83px 0; }
footer nav.social a.linkedin { background-position: -111px 0; }


/** ------ PAGES ---------------------------- **/

/** ABOUT **/
#about .side {
    background-color: #f5f5f6;
}

#about .biography {
    width: 247px;
    margin: 15px auto 0;
    padding-top: 15px;
    background: url('../img/dots.png') 3px top repeat-x;
    overflow: hidden;
}
#about .biography:last-child {
    margin-top: 12px;
    padding-bottom: 12px;
}

#about .biography img {
    float: left;
    width: 101px;
    height: 112px;
    border: 1px #e0e0e1 solid;
}

#about .biography .name-block {
    width: 144px;
    float: right;
}

#about .biography .name-block h3 {
    width: 124px;
    margin: 0;
    padding: 10px;
    background-color: #ffd200;
}

#about .biography .name-block p {
    width: 124px;
    margin: 0;
    padding: 6px 10px 0;
    font-size: 17px;
    line-height: 20px;
}

#about .biography .name-block a {
    margin: 6px 0 0 0;
    padding: 6px 10px 0;
    font-size: 17px;
    line-height: 20px;
    display: block;
    text-decoration: none;
}

/* CLIENTS */
#clients .content em,
#clients .content small {
    margin-left: 40px;
}

#clients .content em {
    font-style: normal;
    font-weight: bold;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

@media only screen
and (min-width : 768px)
and (max-width : 1024px) {
    #container {
        width: 760px;
    }

    #container header {
        height: 162px;
    }

    img.logo {
        width: 186px;
        height: 87px;
        padding-left: 24px;
        padding-top: 48px;
    }

    img.tagline {
        width: 204px;
        height: 16px;
        padding-right: 24px;
        padding-top: 96px;
    }

    nav#menu a {
        padding-right: 36px;
        padding-left: 18px;
    }

    div.slide img {
        width: 760px;
        height: auto;
    }

    #container section {
        padding-left: 0;
        padding-right: 0;
    }

    section div.content {
        width: 440px;
    }

    section#media div.content {
        width: 370px;
    }

    section div.content h1 {
        font-size: 34px;
        line-height: 32px;
    }

    #container footer {
        font-size: 13px;
    }

    footer small {
        width: 440px;
    }

    footer nav.social {
        margin-left: 30px;
    }
}


/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 767px) {

    #container {
        width: 100%;
    }

    #container header {
        height: 84px;
    }

    #container section {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 0px;
    }

    #container footer {
        height: auto;
        position: static;
        float: left;
        margin-bottom: 20px;
        font-size: small;
        text-align: center;
    }

    p {
        font-size: medium;
    }

    img.logo {
        width: 122px;
        height:  57px;
        padding-left: 10px;
        padding-top: 12px;
    }

    img.tagline {
        width: 140px;
        height: 11px;
        padding-right: 10px;
        padding-top: 41px;
    }

    div.slide {
        margin-bottom: 6px;
    }

    div.slide img {
        width: 100%;
        height: auto;
    }

    section div.content {
        width: 100%;
    }

    section#media div.content:last-child h1 {
        display: none;
    }

    section div.content h1,
    section div.content h2 {
         font-size: x-large;
         line-height: normal;
    }

    section div.content h2 {
        font-size: large;
    }

    section div.side {
        margin-left: auto;
        margin-right: auto;
        float: none;
        padding-top: 1px;
    }

    footer nav {
        display: block;
        margin: 6px 0 10px;
    }

    footer small {
        width: 90%;
        text-align: center;
    }

    footer nav.social {
        margin: 14px 0 0;
    }

    /* Mobile Nav */
    nav#menu {
        position: relative;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    nav#menu a {
        background: #666 none;
        color: #ffffff;
        font-size: 14px;
        padding: 10px 0 8px;
        text-decoration: none;
        text-transform: uppercase;
        width: 100%;
        float: left;
        display: none;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    nav#menu a.mobile-menu {
        display: block;
        height: 39px;
        position: relative;
        width: 100%;
        background: transparent url('../img/mobile-menu.png') center center no-repeat;
        background-size: 20px 20px;
    }

    nav#menu a:last-child {
        background: #666 none;
        padding-right: 0;
    }

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}