/*
 * HTML5 Boilerplate
 *
 * 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 {background:#002843;}

html, body { height:100%}

body {
	font-family:Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-size: 1.4rem;
    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 and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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

a { text-decoration:none;}
a { color:#00a6eb;}

#bg {     
}
#bg img{
	    position:absolute;
    top:0;

    display:none;
    width:100%;
    height:100%;
	z-index:-1;
}

.backstretch { background: no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;}
.home .backstretch { background-image:url(../i/bg11.jpg)}
.pers .backstretch { background-image:url(../i/bg09.jpg)}
.appr-home .backstretch { background-image:url(../i/bg05.jpg)}
.serv-home .backstretch { background-image:url(../i/bg06.jpg)}
.clie .backstretch { background-image:url(../i/bg07.jpg)}
.abou .backstretch { background-image:url(../i/bg10.jpg)}
.cont .backstretch { background-image:url(../i/bg09.jpg)}

.appr11 .backstretch { background-image:url(../i/bg03.jpg)}
.appr12 .backstretch { background-image:url(../i/bg14.jpg)}
.appr21 .backstretch { background-image:url(../i/bg06.jpg)}
.appr22 .backstretch { background-image:url(../i/bg07.jpg)}
.appr31 .backstretch { background-image:url(../i/bg09.jpg)}
.appr32 .backstretch { background-image:url(../i/bg10.jpg)}

.serv-ba .backstretch { background-image:url(../i/bg08.jpg)}
.serv-bs .backstretch { background-image:url(../i/bg12.jpg)}
.serv-bc .backstretch { background-image:url(../i/bg13.jpg)}



header, article { background:#FFF; margin-left:40px; margin-right:100px; padding-top:25px; width:880px;}
header { margin-top:40px; position:relative;}
article {margin-bottom:80px; padding-bottom:40px; min-height:400px}
.logo {margin:0 0 20px 40px}
header p { position:absolute; top:20px; left:327px; color:#00a6eb;}


#mainNav ul {margin:0; background: #bfc9d0;}
#mainNav li {background:#002843;float:left;  text-align:center; border-left: #FFF 1px solid;}
#mainNav li:last-child { border-right: #fff 1px solid;}
#mainNav a {color:#fff; display:block;width:87px; padding:2px 0; text-decoration:none;}
#mainNav a.nav2 {width:108px;}
#mainNav a:hover { background:#8093A1;
transition: background-color .25s ease-in-out;
-moz-transition: background-color  .25s ease-in-out;
-webkit-transition: background-color  .25s ease-in-out;}
.home #mainNav .nav1,
.pers #mainNav .nav2,
.appr #mainNav .nav3,
.serv #mainNav .nav4,
.clie #mainNav .nav5,
.abou #mainNav .nav6,
.cont #mainNav .nav7 {background:#e60004; cursor: default}
.home #mainNav li .nav1:hover,
.pers #mainNav li .nav2:hover,
.appr #mainNav li .nav3:hover,
.serv #mainNav li .nav4:hover,
.clie #mainNav li .nav5:hover,
.abou #mainNav li .nav6:hover,
.cont #mainNav li .nav7:hover {background:#e60004;}

aside nav li { margin:14px 0;}
aside nav a { display:block; color:#8093A1}
.serv-ba aside .nav1 a:hover, .serv-bs aside .nav2 a:hover, .serv-bc aside .nav3 a:hover,
.appr11 aside .nav1>a:hover, .appr11 aside .nav11>a:hover, .appr12 aside .nav1>a:hover, .appr12 aside .nav12>a:hover, .appr21 aside .nav2>a:hover, .appr21 aside .nav21>a:hover, .appr22 aside .nav2>a:hover, .appr22 aside .nav2>a:hover, .appr31 aside .nav3>a:hover, .appr31 aside .nav31>a:hover, .appr32 aside .nav3>a:hover, .appr32 aside .nav32>a:hover { cursor:default;}
aside nav span { display: inline-block; line-height:1.1; vertical-align:middle}
aside nav li a:hover .number, .serv-ba aside .nav1 .number, .serv-bs aside .nav2 .number, .serv-bc aside .nav3 .number, .appr11 aside .nav1 .number, .appr12 aside .nav1 .number, .appr21 aside .nav2 .number, .appr22 aside .nav2 .number, .appr31 aside .nav3 .number, .appr32 aside .nav3 .number {background:#e60004;}
aside nav li a:hover span+span, .serv-ba aside nav li.nav1 span+span, .serv-bs aside nav li.nav2 span+span, .serv-bc aside nav li.nav3 span+span, .appr11 aside li.nav1>a>span+span, .appr12 aside li.nav1>a>span+span, .appr21 aside li.nav2>a>span+span, .appr22 aside li.nav2>a>span+span, .appr31 aside li.nav3>a>span+span, .appr32 aside li.nav3>a>span+span {color:#e60004}
aside nav .number {color:#fff; font-size:20px; font-size:2rem; font-weight:bold;border-radius: 50%; display: inline-block; background: #bfc9d0; line-height:28px; height:28px; width:28px; text-align:center; margin-right:10px; }
aside nav .arrow {width:0px; height:0px;border-bottom:15px solid transparent;  /* left arrow slant */	border-top:15px solid transparent; /* right arrow slant */ border-left:15px solid #bfc9d0; /* bottom, add background color here */ font-size:0px; 	line-height:0px; margin:0 12px 0 10px; display:none; position:absolute;}
aside nav li ul { display:none;}
aside nav li ul span+span { margin-left:38px;}
.appr11 aside nav li.nav1 ul, .appr12 aside nav li.nav1 ul, .appr21 aside nav li.nav2 ul, .appr22 aside nav li.nav2 ul, .appr31 aside nav li.nav3 ul, .appr32 aside nav li.nav3 ul  { display:block;}
.appr11 aside nav li.nav11 .arrow, .appr12 aside nav li.nav12 .arrow, .appr21 aside nav li.nav21 .arrow, .appr22 aside nav li.nav22 .arrow, .appr31 aside nav li.nav31 .arrow, .appr32 aside nav li.nav32 .arrow { display:inline-block;}
.appr11 aside .nav11 a:hover span, .appr12 aside .nav12 a:hover span, .appr21 aside .nav21 a:hover span, .appr22 aside .nav22 a:hover span, .appr31 aside .nav31 a:hover span, .appr32 aside .nav12 a:hover span {color:#8093A1}

.home h1 { margin-bottom:16px}

section, aside {}
section {float: left; width:550px; margin-left:40px;}
aside { width:185px; margin-left:680px}
.home h1 {color:#000; font-weight:normal; font-size:20px; font-size:2rem; margin-bottom:1.5	rem;}
.news {font-size:12px; font-size:1.2rem;}
.news h2 {font-weight: normal; font-size:2em; color: #00a6eb;}
h3 {color: #00a6eb;}
.news .date { color: #8093A1; margin:0;}
article ul { padding:0; list-style:none;}
article section ul li:before { content: "\20130020" }


.white-popup {
  position: relative;
  background: #FFF;
  padding: 20px;
  width: auto;
  max-width: 500px;
  margin: 20px auto;
}



.pers .accordionButton {background: #8093A1; color:#fff;cursor: pointer; padding:5px 8px;}
.pers .accordionButton:hover {background: #e60004;
transition: background-color .25s ease-in-out;
-moz-transition: background-color  .25s ease-in-out;
-webkit-transition: background-color  .25s ease-in-out;}
.pers .acc-active {background: #002843;}
.pers .acc-active:hover {background: #002843;}
.pers .accordionContent {}


.clie h1 { margin-bottom:1rem;}
.clie .accordionButton { font-weight:normal; font-size:20px; font-size:2rem;cursor: pointer;}
.clie .accordionButton:hover {color: #e60004;
transition: color .25s ease-in-out;
-moz-transition: color  .25s ease-in-out;
-webkit-transition: color  .25s ease-in-out;}
.clie .accordionContent {}


.diaAppr1 { text-align:center; line-height:1.2; margin-top:30px;}
.diaAppr1 a {display:block;color:#222}
.diaAppr1 span { display:block; margin: 0 auto; }
.diaAppr1 .persNumber {color:#fff; font-size:90px; font-size:9rem; font-weight:bold;border-radius: 50%; display: inline-block; background: #00a6eb; line-height:120px; height:120px; width:120px; margin:10px 0 }
.diaAppr1  a:hover .persNumber {background:#e60004;
transition: background-color .25s ease-in-out;
-moz-transition: background-color  .25s ease-in-out;
-webkit-transition: background-color  .25s ease-in-out;}
.diaAppr1 div {float: left;}
.diaAppr1 .arrow {width:0px; height:0px;border-bottom:25px solid transparent;  /* left arrow slant */	border-top:25px solid transparent; /* right arrow slant */ border-left:25px solid #bfc9d0; /* bottom, add background color here */ font-size:0px; 	line-height:0px; margin:85px 5px 0 5px;}


.tableAppr11 { color:#FFF; text-align:center; margin-left:-10px;line-height:1.2; width:540px;}
.tableAppr11 td {border: #fff 10px solid;}

.tableServ { margin-left:-10px;}
.tableServ a {background:#00a6eb; font-weight:bold; display:block; color:#fff; height:60px; width:170px; display:table-cell; vertical-align:middle}
.serv-ba .tableServ a.link2, .serv-ba .tableServ a.link3, .serv-bs .tableServ a.link1, .serv-bs .tableServ a.link3, .serv-bc .tableServ a.link1, .serv-bc .tableServ a.link2 {background:#bfc9d0;}
.tableServ a:hover,.serv-ba .tableServ a:hover,.serv-bs .tableServ a:hover,.serv-bc .tableServ a:hover {background:#e60004;
transition: background-color .25s ease-in-out;
-moz-transition: background-color  .25s ease-in-out;
-webkit-transition: background-color  .25s ease-in-out;}
.serv-ba .tableServ a.link1:hover, .serv-bs .tableServ a.link2:hover, .serv-bc .tableServ a.link3:hover {background:#00a6eb; cursor:default}
.tableServ td { text-align:center; background:#bfe9fa; padding:0; height:60px; border: #fff 10px solid; vertical-align:middle;font-size:16px;font-size: 1.6rem; line-height:1.2}
.tableServ td.details { text-align:left;vertical-align:middle;font-size: 12px;font-size: 1.2rem; line-height:1.1;}
.tableServ ul { margin:0 0 0 10px;}






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


/* ==========================================================================
   Detect CMS 
   to make news text editable
   ========================================================================== */
.is-cms .mfp-hide {display: block !important;}



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



