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

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

/*
 * 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
   ========================================================================== */
body {
    font-family: 'Source Sans Pro', sans-serif!important;
}
section {
    margin: 16px 0;
}

.hero-image {
    background: #003a70;
    position: relative;
}
.hero-image img {
    width: 100%;
}
.hero-image footer {
    background: #003a70;
    /*height: 28%;*/
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #ffffff;
    text-align: center;
    padding: 8px 0;
}
.hero-image footer a {
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px;
    display: inline-block;
}
.hero-image footer a:hover {
    color: #003a70;
    background: #ffffff;
    text-decoration: none;
}
article {

}
.home-box img {
    width: 100%;
}
article footer {
    background: #1c9bd8;
    margin-top: 16px;
    padding: 2px 16px;
    color: #ffffff;
    min-height: 214px;
}
article footer h1 {
    font-size: 20px;
}
.article-image {
    position: relative;
}
.article-image a {
    position: absolute;
    bottom: 10px;
    right: 20px;
    padding: 8px;
    font-weight: bold;
}
.article-image a:hover {
    text-decoration: none;
}
.article-image h2 {
    position: absolute;
    top: 0;
    left: 20px;
    color: #ffffff;
    font-size: 26px;
}
.article-image .push-down {
    top: 72%;
    left: 50%;
    /* bring your own prefixes */
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 80%;
}
hr {
    margin-top: 10px!important;
}
.article-image .dark-blue-header {
    color: #003a70;
}
.news-item {
    border-bottom: 1px dashed #003a70;
    padding-bottom: 16px;
}
.news-item:after {
    display: table;
    content: '';
    clear: both;
}
.post-title a{
    color: #1c9bd8;
}
.post-title a:hover {
    color: #1c9bd8;
    text-decoration: underline;
}
.recent-post-sidebar h3,
.blog-categories h3 {
    background: #003a70;
    color: #ffffff;
    text-transform: uppercase;
    padding: 6px;
}
.recent-post-sidebar ul,
.blog-categories ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
#content p,
#content ul,
#content ol{
    font-size: 16px;
    /*color: #99999a;*/
}
#content h2 {
    color: #003a70;
}
.content-image img {
    width: 100%;
}
#map {
    margin-top: 12px;
    height: 400px;
    width: 100%;
}
#directions input {
    padding: 4px;
}
.go_button {
    font-size: 14px;
    padding: 5px!important;
    position: relative;
    color: #ffffff;
    background-color: #003a70;
    border-top-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-top-color: #5a4099;
    border-right-color: #5a4099;
    border-bottom-color: #5a4099;
    border-left-color: #5a4099;
    cursor: pointer;
}
.go_button:hover {
    background: #ffffff;
    color: #003a70;
    border: 1px solid #003a70;
}
.form:after {
    display: table;
    content: '';
    clear: both;
}
.blue-text {
    color: #003a70;
}

.form > p {
    color:#818181;
    font-family:Source Sans Pro;
    font-size:13px;
    line-height:10px;
    margin-bottom:0;
    margin-top:40px;
}

.form form {
    margin-top:35px;
}
.form form label {
    color:#000000;
    font-weight:normal;
    line-height:10px;
    margin-bottom:15px;
    display: block;
}
.comment-form form label span{
    color:#98D460;
}
.input-field,
.input-field:hover,
.input-field:focus {
    height:33px;
    border:0 none;
    margin-bottom:20px;
    font-size:16px;
    background:none repeat scroll 0 0 #FAFAFA;

    -webkit-box-shadow:1px 1px 3px #D5D5D5 inset;
    -ms-box-shadow:1px 1px 3px #D5D5D5 inset;
    -o-box-shadow:1px 1px 3px #D5D5D5 inset;
    box-shadow:1px 1px 3px #D5D5D5 inset;
    border-radius:3px;
}
textarea.input-field,
textarea.input-field:hover,
textarea.input-field:focus{
    height:auto;
    width: 50%;
}
.form-button {
    border:0 none;
    color:#FFFFFF;
    float:left;
    font-family:arial;
    font-size:12px;
    padding:17px 30px;
    border-radius:5px;
}
.submit {
    margin: 12px 0;
    background-color: #1c9bd8;
}
.submit:hover {
    opacity: 0.5;
}
.required {
    color: #cc222a;
}
.error_box {
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px dotted #FF0000;
    overflow: hidden;
    background-color: #FFDFDF;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
}
.error_box p{
    font-weight: bold;
    color: #FF3333;
}
.error_box ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
}
.error_box li{
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-weight: bold;
    color: #FF3333;
}
.white-text {
    color: #ffffff;
}
.white-button {
    color: #003a70;
    background: #ffffff;
}
.white-button:hover {
    color: #ffffff;
    background: #003a70;
}
.blue-button {
    color: #ffffff;
    background: #1c9bd8;
}
.blue-button:hover {
    color: #1c9bd8;
    background: #ffffff;
}
.dark-blue-footer {
    background: #003a70;
}
.grey-footer {
    background: #d3d1d3;
}
.banner {
    background: #003a70;
}
.banner img {
    width: 100%;
}
#footer {
    background: #d3d1d3;
    color: #003a70;
}
#footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.somnium-bold-type {
    font-size: 20px;
    color: #003a70;
    font-weight: bold;
}
.somnium-blue-type {
    color: #003a70;
}
.somnium-grey-type {
    color: #999;
    font-weight: bold;
}
{  }
#styled-list, #styled-list {list-style-image: url("../img/somnium-list.png"); font-family:'Source Sans Pro', sans-serif }
#styled-list { }
#styled-list p { padding:8px; font-style:normal; font-family:Arial;  color:#eee; border-left: 1px solid #999; }
#styled-list p em { display:block; }

.content-box {
    width: 100%;
}
.cb-info {
    padding: 0 1%;
}
.content-box p {
    margin: 6px;
}
.content-box ul {
    margin: 10px 0;
}
#footer a {
    color: #003a70;
}
.home-box footer a {
    color: #ffffff;
}
.blue-text>a {
    color: #003a70!important;
}
.nav-overlay.show {
    display: block;
    opacity: 0.6;
    z-index: 1;
}
.client-login-div .closebutton {
    position: absolute;
    top: 5px;
    right: 25px;
    color: black;
    cursor: pointer;
}
.client-login-div .closebutton:after {
    content: "\f00d" !important;
    font: normal normal normal 14px/1 FontAwesome !important;
    right: -15px !important;
    position: absolute !important;
    font-size: 16px !important;
    color: black !important;
    top: 2px;
}
.client-login-div img {
    width: 100%;
}
.nav-overlay {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 1120px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #111;
    opacity: 0;
    z-index: -1;
}
.client-login-div {
    display: none;
    position: fixed;
    background-color: white;
    z-index: 9999999;
    width: 400px;
    left: 50%;
    top: 50%;
    padding: 50px 60px;
    height: 370px;
    margin-top: -185px;
    margin-left: -200px;
}
.cld-header {
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    background: #003a70;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}
.client-login-trigger {
    cursor: pointer;
}
.testimonial:before {
    content: url(../img/open-quote.png);
    padding-right: 6px;
}
.testimonial:after {
    content: url(../img/close-quote.png);
    padding-left: 6px;
}
.banner {
    background: url(../img/banner.jpg) no-repeat;
    height: 186px;
    position: relative;
}
.latest-news-items {
    position: relative;
    width: 100%;
    float: right;
    margin-top: 186px;
    background: #003a70;
}

.news-detail {
    margin-top: 8px;
}
.latest-news-items h1 {
    font-size: 1.2em;
    margin-top: 10px;
    margin-bottom: 0;
}
.latest-news-items ul {
    list-style-type: none;
    color: #ffffff;
    padding: 0;
}
.latest-news-items ul li {
    margin-top: 8px;
}
.latest-news-items ul li a {
    color: #ffffff;
    font-size: 16px;
}
img[src*=".svg"] {
    width: 100%;
}

#hero-footer img {
    width: 100%;
}

.news-image {
    width: 170px;
    float: none;
}

.news-image img {
    width: 100%;
    height: auto;
}

.news-copy {
    margin-top: 12px;
}
/* ==========================================================================
   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 only screen and (max-width: 991px) {
    /* Style adjustments for viewports that meet the condition */
    .desktop-nav {
        display: none!important;
    }
    article {
        margin-top: 16px;
    }
}
@media (max-width: 410px) {
    .client-login-div {
        width: 300px;
        margin-left: -150px;
        height: 275px;
    }
}

@media only screen and (min-width: 320px) and (max-width: 991px) {
    .hero-contact {
        background-position: 30% 50%!important;
    }
}

@media only screen and (min-width: 410px) and (max-width: 991px) {
    .banner {
        background: url(../img/banner-medium.jpg) no-repeat;
    }
    .latest-news-items {
        width: 100%;
        margin-top: 186px;
    }
    .latest-news-items h1 {
        margin-top: 8px;
    }
    .hero-image {
        height: 400px;
    }
    #hero-footer img {
        width: 50%;
    }

}
@media only screen and (min-width: 991px) {
    body {
        padding-top: 8px;
    }
    nav {
        text-align: center;
    }
    nav ul {
        display: inline;
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 16px;
    }
    nav li {
        display: block;
        margin: 0;
        padding: 5px;
        list-style-type: none;
        float: left;
        position: relative;
    }
    nav a {
        display: block;
        float: left;
        color: #99999a;
        padding: 6px 12px;
        /*font-weight: lighter;*/
        border: 1px solid #99999a;
        text-transform: uppercase;
    }
    nav a.active,
    nav a.hover,
    nav ul li a:hover{
        color: #ffffff;
        background: #003a70;
        text-decoration: none;

    }
    nav:after {
        display: table;
        content: '';
        clear: both;
    }
    nav ul {
        font-size: 14px;
    }

    nav .drop-down {
        display: none;
    }
    nav li ul.drop-down {
        position: absolute;
        top: 41px;
        /*background-color: #003a70;*/
        display: none;
        z-index: 5!important;
        /*min-width: 190px;*/
        min-width: 440px; /*Was 220*/
        color: #ffffff;
    }
    .drop-down li {
        width: 45%; /*100%*/
        padding: 0;
    }
    .drop-down li a {
        color: #003a70; /*White*/
        border: none;
    }
    nav li:hover ul {
        display: block;
    }
    nav li ul a {
        color: #99999a;
        display: block;
        padding: 0 8px; /*10px 8px*/
        width: 100%;
    }
    nav .drop-down .sub {
        display: none;
    }
    nav .drop-down li:hover ul {
        display: block;
    }
    nav li ul.sub {
        position: absolute;
        left: 190px;
        background: #0074bc;
        min-width: 190px;
    }
    .hero-image {
        height: 418px;
    }
    .news-copy {
        margin-top: 0;
        margin-left: 188px;
    }
    .content-box {
        width: 49%;
        float: left;
        margin-bottom: 10px;
    }
    .latest-news-items {
        margin-top: 0;
        width: 59%;
        padding: 0 16px;
    }

    .news-image {
        float: left;
    }

    #footer {
        min-height: 190px;
    }
    #hero-footer img {
        width: 46%;
    }
}

@media only screen and (min-width: 1170px) {
    nav {
        /*padding-top: 12px;*/
    }

}
@media only screen and (min-width: 1200px) {
    .latest-news-items {
        width: 66%;
        padding: 0 16px;
    }
    .latest-news-items h1 {
        font-size: 2em;
    }
    .latest-news-items ul li a {
        font-size: 20px;
    }
    .hero-image {
        height: 470px;
    }
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (-o-min-device-pixel-ratio: 5/4),
       (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 */
        -webkit-box-shadow: none !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) ")";
    }

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