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

a, a:visited, a:link, a:active { 
    text-decoration: none; 
}
a:hover { 
    text-decoration: none; 
}
img, embed, object, video { 
    max-width: 100%; 
}

/* layout */

body { 
    background-color: #fff; /* bdc9e8 */ 
    font: normal 100%/18px Helvetica Neue, Helvetica, Arial, sans-serif; 
    font-weight: 400; /*text-rendering: optimizeLegibility;*/ 
}
html { 
    -ms-text-size-adjust: 100%; 
    -webkit-text-size-adjust: 100%; 
}
.group:before, .group:after { 
      content: ""; 
      display: table; 
} 
.group:after { 
    clear: both; 
}
.group {
    zoom: 1; /* For IE 6/7 (trigger hasLayout) */ 
}

/* colours */

.grey {
    background-color: #eee;
}
.black {
    background-color: #000;
}
.white {
    background-color: #fff;
}

/* page */

.page-wrap { 
    width: 100%; 
    margin: 0 auto;
}

/* layout */

.layout_bg { 
    width: 100%; 
    float: left; 
    display: inline; 
}
.layout { 
    width: 80%;
    max-width: 1024px; 
    margin: 0 auto; 
}

/* copy */

input {
    font-family: 'sofia-pro', Helvetica Neue, Helvetica, Arial, sans-serif;
}
body {
    font-family: 'sofia-pro', Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6875rem; 
    font-weight: 400;
}
h1,h2,h3,h4,h5,h6 {
    font-family: 'sofia-pro', Helvetica Neue, Helvetica, Arial, sans-serif;
}
h1 { 
    font-weight: 900;
    font-size: 2.9375rem;
    line-height: 3.375rem;
    margin-top: 1.6875rem;
    margin-bottom: 1.6875rem;
}
h2 {
    font-weight: 900;
    font-size: 1.875rem;
    line-height: 2.53125rem;
    margin-top: 1.6875em;
    margin-bottom: 0.421875em;
}
h3 {
    font-weight: 900;
    font-size: 1.875rem;
    line-height: 2.53125rem;
    margin-top: 1.6875em;
    margin-bottom: 0.421875em;
}
h4 {
    font-weight: 900;
    font-size: 1.125rem;
    line-height: 1.6875rem;
    margin-top: 1.6875rem;
    margin-bottom: 0rem;
}
p { 
    color: #000;
    margin-top: 0rem;
    margin-bottom: 1.6875rem;
}
p a { 
    color: #4a6a82;
    text-decoration: none;
}
p a:hover { 
    color: #0d3858; 
    text-decoration: underline;
}
ul { 
    margin: 0.84375em 0 1.6875em 2.441em; 
    padding: 0; 
}
ul li {   
    color: #000; 
    padding: 0 0 0.5em 0;
    list-style: circle;
}
ul li strong { 
    color: #000;
}
ul li a { 
    color: #4a6a82;
    text-decoration: none;
}
ul li a:hover { 
    color: #0d3858; 
    text-decoration: none;
}
ol { 
    margin: 0.5em 0 1.5em 2.441em; 
    padding: 0; 
}
ol li {  
    color: #000; 
    padding: 0 0 0.5em 0;
    list-style: decimal; 
}
ol li a { 
    color: #4a6a82;
    text-decoration: none;
}
ol li a:hover { 
    color: #0d3858; 
    text-decoration: none;
}
p strong a { 
    text-decoration: none; 
}
p strong a:hover { 
    text-decoration: underline; 
}
p strong {   
    color: #000; 
}

/* slice */

.slice h2 {
    font-style: inherit;
    font-size: 2.9375rem;
    line-height: 3.375rem;
    margin-top: 0;
    margin-bottom: 0.84375rem;
}
.slice p {
    margin-bottom: 0;
}

/* coloured_links */

.blue h2 a {
    color: #4a6a82;
}
.blue h2 a:hover {
    color: #4a6a82;
    text-decoration: underline;
}
.blue_bg h2 a {
    color: #fff;
}
.blue_bg h2 a:hover {
    color: #fff;
    text-decoration: underline;
}
.blue_bg p {
    color: #c2cdd5;
}
.blue_bg { 
    background-color: #0d3858;
}

/* slice img_full */

.img_full h2 { 
    color: #fff;
}
.img_full h2 a {
    color: #fff;
}
.img_full h2 a:hover {
    color: #fff;
    text-decoration: underline;
}

/* img */ 

.img_full {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}
.img_fixed {
    background-attachment: fixed;
}
.img_bg {
    background-image: url('../img/small_default_2.jpg');
}
.img_paint {
    background-image: url('../img/bg_paint.png');
}
.img_paint_light {
    background-image: url('../img/bg_paint_light.jpg');
}

/* slider */

.absolute {
    position: absolute;
}
.slider .flickity-viewport {
    position: absolute;
    width: 100%;
}
.slider_cell {
    width: 100%;
    height: 100%;
    margin-right: 1.6875em;
}

/* slider_full */

.slider_full {
    padding-bottom: 57%;
}

/* slider_half */

.slider_half {
    padding-bottom: 75%;
}

/* slider_caption */

.slider_caption {
    bottom: 3.375em;
    right: 0;
    background-color: #fff;
    text-align: left;
    padding: 1.6875em;
}
.slider_caption h3 {
    font-style: inherit;
    font-size: 2.9375rem;
    line-height: 3.375rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
}
.slider_caption h3 a {
    color: #000;
}
.slider_caption h3 a:hover {
    color: #000;
}
.slider_caption p { 
    color: #999;
    margin-bottom: 0rem; 
    font-weight: 400;
}
.slider_caption p a { 
    color: #666;
    text-decoration: underline;
}
.slider_caption p a:hover { 
    color: #666; 
    text-decoration: none; 
}

@media only screen and (max-width: 768px) {
    .slider_caption {
        bottom: 3em;
    }
}
@media only screen and (max-width: 480px) {
    .slider_caption {
        display: none;
    }
}

/* entry */

.entry h1 { 
    margin-top: 0rem;
}
.entry p {
    color: #444;
}
.entry p a { 
    text-decoration: underline;
}
.entry ul li {
    color: #999;
}

/* figure */

.figure_full {
    float: left;
    display: inline;
    width: 100%;
    margin: 0 0 1.6875em 0;
}
.figure_half {
    float: right;
    display: inline;
    width: 39.04%;
    margin: 0 0 1.6875em 1.6875em;
}

/* cols */

.col {
    display: block;
    float:left;
    margin: 1% 0 1% 1.6%;
}
.col_1_of_4 {
    width: 23.8%; 
}
.col_10_of_10 {
    width: 100%;
}
.col_9_of_10 {
    width: 89.84%;
}
.col_8_of_10 {
    width: 79.68%;
}
.col_7_of_10 {
    width: 69.52%; 
}
.col_6_of_10 {
    width: 59.36%; 
}
.col_5_of_10 {
    width: 49.2%; 
}
.col_4_of_10 {
    width: 39.04%; 
}
.col_3_of_10 {
    width: 28.88%;
}
.col_2_of_10 {
    width: 18.72%; 
}
.col_1_of_10 {
    width: 8.56%; 
}
.col:first-child { 
    margin-left: 0; 
} 
.logo_5_of_10 {
    width: 49.2%; 
}

@media only screen and (max-width: 480px) {
    .col {
        display: block;
        float: left;
        margin: 1% 0 1% 0%;
    }
    .col_1_of_4 {
        width: 100%; 
    }
    .col_7_of_10 {
        width: 100%; 
    }
    .col_2_of_10 {
        width: 100%; 
    }
    .col_1_of_10 {
        width: 100%; 
    }
    .col_6_of_10 {
        width: 100%; 
    }
    .col_5_of_10 {
        width: 100%;
    }
    .col_4_of_10 {
        width: 100%;
    }
    .col_3_of_10 {
        width: 100%;
    }
    .col_hide {
        display: none;
    }
}

/* footer */

.footer p {
    font-size: 1rem;
    color: #ccc;
    margin-top: 1.6875em;
}
.footer p a { 
    color: #0d3858;
    text-decoration: underline;
}
.footer p a:hover { 
    color: #134d56; 
    text-decoration: none; 
}
.footer ul {
    margin-bottom: 0;
    padding-bottom: 0;
}
.footer ul li {
    margin: 0;
    padding: 0.2109375em 0;
}
.footer ul li a {
    color: #0d3858;
}
.footer ul li a:hover {
    color: #134d56;
    text-decoration: underline;
}
.footer h3 {
    font-weight: 800;
    font-style: inherit;
    font-size: 1.125rem;
    line-height: 3.375rem;
    margin-top: 0;
    margin-bottom: 0rem;
}
.footer h3 a {
    color: #00529c;
}
.footer h3 a:hover {
    color: #00529c;
    text-decoration: underline;
}

/* padding */

.padding {
    padding: 1.6875em 0;
}

/* site promo */

.promo p {
    font-weight: 900;
    font-style: inherit;
    font-size: 2.9375rem;
    line-height: 3.375rem;
    margin-top: 1.6875rem;
    margin-bottom: 1.6875rem;
    color: #000;
}

.promo p a { 
    color: #00529c;
    text-decoration: underline;
}
.promo p a:hover { 
    color: #00529c; 
    text-decoration: none; 
}
.center {
    text-align: center;
}

/* entry subnav */

.sub_nav ul {
    padding-top: 1.6875em;
    padding-right: 1.6875em;
}
.sub_nav ul li ul {
    padding-top: 0em;
    padding-right: 0;
    margin-left: 0.84375em;
    margin-bottom: 0.421875em;
}
.sub_nav ul li.here a {
    color: #000;
    text-decoration: none;
}
.sub_nav ul li ul li {
    list-style: none;
    padding-right: 0;
}
.sub_nav ul li ul li a {
    color: #000;
}
.sub_nav ul li.here ul li a {
    text-decoration: none;
    color: #666;
}
.sub_nav ul li.here ul li a:hover {
    text-decoration: none;
}
.sub_nav ul li.here ul li.here a {
    text-decoration: none;
    color: #000;
}

/* entry blockquote */

blockquote {
    background-color: #fff;
    padding: 1.6875em;
    border-left: 10px solid #f1b700;
    margin: 0 0 1.6875em 0;
}
.entry blockquote {
    color: #999;
    margin-bottom: 1.6875em;
}
.entry blockquote span {
    color: #000;
}

/* testimonials */

.testimonials {
    padding: 1.6875em;
    margin-bottom: 1.6875em;
}
.testimonials p {
    color: #999;
}
.testimonials p span {
    color: #000;
}
.slice_testimonials p {
    color: #999;
}
.slice_testimonials p span {
    color: #000;
}

/* box_shadow */

.box_shadow {
    box-shadow: 0 0 5px rgba(0,0,0,0.10);
}

/* cta */

a.cta_blue {
    font-family: 'sofia-pro', Helvetica Neue, Helvetica, Arial, sans-serif;
    background-color: #0d3858;
    color: #fff;
    padding: 0.421875em 0.84375em 0.521875em 0.84375em;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.125rem;
    font-weight: 400;
    margin: 1.6875em 0;
}
a.cta_blue:hover {
    background-color: #4a6a82;
}
a.cta_yellow {
    font-family: 'sofia-pro', Helvetica Neue, Helvetica, Arial, sans-serif;
    background-color: #f1b700;
    color: #000;
    padding: 0.421875em 0.84375em 0.521875em 0.84375em;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.125rem;
    font-weight: 400;
    margin: 1.6875em 0;
}
a.cta_yellow:hover {
    background-color: #785b00;
    color: #fff;
}

/* centered_text */

.centered_text {
    text-align: center;
    padding: 1.6875em 6.75em;
}

/* nav_layout */

.nav_right {
    float: right;
}

/* nav */

.fixed {
    position: fixed;
    z-index: 9999;
}
.nav ul {
    margin: 0;
    padding: 0;
}
.nav ul li {
    list-style: none;
    margin: 0;
    padding: 0;
    float: left;
}
.nav ul li a {
    padding: 0.2109375em 0.84375em 0.4109375em 0.84375em;
    display: block;
    color: #000;
    background-color: #fff;
}
.nav ul li a:hover {
    background-color: #eee;
    text-decoration: none;
}
.nav ul li.here a {
    background-color: #eee;
    color: #000;
}
.nav ul li:hover a {
    background-color: #eee;
}
.nav ul li:hover.here a {
    background-color: #eee;
    color: #000;
}

/* nav_contact */

.nav ul li a.contact {
    background-color: #4a6a82;
    color: #fff;
}
.nav ul li a.contact:hover {
    color: #fff;
    background-color: #4a6a82;
}

/* nav_drop_down */

.nav ul li ul { 
    margin: 0; 
    padding: 0.84375em 0; 
    background-color: #eee;
}
.nav ul li ul li { 
    width: 14em;
    padding: 0; 
    margin: 0; 
    text-align: left;
    border-left: 0px;
}
.nav ul li ul li a, .nav ul li:hover ul li a, .nav ul li.here:hover ul li a {  
    color: #000; 
    border: 0px;
    background-color: #eee;
    font-size: 1rem;
}
.nav ul li ul li a:hover, .nav ul li:hover ul li a:hover { 
    color: #000; 
    background-color: #fff; 
    text-decoration: none; 
}

/* superfish */

.sf-menu, .sf-menu * { 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}
.sf-menu li { 
    position: relative; 
}
.sf-menu ul { 
    position: absolute; 
    display: none; 
    top: 100%; 
    left: 0; 
    z-index: 9999; 
}
.sf-menu > li { 
    display: inline-block; 
}
.sf-menu li:hover > ul,
.sf-menu li.sfHover > ul { 
    display: block; 
}
.sf-menu a { 
    display: block; 
    position: relative; 
}
.sf-menu ul ul { 
    top: 0; left: 100%; 
}

/* nav_mobile */

.nav_hide {
    display: none;
}
.nav_on {
    display: none;
}
.nav_mobile ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav_mobile ul li {
    margin: 0;
    padding: 0;
}
.nav_mobile ul li:last-child {
    border-bottom: 0px;
}
.nav_mobile ul li a {
    padding: 0.2109375em 0.84375em;
    display: block;
    color: #fff;
}
.nav_mobile ul li a:hover {
    text-decoration: underline;
}
.nav_mobile ul li ul li a {
    color: #8e8c8a;
    padding: 0.375em 3em;
}
.nav_mobile ul li ul li {
    border-bottom: 0px;
}

@media only screen and (max-width: 960px) {
    .nav_off {
        display: none;
    }
    .nav_on {
        display: inline;
    }
}

/* logo */

.logo {
    z-index: 9999;
}

@media only screen and (max-width: 960px) {
    .logo img {
        width: 50%;
    }
}
@media only screen and (max-width: 768px) {
    .logo img {
        width: 75%;
    }
}
@media only screen and (max-width: 460px) {
    .logo img {
        width: 100%;
    }
}

/* hero */

.hero_text {
    padding-top: 6.75em;
    padding-bottom: 6.75em;
}
.hero_text h1 {
    color: #fff;
}
.hero_text p {
    color: #ccc;
}

/* copyright */

.copyright ul {
    margin-bottom: 0;
    padding-bottom: 0;
}
.copyright ul li {
    margin: 0;
    padding: 0.2109375em 0;
    color: #999;
    font-size: 1rem;
}
.copyright ul li a {
    color: #666;
}
.copyright ul li a:hover {
    color: #fff;
    text-decoration: underline;
}
.copyright ul li strong {
    color: #fff;
    font-weight: 400;
}

/* video */

.player {
    position: relative;
    padding-top: 56.2757202%;
}
.player iframe {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

/* send */

.send { 
    font-family: 'sofia-pro', Helvetica Neue, Helvetica, Arial, sans-serif;
    background-color: #0d3858;
    color: #fff;
    padding: 0.321875em 0.84375em 0.421875em 0.84375em;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.125rem;
    font-weight: 400;
    margin: 0.421875em 0 1.6875em 0;
    border: 0;
}
.send:hover { 
    color: #fff;
    text-decoration: none; 
    background-color: #4a6a82;
}

/* forms */

input, textarea { 
    font-size: 1em; 
    color: #000; 
    padding: 0.421875em; 
    margin: 0 0 0.421875em 0; 
    border: 3px solid #fff;
    background-color: #fff;
}
.label { 
    display: block; 
    font-size: 1em; 
    font-weight: 400; 
    color: #000; 
    margin: 0.84375em 0 0.421875em 0; 
}
.label_first {
    margin: 0 0 0.421875em 0;
}
.label span { 
    color: #0d3858;
}
.number_field {
    width: 25%;
}
.text_field {
    width: 50%;
}
.email_field {
    width: 75%;
}
.textarea_field {
    width: 75%;
    height: 7.5em;
}
::-webkit-input-placeholder { 
    color: #999; 
}
:-moz-placeholder { 
    color: #999; 
}
::-moz-placeholder { 
    color: #999; 
}
:-ms-input-placeholder { 
    color: #999; 
}
input#preferredKitten { 
    display: none; 
}
.errors { 
    display: block;
    margin: 0;
}
.errors p { 
    font-size: 1em;  
    color: red;
    padding: 0;
    margin: 0;
    display: inline-block;
}

/* pagination */

.pagination ul {
    margin: 0;
    padding: 0;
}
.pagination ul li {
    list-style: none;
    margin: 0;
    padding: 0;
    float: left;
}
.pagination ul li a {
    padding: 0.2109375em 0.84375em;
    background-color: #fff;
    display: block;
    color: #00529c;
}
.pagination ul li a:hover {
    background-color: #fff;
    color: #00294e;
    text-decoration: underline;
}

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

/* ==========================================================================
   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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

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