
/* Header */
div#header_container {
    position: relative;
    background-color: white;
    z-index: 98;
    opacity: 0.9;
}

header {
    width: 32rem;
    height: 6rem;
    margin: 0 auto;
    padding: 10px 0;
}

header .logo {
    float: left;
}

hgroup {
    text-align: center;
    float: left;
    margin-top: 0.3rem;
    margin-left: 2rem;
}

hgroup h1 {
    margin: 4px 0;
    text-transform: uppercase;
}

hgroup h2 {
    margin: 0;
}



/* Navigation */
nav {
    width: 100%;
    height: 3rem;
    color: white;
    background-color: #0d4676;
    position: relative;
    z-index: 99;
    opacity: .85;
}
  
nav ul {
    max-width: 960px;
    margin: 0 auto;
    list-style: none;
}

nav ul li {
    max-width: 180px;
    min-width: 100px;
    width: 19%;
    display: inline-table;
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 0.9rem 0;
    color: white;
    letter-spacing: 0.1rem;
    font-weight: bold;
    opacity: 1;
}

nav ul li a:hover {
    color: #0d4676;
}

nav ul li:hover {
    background-color: #ffcc00;
}

nav img#mobile_nav {
    display: none;
}

#jump_fix {
    height: 3rem;
    display: none;
}



/*Hero Content */        

div.hero {
    position: relative;
    top: -164px;
}


img.slide {
    width: 100%;
    height: auto;
    top: 0;
    z-index: 1;
}

img.slide:not(:first-child) {
    display: none;
}



/* Home Reasons */
section#reasons, section#service_container, section.year  {
    margin: 0 auto;
    width: 1200px;
}

section#reasons h3 {
    margin-top: 25px;
    margin-bottom: 20px;
    margin-left: 30px;
    text-transform: uppercase;
}

section#reasons figure {
    float: left;
}

section#reasons, section#contact_page {
    padding: 0 2%;
}

figure.reasons_item {
    width: 45%;
    max-width: 530px;
    margin: 1% 0;
    padding: 1% 2%;
    display: none;
}

figure.reasons_item img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    float: left;
    background-repeat: no-repeat;
    background-size: cover;
}

figcaption h4 {
    margin-top: 8px;
}

figcaption.reasons_text h3 {
    margin: 4px 0;
}

figcaption.reasons_text p {
    margin: 0;
}




/* Services Page */
section.service {
    width: 45%;
    margin-right: 2%;
    margin-bottom: 30px;
    padding-left: 2%;
    float: left;
}

section.service h3 {
    margin: 5% 0;
    text-transform: uppercase;
}

section.service h4 {
    margin-top: 10px;
    display: inline-block;
}

section.service p {
    margin: 20px 0;
}

section.service ul {
    margin: 10px 30px;
    margin-bottom: 20px;
}

section.service img {
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 0 4px black;
}

section.service a {
    color: black;
}



/* Portfolio Page */
section.year { 
    width: 94%;
    margin-left: 3%;
    padding-left: 3%;
    display: flex;
    flex-wrap: wrap;
}

h3.portfolio_year {
    margin: 0;
    margin-left: 0;
    padding: 1rem 2%;
    letter-spacing: 0.04em;
    color: white;
    background-color: #6E90AD;
}

h3.portfolio_year:hover {
    cursor: pointer;
}

div.content#portfolio_page {
    margin-top: 170px;
    padding-top: 0;
}

div.content#portfolio_page h2.page_name {
    display: none;
}

figure.project {
    width: 400px;
    margin: 2% 25px;
}


figure.project img {
    width: inherit;
    margin: 10px 0;
    box-shadow:	0 0 4px black;
}


.project p {
    margin: 0;
}




/* Quote Page */

form#quote_request, section#contact_page {
    margin: 0 auto;
    padding: 0 2%;
    width: 94%;
    max-width: 980px;
}

div.sub_form {
    width: 430px;
    margin: 10px auto;
    margin-top: 30px;
    padding-top: 10px;
}

div#quote_info.sub_form {
    float: left;
    margin-right: 30px;
}

div#contact_info.sub_form {
    float: right;
}

div.radio_group label {
    margin-right: 26px;
}

div.radio_group input {
    margin: 0;
    position: relative;
    top: 5px;
}

div.radio_group {
    width: 283px;
    margin: 0;
    margin-bottom: 6px;
}

div.sub_form>label {
    width: 142px;
    display: inline-block;
}

label[for=build_type_radio], label[for=prj_description] {
    vertical-align: top;
    margin-top: 10px;
}

input {
    width: 240px;
    height: 30px;
    display: inline-block;
}

input, textarea, select {
    margin: 6px 0;
    padding: 4px 10px;
    letter-spacing: 0.03rem;
    border: 1px solid #0d4676;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border:1px solid #ffcc00;
}

div.sub_form>input {
    width: 260px;
    display: inline-block;
}

.radio_group input  {
    width: 16px;
    float: none;
}

.radio_group, select, textarea {
    display: inline-block;
}

select {
    width: 150px;
    letter-spacing: 0;
}

#build_type_radio label {
    width: 107px;
    margin-bottom: 0;
}

#build_type_radio label:nth-child(even) {
    float: right;
}

#build_type_radio label:nth-child(odd) {
    float: left;
}

#prj_area {
    width: 100px;
    text-align: right;
}

#area_unit {
    margin-left: 6px;
}

textarea {
    min-width: 260px;
    min-height: 40px;
    max-width: 260px;
    max-height: 120px;
}



section#contact_group {
    margin-top: 50px;
    margin-right: 2%;
    margin-left: 10%;
    width: 350px;
    float: left;
}

section#contact_group a {
    color: #0d4676;
}

.contact_info {
    margin-right: 50px;
    margin-bottom: 10px;
    float: left;
}

.contact_info p {
    margin: 4px 0;
}

#tel_fax_email {
    margin-right: 0;
}

div.submit_message p {
    width: 60%;
    margin: 10px auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.2rem;
}

div#contact_email_form {
    width: 370px;
    margin-right: 7%;
    padding: 20px 0;
    float: right;
}

div#contact_email_form label {
    width: 103px;
    display: inline-block;
    vertical-align: top;
    margin-top: 18px;
}

#inq_message {
    max-width: 200px;
    min-width: 240px;
    margin-left: 0;
    vertical-align: middle;
}

.form_buttons {
    width: 100px;
    padding: 10px 0;
    margin: 0;
    margin-top: 20px;
    text-align: center;
    float: right;
    clear: right;
}

footer {
    width: 100%;
}


footer small.copyright {
    margin-top: 4rem;
    margin-bottom: 2px;
    margin-left: 1%;
    color: white;
}





@media screen and (min-width: 1530px) {
    section#contact_page, section#reasons {
	margin-top: 2%;
    }
}

@media screen and (max-width: 1200px) {
    section#reasons {
        width: 90%;
    }   
}






@media screen and (max-width: 952px) {

    section#reasons {
	width: 70%;
    }

    figure.reasons_item {
	width: 95%;
	min-width: 345px;
	margin: 5px 0;
    }
    
    section#service_container {
	max-width: 600px;
    }

    section.service {
	width: 96%;
    }

    div#contact_info.sub_form {
	float: left;
    }
    
    .form_buttons {
	clear: both;
    }

    section.year {
	width: 420px;
    }

    figure.project {
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 6%;
    }

    form#quote_request {
	width: 460px;
    }

    section#contact_page {
	width: 350px;
    }

    section#contact_group {
	margin: 0;
	margin-bottom: 50px;
    }

    div#contact_email_form {
	float: left;
	margin-right: 0;
    }
}


@media screen and (max-width: 560px) {
    header {
        width: 19rem;    
        height: 4rem;
    }
    
    img.logo {
        height: 4rem;
    }
    
    hgroup {
        margin-left: 1rem;
    }
    
    hgroup h1 {
        font-size: 1rem;
    }
    
    hgroup h2, p, dl *, label, span {
        font-size: 0.63rem;
    }
    
    h3 {
        font-size: 0.9rem;
    }
    
    h4 {
        font-size: 0.7rem;
    }
    
    div.hero {
        display: none;
    }
    

    div.content {
        top: 0;
    }          


    nav {
        height: 4rem;
    }
    
    nav ul {
 	width: 150px;
	background-color: inherit;
        display: none;
	position: absolute;
	top: 4rem;
	right: 0;
    }

    nav ul li {
	width: 150px;
	text-align: left;
    }

    nav ul li a {
	padding-left: 25px;
    }

    
    nav img#mobile_nav {
        width: 3rem;
        height: 3rem;
        margin: 0.5rem;
        display: block;
        float: right;
    }	

    nav img#mobile_nav:hover {
	cursor: pointer;
    }	 

    #jump_fix {
        height: 4rem;
    }
    
    div.content {
        padding-top: 4%;
    }
    
    h2.page_name {
	top: 84px;
	left: 10px;
	margin: 0;
	margin-top: 10px;
	padding: 2% 1.5%;
	font-size: 1.5rem;
	color: white;
	background: rgb(204, 204, 204);
	background: rgba(204, 204, 204, 0);
	opacity: 1;
	z-index: 100;
    }


    div.content#portfolio_page {
        margin-top: 0;
    }

    section#reasons {
        width: 90%;
    }

    section#service_jan.service {
	margin-top: 50px;
    }

    section#contact_page {
	width: 72%;
    }

    section#contact_group {
	width: 93%;
	min-width: 198px;
	margin-top: 10px;
	margin-bottom: 0;
    }

    section#contact_group div#address {
	margin-right: 30px;
    }

    div.contact_form h4 {
	margin-bottom: 10px;
    }

    div.contact_form label{
	margin-bottom: 0;
    }

    div.contact_email_form .form_buttons {
	margin-right: 8px;
    }

    figure.reasons_item img {
	width: 20%;
	height: 20%;
    }

    figure.reasons_item {
	min-width: 68%;
    }

    figure.reasons_item p {
	width: 68%;
	float: right;
    }

    div.content#portfolio_page h2.page_name {
	display: none;
    }

    div.content section {
	width: 96%;
	margin: 0 auto;
    }

    figure.project, div#contact_email_form, div#contact_info.sub_form {
	width: 100%;
	max-width: 420px;
    }

    section.year {
	max-width: 420px;
    }

    form#quote_request {
	width: 80%;
	min-width: 296px;
    }

    div.sub_form>input, div.sub_form textarea {
	width: 92%;
	min-width: 0;
	max-width: 260px;
    }

    div#quote_info.sub_form {
	width: 100%;
	margin: 0;
    }

    div#build_type_radio.radio_group, div#service_type.radio_group, div#clean_freq.radio_group, div.radio_group {
	margin-bottom: 10px;
	margin-left: 30px;
    }

    div#clean_freq.radio_group {
	margin-left: 0;
    } 

}

