/**
 * HTML5 ✰ Boilerplate
 *
 * style.css contains a reset, font normalization and some base styles.
 *
 * Credit is left where credit is due.
 * Much inspiration was taken from these projects:
 * - yui.yahooapis.com/2.8.1/build/base/base.css
 * - camendesign.com/design/
 * - praegnanz.de/weblog/htmlcssjs-kickstart
 */


/**
 * html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
 * v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
 * html5doctor.com/html-5-reset-stylesheet/
 */

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

blockquote, q { quotes: none; }

blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }

ins { background-color: #ff9; color: #000; text-decoration: none; }

mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }

del { text-decoration: line-through; }

abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }

table { border-collapse: collapse; border-spacing: 0; }

hr { display: block; height: 1px; border: 0; border-top: 1px dashed #ccc; margin: 1em 0; padding: 0; }

input, select { vertical-align: middle; }


/**
 * Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
 */


select, input, textarea, button { font:99% sans-serif; }

/* Normalize monospace sizing:
   en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
pre, code, kbd, samp { font-family: monospace, sans-serif; }


/**
 * Minimal base styles.
 */

/* Always force a scrollbar in non-IE */
html { overflow-y: scroll; }

/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: none; }

ul, ol { margin-left: 2em; }
ol { list-style-type: decimal; }

/* Remove margins for navigation lists */
nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }

small { font-size: 85%; }
strong, th { font-weight: bold; }

td { vertical-align: top; }

/* Set sub, sup without affecting line-height: gist.github.com/413930 */
sub, sup { font-size: 75%; line-height: 0; position: relative; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

pre {
  /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
  white-space: pre; white-space: pre-wrap; word-wrap: break-word;
  padding: 15px;
}

textarea { overflow: auto; } /* www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */



.ie6 legend, .ie7 legend { margin-left: -7px; } 

/* Align checkboxes, radios, text inputs with their label by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css  */
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; }
.ie7 input[type="checkbox"] { vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }

/* Hand cursor on clickable input elements */
label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }

/* Webkit browsers add a 2px margin outside the chrome of form elements */
button, input, select, textarea { margin: 0; }

/* Colors for form validity */
input:valid, textarea:valid   {  }
input:invalid, textarea:invalid {
   border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red;
}
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }


/* These selection declarations have to be separate
   No text-shadow: twitter.com/miketaylr/status/12228805301
   Also: hot pink! */
::-moz-selection{ background: #329cac; color:#fff; text-shadow: none; }
::selection { background:#329cac; color:#fff; text-shadow: none; }

/* j.mp/webkit-tap-highlight-color */
a:link { -webkit-tap-highlight-color: #FF5E99; }

/* Make buttons play nice in IE:
   www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
button {  width: auto; overflow: visible; }

/* Bicubic resizing for non-native sized IMG:
   code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
.ie7 img { -ms-interpolation-mode: bicubic; }

/**
 * You might tweak these..
 */

body, select, input, textarea {

 

  
  font: 100%/1.5 "MyriadWebProRegular", "Myriad Pro", "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  font-weight: normal;
/*  letter-spacing: -1px;*/
}
body {
  color:#384c81;  
  background:#c3cfd8 url('../img/4contile.jpg');

/*  font: normal 100% "Lucida Grande", "Lucida Sans Unicode", Arial, sans-serif;*/

  
  font: 100%/1.5 "MyriadWebProRegular", "Myriad Pro", "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  font-weight: normal;
/*  letter-spacing: -1px;*/
}

a:link, a:active, a:visited { 
  color:#3592e1;
  text-decoration:none;
  -webkit-transition: color 0.3s ease; 
  -moz-transition: color 0.3s ease; 
  -o-transition: color 0.3s ease; 
  transition: color 0.3s ease;
    text-shadow: 0 1px 0 white;
}
a:hover {
  color:#384c81;
  text-decoration:none;
  text-shadow: none;  
  
}



img{display:block}; /*fix whitespace */

blockquote{
  margin-left:30px;
  margin-right:30px;
}
h1, h2, h3, h4, h5, h6 { 
    text-shadow: 0 1px 0 white;

}
h1{
  margin:0px 0 10px 0;
  font-size:2.5em; /*40/16*/
  display:block;
}
h2{
  font-family:Georgia, Times, "Times New Roman", serif;
  font-size:1.5em; /*24/16*/
  margin:0 0 0px 0;
  font-weight: bold;
  padding:0;
}

h3{

  font-size:1.4em;
  font-weight:bold;
  margin-bottom:1em;
}

h4{
  font-size:1.4em;
  padding:5px 0 8px 0;
  margin-bottom:20px;
  border-top:1px solid #006699;
  border-bottom:1px solid #006699;
}
h5{
  margin-top:10px;
  margin-bottom:5px;
}
h6{
  
}

em{
  font-style:italic
}

p{
  /*text-shadow: 0 1px 0 white;*/
  padding-bottom:20px;
  font-size:1em;
  line-height:1.5em;
}
ul{
  margin:0 0 1em 0;
  padding:0;
  
}
li{
  margin:0;
  padding:0;
  
}
li{
  padding:5px 20px 0 0px;
  margin-left:15px;
  text-shadow: 0 1px 0 white;
  font-style: italic;
  list-style-type: square;


}
a.morearr{

  background-color: #2EC0FE;
  -moz-border-radius: 35px;
  -webkit-border-radius: 35px;
  border-radius: 35px;
  -moz-box-shadow: 0px 2px 5px rgba(0,0,0,0.39);
  -webkit-box-shadow: 0px 2px 5px rgba(0,0,0,0.39);
  box-shadow: 0px 2px 5px rgba(0,0,0,0.39);
  background-image: -o-linear-gradient(-90deg , rgb(71,136,205) 0%, rgb(36,48,115) 100%);
  background-image: -moz-linear-gradient(-90deg , rgb(71,136,205) 0%, rgb(36,48,115) 100%);
  background-image: -webkit-linear-gradient(-90deg , rgb(71,136,205) 0%, rgb(36,48,115) 100%);
  background-image: -ms-linear-gradient(-90deg , rgb(71,136,205) 0%, rgb(36,48,115) 100%);
  background-image: linear-gradient(-90deg , rgb(71,136,205) 0%, rgb(36,48,115) 100%);


  font-family: 'Lucida Grande';
  color: #FFFEFE;
  text-shadow: rgba(0,0,0,0.43) 1px 1px 2px;
  padding:.3em .7em;

}
a.morearr:hover{
  background-image:none;
  background:#3592e1;

}
#lrgbg{
  background: url('../img/bg.jpg') top center no-repeat;
}
#container{
  margin:0 auto;
  width:90%;
}
#header{
  
  margin-top:1em;
  padding-bottom:1.5em;
}
#logo img{
  margin:0 auto;

}
#contacts{
margin:0 auto;
}
#contacts h2{
  margin:0;
}
#tel{
  line-height:39px;
  background: transparent url('../img/tel.png') no-repeat center left;
  padding-left:38px
}
#email{
  line-height:39px;
  background: transparent url('../img/mail.png') no-repeat center left;
  padding-left:38px;
}
#socnet{

}
#mainnav{
  padding-top:1.0em;
  text-align:center;
}
#mainnav li {
  display:inline;
  padding:0 1px;
  margin:0;
  font-style: normal;

}
#mainnav li a{
  font-size:1.1em;
  color:#384c81;
  text-transform:lowercase;
  line-height:1.4em;
  
}
#mainnav li a strong{
  font-weight:normal;
}
#mainnav li a:hover, #mainnav li a.curractive, #mainnav li a.curractivepar, a.highlightcl{
  color:#3592e1;
}
#contacts{
  
}


#socnet{
  padding-top:1.5em;
  text-align:center;
}
#socnet li{
  display:inline-block;
  padding:0 .531914893617021276%; /*5/940*/
}
#socnet li a{
  display:block;
  width:30px;
  height:29px;
  background:#ccc;
}
#socnet li a span{
  display:none;
}
#socnet li.fb a{
  background: url('../img/fb.png') center no-repeat;
} 
#socnet li.tw a{
  background: url('../img/tw.png') center no-repeat;
} 


#main img{
  max-width: 100%;
}
#hero{
  display:none;
  position:relative;
    margin-bottom:2em;

 
}
#herofade{
  overflow:hidden;
   z-index:998;

    border: 2px solid #FFFFFF;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius: 20px;

    /*text-shadow: rgba(255,255,255,1) 0px 0px 0px;*/
    -moz-box-shadow:inset 0px -13px 19px rgba(0,0,0,1);
    -webkit-box-shadow:inset 0px -13px 19px rgba(0,0,0,1);
    box-shadow:inset 0px -13px 19px rgba(0,0,0,1);
    /*background-color: #2EC0FE;*/


}
#herofade img{
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  border-radius: 20px;

}
#herofade div{
  position: relative;
  z-index:998;
}
#herofade p.imgtext{
  position:absolute;
  top:7%;
  left:5%;
  width:90%;
  z-index:999;
   margin:0px 0 10px 0;
  font-size:2em;
  font-weight:normal;
  display:block;
  font-style: italic;
  color:white;
  text-shadow: 2px 1px 5px #384C81, -2px 1px 5px #384C81;
  font-family: Georgia, Times, 'Times New Roman', serif;
}


h1.sec-title{
  font-family:Georgia, Times, "Times New Roman", serif;
  text-align:center;
  /*font-style: italic;*/
  font-weight: bold;
  padding-bottom:26px;
  margin-bottom:30px;
  border-bottom:1px solid #4c4474;
  
}
.contblock h2{
  font-family:Georgia, Times, "Times New Roman", serif;
  /*font-style: italic;*/
  font-weight: bold;
  padding-bottom:20px;
}
.contblock{
  width:100%;
}

.contblock img{
  margin-bottom:15px;
  

}


.contblock p{
  text-align:left;
  padding-bottom:1.3em;
}
.twitlist span{
  font-size: 0.8em;
  clear:both;
  display: block;
}
a.twitfollow{
/*  background: url('https://4-consulting.com/img/twitter-bird-light-bgs.png') left center no-repeat;
  background-size: 30px 30px;
  padding-left:1.5em;*/
}


.twtr-widget h4{
  display:none;

}
.twtr-widget a{
  text-shadow: none;

}
.twtr-hd{
  padding-bottom:0 !important;
  text-shadow: none;
}
.twtr-hd h3{
  text-shadow: none;
  font-size:1.9em !important;
}
.twtr-ft a{
  text-shadow: none;

}

.conttease{
  padding-bottom:1em;
}
.listicon{
  text-align:center;
}
.imgblock{
  margin:0 1em 2em 0;
  text-align:center;
}
.imgblock img{
  text-align:center;
  margin:0 0 1em 0;
 border:10px #dae6f4 solid;
}
.slideimg{

  

}
.listbox{
padding-bottom:1.5em;

}
h2.feath2{

  padding-bottom:1em;
}

#gal_grid{
  padding-top:1.5em;
  text-align:center;
}
#gal_grid ul{
  padding:0;
}
#gal_grid li{
  float:left; 
  width:100%;
  margin:0;
  padding:1em 0;
/*  background:#ccc;*/
}
#gal_grid li a{
  width:100%;
  display:block;
}

/*margin:1em 1.063829787234042553%; /*20/940 10/940*/

#gal_grid li img{
  border:8px #a7b7c1 solid; 

  max-width: 100%;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; 
}

#footer{
  text-align:center;
  font-weight:bold;
}
#footer p{
  font-size:0.8em;
}
table{
  border-top:1px solid #fff;
  border-bottom:1px solid #fff;
  padding-top:5px;

}
table strong{
  text-transform:uppercase;
  font-weight:normal;
  font-size:1.1em;
}
th{
  color:#ea5b28;
  text-align:left;
}

label{
  width:90%;
  float:left;
  line-height:37px;
  height:37px;
}
label.long{
  width:200px;    
}
.contblock input, .contblock textarea {  
  width:90%;
    padding: 4px;  
  border:none;
    outline: 0;  
    font: normal 13px/100% Verdana, Tahoma, sans-serif;  
  background:#fff;
  padding:10px 15px;
  -webkit-box-shadow: 0px 0px 3px 3px #d6e1e6;
  -moz-box-shadow: 0px 0px 3px 3px #d6e1e6;
  box-shadow: 0px 0px 3px 3px #d6e1e6;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
textarea {  
     
    line-height: 150%;  
}
.required{
  border:1px solid #ff0000;
}
.error{
  color:#ff0000;
}
#flash{
  color:#ff0000;
}

/**
 * Non-semantic helper classes: please define your styles before this section.
 */

/* For image replacement */
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }

/* Hide for both screenreaders and browsers:
   css-discuss.incutio.com/wiki/Screenreader_Visibility */
.hidden { display: none; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: by Jon Neal.
  www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden */
.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: 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 screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements.
   j.mp/bestclearfix */
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
.clearfix:after { clear: both; }
/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
.clearfix { zoom: 1; }



/**
 * Media queries for responsive design.
 *
 * These follow after primary styles so they will successfully override.
 */

@media all and (orientation:portrait) {
  /* Style adjustments for portrait mode goes here */

}

@media all and (orientation:landscape) {
  /* Style adjustments for landscape mode goes here */

}

/* Grade-A Mobile Browsers (Opera Mobile, Mobile Safari, Android Chrome)
   consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
@media screen and (max-device-width: 479px) {


  /* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you: j.mp/textsizeadjust */
   html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } 
   
  

}
@media screen and (min-width: 480px) and (max-width:768px){
  #tel{
    line-height:39px;
    background: transparent url('../img/tel.png') no-repeat center left;
    padding-left:10%;
    width:30%;
    float:left;
    font-size:1em;
  }
  #email{
    line-height:39px;
    background: transparent url('../img/mail.png') no-repeat center left;
    padding-left:10%;
    width:50%;
    float:right;
    font-size:1.1em;
    
  }
   
  

  
  
  #mainnav li {
    padding:0 4px;
  }
  

}
@media screen and (min-width: 769px) {  
  #hero{
   display:block;
  }
  .contblock{
    width:45%;
    padding-right:5%;
    float:left;
  }
  .gallbox{
    float:left;
  }

  label{
    width:80px;
  
  }
  label.long{
    width:200px;    
  }
  .contblock input, .contblock textarea {  
    width:60%;

  }

  #casubmit{
    margin-left:80px;
    width:120px;
  }
  
  
  
  
  
  
}
@media screen and (min-width: 980px) {
  #container{
    width:980px;
    margin:0 auto;
  }


  #header{
    width:100px;
    float:left;
    margin-top:82px;
    margin-right:60px;
  position:fixed;
  }
  #mainnav ul li{
    display:block;
    text-align:right;
  }
  #logo img{
    margin:0 0 20px 0;
  }
  #contacts{
    width:780px;
    float:right;
    margin-top:20px;
    margin-bottom:0px;
  }

  #tel{
    width:217px;
    float:left;
  
  }
  #email{
    line-height:39px;
    width:323px;
    float:left;    
  }
  #main{
    width:780px;
    float:right;
  }
  h1.sec-title{
    padding-top:36px;
  }
  
  .contblock{
    width:23%;
    padding-right:2%;
    float:left;
  }
  .twitblock{
    width:25%;
    padding-right:0%;
    float:left;
  }
  .gr3{
      width:32%;
      padding-right:1%;
      padding-bottom:.5em;
    
  }
  .gr2{
      width:45%;
      padding-right:5%;
    
  }
  .gr1, .gr1 p{
    width:100%;
      text-align:center;
    
  }
  
  
 
  
  #footer{
    clear:both;
    display:block;
    text-align:right;
    width:100%;
    padding-top:100px;
  }
  

  
}

/**
 * Print styles.
 *
 * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
 */
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
  -ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
  a, a:visited { color: #444 !important; text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
  tr, img { page-break-inside: avoid; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3{ page-break-after: avoid; }


  #mainnav{
    display:none;
  }
  h1, h2, h3, h4, h5 ,h6{

    text-decoration: none;
  }
  a.morearr{

  background-color: transparent;
  border:0;
  -moz-box-shadow:none;
  -webkit-box-shadow:none;
  box-shadow: none;
  background-image:none;



  font-family: 'Lucida Grande';
  color: #FFFEFE;
  text-shadow: none;
  padding:.3em .7em;

}
}

