/*!
Theme Name: Central Balance
Theme URI: https://www.centralbalance.co.uk/
Author: David John Bennett
Author URI: http://www.davidjohnbennett.com/
Description: Developed with the Underscores theme
Version: 1.0.0
*/

/* Normalize */

html {
	line-height: 1.15; /* 1 */
	-webkit-text-size-adjust: 100%; /* 2 */
}

body {
	margin: 0;
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

hr {
	box-sizing: content-box; /* 1 */
	height: 0; /* 1 */
	overflow: visible; /* 2 */
}

pre {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

a {
	background-color: transparent;
}

abbr[title] {
	border-bottom: none; /* 1 */
	text-decoration: underline; /* 2 */
	text-decoration: underline dotted; /* 2 */
}

b,
strong {
	font-weight: 600;
}

code,
kbd,
samp {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

img,
a img {
	border: 0;
	display: block;
	margin: 0;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

button,
input { /* 1 */
	overflow: visible;
}

button,
select { /* 1 */
	text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

legend {
	box-sizing: border-box; /* 1 */
	color: inherit; /* 2 */
	display: table; /* 1 */
	max-width: 100%; /* 1 */
	padding: 0; /* 3 */
	white-space: normal; /* 1 */
}

progress {
	vertical-align: baseline;
}

textarea {
	overflow: auto;
}

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box; /* 1 */
	padding: 0; /* 2 */
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}

details {
	display: block;
}

summary {
	display: list-item;
}

template {
	display: none;
}

[hidden] {
	display: none;
}

/* Structure */

.clear {
	clear: both; /* Used to stop divs collapsing where overflow:hidden isn't available */
}

#masthead {
	background: #fff;
	height: 200px;
	padding: 0 20px;
	position: fixed;
	top: 0;
	transition: all 0.4s ease;
	-webkit-transition: all 0.4s ease;
	width: 100%;
	z-index: 999;
}

.admin-bar #masthead {
	top: 32px;
}

@media (max-width: 782px) {

.admin-bar #masthead {
	top: 46px;
}

}

@media (max-width: 768px) {

#masthead {
	height: 150px;
}

}

.scrolled #masthead {
	height: 80px;
}

#masthead-content {
	margin: 0 auto;
	max-width: 1200px;
	padding: 30px 0;
}

#masthead-content .logo {
	background: url(images/logo.png) no-repeat center center;
	background-size: 250px 90px;
	display: block;
	height: 90px;
	margin: 0 auto;
	width: 250px;
}

.scrolled .hide {
	display: none;
}

#masthead-social {
	position: absolute;
	top: 30px;
	right: 20px;
}

#slider {
	background: #fff;
	margin: 200px 0 0;
	width: 100%;
}

@media (max-width: 768px) {

#slider {
	margin: 150px 0 0;
}

}

#content,
#testimonials,
#cta,
#colophon {
	background: #fff;
	padding: 0 20px;
	width: 100%;
}

#testimonials {
	background: url(images/testimonials.jpg) no-repeat center center;
	background-size: cover;
}

#cta {
	background: #8ed3f0; /* Blue */
	border-top: 60px solid #fff;
	border-bottom: 2px solid #fff;
}

#colophon {
	background: #859096; /* Grey */
}

#content-content,
#testimonials-content,
#cta-content,
#colophon-content {
	margin: 0 auto;
	max-width: 1200px;
	overflow: hidden;
	padding: 60px 0 40px;
}

#testimonials-content {
	min-height: 280px;
	padding: 60px 0;
	width: 60%;
}

#cta-content {
	padding: 30px 0 10px;
}

#colophon-content {
	padding: 20px 0 0;
}

@media (max-width: 768px) {

#cta {
	border-top: 30px solid #fff;
}

#content-content,
#testimonials-content,
#cta-content,
#colophon-content {
	padding: 30px 0 10px;
}

#testimonials-content {
	padding: 30px 0;
}

}

/* Typography */

body,
button,
input,
select,
optgroup,
textarea {
	color: #859096; /* Grey */
	font-family: ff-dax-pro, sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	color: #8ed3f0; /* Blue */
	clear: both;
	font-weight: 400;
	line-height: 1em;	
	margin: 0 0 20px;
	text-align: center;
}

h1 {
	font-size: 30px;
}

h2 {
	font-size: 21px;
}

p {
	margin: 0 0 20px;
}

.home .entry-content > p {
	margin: 0 auto 20px;
	overflow: hidden;
	width: 60%;
}

.wp-block-columns.has-3-columns .wp-block-column h2,
.wp-block-columns.has-3-columns .wp-block-column p {
	color: #fff;
}

#cta p {
	font-size: 24px;
	line-height: 1;
	text-align: center;
}

#colophon p {
	color: #fff;
	font-size: 12px;
	line-height: 1;
}

dfn, cite, em, i {
	font-style: italic;
}

blockquote {
	margin: 0 20px;
}

address {
	margin: 0 0 20px;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 14px;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code, kbd, tt, var {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 14px;
	font-size: 0.9375rem;
}

abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark, ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

b,
strong {
	font-weight: 600;
}

@media (max-width: 768px) {

.home .entry-content > p {
	width: 100%;
}

#cta p {
	font-size: 18px;
	line-height: 1;
}

}

/* Elements */

html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background: #859096; /* Grey */
}

hr {
    background-image: linear-gradient(to right, rgba(142, 211, 240, 0), rgba(142, 211, 240, 1.0), rgba(142, 211, 240, 0));
	border: 0;
	height: 1px;
	margin: 0 0 20px;
}

ul, ol {
	margin: 0 0 20px;
	padding: 0 0 0 20px;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin: 0 0 20px 20px;
}

dt {
	font-weight: 600;
}

dd {
	margin: 0 1.5em 1.5em;
}

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

.page-id-17 .entry-content img {
	display: inline;
	float: left;
	transition: opacity 0.2s ease;
	-webkit-transition: opacity 0.2s ease;
	opacity: 1.0;
	width: 50%;
}

.page-id-17 .entry-content img:hover {
	opacity: 0.5;
}

figure {
	margin: 0 0 20px;
}

table {
	margin: 0 0 20px;
	width: 100%;
}

/* Forms */

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: none;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	font-size: 14px;
	font-size: 0.75rem;
	line-height: 1;
	padding: .6em 1em .4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active, button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/* Links */

a {
	color: #8ed3f0; /* Blue */
	text-decoration: none;
	transition: color 0.2s ease;
	-webkit-transition: color 0.2s ease;
}

#cta a,
#colophon a {
	color: #fff;
}

a:active, a:focus, a:hover,
#colophon a:active, #colophon a:focus, #colophon a:hover {
	color: #940735; /* Cerise */
	outline: 0;
}

#cta a:active, #cta a:focus, #cta a:hover {
	color: #859096; /* Grey */
}

/* Navigation */

.main-navigation ul {
	display: block;
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	text-align: center;
}

.scrolled .main-navigation ul {
	margin: 0;
}

.main-navigation ul li {
	border-right: 1px solid #8ed3f0; /* Blue */
	display: inline-block;
	font-size: 16px;
	line-height: 20px;
	margin: 0 10px 0 0;
	padding: 0 10px 0 0;
	position: relative;
}

.main-navigation ul li:last-child {
	border-right: none;
	margin: 0;
	padding: 0;
}

.main-navigation ul li a {
	color: #859096; /* Grey */
	display: block;
}

.main-navigation ul li a:active, .main-navigation ul li a:focus, .main-navigation ul li a:hover {
	color: #940735; /* Cerise */
}

.main-navigation ul li ul {
	background-color: rgba(255,255,255,0.9);
	margin: 0;
	padding: 10px 0 0;
	position: absolute;
	top: 100%;
	left: -999em;
	width: 100%;
	z-index: 99999;
}

.main-navigation ul li ul li,
.main-navigation ul li ul li:last-child {
	border-right: none;
	display: block;
	font-size: 14px;
	line-height: 1.25em;
	margin: 0;
	padding: 0 0 10px;
}

.main-navigation ul li ul a {
	width: 100%;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: -5px;
}

.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a,
.main-navigation .current-menu-ancestor > a {
	color: #8ed3f0; /* Blue */
}

/* Other Navigation */

.site-main .comment-navigation, .site-main
.posts-navigation, .site-main
.post-navigation {
	margin: 0 0 20px;
	overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

/* Accessibility */

.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 !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments */

.alignleft {
	display: inline;
	float: left;
	margin: 0 20px 20px 0;
}

.alignright {
	display: inline;
	float: right;
	margin: 0 0 20px 20px;
}

.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto 20px;
}

/* Clearings */

.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/* Widgets */

.widget .widget-title {
	display: none;
}

.widget select {
	max-width: 100%;
}

.social-facebook,
.social-instagram {
    display: inline-block;
    height: 30px;
    margin: 0 0 0 10px;
    width: 30px;
	transition: opacity 0.2s ease;
	-webkit-transition: opacity 0.2s ease;
	opacity: 1.0;
}

.social-facebook {
	background: url(images/icons.png) no-repeat 0px 0px;
	background-size: 70px;
}

.social-instagram {
	background: url(images/icons.png) no-repeat -40px 0px;
	background-size: 70px;
}

.social-facebook:hover,
.social-instagram:hover {
	opacity: 0.5;
}

#colophon .widget {
	float: left;
	width: 50%;
}

#colophon .widget:last-child {
	float: right;
	text-align: right;
}

@media (max-width: 768px) {

#colophon .widget,
#colophon .widget:last-child {
	text-align: center;
	width: 100%;
}

}

/* Content */

.entry-content {
	margin: 0 auto;
	width: 60%;
}

.home .entry-content {
	width: 100%;
}

.sticky {
	display: block;
}

.entry-footer,
.updated:not(.published) {
	display: none;
}

.page-links {
	clear: both;
	margin: 0 0 20px;
}

@media (max-width: 768px) {

.entry-content {
	width: 100%;
}

}

/* Comments */

.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Infinite scroll */

.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

.infinity-end.neverending .site-footer {
	display: block;
}

/* Media */

.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

embed,
iframe,
object {
	max-width: 100%;
}

.custom-logo-link {
	display: inline-block;
}

/* Captions */

.wp-caption {
	margin: 0 0 20px;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries */

.gallery {
	margin: 0 0 20px;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}

/* Blocks */

.wp-block-columns {
	margin-bottom: 0;
}

.wp-block-columns.has-3-columns .wp-block-column {
	background: #0c6980; /* Turquoise */
	border-top-right-radius: 30px;
	border-bottom-left-radius: 30px;
	margin-top: 40px;
	margin-bottom: 20px;
	padding: 30px;
}

.wp-block-columns.has-3-columns .wp-block-column:nth-of-type(2) {
	background: #8ed3f0; /* Blue */
}

.wp-block-columns.has-3-columns .wp-block-column:nth-of-type(3) {
	background: #940735; /* Cerise */
}

.wp-block-button {
	margin: 0;
	text-align: center;
}

.wp-block-button__link {
	background: #859096; /* Grey */
	color: #fff;
	font-size: 14px;
	line-height: 1em;
	padding: 10px 15px;
	text-transform: uppercase;
	transition: background 0.2s ease;
	-webkit-transition: background 0.2s ease;

}

.wp-block-button__link:hover {
	background: #fff;
	color: #859096; /* Grey */
}

@media (max-width: 768px) {

.wp-block-columns.has-3-columns .wp-block-column {
	margin-top: 10px;
	margin-bottom: 20px;
}

}

/* Responsive Menu */

#responsive-menu-button {
	left: 20px !important;
}

/* Accordion */

div.accordion {
	margin: 0 auto 20px;
}

.accordion-heading,
.accordion-title {
	background-color: #859096; /* Grey */
	color: #ffffff !important;
	font-size: 14px;
	line-height: 1;
	margin: 0 0 10px;
	padding: 10px;
	text-align: left;
	text-transform: uppercase;
}

.accordion-title {
	cursor: pointer;
}

.accordion-title:before {
	content: "\002B\00a0";
}

.accordion-title.open:before {
	content: "\002D\00a0";
}

.accordion-title.open {
	margin: 0;
}

.accordion-content {
	margin: 0 0 10px;
	overflow: hidden;
	padding: 10px;
}

.accordion-content p:first-child,
.accordion-content p:last-child,
.accordion-content ul:last-of-type  {
	margin: 0;
}

/* Testimonials */

#testimonials-content {
	position: relative;
}

#testimonialrotatorwidget-2 {
	position: absolute;
	top: 50%;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.testimonial_rotator_quote {
	color: #ffffff;
	font-size: 21px;
	font-style: italic;
	text-align: center;
}

@media (max-width: 768px) {

.testimonial_rotator_quote {
	font-size: 18px;
}

}

/* Ninja Forms */

.nf-form-content {
	padding: 0 !important;
}

.nf-field-container {
	margin-bottom: 10px !important; 
}

.nf-field-container.submit-container {
	margin-bottom: 20px !important; 
}

.nf-form-fields-required,
.nf-form-content label {
	font-size: 14px !important;
	margin: 10px 0 !important;
}

.nf-form-content input.ninja-forms-field {
	height: auto !important;
}

.nf-form-content input[type="button"] {
	background: #8ed3f0 !important;
	color: #fff !important;
	font-size: 14px !important;
	line-height: 1em !important;
	padding: 10px 15px !important;
	text-transform: uppercase !important;
	transition: background 0.2s ease !important;
	-webkit-transition: background 0.2s ease !important;
}

.nf-form-content input[type="button"]:hover {
	background: #940735 !important;
	cursor: pointer;
}

.nf-form-content .ninja-forms-field {
	font-size: 14px !important;
	padding: 10px 20px !important;
}