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

/* //////////////   HEADER   ///////////// */

header {
	background-image: url("../img/home-header.jpg");
	background-size: cover;
}

#homeheader .pageintro {
	width: 300px;
	margin:0 auto;
	padding:0;
}

#homeheader .pageintro img{
	width: 300px;
	padding: 50px 0;
}

#aboutheader header{
	background-image: url("../img/about-header2.jpg");
	background-size: cover;
}

#productsheader header{
	background-image: url("../img/products-header.jpg");
	background-size: cover;
}

#servicesheader header{
	background-image: url("../img/services-header2.jpg");
	background-size: cover;
}

#locationheader header{
	background-image: url("../img/location-header.jpg");
	background-size: cover;
}

#contactheader header{
	background-image: url("../img/contact-header2.jpg");
	background-size: cover;
}


header img {
	width: 100px;
	margin: 0 auto;
	padding: 25px 7% 0 7%;
}

header h1 {
	font-family: Arial, Helvetica, sans-serif;
	color: rgba(255, 230, 0, 0.9);
	line-height: 1.1em;
	padding: 50px 7% 20px 7%;
}

header p {
	font-family: 'Source Sans Pro', sans-serif;	
	color: #fff;
	line-height: 1.5em;
	padding-bottom: 50px;transition:all .5s ease-in-out; 
  	-o-transition:all .5s ease-in-out; 
  	-moz-transition:all .5s ease-in-out; 
  	-webkit-transition:all .5s ease-in-out;
}

h1, p {
	padding: 0 7%;	
	margin:0;
	transition:all .5s ease-in-out; 
  	-o-transition:all .5s ease-in-out; 
  	-moz-transition:all .5s ease-in-out; 
  	-webkit-transition:all .5s ease-in-out;
}

img {
	transition:all .5s ease-in-out; 
  	-o-transition:all .5s ease-in-out; 
  	-moz-transition:all .5s ease-in-out; 
  	-webkit-transition:all .5s ease-in-out;

}

h1 {
	font-family: 'PT Serif', serif;
	padding-bottom: 5px;
	color: rgb(0,57,95);
}

iframe.grayscale {
	
	filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 3.5+ */    
    filter: gray; /* IE6-9 */
	-webkit-filter: saturate(0); /* Chrome 19+ & Safari 6+ */
}


/* ////////////////   NAV   /////////////// */


nav li {
	font-family: 'Source Sans Pro', sans-serif;	
}

nav li a:hover {
	color:rgb(255, 230, 0);
}

nav span {
	color: rgb(255, 230, 0);
}


/* ////////////////   MAIN   ///////////// */

p {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 1.2em;
	line-height: 1.4em;
}

p span {
	text-decoration: underline;
}

.section {
	padding: 30px 0;	
}

.imageblock {
	width:50%;
	float:left;
}

.imageblock1 {
	background: url("../img/imageblock1.jpg");
	background-size: cover;
	padding:100px 0;
}

.imageblock1 p, .imageblock2 p{
	background: rgba(255, 230, 0, 0.9);
    padding: 3px 0;
	font-size: 1.2em;
    line-height: 1.9em;
	display:inline;
	box-shadow: rgba(255, 230, 0, 0.9) 10px 0px 0px 0px, rgba(255, 230, 0, 0.9) -10px 0px 0px 0px;
}

.imageblocktext {
	padding: 0 12%;
}

.imageblock2 {
	background: url("../img/imageblock2.jpg");
	background-size: cover;
	padding:100px 0; 	
}

.imageblock2 p a{
	text-decoration: none;	
}

div.imageblock1 p, div.imageblock2 p{text-decoration: none;color: #000;	}

div.imageblock1 a, div.imageblock2 a p{text-decoration: none;color: #000;	}

a:hover .imageblock1, a:hover .imageblock2 {
	background-image: none;
	background-color:rgba(255, 230, 0, 0.9);-o-transition:.5s;
  -ms-transition:.3s;
  -moz-transition:.3s;
  -webkit-transition:.3s;
  /* ...and now for the proper property */
  transition:.3s;
}




/* ////////   about   /////// */

#about {
	background-color: #EAEAEA;	
}

.triangle {
	width: 0px;
	height: 0px;
	border-style: solid;
	border-width: 15px 25px 0 25px;
	border-color: #fff transparent transparent transparent;
	margin: 0 48%;
	position:absolute; 
}

.aboutsection {
	padding: 50px 7%;
	font-family: 'Source Sans Pro', sans-serif;	
}

h3 {
	font-family: 'PT Serif', serif;
	font-size: 1.4em;
	color: rgb(0,57,95);
	margin: 0;
}

.abouttext h4 {
	margin-left: 10px;
	padding: 3px 0;
	display:inline;
	font-size: 1em;
	background: rgba(255, 230, 0, 0.9);
	box-shadow: rgba(255, 230, 0, 0.9) 10px 0px 0px 0px, rgba(255, 230, 0, 0.9) -10px 0px 0px 0px;
}

.abouttext p{
	font-size: 1em;
	line-height: 1.3em;
	padding: 10px 7% 20px 7%;
}

p.title {
	font-size: .9em;
	padding: 0 0 10px 0;
	border-bottom: 1px solid #666;
	margin-bottom: 20px;
}

.aboutprofile2 {
	margin-top: 35px;
}

.abouttext p span{
	text-decoration: none; 
	border-bottom: 2px solid #CCC; 
	color: #333; 	
}

p.contact {
	line-height: 1.5em;
}

p.contact a {
	text-decoration: none;
}

.abouttext p a:hover span {
	color: #E6B800;
}

#promotion {
	background: url("../img/promo.jpg");
	background-size: cover;
	padding:90px 0; 	text-align: center;

}

a:hover #promotion {
	background-image: none;
	background-color:rgba(255, 230, 0, 0.9);-o-transition:.5s;
  -ms-transition:.3s;
  -moz-transition:.3s;
  -webkit-transition:.3s;
  /* ...and now for the proper property */
  transition:.3s;

}

a #promotion {
	text-decoration: none;
}

/*#promotion p{
	color: #fff;
	text-align: center;
	border: 1px solid #fff;
	padding: 20px;
	width: 200px;
	margin: 0 auto;
}*/

#promotion p{
	padding: 3px 0;
	font-size: 2em;
    line-height: 1.9em;
	display:inline;
	background: rgba(255, 230, 0, 0.9);
	box-shadow: rgba(255, 230, 0, 0.9) 10px 0px 0px 0px, rgba(255, 230, 0, 0.9) -10px 0px 0px 0px;
	border-bottom: 1px solid rgba(255, 230, 0, 0.9);
}

div#promotion p, div#promotion a{text-decoration: none;color: #000;	}

a #promotion {text-decoration: none;}

a:link {
color:rgba(255, 230, 0, 0.9);text-decoration: none;}

/* ///////  products   ///////  */

.parttag {	
	position: absolute; 
	margin-top:-120px; 
	padding-left: 7%;
}

.parttag p{
	padding: 3px 0;
	font-size: 1.2em;
    line-height: 1.9em;
	display:inline;
	background: rgba(255, 230, 0, 0.9);
	box-shadow: rgba(255, 230, 0, 0.9) 10px 0px 0px 0px, rgba(255, 230, 0, 0.9) -10px 0px 0px 0px;
	z-index: 999;
}

#mapa img{
	width:100%;
}

.part1 img{
	width:100%;
}

/* ////////   services   /////// */



.servicessection {
	padding: 0px 7%;
	font-family: 'Source Sans Pro', sans-serif;	
}


.servicessection img {
	width: 100%;
	padding-bottom: 20px;
}

.servicestext h4 {
	margin-left: 10px;
	padding: 3px 0;
	display:inline;
	font-size: 1em;
	background: rgba(255, 230, 0, 0.9);
	box-shadow: rgba(255, 230, 0, 0.9) 10px 0px 0px 0px, rgba(255, 230, 0, 0.9) -10px 0px 0px 0px;
}

.servicestext p{	
	font-size: 1em;
	line-height: 1.3em;
	padding: 10px 0 20px 0;
	border-bottom: 1px solid #000;
}


.capabilities {
	margin: 35px 0;
}

.secondary {
	padding-bottom:50px;
}

.secondary p{
	border: none;
	padding-bottom:0px;
}

.secondary p span{
	font-size: .9em;
	line-height: 1em;
	text-decoration: none;
}

/* ///////  location   ///////  */

.hours {	
	position: absolute; 
	right:0;
	margin-top: -350px; 
	padding-right: 7%;
	text-align:right;
}

.hours p {
	padding: 3px 0;
	font-size: 1.2em;
    line-height: 1.9em;
	display:inline;
	background: rgba(255, 230, 0, 0.9);
	box-shadow: rgba(255, 230, 0, 0.9) 10px 0px 0px 0px, rgba(255, 230, 0, 0.9) -10px 0px 0px 0px;
	z-index: 999;
}



/* ///////  contact   ///////  */

#contact {
	padding: 0 7% 30px 7%;
}

#contact .address, #contact .email, #contact .phone {
	padding:0;
	text-align: center;
}

.icons2 {
	color: rgb(0,57,95);
	font-size: 3em;
	text-align:center;
	margin-top: 20px;
}

.icongroup p span{
	text-decoration: none; 
	border-bottom: 2px solid #CCC; 
	color: #333; 	
}


.icongroup p a {
	text-decoration: none;
}

.icongroup p a:hover span {
	color: #E6B800;
}



#mailform {
	padding: 0 7%;
	margin: 30px auto 30px auto;
}


.completeform {
	background-color: #EAEAEA;	
}
#mailform p {
	margin-left:10px;
	padding: 3px 0;
	display:inline;
	font-size: 1.3em;
	background: rgba(255, 230, 0, 0.9);
	box-shadow: rgba(255, 230, 0, 0.9) 10px 0px 0px 0px, rgba(255, 230, 0, 0.9) -10px 0px 0px 0px;
}

.textbox {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 1.3em;
	border: 2px solid rgb(0,57,95);
	margin: 10px 0 10px 0;
	width: 97%;
	padding: 10px;
}

textarea, input { 
	outline: none; 	
	background-color: #EAEAEA;	
}

.alignbox1 .textbox{
	height: 150px;
}
.button {
	border: none;
	background-color: rgb(0,57,95);
	padding: 10px 15px;
	color: #EAEAEA;
	margin-top: -40px;
}

.button:hover {
	background-color: rgba(255, 230, 0, 0.9);
	padding: 10px 15px;
	color: rgb(0,57,95);
}

.all {
	margin-top: 20px; 
}
/* //////////////   FOOTER   ///////////// */

footer {
	background-color: #CCC;
	font-size: .8em;
	font-family: 'Source Sans Pro', sans-serif;
	margin:0;
}

#footercontent {
	padding: 30px 7%;
}

footer p span{
	text-decoration: none; 
	border-bottom: 2px solid #999; 
	color: #333; 	
}

footer p {
	padding:0;
}

.icons {
	color: rgb(0,57,95);
	float: left;padding: 0 10px 10px 0;
	font-size: 1.5em;
}

.iconsfooter {
	margin: 10px 0;
}


.icongroup p span{
	text-decoration: none; 
	border-bottom: 2px solid #CCC; 
	color: #333; 	
}


footer p a {
	text-decoration: none;
}

footer p a:hover span {
	color: rgb(0,57,95);
}

/* ==========================================================================
   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: 400px) {

/* ////////////////   MAIN   ///////////// */

.section {
	padding: 50px 0;	
}

.imageblock1 p, .imageblock2 p{
	font-size: 1.4em;  
}


header h1 {
	font-size: 3em;
}

header p {
	font-size: 1.5em;
	line-height: 1.5em;
}

.pageintro {
	padding: 60px 0;
}

#mapa {
	width:41%;float:left;
	background-color: #333;
}

.part1 {
	width:59%;float:left;
}

}

@media only screen and (min-width: 45em) {
#navwrap {
	position:absolute;
	right:0; 
	padding: 0 7%;
}


}

@media only screen and (min-width: 768px) {
	

#homeheader .pageintro {
	width: 500px;
	margin:0 auto;
	padding:0;
}

#homeheader .pageintro img{
	width: 500px;
	padding: 90px 0;
}
	

.imageblock1 {
	width:50%;
	float:left;
}

.imageblock2 {
	width:50%;
	float:left;	
}

/* ///////  about   ///////  */

.aboutsection {
	max-width:770px;
	margin: 0 auto;
}

.aboutprofile1, .aboutprofile2 {
	width:45%;
	float: left;
	display: inline;
}

.aboutprofile1 {
	padding-right: 10%;
}
.aboutprofile2 {
	margin-top: 0;
}


/* ///////  services   ///////  */


.servicessection {
	max-width:770px;
	margin: 0 auto;
}

.servicestext p{
	line-height: 1.3em;
	padding: 10px 0 0 0;
	border-bottom: none;
}

.materials, .capabilities {
	width:45%;
	float: left;
	display: inline;
}

.materials {
	padding-right: 5%;
	border-right: 1px solid #000;
}
.capabilities {
	padding-left: 4.8%;
	margin-top: 0;
}

.secondary img {
	margin-top: 35px;
}

.secondary .servicestext p {
	width: 650px;
}

/* ///////  location   ///////  */


.hours p {
	padding: 3px 0;
	font-size: 1.6em;
    line-height: 1.9em;
	display:inline;
	background: rgba(255, 230, 0, 0.9); 
	box-shadow: rgba(255, 230, 0, 0.9) 10px 0px 0px 0px, rgba(255, 230, 0, 0.9) -10px 0px 0px 0px;
	z-index: 999;
}


/* ///////  contact   ///////  */

#contact {
	padding: 0 7% 30px 7%;

}

#contact .address, #contact .email, #contact .phone {
	font-size: .9em;
}

.icongroup {
	float:left;width: 33%;
}

.icons2 {
	color: rgb(0,57,95);
	font-size: 3em;
	text-align:center;
	margin-top: 20px;
}



/* ///////  foooter   ///////  */
footer .address {font-size: .9em;
	float:left; width: 32.6%;
}

footer .phone {font-size: .9em;
	float: left;width: 22.6%;
}

footer .email {font-size: .9em;
	float: left;width: 28.6%;
}






}

@media only screen and (min-width: 1024px) {
	

nav li {
	font-size: 1.2em;
}

.pageintro {
	max-width:900px;
	margin: 0 auto;
	padding: 90px 0;
}

header h1 {
	font-size: 4em;
}

header p {
	font-size: 1.7em;
}

.section {
	max-width: 900px;
	margin: 0 auto;
}

p {
	font-size: 1.4em;
}



.imageblock1 {
	width:50%;
	float:left;
}

.imageblock2 {
	width:50%;
	float:left;	
}

.imageblocktext {
	width:65%;
	margin: 0 auto;
}


#products {
	max-width: 770px;
	margin: 0 auto 50px auto;
}


.parttag {	
	position: absolute; 
	margin-top:-125px; 
	padding-left: 3%;
}

#contact .address, #contact .email, #contact .phone {
	font-size: 1em;
}

/* ///////  foooter   ///////  */
footer .address {font-size: 1.1em;
	float:left; width: 32.6%;
}

footer .phone {font-size: 1.1em;;
	float: left;width: 22.6%;
}

footer .email {font-size: 1.1em;
	float: left;width: 28.6%;
}


}



@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;
    }
}
