:root {
	--waterdoctor-blue: #1e73be;
	--waterdoctor-blue-dark: #175a95;
	--waterdoctor-content-bg: #d9ecf8;
	--waterdoctor-footer-bg: #7a9dbf;
	--waterdoctor-text: #222;
	--waterdoctor-white: #fff;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--waterdoctor-content-bg);
	color: var(--waterdoctor-text);
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 20px;
	line-height: 1.6;
}

.aligncenter {
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-image.aligncenter {
    margin-left: auto !important;
    margin-right: auto !important;
}

.container-limit {
	max-width:1500px;
}

body.nav-open {
	overflow: hidden;
}

.toptext,.site-topbar-phone {
	font-size:24px;
	font-weight:bold;
	color:#FFF;
}

body,
button,
input,
select,
textarea {
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

a {
	color: var(--waterdoctor-blue);
}

a:hover,
a:focus {
	color: var(--waterdoctor-blue-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--waterdoctor-blue);
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-weight: 600;
}

img {
	max-width: 100%;
	height: auto;
}

.home-cta-card {
	display: block;
	background: #fff;
	border: 1px solid rgba(30, 115, 190, 0.18);
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cta-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.14);
}

.home-cta-card-img {
	display: block;
	width: 100%;
	height: 230px;
	object-fit: cover;
}

.home-cta-card-body {
	padding: 1.5rem;
}

.home-cta-card-title {
	color: #1e73be;
	font-family: "Open Sans", sans-serif;
	font-size: 1.55rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
}

.home-cta-btn {
	background-color: #1e73be;
	border-color: #1e73be;
	font-weight: 600;
}

.home-cta-card:hover .home-cta-btn {
	background-color: #165d9b;
	border-color: #165d9b;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	clip: auto !important;
	clip-path: none;
	color: #000;
	display: block;
	font-size: 1rem;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 1rem;
	top: 1rem;
	width: auto;
	z-index: 10000000;
}

/* Header / contact bar -------------------------------------------------- */
.site-header {
	background: var(--waterdoctor-blue);
}

.site-topbar {
	background: var(--waterdoctor-blue);
	border-bottom: 1px solid rgba(255, 255, 255, .18);
	font-size: 16px;
	line-height: 1.4;
}

.site-topbar-phone,
.site-topbar-phone:hover,
.site-topbar-phone:focus {
	color: var(--waterdoctor-white);
}

.site-topbar-phone:hover,
.site-topbar-phone:focus {
	text-decoration: underline !important;
}

/* The old homepage contains a legacy Floating Div plugin call box.
 * Keep the content in the database for now, but suppress that one box while
 * the site is being rebuilt with native theme/block content. */
#floatdiv_5 {
	display: none !important;
}

/* Header banner ---------------------------------------------------------- */

.site-banner {
	background: var(--waterdoctor-blue);
	text-align: center;
}

.site-banner-link,
.site-banner-image {
	display: block;
}

.site-banner-image {
	width: 100%;
	max-width: 1920px;
	height: auto;
	margin: 0 auto;
}

/* Navigation ------------------------------------------------------------- */
#main-nav {
	position: relative;
	z-index: 10000;
	background: var(--waterdoctor-blue);
	border-top: 1px solid rgba(255, 255, 255, .18);
	border-bottom: 1px solid rgba(0, 0, 0, .12);
}

#navbtn,
.submenu-toggle {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

#navbtn,
.submenu-toggle {
	display: none;
}

.topnav_ul,
.sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Main content ----------------------------------------------------------- */
#page-wrap {
	background: var(--waterdoctor-content-bg);
	transition: filter .3s;
}

#page-wrap.navactive {
	filter: blur(5px);
}

.site-main {
	background: var(--waterdoctor-content-bg);
	min-height: 30vh;
}

.entry-content {
	width: 100%;
}

.entry-content::after {
	display: table;
	clear: both;
	content: "";
}

.entry-content img,
.entry-content .wpb_single_image img {
	max-width: 100%;
	height: auto;
}

/* Old content contains a few utility classes that were not supplied by
 * WPBakery itself. Keep their intent without importing ColorMag. */
.green {
	color: #198754;
}

/* Basic form presentation for legacy Contact Form 7 content. */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
select,
textarea {
	max-width: 100%;
	padding: .45rem .6rem;
	border: 1px solid #aaa;
	border-radius: 0;
	background: #fff;
	color: #222;
}

textarea {
	width: 100%;
}

/* Plain WordPress post/archive layouts ---------------------------------- */
.content-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.post-listing article + article {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(30, 115, 190, .25);
}

.entry-meta {
	font-size: .85rem;
	color: #555;
}

.navigation.pagination {
	margin-top: 2rem;
}

/* Footer ---------------------------------------------------------------- */
.footer-widgets-wrapper {
	background: var(--waterdoctor-footer-bg);
}

.footer-widget-column .widget {
	margin: 0;
}

.footer-widget-column img,
.footer-default-image {
	width: auto;
	max-width: 100%;
	height: auto;
}

.footer-socket-wrapper {
	background: var(--waterdoctor-blue);
	color: var(--waterdoctor-white);
	font-size: 16px;
}

.footer-socket-wrapper a,
.footer-socket-wrapper a:hover,
.footer-socket-wrapper a:focus {
	color: var(--waterdoctor-white);
}

#scroll-up {
	position: fixed;
	left: 50px;
	bottom: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 2px;
	background: var(--waterdoctor-blue);
	color: #fff;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s, visibility .2s, transform .2s, background-color .2s;
	z-index: 9000;
}

#scroll-up:hover,
#scroll-up:focus {
	background: var(--waterdoctor-blue-dark);
	color: #fff;
}

#scroll-up.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Mobile navigation ------------------------------------------------------ */
@media (max-width: 767.98px) {
	#main-nav {
		min-height: 54px;
	}

	#nav-wrap {
		position: fixed;
		inset: 0;
		left: 100%;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		padding: 64px 15px 32px;
		background: rgba(30, 85, 155, .98);
		transition: left .3s;
		z-index: 2000;
	}

	.navactive #nav-wrap {
		left: 0;
	}

	.topnav_ul li {
		position: relative;
		list-style: none;
	}

	.topnav_ul li a {
		display: block;
		padding: 10px 48px 10px 15px;
		border-bottom: 1px solid rgba(255, 255, 255, .16);
		color: #fff;
		font-size: 18px;
		text-decoration: none;
		transition: background-color .2s;
	}

	.topnav_ul li a:hover,
	.topnav_ul li a:focus,
	.topnav_ul .current-menu-item > a,
	.topnav_ul .current-menu-ancestor > a {
		background: rgba(0, 0, 0, .18);
		color: #fff;
	}

	#navbtn {
		display: block;
		position: absolute;
		top: 14px;
		right: 18px;
		width: 28px;
		height: 26px;
		cursor: pointer;
		transition: transform .3s;
		z-index: 9000000;
	}

	#navbtn .bar1,
	#navbtn .bar2,
	#navbtn .bar3 {
		display: block;
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: #fff;
		transition: .3s;
	}

	#navbtn .bar1 {
		top: 2px;
	}

	#navbtn .bar2 {
		top: 12px;
	}

	#navbtn .bar3 {
		bottom: 2px;
	}

	.navactive #navbtn .bar2 {
		opacity: 0;
	}

	.navactive #navbtn .bar1 {
		transform: rotate(45deg) translate(7px, 7px);
	}

	.navactive #navbtn .bar3 {
		transform: rotate(-45deg) translate(8px, -8px);
	}

	.sub-wrap {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows .25s;
	}

	.sub-menu {
		overflow: hidden;
	}

	.sub-menu a {
		padding-left: 2rem !important;
		font-size: 16px !important;
	}

	.sub-menu .sub-menu a {
		padding-left: 3rem !important;
	}

	.sub-menu .sub-menu .sub-menu a {
		padding-left: 4rem !important;
	}

	.menu-item-has-children.is-sub-open > .sub-wrap {
		grid-template-rows: 1fr;
	}

	.submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0;
		right: 0;
		width: 48px;
		height: 48px;
		color: #fff;
		cursor: pointer;
		z-index: 1;
	}

	.submenu-toggle .bi {
		font-size: .8rem;
		pointer-events: none;
	}

	#scroll-up {
		left: 18px;
		bottom: 18px;
	}
}

/* Desktop navigation ----------------------------------------------------- */
@media (min-width: 768px) {
	#nav-wrap {
		display: block;
	}

	.topnav_ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: stretch;
		width: 100%;
	}

	.topnav_ul > li {
		position: relative;
		display: block;
	}

	.topnav_ul > li > a {
		display: flex;
		align-items: center;
		height: 100%;
		padding: 9px 12px;
		color: #fff;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.3;
		text-align: center;
		text-decoration: none;
		transition: background-color .2s;
	}

	.topnav_ul > li:hover > a,
	.topnav_ul > li:focus-within > a,
	.topnav_ul > .current-menu-item > a,
	.topnav_ul > .current-menu-ancestor > a {
		background: rgba(0, 0, 0, .14);
		color: #fff;
	}

	.menu-item-has-children > a::after {
		content: "\25BE";
		margin-left: .35rem;
		font-size: .7em;
		line-height: 1;
	}

	.sub-menu .menu-item-has-children > a::after {
		content: "\25B8";
		float: right;
		margin-top: .2em;
		margin-left: .75rem;
	}

	.sub-wrap {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 220px;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity .2s, visibility .2s;
		z-index: 1000;
	}

	.sub-menu {
		background: var(--waterdoctor-blue);
		box-shadow: 0 5px 12px rgba(0, 0, 0, .2);
	}

	.sub-menu > li {
		position: relative;
	}

	.sub-menu > li > .sub-wrap {
		top: 0;
		left: 100%;
		z-index: 1001;
	}

	.sub-menu > li > a {
		display: block;
		padding: 7px 14px;
		border-top: 1px solid rgba(255, 255, 255, .12);
		background: var(--waterdoctor-blue);
		color: #fff;
		font-size: 12px;
		line-height: 1.35;
		text-align: left;
		text-decoration: none;
	}

	.sub-menu > li > a:hover,
	.sub-menu > li > a:focus,
	.sub-menu > .current-menu-item > a {
		background: var(--waterdoctor-blue-dark);
		color: #fff;
	}

	.topnav_ul > li:hover > .sub-wrap,
	.topnav_ul > li:focus-within > .sub-wrap,
	.sub-menu > li:hover > .sub-wrap,
	.sub-menu > li:focus-within > .sub-wrap {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}
