/*! HTML5 Boilerplate v5.3.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;
}

body {
    font-family: "industry",sans-serif;
    max-width: 100vw;
    overflow-x: hidden;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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 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;
    max-width: 100%;
}

/*
 * 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
   ========================================================================== */
.top-border {
    display: flex;
    height: 20px;
    width: 100%;
    margin-top: -2em;
    margin-bottom: 2em;
}

.top-border > div {
    flex-basis: 25%;
}

.top-border div:first-child {
    background-color: #34495E;
}

.top-border div:nth-child(2) {
    background-color: #2A80B9;
}

.top-border div:nth-child(3) {
    background-color: #3598DC;
}

.top-border div:nth-child(4) {
    background-color: #5CADE2;
}


.navbar {
    background-color: #fff;
    box-shadow: inset 0px 0px 0px #ff675a, 0px 5px 10px rgba(0, 0, 0, 0.1);
    -webkit-transform: translate3d(0, 0, 1px);
    -moz-transform: translate3d(0, 0, 1px);
    -ms-transform: translate3d(0, 0, 1px);
    -o-transform: translate3d(0, 0, 1px);
    transform: translate3d(0, 0, 1px);
    transition: all .4s ease-in-out;
}

.navbar.top {
   background: transparent;
   box-shadow: none;
}

.navbar-brand {
    background: url("/img/comtel.svg") no-repeat;
    background-size: 100%;
    text-indent: -9999px;
    width: 120px;
    transition: all .4s ease-in-out;
    height: 38px;
}

.navbar.top .navbar-brand {
    width: 240px;
    height: 80px;
}

.navbar a {
    cursor: pointer;
}

.navbar.top a {
    color: #fff;
    font-size: 1.2em;
    font-weight: 700;
    transition: all .4s ease-in-out;
}

.navbar.top a:hover {
    color: #ddd;
}

ul.navbar-nav {
    float: right;
}

h2 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 100px;
    margin-top: 60px;
}

h3 {
    font-weight: bold;
}

.jumbotron {
    padding-top: 160px;
    position: relative;
    height: 141vh;
    min-height: 340px;
    background-image: url("/img/hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    color: #fff;
}

.jumbotron h1 {
    font-size: 2em;
    font-weight: 700;
    text-shadow: 0px 0px 4px rgba(100, 100, 100, 1);
    z-index: 9;
    position: relative;
}

.jumbotron-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(25,25,25,.3);
}

section#services .col-md-4 {
    text-align: center;
}

section#services .col-md-4 h3 {
    font-weight: 400;
}

section#services .fa {
    font-size: 92px;
    display: flex; 
    align-items: center;
    justify-content: center;
    height: 140px;
    width: 140px;
    background-color: #f2f2f2;
    border-radius: 200px;
    margin: 20px auto;
}

.fa.fa-globe {
    color: #2ecc71;
}

.icon-fiber {
    background-image: url("/img/fiber.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    display: block;
    height: 90px;
    width: 80px;
}

.fa.fa-lightbulb-o {
    color: #f1c40f;
}

section#services h4 {
    border-bottom: 9px solid #ccc;
}

section#services .communication h4 {
    border-color: #2980b9;
}

section#services .installation h4 {
    border-color: #c0392b;
}

section#services .consulting h4 {
    border-color: #27ae60;
}

section#services .row {
    margin-bottom: 120px;
}

section#services .communication,
section#services .consulting {
    padding-top: 70px;
}

section#services .consulting + .col-md-6 {
    padding: 30px;
    background-color: #c0392b;
    position: relative;
    z-index: 1;
    left: 50px;
}

section#services .consulting + .col-md-6:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 9999px;
    left: 0;
    background-color: #c0392b;
    z-index: 0;
}

section#services img {
    position: relative;
    z-index: 1;
}

section#about .map {
    position: relative;
    padding: 30px;
    overflow: hidden;
}

section#about .map:before {
    content: '';
    background-color: #34495e;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 9999px;
    right: 0;
    z-index: 0;
}

section#about iframe {
    position: relative;
    z-index: 1;
    float: right;
}

.about-info {
    padding-top: 180px;
    padding-left: 50px;
}

#parallax1 div {
    background-image: url("/img/parallax-wires.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
}

.parallaxParent {
    height: 400px;
    overflow: hidden;
    margin: 100px 0;
}

.parallaxParent > * {
        height: 200%;
        position: relative;
        top: -100%;
    }

@media (min-width: 768px) {
    .col-md-5-5 {
        width: 45.8333%;
        float: left;
    }

    .col-md-5-5:nth-child(2n+1) {
        margin-right: 8.3333%;
    }
}

blockquote {
    background-color: #f0f4f7;
    padding: 30px;
    position: relative;
    margin-bottom: 80px;
}

blockquote:before {
    content: '\f10d';
    font-family: FontAwesome;
    font-size: 60px;
    position: absolute;
    top: -40px;
    left: -30px;
}

.testimonials img {
    max-height: 100px;
    max-width: 220px;
    margin: 50px auto;
    display: block;
}

.credit {
    width: 50%;
    float: right;
    margin-top: 30px;
}

section#contact {
    background: linear-gradient(
      rgba(44, 62, 80, 0.8), 
      rgba(44, 62, 80, 0.8)
    ), url("/img/boston.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    height: 100vh;
    text-align: center;
    color: #fff;
    padding-top: 10%;
}

section#contact h2 {
    font-weight: bold;
    margin-bottom: 60px;
}

section#contact p {
    font-size: 2em;
}

footer {
    background-color: #2c3e50;
    color: #6E8FAF;
    padding: 20px;
}















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

    .jumbotron {
        min-height: 500px;
    }

    .jumbotron h1 {
        width: 81%;
        font-size: 3.5em;
        text-align: center;
        margin: 0 auto;
    }

    .navbar.top a {
        font-size: 1.8em;
    }
}

@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,
    *:first-letter,
    *:first-line {
        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;
    }
}
