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

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

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

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

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

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

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

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

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

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

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}


/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .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; /* h5bp.com/t */
    }

    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;
    }
}

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

html {
    font-family: 'Open Sans', sans-serif;
    color: #eee;
}

body {
    font-size: 120%;
    background: #505D6B url(../img/grey-wood.png);
}

a {
    color: #fff;
    text-decoration: none;
    transition:         all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition:    all 0.5s ease;
    -ms-transition:     all 0.5s ease;
    -o-transition:      all 0.5s ease;
}

h1, h2, h3,
h4, h5, h6 {
    font-weight: normal;
}

p {
    font-family: 'Merriweather', serif;
}

.background-img {
    width: 100%;
    height: 400px;
    top: 0;
    z-index: -2;
    background: url(../img/bg-7.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.background-img.second {
    background-image: url(../img/bg-5.jpg);
}

.background-img.cards {
    background-image: url(../img/bg-5.jpg);
}

.background-img.net-mag {
    background-image: url(../img/bg-3.jpg);
}

.background-img.sublime {
    background-image: url(../img/bg-4.jpg);
}

.background-img.server {
    background-image: url(../img/bg-6.jpg);
}

header {
    position: fixed;
    right: 0;
    top: 0;
    width: 25%;
    height: 100%;
    background: #242A31 url(../img/navy-wood.png);
    border-left: 2px solid #718397;
}

header .logo-area {
    padding: 3em 3em;
}

header .logo-area span {
    display: block;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

header .logo-area span.location {
    font-family: 'Merriweather', serif;
    color: #eee;
    text-transform: none;
    font-size: 80%;
}

header nav {
    margin: 0 auto;
    max-width: 250px;
}

header nav ul {
    margin: 0;
    padding: 0;
    min-width: 65px;
}

header nav ul li a {
    display: block;
    padding: 0.8em;
    text-transform: uppercase;
    font-weight: 600;
}

header nav ul li a img {
    margin: -5px 15px 0 0;
}

header nav ul li a:hover {
    background: rgba(204, 204, 204, 0.1);
}

header .logo-area span.mobile-menu {
    display: none;
}

.main {
    text-align: center;
    width: 75%;
    margin: 0;
    padding: 0;
}

section {
    padding: 3em 0;
    background: #505D6B url(../img/grey-wood.png);
}

section.bg-trigger {
    padding: 4em 0;
}

section.blue-wood {
    background: #4FC1E0 url(../img/blue-wood.png);
    color: #fff;
}

section.light-wood {
    background: #EEEEEE url(../img/light-wood.png);
    color: #242A31;
}

section.light-wood h2 {
    color: #505D6B;
}

section.light-wood a {
    color: #242A31;
}

section a:hover {
    text-decoration: underline;
}

section.gap {
}

section.gap.thanks {
}

section .content {
    margin: 0 auto;
    max-width: 800px;
    padding: 3em;
}

section h1 {
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
}

section h2 {
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0;
    color: #242A31;
}

#map-canvas {
    padding: 0;
    height: 300px;
}

#map-canvas * {
    -webkit-transition: none !important;
    -moz-transition:    none !important;
    -ms-transition:     none !important;
    -o-transition:      none !important;
}

.has-features .content {
    padding-bottom: 0;
}

.has-features .features {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3em;
}

.features a {
    display: inline-block;
    width: 300px;
    height: 300px;
    margin: 1em 2em;
}

.features a:hover {
    text-decoration: none;
}

.features a img {
    width: 100px;
    background: rgba(36, 42, 49, 0.5);
    padding: 50px;
    border-radius: 35px;
}

.features a img:hover {
    background: rgba(36, 42, 49, 0.1);
    border-radius: 50px;
}

.features a span {
    display: block;
    line-height: 3em;
}

.tel {
    font-weight: bold;
    font-size: 200%;
    margin-bottom: 0;
}

form {
    background: rgba(36, 42, 49, 0.5);
    padding: 3em;
}

form ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

form ul li {
    line-height: 1.5em;
}

form ul li input {
    display: block;
    width: 98%;
    margin-bottom: 1em;
    border: 0;
    padding: 0.3em 1%;
}

form ul li textarea {
    display: block;
    width: 98%;
    margin-bottom: 1em;
    border: 0;
    padding: 0.3em 1%;
}

form .submit,
.project-popup {
    background: none;
    padding: 0.3em 2em;
    border: 2px solid #FFF;
    color: #FFF;
    text-transform: uppercase;
}

form .submit:hover,
.project-popup:hover {
    background: rgba(204, 204, 204, 0.1);
    text-decoration: none;
}

form label.error {
    margin-top: -1em;
    display: block;
    background: #b30000;
    margin-bottom: 1em;
}

.project-popup {
    display: inline-block;
    margin-top: 1em; 
}

.light-wood .project-popup {
    border-color: #242A31;
}

.light-wood .project-popup:hover {
    background: rgba(36, 42, 49, 0.3);
}

footer {
    padding: 2em 0;
    background: #242A31 url(../img/navy-wood.png);
    border-top: 2px solid #718397;
}

footer a:hover {
    text-decoration: underline;
}

footer small {
    display: block;
    line-height: 1.5em;
}

footer small {
    display: inline-block;
    width: 32%;
}

/* ==========================================================================
   Media Queries for Responsive Design.
   ========================================================================== */

@media only screen and (max-width: 1099px) {
    /* Style adjustments for viewports that meet the condition */
    * {
      -webkit-transition: all none;
      -moz-transition:    all none;
      -ms-transition:     all none;
      -o-transition:      all none;
    }

    body {
        font-size: 100%;
    }

    header {
        position: static;
        width: 100%;
        border: 0;
        overflow-x: hidden; 
    } 
    
    header .logo-area {
        padding: 2em 0;
    }

    header .logo-area span {
        display: inline-block;
        width: 28%;
        margin: 0 2.4%;
    }

    header .logo-area span.title {
        text-align: left;
    }

    header .logo-area span.location {
        display: none;
    }

    header nav {
        display: none;
        max-width: 100%;
        background: #242A31 url(../img/navy-wood.png);
    }

    header nav ul {
        max-width: 100%;
        border-bottom: 1px solid #718397;
    }

    header nav ul li {
        border-top: 1px solid #718397;
    }

    header nav ul li a {
        padding: 0.8em 2em;
    }

    header .logo-area span.mobile-menu {
        text-align: right;
        display: inline-block;
    }

    header .mobile-menu a {
        padding: 0.2em 2em;
        border: 2px solid #FFF;
    }
    
    header .mobile-menu a:hover{
        background: rgba(204, 204, 204, 0.1);
    }
    

    section.gap {
        margin-bottom: 0;
    }
        
    .background-img {
        background: none !important;
        display: none;
    }

    .main {
        width: 100%;
    }

    footer small {
        width: 100%;
    }
}

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

    header .logo-area span {
        width: 100%;
        margin: 0;
    }

    header .logo-area span.title,
    header .logo-area span.mobile-menu {
        text-align: center;
    }

    header .logo-area span.mobile-menu {
        margin-top: 1em;
    }
}

@media only screen and (max-width: 449px) {
    form {
        background: none;
        padding: 0;
    }
} 

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}