/*! 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
    background: black !important;
    font-size: 14px;
    -webkit-font-smoothing: subpixel-antialiased;
    font-family: "Source Sans Pro", sans-serif;
    letter-spacing: 0.03em;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
}
h1 {
    letter-spacing: 0.04em;
}
h2 {
    text-align: center;
}
h3, h4, h5, h6 {
    font-size: 1.35em;
}
p, label, ol li {
    font-size: 1.1em;
    font-weight: 300;
}
strong {
    font-weight: 600;
}

section {
    padding: 70px 0 80px;
    background-color: #F8F9F7;
}
section h2 {
    height: 100px;
    padding-top: 35px;
    background: url(../img/logoBack.png) no-repeat center;
    margin-bottom: 60px;
    font-size: 2em;
}
section section /*subsection*/ {
    margin: 90px 0 -80px;
    padding: 60px 0 75px;
    background-color: #318a4d;
}

a:link , a:visited {
    color: #318a4d;
}
a:hover, a:focus {
    color: #111;
    text-decoration: none;
}
a:focus {
    outline: none;
}

a.btn, a.btn:focus, a.btn:hover {
    border: 2px solid #FFF;
    text-transform: uppercase;
    border-radius: 0px;
    color: #FFF;
    font-family: "Raleway";
}
a.btn:focus {
    outline: none;
}

.jumbotron {
    margin-bottom: 0px;
    text-align: center;
}
.jumbotron p {
    color: #FFF;
    font-family: 'Source Sans Pro';
    font-weight: 300;
    margin: 10px 0;
}

.transparent {
    background-color: transparent;
    border-color: transparent;
}

.valignParent {
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.valignElem {
    position: relative;
    top: 53.5%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);

    max-width: 760px;
}

.noscroll {
    overflow: hidden;
}

.overlapCap {
    letter-spacing: -0.07em;
}

/*  =======================
    Navbar (header > nav)
    ======================= */

/*
 *  Overwrite Bootstrap nav css
 */
.navbar-inverse {
    background-color: transparent;
    border-color: transparent;
}
.navbar-inverse .navbar-nav>li>a,
.navbar-inverse .navbar-nav>li>a:visited,
.navbar-inverse .navbar-nav>li>a:hover,
.navbar-inverse .navbar-nav>li>a:focus,
.navbar-inverse .navbar-nav>li.active>a,
.navbar-inverse .navbar-nav>li.active>a:visited,
.navbar-inverse .navbar-nav>li.active>a:hover,
.navbar-inverse .navbar-nav>li.active>a:focus {
    background-color: transparent;
}
.navbar-inverse .navbar-toggle {
    border-color: transparent;
    margin-right: 0;
}
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
    background-color: transparent;
}

.navbar-fixed-top {
    padding: 15px 20px 0;
}
.navbar-fixed-top .navbar-header {
    margin-bottom: 15px;
}
.navbar-fixed-top .navbar-brand,
.navbar-fixed-top.affix .navbar-brand {
    display: block;
    position: relative;
    padding: 0;
    height: 50px;
}
/* #logoImg */
.navbar-fixed-top .navbar-brand #logoImg,
.navbar-fixed-top.affix .navbar-brand #logoImg {
    display: inline-block;
    vertical-align: middle;
    background-image: url(../img/logoB50.png);
    width: 50px;
    height: 50px;
    margin: 0 -2px 0 0;
}
.navbar-fixed-top .navbar-brand #logoTxt {
    display: inline-block;
    vertical-align: middle;
}
.navbar-fixed-top .navbar-brand #logoTxt h1,
.navbar-fixed-top.affix .navbar-brand #logoTxt h1 {
    color: #FEFEFE;
        
    font-weight: 500;
    font-size: 0.9em;
    letter-spacing: 0em;
    line-height: 0.9em;

    height: 40px;
    margin: 0;
}
.navbar-fixed-top .navbar-nav li a{
    padding: 0;
    font-size: 0.9em;
    font-family: "Raleway";
}

/*  =======================
    #home (splash/intro screen)
    ======================= */

#home {
    background: url("../img/splashBackA.jpg") no-repeat center center;
    background-attachment: scroll;
    background-size: cover;
    color: #FFF;
}
#home .blackOverlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: -moz-radial-gradient(center, ellipse cover, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%); /* FF3.6+ */
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(0,0,0,0.1)), color-stop(100%,rgba(0,0,0,0.85))); /* Chrome,Safari4+ */
    background: -webkit-radial-gradient(center, ellipse cover, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.85) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-radial-gradient(center, ellipse cover, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.85) 100%); /* Opera 12+ */
    background: -ms-radial-gradient(center, ellipse cover, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.85) 100%); /* IE10+ */
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.85) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

#home .jumbotron h2 {
    font-weight: 600;
    font-size: 2.35em;
    line-height: 60px;
    border-bottom: 3px solid #FFF;
    display: inline;
    color: #FFF;
    background: none;
}
#home .jumbotron p {
    margin: 15px 0 45px;
    font-size: 1.3em;
}
#home .jumbotron p strong {
    text-transform: uppercase;
}

/* #about */

    #principles .principle {
        padding: 20px 40px 20px 20px;
    }
    #principles .principle i,
    #principles .principle h3,
    #principles .principle p,
    #serving h3 {
        color: #FFF;
    }
    #principles .principle i{
        position: absolute;
        opacity: 0.15;
        margin: -10px 0 0 -55px;
    }
    #principles .principle i.fa-shield.fa-5x {
        margin-left: -52px;
        font-size: 5.35em;
    }
    #principles .principle h3 {
        font-weight: 500;
    }

        #principles .jumbotron {
            margin-top: 48px;
            background-color: #4F9B67;
        }
        #principles .jumbotron p {
            font-size: 1.3em;
        }

/* #services */

    #services h2 {
        margin-bottom: 50px;
    }
    #services .service {
        margin-bottom: 50px;   
        margin-top: 15px;     
    }
    #services .service:last-child {
        margin-bottom: 0px;     
    }
    #services .service .imgContain {
        height: 170px;
        width: 170px;
        display: inline-block;
        overflow: hidden;
    }
    #services .service .imgContain img {
        height: 170px;
    }
    #services .service .imgContain img.toDaLeft {
        margin-left: -40px;
    }
    #services .service .imgContain img.zoomIn {
        height: 230px;
    }
    #services .service h3 {
        font-size: 1.25em;        
    }
    #services .service p {
        max-width: 350px;
        margin: 0 auto 10px;        
    }
    #services .service a {
        color: #318a4d;
        text-transform: uppercase;
        font-weight: 600;
    }

    /* Overlay style */
    .overlay {
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: #232323;
        z-index: 9998;
        overflow: scroll;
        color: #FFF;
    }
    .overlay .container{
        padding: 40px;
    }
    .overlay h2, .overlay h3, .overlay a {
        color: #FFF;
    }
    .overlay h2 {
        background: url(../img/logoBackW.png) no-repeat center;
    }
    .overlay h3 {
        padding: 50px 0;
        margin-top: 30px;
        text-align: center;
    }
    .overlay img {
        margin: 0 auto;
    }

    /* Overlay closing cross */
    .overlay a.overlay-close {
        width: 58px;
        height: 58px;
        position: fixed;
        right: 40px;
        top: 40px;
        overflow: hidden;
        border: none;
        outline: none;
        z-index: 9999;
    }

    /* Effects */
    .overlay {
        visibility: hidden;
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
        -webkit-transition: -webkit-transform 0.4s ease-in-out, visibility 0s 0.4s;
        transition: transform 0.4s ease-in-out, visibility 0s 0.4s;
    }

    .overlay.open {
        visibility: visible;
        -webkit-transform: translateY(0%);
        transform: translateY(0%);
        -webkit-transition: -webkit-transform 0.4s ease-in-out;
        transition: transform 0.4s ease-in-out;
    }

/* #contact */

#contact {
    background-color: #232323;
    color: #FFF;
    padding-bottom: 0px
}
#contact .jumbotron {
    background-color: #343434;
    padding: 16px 16px 20px;
}
#contact .jumbotron h3 {
    color: #FFF;
    font-weight: 300;
    line-height: 1.4em;
    font-size: 1.6em;
    font-family: 'Source Sans Pro';
}
#contact .contactSide {
    padding: 60px 20px 60px;
}
    #contact .contactCell {
        padding: 50px 5px;
    }
    #contact h4 {
        color: #FFF;
    }
    #contact .contactCell a {
        color: #FFF;
    }
    
    #contact .form-group {
        width: 100%;
    }
    #contact input.form-control,
    #contact textarea.form-control,
    #contact input.submitForm {
        border-radius: 0px;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
        border-left: 0;
        border-right: 0;
        
        margin-bottom: 20px;
        height: 40px;

        font-weight: 600;
    }
    #contact input.form-control,
    #contact textarea.form-control {
        background-color: #232323;
        color: #FFF;
        width: 100%;
    }
    #contact textarea.form-control {
        height: 100px;    
    }
    #contact input.submitForm {
        background-color: #FFF;
        color: #111;
        text-transform: uppercase;
        padding: 0 40px;
        font-size: 0.9em;
    }

footer {
    color: #FFF;
    background-color: #232323;
}
footer .row {
    border-top: 1px solid #343434;
    padding: 60px 0 40px;
}

/* ==========================================================================
   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;
}

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

/* ==========================================================================
    For sm+ devices
   ========================================================================== */

@media handheld, only screen and (min-width: 768px) {

    section {
        padding: 80px 0 90px;
    }
    section section /*subsection*/ {
        margin: 140px 0 -90px;
    }

    /*
     *  Overwrite Bootstrap nav css
     */
    .navbar-inverse .navbar-nav>li>a,
    .navbar-inverse .navbar-nav>li>a:visited,
    .navbar-inverse .navbar-nav>li>a:hover,
    .navbar-inverse .navbar-nav>li>a:focus,
    .navbar-inverse .navbar-nav>li.active>a,
    .navbar-inverse .navbar-nav>li.active>a:visited,
    .navbar-inverse .navbar-nav>li.active>a:hover,
    .navbar-inverse .navbar-nav>li.active>a:focus {
        color: #111;
        border: 2px solid transparent;
    }
    .navbar-inverse .navbar-nav>li.active>a,
    .navbar-inverse .navbar-nav>li.active>a:visited,
    .navbar-inverse .navbar-nav>li.active>a:hover,
    .navbar-inverse .navbar-nav>li.active>a:focus {
        border-top: 2px solid black;
        border-bottom: 2px solid black;
    }

    .navbar-fixed-top,
    .navbar-fixed-top.affix {
        background-color: #fff;
        border-bottom: 1px solid #E9EAE4;
        padding: 15px 20px 15px 30px;
        position: fixed;
    }
    .navbar-fixed-top .navbar-header,
    .navbar-fixed-top.affix .navbar-header {
        margin-bottom: 0px;
    }
    .navbar-fixed-top .navbar-brand #logoTxt h1,
    .navbar-fixed-top.affix .navbar-brand #logoTxt h1 {
        color: #111;
        font-weight: 600;
    }
    /* #ctc-navbar */
    .navbar-fixed-top .navbar-nav li a,
    .navbar-fixed-top.affix .navbar-nav li a,
    .navbar-fixed-top.affix .navbar-nav li.active a {
        color: #111;
        line-height: 22px;
        margin: 13px 35px 10px;
        font-weight: 600;
    }
    .navbar-fixed-top .navbar-nav li:last-child a,
    .navbar-fixed-top.affix .navbar-nav li:last-child a {
        color: #318a4d;
    }
    .navbar-fixed-top.affix .navbar-nav li.active:last-child a {
        border-color: white;
    }
}

/* ==========================================================================
    For mdish+ devices (iPad fix) 1025 instead of 992
   ========================================================================== */

@media handheld, only screen and (min-width: 1025px) {

    body {
        font-size: 16px;
    }

    a.btn,
    a.btn:hover {
        -webkit-transition: all 0.4s ease 0.15s;
        -o-transition: all 0.4s ease 0.15s;
        transition: all 0.4s ease 0.15s;
    }
    a.btn:hover {
        border: 2px solid #BBB;
        color: #BBB;
    }

    /*  =======================
        #home
        ======================= */
    #home {
        background-attachment: fixed;
    }
    /*
     *  Overwrite Bootstrap nav css
     */
    .navbar-inverse .navbar-nav>li>a,
    .navbar-inverse .navbar-nav>li>a:visited,
    .navbar-inverse .navbar-nav>li>a:hover,
    .navbar-inverse .navbar-nav>li>a:focus {
        color: #FFF;
    }
    .navbar-fixed-top {
        background-color: transparent;
        border-bottom: 1px solid transparent;
        padding-top: 25px;
    }
    /* #logoImg */
    .navbar-fixed-top .navbar-brand #logoImg {
        background-image: url(../img/logoW50.png);
    }
    .navbar-fixed-top .navbar-nav li a {
        color: #FFF;
        font-weight: 500;
    }
    .navbar-fixed-top .navbar-nav li:last-child a {
        color: #FFF;
        border-top: 2px solid #FFF;
        border-bottom: 2px solid #FFF;
    }
    .navbar-fixed-top .navbar-brand #logoTxt h1 {
        color: #FFF;
        font-weight: 500;
    }

    .navbar-fixed-top,
    .navbar-fixed-top .navbar-brand #logoTxt h1,
    .navbar-fixed-top .navbar-brand #logoImg,
    .navbar-fixed-top .navbar-nav li a {
        -webkit-transition: all 0.4s ease 0.15s;
        -o-transition: all 0.4s ease 0.15s;
        transition: all 0.4s ease 0.15s;
    }
    /* #ctc-navbar */
    .navbar-fixed-top.affix .navbar-nav li a,
    .navbar-fixed-top.affix .navbar-nav li.active a {
        color: #111;
        line-height: 22px;
        margin: 13px 35px 10px;
        font-weight: 600;
        border: 2px solid transparent;
    }
    .navbar-fixed-top .navbar-nav li a:hover {
        color: #318a4d;
        border-top: 2px solid transparent;
        border-bottom: 2px solid transparent;
    }
    .navbar-fixed-top.affix .navbar-nav li a:hover,
    .navbar-fixed-top.affix .navbar-nav li.active a {
        color: #111;
        border-top: 2px solid #111;
        border-bottom: 2px solid #111;
    }

    .navbar-fixed-top.affix .navbar-nav li:last-child a {
        color: #318a4d;
    }
    .navbar-fixed-top .navbar-nav li:last-child a:hover,
    .navbar-fixed-top.affix .navbar-nav li:last-child a:hover {
        color: #318a4d;
        border-top: 2px solid #318a4d;
        border-bottom: 2px solid #318a4d;
    }


    /*  =======================
        #services
        ======================= */

    #services .service p {
        font-size: 0.95em;        
    }
    #services .service a {
        -webkit-transition: color 0.4s ease 0.15s;
        -o-transition: color 0.4s ease 0.15s;
        transition: color 0.4s ease 0.15s;
    }
    #services .service a:hover {
        color: #111;
    }
    #contact input.submitForm {
        -webkit-transition: color 0.4s ease 0.15s, background-color 0.4s ease 0.15s, border-color 0.4s ease 0.15s;
        -o-transition: color 0.4s ease 0.15s, background-color 0.4s ease 0.15s, border-color 0.4s ease 0.15s;
        transition: color 0.4s ease 0.15s, background-color 0.4s ease 0.15s, border-color 0.4s ease 0.15s;
    }
    #contact input.submitForm:hover {
        background-color: #232323;
        border-color: #FFF;
        color: #FFF;
    }
}

/* ==========================================================================
    For JUST xs devices
   ========================================================================== */

@media handheld, only screen and (max-width: 767px) {
    
    .valignElem {
        top: 56%;
    }

/*  =======================
        Navbar (header > nav)
    ======================= */
    
    .navbar-inverse .navbar-toggle .icon-bar {
        background-color: #EFEFEF;
    }
    .navbar-fixed-top {
        background-color: rgba(0, 0, 0, 0.9);
    }
    .navbar-collapse.in {
        border-top: 1px solid #606061;
        -webkit-transition: border-top 0.4s ease;
        -o-transition: border-top 0.4s ease;
        transition: border-top 0.4s ease;
    }
    /* #ctc-navbar */
    .navbar-fixed-top .navbar-nav li a {
        margin: 15px;
        text-align: center;
    }
    .navbar-fixed-top .navbar-nav li:last-child a {
        color: #318a4d;
    }

    /*  =======================
        #about
        ======================= */

    #principles .principle i, #principles .principle i.fa-shield.fa-5x {
        margin: -10px 0 0 -40px;
    }

    /*  =======================
        #services
        ======================= */
    .overlay .container{
        padding: 20px;
    }
    .overlay a.overlay-close,
    .overlay a.overlay-close img {
        width: 28px;
        height: 28px;
    }
    .overlay a.overlay-close {
        right: 20px;
        top: 20px;
    }
    .overlay h2 {
        margin-bottom: 30px;
    }
    .overlay h2.makeItFit {
        font-size: 1.45em;
    }

    /*  =======================
        #contact
        ======================= */
    #contact .jumbotron h3 {
        font-size: 1.35em;
    }
    #contact .contactCell {
        padding: 15px 5px;
    }
    #contact .contactSide {
        padding: 30px 30px 20px;
    }

    footer .row {
        padding-top: 40px;
    }
}

/* ==========================================================================
    Style adjustments for high resolution devices 
   ========================================================================== */

@media only screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* #logoImg */
    .navbar-fixed-top .navbar-brand #logoImg,
    .navbar-fixed-top.affix .navbar-brand #logoImg {
        background-image: url(../img/logoB50@2x.png);
        background-size: 50px 50px;
    }
}

/* ==========================================================================
   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;
    }
}
