/*
Theme Name: Dr Steph Keay
Description: WordPress theme designed by Tim Keay
Author: Tim Keay
Author URI: https://timkeay.com
Version: 1.0
*/

/*
================================================================================

  Reset

================================================================================
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*
================================================================================

  Base

================================================================================
*/

/* Typography */
html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { font-family: 'Open Sans', sans-serif; font-size: 20px; line-height: 1em; font-weight: 300; color: #34495e; }
h1, h2, h3, h4 { font-family: 'Source Serif Pro', serif; font-weight: 300; line-height: 1.2em; color: #376c7e; }
h1, h2, .contact-block h3 { font-size: 40px; }
h3 { font-size: 30px; }
h4 { font-size: 1em; }
p { line-height: 1.75em; margin-bottom: 1.75em; }
b, strong { font-weight: 700; }
i, em { font-style: italic; }
blockquote { background: url(images/quote-left.svg) 0 0 no-repeat; background-size: 100px auto; padding: 50px 0 0 150px; }
blockquote p { font-family: 'Source Serif Pro', serif; font-weight: 300; font-size: 40px; line-height: 1.2em; margin-bottom: 0.5em; }
blockquote p.quote-subtitle { font-family: 'Open Sans', sans-serif; font-size: 14px; text-transform: uppercase; font-weight: 700; }
small { font-size: 0.8em; }

/* Lists */
ul { list-style-type: disc; margin: 0 0 1.75em 2em; }
ol { list-style-type: decimal; margin: 0 0 1.75em 2em; }
ul li, ol li { margin-bottom: 0.75em; line-height: 1.75em; }
ul.no-list, ol.no-list, nav ul, ul.gform_fields { list-style-type: none; margin: 0px; padding: 0px; }
ul.no-list li, ol.no-list li, nav ul li, ul.gform_fields li { margin: 0px; padding: 0px; }

/* Navigation */
a { text-decoration: none; transition: 0.3s; color: #34495e; }
a:hover { opacity: 0.5; }

/* Forms */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input.text, input.search, textarea { font-family: inherit; font-size: inherit; -webkit-appearance: none; outline: none; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
label { cursor: pointer; }

/* Buttons */
input[type=submit], input.submit, button, input.button, a.button, .button { cursor: pointer; font-family: inherit; font-size: inherit; -webkit-appearance: none; display: inline-block; border-radius: 25px; width: 275px; height: 50px; line-height: 50px; background: #376c7e; color: #fff; text-transform: uppercase; font-weight: 700; font-size: 14px; -webkit-font-smoothing: antialiased; letter-spacing: 0.1em; text-align: center; border: none; transition: 0.3s; }
input[type=submit]:hover, input.submit:hover, button:hover, input.button:hover, a.button:hover, .button:hover { opacity: 1; background: #444; }

/* Text Selection */
::-moz-selection { background: #333; color: #fff; text-shadow: none; }
::selection { background: #333; color: #fff; text-shadow: none; }

/* Misc */
img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/* Enable Box Sizing */
*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }


/*
================================================================================

  Page

================================================================================
*/

body { background: #fff; }
.wrapper { width: 1175px; margin: 0 auto; }

.col-main { width: 60%; float: left; }
.col-sidebar { width: 30%; float: right; }

.left, .alignleft { float: left; }
.right, .alignright { float: right; }
.floatwrap { content: ""; display: table; clear: both; }
.clearfloats { clear: both; }
.page-inner { width: 100%; }

.alignright { margin: 0 0 30px 30px; }
.alignleft { margin: 0 30px 30px 0; }

.mobile-only { display: none; }

/*
================================================================================

  Header

================================================================================
*/

.page-header { background: #376c7e; position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 10; }
.page-header .wrapper { height: 125px; }
.header-inner { width: 100%; }

.site-logo { margin-top: 30px; }
.site-logo, .site-logo span { display: block; color: #fff; -webkit-font-smoothing: antialiased; }
.logo-name { font-family: 'Source Serif Pro', serif; font-size: 40px; line-height: 1em; font-weight: 300; margin-bottom: 5px; }
.logo-strapline { color: #d3e5e5 !important; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 0.27em; }

.main-nav { margin-top: 50px; }
.main-nav ul { overflow: hidden; }
.main-nav li { float: left; }
.main-nav a { color: #fff; display: block; height: 75px; font-size: 14px; line-height: 75px; text-transform: uppercase; padding: 0 25px; font-weight: 400; letter-spacing: 0.1em; }
.main-nav a:hover { background: rgba(52,73,94,0.35); opacity: 1; }
.main-nav li.current-menu-item a { font-weight: 700; }

#btn-nav {
	position: absolute;
	top: 50%;
	right: 0;
	width: 50px;
	height: 50px;
	margin: -25px 0 0;
	padding: 0;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .5s;
	-moz-transition: .5s;
	-o-transition: .5s;
	transition: .5s;
	cursor: pointer;
	background: none;
	-webkit-appearance: none;
	display: none;
	z-index: 99999;
	border: none;
	outline: none;
	border-radius: 0;
}

#btn-nav span {
	display: block;
	position: absolute;
	height: 2px;
	width: 40px;
	background: #fff;
	border-radius: 0;
	opacity: 1;
	right: 5px;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .5s;
	-moz-transition: .5s;
	-o-transition: .5s;
	transition: .5s;
}

#btn-nav span:nth-child(1) {
	top: 10px;
}

#btn-nav span:nth-child(2) {
	top: 23px;
}

#btn-nav span:nth-child(3) {
	top: 36px;
}

#btn-nav.open span:nth-child(1) {
	top: 23px;
	-webkit-transform: rotate(-135deg);
	-moz-transform: rotate(-135deg);
	-o-transform: rotate(-135deg);
	transform: rotate(-135deg);
}

#btn-nav.open span:nth-child(2) {
	opacity: 0;
	right: -40px;
}

#btn-nav.open span:nth-child(3) {
	top: 23px;
	-webkit-transform: rotate(135deg);
	-moz-transform: rotate(135deg);
	-o-transform: rotate(135deg);
	transform: rotate(135deg);
}

/* body.nav-active { overflow: hidden; width: 100%; height: 100%; } */

/*
================================================================================

  Main

================================================================================
*/

.page-inner { width: 100%; }

.title-block { background: #f3f2ed; padding: 50px 0; text-align: center; margin-top: 125px; }
.title-block .sep { color: #d3e5e5; margin: 0 10px; }

.page-intro-content { padding: 85px 50px 150px 50px; width: 550px; }
.page-intro-content h2 { text-align: left !important; }
.page-intro-content h2::after { content: ''; position: absolute; left: -50px; bottom: -50px; right: -400px; height: 10px; z-index: 2; border-radius: 5px; background: #d3e5e5; }

.page-intro-content h2,
.page-main h2,
.services-block h2,
.footer-membership h2,
.contact-block h3 { 
	position: relative; 
	margin-bottom: 80px;
	text-align: center;
}

.page-main h2::after,
.services-block h2::after,
.footer-membership h2::after,
.contact-block h3::after { 
	content: ''; 
	position: absolute; 
	left: 50%; 
	bottom: -30px; 
	height: 10px;
	width: 275px;
	margin-left: -137px;
	z-index: 2; 
	border-radius: 5px; 
	background: #d3e5e5;
}

.page-intro p { font-size: 20px; line-height: 1.75em; margin: 0; }
.page-intro-img { position: relative; z-index: 4; width: 575px; margin-top: 50px; }
.page-intro-img-wrap { position: relative; z-index: 3; overflow: hidden; width: 575px; height: 575px; border-radius: 50%; border: solid 10px #376c7e; box-sizing: border-box; background: #fff; }
.page-intro-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.page-intro-img::after { content: ''; position: absolute; bottom: -25px; left: 0; right: 0; z-index: 2; width: 100%; height: 50px; background: url(images/shadow.png) center center no-repeat; }

.quotes-block { background: #f3f2ed; padding: 50px 0; margin-top: -100px; }
.quotes-inner { width: 650px; }
.quotes-inner .bx-wrapper { padding-bottom: 80px; }

.bx-wrapper { position: relative; margin-bottom: 0; padding: 0; *zoom: 1; -ms-touch-action: pan-y; touch-action: pan-y; }
.bx-wrapper img { max-width: 100%; display: block; }
.bxslider { margin: 0; padding: 0; }
ul.bxslider { list-style: none; }
.bx-viewport { -webkit-transform: translatez(0); }

.bx-controls-direction { overflow: hidden; bottom: 0; left: 150px; position: absolute; }
.bx-prev, .bx-next { display: block; width: 50px; height: 50px; border-radius: 50%; padding: 0; background-color: rgba(0,0,0,0.05) !important; float: left; background-size: 10px auto !important; }
.bx-prev { margin-right: 10px; background: url(images/chevron-left.svg) center center no-repeat; }
.bx-next { background: url(images/chevron-right.svg) center center no-repeat; }
.bx-prev:hover, .bx-next:hover { opacity: 1; background-color: rgba(0,0,0,0.1) !important; }

.page-main { padding: 80px 0; }
.page-main p:last-child { margin-bottom: 0; }
body.homepage .page-main { text-align: center; }
body.homepage .page-main .wrapper, .services-intro { max-width: 625px; margin: 0 auto; }

.services-block { background: #f3f2ed; padding: 75px 0; text-align: center; }
.services-intro { margin-bottom: 75px; }
.services-intro p { margin: 0; }
ul.services-list { display: grid; grid-template-columns: repeat(3,1fr); grid-gap: 25px; }
ul.services-list li { background: #fff; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.1); padding: 50px 50px 100px; position: relative; }
ul.services-list h3 { margin-bottom: 10px; }
ul.services-list p { font-size: 18px; line-height: 1.5em; }
.service-icon { background: #d3e5e5; width: 175px; height: 175px; border-radius: 50%; display: flex; justify-content: center; align-content: center; margin: -75px auto 25px; }
.service-icon img { max-width: 100px; height: auto; width: 100%; }
ul.services-list .button { position: absolute; bottom: 50px; left: 50px; right: 50px; }

p.readmore { margin: 0; }

.contact-block { width: 375px; background: #fff; padding: 50px; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.1); margin: 125px 100px 0 0; }
.contact-block h3 { margin-bottom: 50px; }
.contact-block h3::after { bottom: -20px; }
ul.social-list { overflow: hidden; margin: 0 auto 35px; width: 170px; }
ul.social-list li { float: left; margin-left: 10px; }
ul.social-list li:first-child { margin-left: 0; }
ul.social-list a { display: block; width: 50px; height: 50px; border-radius: 50%; padding: 0; background-color: #376c7e !important; }
ul.social-list a.social-linkedin { background: url(images/linkedin-in.svg) center center no-repeat; background-size: 21px auto; }
ul.social-list a.social-facebook { background: url(images/facebook-f.svg) center center no-repeat; background-size: 14px auto; }
ul.social-list a.social-twitter { background: url(images/twitter.svg) center center no-repeat; background-size: 24px auto; }
ul.social-list a:hover { opacity: 1; background-color: #444 !important; }

.intro-block { background: #f3f2ed; padding: 25px; margin-bottom: 50px; border-radius: 5px; }
.col-full { max-width: 800px; margin: 0 auto; }
.col-full ul { list-style-type: none; margin: 0 0 1.5em; padding: 0; }
.col-full ul li { position: relative; margin: 0 0 0.5em; padding: 0 0 0 20px; }
.col-full ul li::before { content: ''; display: block; position: absolute; top: 0.6em; left: 0; width: 8px; height: 13px; background: url(images/chevron-right.svg) 0 0 no-repeat; background-size: 100% auto; }
.col-full a { font-weight: 700; color: #376c7e; }

.page-banner { height: 500px; background-size: cover !important; background-color: #eee; }

body.page-id-19 .col-full .content ul { text-align: center; margin-bottom: 0; }
body.page-id-19 .col-full .content ul li { display: inline-block; margin: 0 25px; }
body.page-id-19 .col-full .content ul li:first-child { margin-left: 0; }
body.page-id-19 .col-full .content ul li:last-child { margin-right: 0; }

body.page-id-23 .page-main { padding-bottom: 25px; }
body.page-id-23 .gform_wrapper { margin-bottom: 0; }

/*
================================================================================

  Gravity Forms

================================================================================
*/

.gform_wrapper { margin-bottom: 50px; }
ul.gform_fields li { margin: 0 0 25px; padding: 0; }
.gfield input, .gfield textarea { display: block; width: 100%; padding: 15px 20px; border-radius: 5px; outline: none; border: none; background: #f3f2ed; }
.gfield textarea { height: 150px; }
.gfield_label, .validation_message { font-weight: 700; text-transform: uppercase; font-size: 14px; }
.gfield_required { margin-left: 2px; color: #376c7e; }
.ginput_complex { overflow: hidden; }
.ginput_left, .ginput_right { float: left; width: calc(50% - 12.5px); }
.ginput_left { margin-right: 25px; }
.ginput_complex label { font-size: 14px; font-weight: 400; color: #376c7e; }
.validation_message { color: #376c7e; }

.validation_error, .gform_confirmation_message { color: #fff; padding: 25px; margin-bottom: 50px; background: #376c7e; border-radius: 5px; }
.validation_error h2 { margin-bottom: 0; font-size: 30px; color: #fff; }
.validation_error h2::after { display: none; }

.gform_confirmation_message { text-align: center; }

ul.gform_fields li::before,
.gform_validation_container {
	display: none !important;
}

img.gform_ajax_spinner { margin-left: 20px !important; }

#field_1_5 { margin-bottom: 0 !important; }
#field_1_5 label { display: none !important; }

/*
================================================================================

  Footer

================================================================================
*/

.footer-banner { text-align: center; }
.footer-banner img { max-width: 100%; height: auto; }

.footer-bar { background: #376c7e; color: #fff; text-align: center; padding: 40px 0; }
.footer-bar p { margin: 0; }
.footer-bar .button { background: #d3e5e5; color: #376c7e; width: auto; padding: 0 25px; margin-left: 20px; }
.footer-bar .button:hover { color: #fff; }
.footer-bar strong { -webkit-font-smoothing: antialiased; }

.footer-membership { padding: 80px 0; }
ul.membership-list { display: flex; justify-content: center; align-items: center; }
ul.membership-list li { text-align: center; }
ul.membership-list p { margin: 0; font-size: 14px; line-height: 1.5em; font-weight: 400; }
.membership-logo { height: 100px; margin-bottom: 25px; display: flex; justify-content: center; align-items: center; }

.footer-inner { width: 100%; }

.footer-main { background: #376c7e; }

.footer-bottom { padding: 40px 0; }
.footer-bottom p { font-size: 14px; margin: 0; font-weight: 400; }

/*
================================================================================

  Media Queries

================================================================================
*/

@media only screen and (max-width: 1200px) {
	.wrapper { width: 960px; }
	.main-nav a { padding: 0 15px; }
	.page-intro p { font-size: 20px; }
	.page-intro-img, .page-intro-img-wrap { width: 425px; }
	.page-intro-img-wrap { height: 425px; }
	.page-intro-content { width: 500px; padding: 65px 40px 150px 50px; }
	.page-intro-img img { max-width: 100%; height: auto; margin: 0; }
	.contact-block { margin: 50px 0 0; }
	.quotes-inner { width: 525px; }
	blockquote { padding-left: 125px; }
	.bx-controls-direction { left: 125px; }
	ul.services-list li { padding: 30px 30px 70px; }
	ul.services-list .button { left: 30px; bottom: 30px; right: 30px; width: auto; }
	.page-banner { height: 400px; }
}

@media only screen and (max-width: 1023px) {
	.wrapper { width: 700px; }
	.page-header { z-index: 999; }
	.page-header .wrapper { position: relative; }
	.page-header .main-nav { display: none; position: fixed; top: 125px; left: 0; bottom: 0; right: 0; z-index: 998; background: rgba(53,82,102,0.95); float: none; margin: 0; }
	.page-header .main-nav ul { overflow: visible; }
	.page-header .main-nav ul li { float: none; text-align: center; }
	.page-header .main-nav a { height: auto; font-size: 25px; line-height: 2em; padding: 20px 0; }
	#btn-nav { display: block; }
	h1, h2, .contact-block h3 { font-size: 35px; }
	.page-intro-content { width: 450px; padding: 50px 0 150px 30px; }
	.page-intro-content h2::after { left: -30px; right: -150px; bottom: -45px; }
	.page-intro-img { margin-top: 85px; }
	.page-intro-img, .page-intro-img-wrap { width: 250px; }
	.page-intro-img-wrap { height: 250px; }
	.page-intro-img::after { background-size: 100% auto; }
	.quotes-inner, .contact-block { float: none; width: 100%; }
	.contact-block { padding: 30px; }
	.contact-block p.readmore { text-align: center; }
	.contact-block .button { display: inline-block; }
	ul.services-list { display: block; }
	ul.services-list li { max-width: 400px; margin: 0 auto 75px; }
	ul.services-list li:last-child { margin-bottom: 0; }
	ul.membership-list { display: block; }
	ul.membership-list li { margin-bottom: 25px; }
	ul.membership-list li:last-child { margin-bottom: 0; }
	.page-footer .main-nav a { padding: 0 10px; }
}

@media only screen and (max-width: 767px) {
	
	body { font-size: 18px; }
	
	.wrapper { width: 100%; }
	.page-header { padding: 0 20px; }
	.page-header .wrapper { height: 95px; }
	.site-logo { margin-top: 20px; }
	.logo-name { font-size: 32px; margin-bottom: 2px; }
	.logo-strapline { font-size: 11px; }
	#btn-nav span { width: 35px; }
	.title-block { margin-top: 95px; padding: 30px 0; }
	.title-block .wrapper { padding: 0 20px; }
	.title-block .sep { display: none; }
	h1, h2, .contact-block h3 { font-size: 28px; }
	
	.page-header .main-nav { top: 95px; padding-top: 25px; }
	.page-header .main-nav a { font-size: 16px; padding: 10px 0; }
	
	body.homepage .title-block .wrapper { max-width: 305px; }
	
	.page-intro { padding: 30px 0; }
	.page-intro .wrapper { padding: 0 20px; }
	.page-intro-content { float: none; width: 100%; padding: 0; }
	.page-intro-content h2 { margin-bottom: 65px; }
	.page-intro-content h2 br { display: none; }
	.page-intro-content h2::after { left: 0; right: 0; bottom: -35px; }
	.page-intro p { font-size: 18px; }
	.page-intro-img { float: none; margin: 20px auto 0; }
	
	.quotes-block { margin-top: -60px; }
	.quotes-block .wrapper { padding: 0 20px; }
	blockquote { padding: 100px 0 0; background-size: 75px auto; background-position: center top; }
	blockquote p { font-size: 22px; text-align: center; }
	
	.contact-block { padding: 20px; }
	.contact-block .button { display: block; width: 100%; }
	
	.page-main h2::after, .services-block h2::after, .footer-membership h2::after, .contact-block h3::after { width: 200px; margin-left: -100px; }
	
	.page-main, .services-block, .footer-membership { padding: 50px 0; }
	.page-main .wrapper, .services-block .wrapper, .footer-membership .wrapper { padding: 0 20px; }
	
	.service-icon { width: 125px; height: 125px; }
	.service-icon img { max-width: 75px; }
	ul.services-list li { padding: 30px 20px 70px; }
	ul.services-list .button { bottom: 30px; left: 20px; right: 20px; }
	ul.services-list p { padding: 0; }
	
	.membership-logo { display: block; height: auto; margin-bottom: 10px; }
	.membership-logo img { max-width: 100%; height: auto; }
	
	.footer-main { padding: 30px 0; }
	.footer-main .wrapper { padding: 0 20px; }
	.footer-main .site-logo { margin: 0 auto 10px; width: 200px; float: none; }
	.footer-main .main-nav { margin-top: 0; float: none; }
	.footer-main .main-nav li { float: none; text-align: center; margin-top: 10px; }
	.footer-main .main-nav a { line-height: 2em; height: auto; }
	
	.footer-bottom { padding: 30px 0; }
	.footer-bottom .wrapper { padding: 0 20px; }
	.footer-bottom p { float: none; text-align: center; line-height: 1.4em; margin: 0 auto; max-width: 200px; }
	.footer-bottom p.footer-copyright { margin-bottom: 10px; }
	
	.intro-block { padding: 20px; }
	
	.ginput_left, .ginput_right { float: none; width: 100%; margin: 0; }
	.validation_error { padding: 20px; }
	.validation_error h2 { font-size: 20px; }
	
	img.gform_ajax_spinner { display: block; width: 31px; margin: 20px auto 0 !important; }
	
	.bx-controls-direction { left: 50%; margin-left: -55px; }
	
	.page-banner { height: 200px; }
	
	.footer-bar { padding: 30px 0; }
	.footer-bar .wrapper { padding: 0 20px; }
	.footer-bar p { font-size: 18px; line-height: 1.5em; }
	.footer-bar .button { display: block; margin: 20px auto 0; width: 200px; }
	
	body.page-id-19 .col-full .content ul li { display: block; margin: 0; }
	body.page-id-19 .col-full .content ul li::before { display: none; }
	body.page-id-19 .col-full .content h2 { margin-bottom: 50px; }
	
}

/*
================================================================================

  Print Styles

================================================================================
*/

@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  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; }
}