/*! 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
   ========================================================================== */

/*
Project: 		Williams
Last major change: December 5, 2014
Created by:	Devon Lesk
Primary use:	Web, Mobile
*/


/*General Classes and Styles
*********************/
html{font-size:16px; background:#f6f6f6;}

.left{float:left; display:inline;}
.right{float:right; display:inline;}
.clear{clear:both;}

.alignLeft{text-align:left;}
.alignRight{text-align:right!important;}
.alignCenter{text-align:center;}

/*Smallest/0.688em;Smaller/0.750em;Small/0.875em;Normal/1em;Large/1.125em;Larger/1.250em;Largest/1.500em; Drupal CKeditor font sizes for reference*/

.padding{padding:1%;}
.leftPadding{padding:0 0 0 1%;}
.leftLargerPadding{padding:0 0 0 5%;}
.rightPadding{padding:0 1% 0 0;}

.margin{margin:1%;}
.leftMargin{margin:0 0 0 1%;}
.rightMargin{margin:0 1% 0 0;}

.imgBorder{border:#CCC solid 1px; padding:4px; margin:1%;}
.imgBorder:hover{border:#ef4723 solid 1px;}
.imgBorderGrey{background:#e8e8e8; padding:2%; margin:1%;}

.halfWidth{width:50%}
.pdf{position:relative; padding:10px 10px 10px 20px; line-height:2; background:#f2f2f2; color:#000!important;}
	.pdf:before{position:absolute; left:-20px; top:0px; width:20px; height:20px; background:#87b911 url(../img/pdf_icon.png) no-repeat;}
.doc{background:url(../img/doc.gif) no-repeat; padding:0px 0 4px 20px; line-height:2; background:#f2f2f2;}

.columnLeft{float:left; display:inline; width:32.5%; padding:0 .5% 0 0;}
.columnRight{float:left; display:inline; width:32.5%; padding:0 0 0 .5%;}
.columnMiddle{float:left; display:inline; width:32%; padding:0 1% 0 1%;}
.column{float:left; display:inline; width:31%; padding:0 1% 0 1%;}

.column_thirds{float:left; display:inline; position:relative; width:29%; padding:1%; margin:0 1%;}

h1{margin:0px; padding:0px; font-weight:100!important; line-height:1; font-size:5em;}

p{font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; color:#626161; line-height:140%;}
a{text-decoration:none;}

.mail{background:url(../img/mail_icon.png) no-repeat; padding:0 0 0 26px; line-height:1;}
.phone{background:url(../img/phone_icon.png) no-repeat; padding:0 0 0 26px; line-height:1;}

.underline{text-decoration:underline;}

.width_wrapper{position:relative; display:block; margin:0 auto; width:1200px;}
.width_wrapper_small{position:relative; display:block; margin:0 auto; width:900px;}

hr{clear:both; position:relative; background:#cccccc; border:none; margin:10px 0px; width:60%; left:20%;}

table td{padding:2%;}
table tbody{border:none;}

img{margin:1%; border-radius:10px;}

iframe{padding:3px; border:#fff solid 1px;}

/*Common Colors*/

/**/
/*********************/



/*Body and Wrapper*/
body{background:#fff; font-family:'Open Sans', sans-serif; height:100%;}
#wrapper{}
/**/

header{position:relative; float:left; width:100%; min-height:440px;}
	#pipes{position:absolute; top:0px; left:0px; z-index:0; margin:0px; border-radius:0px; float:left; width:100%; height:auto;}
	nav{position:relative; z-index:10; float:left; font-family:"Times New Roman", Times, serif; text-transform:uppercase;}
		nav a{color:#fff; text-decoration:none;}
		#primary{width:100%;  background:#626161;}
		#primary ul{margin:0px; padding:0px;}
		#primary li{float:left; margin:0 20px; padding:8px 0px;}
		#primary .leaf{margin:0px; padding:0px;}
		#primary a{font-size:1.250em; color:#fff;}
		
		#secondary{float:left; width:100%; background:#f6f6f6; margin:0; overflow:hidden; position:relative;}
		#secondary ul{clear:left; float:left; margin:0; padding:0; position:relative; left:50%; text-align:center;}
		#secondary li{display:block; float:left; list-style:none; margin:0; padding:0; position:relative; right:50%;}
		#secondary li a{display:block; width:200px; height:154px; padding:6px 0 0 0; text-align:center; background-position:center!important; color:#1b1b1b!important;}
		#secondary li a.active{color:#fff;}
			#secondary li:nth-child(4n+1){background:#a83d45 url(../img/icons/fire_icon.png) no-repeat center;} #secondary li:nth-child(4n+2){background:#626161 url(../img/icons/toilet_icon.png) no-repeat center;} #secondary li:nth-child(4n+3){background:#f0e1c3 url(../img/icons/faucet_icon.png) no-repeat center;} #secondary li:nth-child(4n+4){background:#d8d8d8 url(../img/icons/thumb_icon.png) no-repeat center;}
		
	.header{float:left; position:relative;  z-index:10; margin:100px 0 100px 0; padding:10px 0 10px 0; width:100%; background:url(../img/white_trans_60.png) repeat;}	
	#logo{float:left; margin:60px 0; }
		#logo img{}
	#award{float:left; margin:30px 0 0 80px;}	
	.awardSection {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        top: -28px;
        margin: 0px 0 0 80px;
    }
    .headerWrapper {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }	
#page_content{position:relative; z-index:10; float:left; width:100%; padding:40px 0px; background:#f6f6f6;}		
	.home{padding:0px 0px!important;}
.section{float:left; width:100%; padding:40px 0px;}
	#first{background:#f6f6f6;}
	#second{background:#f8f1e3;}
		#second p{line-height:1.2;}
	#third{background:#fbfbfb url(../img/water_splash.jpg) no-repeat top center;}
	#fourth{background:#626161;}


footer{clear:both; background:#626161; padding:10px 0;}
	footer p{text-align:center; color:#fff;}
	footer a{color:#fff!important;}
	footer a:hover{color:#cc2027!important;}





/*Media Queries
************/
@media all and (max-width: 1100px) {
header{background:url(../img/williams_back.jpg) no-repeat; background-size:cover; background-position:center center;}
#pipes{display:none;}
.width_wrapper{position:relative; display:block; margin:0 auto; width:90%;}
.width_wrapper_small{position:relative; display:block; margin:0 auto; width:90%;}
}

@media all and (max-width: 900px) {
.width_wrapper{position:relative; display:block; margin:0 auto; width:90%;}

#logo img{width:90%; height:auto;}
#award{margin:0 0 30px 170px;}
}

@media all and (max-width:520px) {
#award{margin:0 0 30px 80px;}

#secondary li a{float:left;display:inline-block; width:120px; height:100px; padding:6px 0 0 0; text-align:center; background-position:center!important;}
iframe{width:100%; margin:0px;}
p{line-height:1;}
img{width:100%!important; height:auto!important;}
}


@media all and (max-width:830px) {
    .awardSection {
        margin: 0;
    }
}
    






/* ==========================================================================
   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;
    }
}
