/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

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


/* -----------------------------------------------------------
------ ANDREW AT RED ALLOY, LAST UPDATED MAY 20 2015 ---------
-------------------------------------------------------------- */

body {
    font-family: Raleway, Helvetica, sans-serif;
    font-size: 18px;
    color: #3b414a;
    max-width: 100%;
}

.row {
    margin: 0;
}


.container {
    max-width: 992px;
    margin: 0 auto;
}


section {
    padding: 80px 0;
    text-align: center;
}


/* TYPOGRAPHY ------------------------- */

::-moz-selection { 
    background-color: #fd8203; 
    color: #fff;
    text-shadow: none;
}

::selection {
    background-color: #fd8203; 
    color: #fff;
    text-shadow: none;
}

a {
    color: #fd8203;
    text-decoration: none;
}

a:hover {
    color: #fd8203;
    text-decoration: underline;
}

h1 {
    font-size: 50px;
    text-align: right;
    padding: 80px 0 0;
    line-height: 1.1;
    z-index: 10;
    position: relative;
    font-weight: 300;
    color: #fff;
}

h1 span {
    font-size: 18px;
    color: #54b6fa;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.btn {
    background: #3b414a;
    color: #fff;
    padding: 12px 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border: 0;
    transition: all .2s;
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}

.btn:hover {
    background: #fff;
    color: #3b414a;
}

h2 {
    font-weight: 300;
    font-size: 40px;
    margin: 0;
    line-height: 1;
}

hr {
    height: 2px;
    border: 0;
    width: 300px;
    max-width: 50%;
    margin: 40px auto;
}

.hr-orange {
    background: #fd8203;
}

section p {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    color: #70747c;
}

section p + p {
    margin: 30px auto 0;
}

.intro p {
    font-size: 18px;
    width: 700px;
}

.intro p span {
    color: #fd8203;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 16px;
    text-transform: uppercase;
}

/* NAV BAR ------------------------- */

.navbar {
    padding: 0;
}

.navbar-brand {
    padding: 23px 0 15px 15px;
    width: 60%;
    max-width: 230px;
}

.navbar-brand img {
    width: 100%;
    height: auto;
}

nav {
    padding: 30px;
    background: #fff !important;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    -moz-box-shadow: 0 2px 10px rgba(0,0,0,.15);
    -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.15);
}


nav ul li {
    display: inline;
}

nav ul li a {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
    color: #979ba2;
}

.navbar-nav>li>a {
    padding: 30px;
}

.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>li>a:focus {
    color: #fd8203;
}

.navbar-default .navbar-toggle {
    margin: 25px 25px 25px 0;
    border: 2px solid #54b6fa;
}

.navbar-default .navbar-toggle .icon-bar {
    background: #3b414a;
}

.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    background: transparent;
}

/* HEADER ------------------------- */

header {
    background: url(../img/hero.jpg) top center no-repeat #f0f0f0;
    background-size: cover;
    min-height: 500px;
    margin-top: 80px;
    position: relative;
} 

/* SERVICES ------------------------- */

.services {
    background: #364e70;
    overflow: hidden;
    position: relative;
}

.services::before {
    content: ' ';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: url(../img/services.jpg) center center no-repeat;
    opacity: .15;
    background-size: cover;
}

.services {
    color: #fff;
    text-align: right;
}

.services hr {
    margin-right: 0;
}

.hr-blue {
    background: #54b6fa;
}

.services-list {
    float: left;
    width: 59%;
}

.services-copy {
    float: right;
    text-align: right;
    width: 39%;
}

.services p {
    color: #fff;
    margin: 0;
    max-width: 100%;
}


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

.services ul li {
    color: #54b6fa;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    line-height: 2;
}

/* ABOUT ------------------------- */

.columns {
  -webkit-column-count: 2;
     -moz-column-count: 2;
          column-count: 2;
    text-align: left;
    width: 700px;
    max-width: 90%;
    margin: 0 auto;
}

/* EXPERTS BAND ------------------------- */

.experts {
    padding: 80px auto;
    text-align: center;
    background: url(../img/experts.jpg) bottom left no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.experts-watermark {
    position: absolute; left: 0; right: 0; top: -200px;
    z-index: 0;
    opacity: .4;
}

.experts h2 {
    color: #fff;
    position: relative;
    z-index: 1;
}

/* CONTACT ------------------------- */

.contact {
    text-align: left;
    background: #e6e9ec;
    padding: 0;
}

.contact .row {
    background: url(../img/contact-map.png) top right no-repeat #e6e9ec;
    padding: 80px 0;
    position: relative; 
}

.contact .container {
    padding: 0;
}

.contact h2 {
    margin-bottom: 40px;
    color: #54b6fa;
}

.contact hr {
    margin: 40px 0;
}

.hr-white {
    background: #fff;
}

.contact p {
    margin: 0 0 20px;
    max-width: 350px;
}

.contact-phone, .contact-fax {
    display: inline-block;
}

.contact-phone {
    max-width: 200px;
}

.contact-phone span, .contact-fax span, .contact-email span {
    color: #54b6fa;
    text-transform: uppercase;
    font-size: 14px;
}

.contact-email {
    margin-bottom: 40px;
}

.location {
    width: 12px;
    height: 12px;
    border-radius: 100%;
    -moz-border-radius: 100%;
    -webkit-border-radius: 100%;
    border: 2px solid #54b6fa;
    position: absolute;
    transition: all .3s;
}

.location:hover {
    background: #3b414a;
}

.tooltip {
    line-height: 2.5;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 11px;
}

.tooltip span {
    background: #c0c0c0;
}

/* LOCATION DOTS ------------------------- */

#seattle { top: 260px; right: 543px; }
#denver { top: 380px; right: 425px; }
#chicago { top: 358px; right: 235px; }
#stlouis { top: 420px; right: 260px; }
#memphis { top: 450px; right: 250px; }
#atlanta { top: 470px; right: 170px; }
#washington { top: 378px; right: 125px; }
#newyork { top: 335px; right: 95px; }
#connecticut { top: 308px; right: 75px; }

/* FOOTER ------------------------- */


footer {
    color: #a8b1bb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 20px 0;
}

footer a {
    color: #a8b1bb;
}

footer p {
    margin: 0;
}

/* MEDIA QUERIES ------------------------- */


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

    .services-copy {
        float: none;
        text-align: center;
        width: 100%;
    } 

    .services-list {
        float: none;
        width: 100%;
    }   

    .services-list ul {
        text-align: center;
        margin-top: 40px;
    }

    .services hr {
        margin-right: auto;
    }

    .columns {
  -webkit-column-count: 1;
     -moz-column-count: 1;
          column-count: 1;
    text-align: left;
    width: 700px;
    max-width: 90%;
    margin: 0 auto;
    }

    .contact .address {
        margin-top: 350px;
    }

    .contact {
        text-align: center;
    }

    .contact p {
        max-width: 90%;
    }

    .contact p, .contact hr {
        margin-left: auto;
        margin-right: auto;
    }

    .contact hr {
        background: #a0a0a0;
    }

    .contact-phone, .contact-fax, .contact-email {
        max-width: 33.33%;
        display: inline;
        float: left;
    }

    .message {
        margin: 40px auto 0;
    }

}

@media screen and (min-width:768px) {
.navbar-brand {
    min-width:200px;
}
}

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

    h1 {
        font-size: 40px;
        padding-top: 20px;
        text-align: center;
    }

    header {
        min-height: 400px;
    }

    header::before {
        visibility: visible;
    }

    .contact-phone, .contact-fax, .contact-email {
        display: block;
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .message {
        width: 80%;
        padding: 30px;
    }

    .experts {
        padding: 40px 0;
        text-align: center;
        background: url(../img/experts.jpg) top right no-repeat;
        position: relative;
        overflow: hidden;
    }

    .experts h2 {
        font-size: 40px;
        color: #fff;
    }

    footer {
        text-align: center;
    }
}

@media screen and (max-width: 500px) {
    section, .contact .row {
        padding: 40px 0;
    }

    h2, .experts h2 {
        font-size: 30px;
    }
}

/* End author styles */


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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

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

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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