/* General
================================================== */
img{ max-width: 100%; }

/*hide responsive menus*/
#top-bar .selector,
#navigation .selector { display: none; }


/* Apply To All Responsive Layouts
================================================== */
@media only screen and (max-width: 800px) {

	//*navigation top menu
	#nav-wrap { position: relative; clear: both; top: 0; float: none; width: 100%; background-color: #3da049;}
	#navigation select { display: block; }
	#navigation .selector option{ background:#f5f5f5; -webkit-appearance:none; padding: 10px; border-bottom: 1px solid #ddd }
	#navigation .selector, 
	#navigation .selector span{ cursor: pointer !important; -webkit-font-smoothing:antialiased }
	#navigation .selector, 
	#navigation .selector *{ margin:0; padding:0 }
	#navigation .selector select{ top:0px; left:0px; height: 45px }
	#navigation .selector{ width: 100%; color: #fff; font-weight: bold; line-height: 45px; text-indent: 20px }
	#navigation .selector{ height: 51px; width: 60px; width: 100%; display:-moz-inline-box; display:inline-block; vertical-align:middle; zoom:1; *display:inline; cursor: pointer !important; position:relative; overflow:hidden; background: url(images/responsive-drop-arrow.png) right center no-repeat }
	#navigation .selector select:focus{outline:0; }
	#navigation .selector span{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
	#navigation .selector select{ position:absolute; height:45px; background:none; width:100%; font-family:Arial,sans-serif; font-size:12px; font-weight:500; border:0 !important } */

		
	/*display dropdown nav
	#navigation .selector { display: inline-block; }
	#navigation ul { display: none; } */
	

}

@media only screen and (max-width: 1169px) {
	#topwrap, #headerwrap, #titlewrap, #footerwrap, body #wrap { padding-left: 10px; padding-right: 10px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}
	
	.bottomcta { max-width: 98%; }
	
	/* #hsidebar ul.contact { font-size: 18px; }
	#hsidebar ul.contact li { margin-left: 20px; } */
	
	#header-logo {
		width: 30%;
	}
		#navigation .sf-menu a { padding: 0 0.500em; }
		
}

/* Apply To All Responsive Layouts
================================================== */
@media only screen and (max-width: 959px) {
	
	/*hide stuff*/
	.flexslider-container .flex-caption{ display: none }
	#related-posts .read-more{ display: none }
	
	/* Top */
	#top .topleft { display: none; }
	#top .topright { width: 100%; text-align: center; }
	
	/* Bottom Sidebar */
	#bsidebar, #tsidebar { max-width: 95%; }
	#bsidebar .box, #tsidebar .box { clear: both; float: none; margin: 0 auto 20px auto !important; width: 96% !important; }
	
	/* Footer Sidebar */
	#footerwrap { padding-left: 0; }
	#fsidebar { float: none; max-width: inherit; }
	#fsidebar .box, #fsidebar .box.last { float: none; width: 96% !important; height: auto; clear: both; text-align: center; margin: 0 auto 20px auto !important; border: none; min-height: auto; }
	#copyright { max-width: 90%; text-align: center; float: none; margin: 4% auto; }
	
	/* Sidebar */
	#sidebar{ width: 100%; margin: 15px 0 0 0; padding: 25px 10px 0 10px; border-top: 4px solid #eee; border-left: none; border-right: none; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } 
	#sidebar .box { width: 100%; max-width: 307px; clear: both; float: none; margin: 0 auto 20px auto; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; }
	
	/* Main */
	#main, .level1 #main, .level2 #main, .level3 #main { padding-left: 0; width: 100%; max-width: 100%; }
	
	#headerwrap { background-image: none; }
	
	#content { width: 100%; }
	
	ul#boxes { background: none !important; }
	
	#pageimage { display: none; }
	#titlecontent { float: none; display: block; width: auto; max-width: inherit; padding: 0 10px; }
	#pagetitle h1 { padding: 0 10px; }
	#titlecontent h1 { padding: 0; }
	
	h1#single-title, #byline, .share { padding: 0 10px; }
	
	#hpcta { padding: 0 10px; }
	.hpctacontent { float: none; width: auto; text-align: center; margin: 0 auto; }
	a.hpctabtn { float: none; margin: 10px auto 0 auto; max-width: 300px; }
	
	ul#socials li { float: none; /* fdisplay: inline; font-size: 18px; */}
	ul#socials li img { float: none; }
	#header-left, #header-right { width: 100%; float: none; clear: both; margin: 0 auto; }
	#header-left .box, #header-right .box { float: none; clear: both; text-align: center; display: block; margin: 0 auto; }
	#header-left ul.contact li, #header-right ul.contact li { margin: 0 auto; }
	
	.cmap #responsive-frame {
	padding-bottom: 25%;
	}
	
	#vaslider a { height: auto !important; }
	
	.srp-thumbnail-box { display: none !important; }
	.srp-content-box { width: 100%; display: block !important; }
	
	ul.contact li.phone1, ul.contact li.phone2 { display: none !important; }
	ul.contact li.mobile { display: block !important; }
	#header-left ul.contact li.mobile, #header-right ul.contact li .mobile { display: inline-block !important; }
	
	.fixedmenuwrap { display: none !important; }
	
	#phonebig /*, ul#socials*/ { float: none; clear: both; margin: 10px auto; text-align: center; }
	
	ul#socials { margin-left: auto; margin-right: auto; float: none; }
	

	/* #navigation .sf-menu { display: table; margin: 0 auto; float: none; }
	#nav-wrap { float: none; width: 100%; } */
	
	/* #hsidebar ul.contact { margin-top: 40px; } */
}



/* #Tablet (Portrait) = Design for a width of 730px
================================================== */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	
	/*blog*/
	#author-bio{ width: 355px }
	
	/*search*/
	.search-entry-text{ width: 310px; }
	
	/*main*/
	#main, .level1 #main, .level2 #main, .level3 #main { width: 100% }

}

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

#navigation .sf-menu a { font-size: 16px; padding: 1.250em 0.500em; }
#hsidebar ul.contact { font-size: 18px; }

}

/* Mobile (Portrait) = Design for a width of 280px
================================================== */

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

	/*hide stuff*/
	.flexslider-container .flex-caption,
	#services-sidebar{ display: none }
	#top-search input[type=search]{ display:none; }
	
	/*caption*/
	.bx-wrapper .bx-caption { font-size: 14px; width: 90%; }
	
	/*main*/
	#main, .level1 #main, .level2 #main, .level3 #main { width: 100%; }
	
	/*header*/
	#header-logo{ width: 100%; text-align: center; clear: both; }
	#header-logo img{ float: none; }
	
	/*footer*/
	#footer-left { clear: both; text-align: center; width: 100%; padding: 0;	}
	#footer-right { clear: both; text-align: center; width: 100%; padding: 0; }
	
	/* Header Sidebar */
	#hsidebar { width: 100%; clear: both; }
	#hsidebar .box { width: 100%; text-align: center; clear: both; }
	#phonenumber img.phonetopicon { display: none; }
	#phonenumber { padding: 0; }
	
	/*boxes*/
	#boxeswrap { background: none; padding-bottom: 0; border-radius: 0; margin-top: 0; margin-bottom: 0; }
	ul#boxes { margin: 0 auto; }
	ul#boxes li { display: block; float: none !important; width: 100% !important; height: auto; margin: 10px 0 !important; padding: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 1px solid #aaa; border-top: 1px solid #aaa; background-color: #eee; }
	ul#boxes li a { color: #2a2a2a; }
	ul#boxes li a img { display: none; }
	ul#boxes li a span { width: 100%; float: none !important; text-align: center !important; }
	
	/*titles*/
	#page-heading h1, #page-heading h2{ width: 100% }
	#single-nav{ position: inherit; text-align: center; margin-top: 10px; margin-left: -7px }
	
	/*blog*/
	#related-posts .alignleft{ max-width: 30% }
	.related-entry-excerpt{ display: none }
	#author-bio{ width: 135px  }
	
	/*search*/
	.search-entry-text{ width: 100%; margin-top: 20px;  }
	
	/*footer*/
	#footer-bottom, #footer-menu{ text-align: center }
	#footer-menu{ margin-top: 5px }
	
	/*comments*/
	.children { margin: 30px 0 0; }
	.children li.depth-2,
	.children li.depth-3,
	.children li.depth-4,
	.children li.depth-5,
	.children li.depth-6,
	.children li.depth-7,
	.children li.depth-8,
	.children li.depth-9,
	.children li.depth-10 { margin: 0 }
	
	#phonenumber span.phonetop1, #phonenumber span.phonetop2 { 
	max-width: 230px;
	padding: 10px 20px;
	margin: 0 auto 5px auto;
	color: #fff;
	border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	-khtml-border-radius: 10px;
	background-color: #2a2a2a;
	}
	#phonenumber span.phonetop1 a, #phonenumber span.phonetop2 a {
	color: #fff;
	display: block;
	width: 100%;
	height: 100%;
	}
	#phonenumber span.phonetop1 a:before, #phonenumber span.phonetop2 a:before {
	content:"Call ";
	}
	.partner .pmiddle .text { clear: both; width: 100%; }
	.partner .pmiddle .image { clear: both; text-align: center; margin: 0 auto; float: none; }
	.partner .pmiddle { padding: 0; width: 90%; margin: 0 auto;}
	
	#main .contact .contacttext,
	#main .contact .contactmap { width: 100%; clear: both; text-align: center; }
	
	.wpb_widgetised_column { margin-top: 15px; padding-top: 25px; padding-left: 0; border-top: 4px solid #eee; border-left: none; border-right: none; } 
	.wpb_widgetised_column .box { width: 100%; max-width: 307px; clear: both; float: none !important; margin: 0 auto 20px auto !important;}
	
	.nomobile { display: none !important; }
	
	#hsidebar ul.contact { float: none; width: 100%; font-size: 26px; }
	#hsidebar ul.contact li { margin-left: 0; margin-bottom: 30px; }
	
	#hsidebar ul#socials { font-size: 16px; margin-top: 20px; margin-bottom: 20px; }
	
	.leftcta, .rightcta { float: none; width: 95%; clear: both; margin: 0 auto; text-align: center; }
}


/* Mobile (Landscape) = Design for a width of 440px
================================================== */
@media only screen and (min-width: 480px) and (max-width: 767px) {
	
	/*blog*/
	#author-bio{ width: 295px }
	.related-entry-excerpt{ display: block }
	
	/*search*/
	.search-entry-text{ width: 255px; margin-top: 0; }

}
@media only screen and (max-width: 479px) {

	/* Single Image in Blog Post */
	.single .postcontent img,
	.single .postcontent img.size-full,
	.single .postcontent img[class*="align"],
	.single .postcontent img[class*="wp-image-"]	{
		clear: both;
		float: none;
		display: block;
		margin: 0 auto 10px auto;
		width: auto;
		max-width: 100%;
		height: auto;
	}
	
	.cmap #responsive-frame {
		padding-bottom: 56.25%;
	}
}