/*
Theme Name: Therapy Partners
Description: A custom built WordPress theme for Therapy Partners.
Author: Shawn Burtis
Author URI: http://shawnburtis.com
Version: 1.1
*/

html {
	font-size: 10px;
}

:root {
	--grey: #9B9B9B;
	--black: #27282C;
	--green: #9ABEB3;
	--darkgrey: #585C62;
	--white: #FFFFFF;
	--blue: #9FD0DB;
}

body {
	font-family: 'Karla', sans-serif;
	font-weight: 400;
	font-style: normal;
}
@media (max-width: 1200px) {
	html {
		font-size: 9px;
	}
}
@media (max-width: 900px) {
	html {
		font-size: 8px;
	}
	body p,
	body li {
		font-size: 20px;
	}
}
@media (max-width: 600px) {
	html {
		font-size: 7px;
	}
}
@media (max-width: 450px) {
	html {
		font-size: 6px;
	}
	body p,
	body li {
		font-size: 18px;
	}
}

.wrap {
	/* width: 1580px; */
	width: 1400px;
	max-width: 100%;
	padding-left: 40px;
	padding-right: 40px;
	margin-left: auto;
	margin-right: auto;
}
@media (min-width: 601px) {
	.wrap.tight {
		width: 1200px;
	}
}
#members .wrap {
	width: 1580px;
}
@media (max-width: 600px) {
	.wrap {
		padding-left: 30px;
		padding-right: 30px;
	}
}
}
.wrap.tight {
	width: 1200px;
}

a {
	transition: color 0.15s ease;
}
* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
    margin-top: 30px;
}
* + p {
    margin-top: 20px;
}
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2em;
	margin-bottom: 0.7em;
}
h1, h2 {
    font-size: 5.5rem;
	margin-top: -2rem;
} 
h3 {
    font-size: 4.8rem;
}
h4 {
    font-size: 4.0rem;
}
h5 {
    font-size: 3.0px;
}
h6 {
    font-size: 2.0px;
}
p, li {
    /* font-size: 22px; */
    font-size: 20px;
    line-height: 1.58em;
}
p {
	/* width: 900px; */
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}
section {
	text-align: center;
	padding: 11rem 0;
}
@media (min-width: 901px) {
	section#about,
	section#contact {
		padding: 16rem 0;
	}			
}
ul, ol {
	/* margin-left: 30px; */
}
ul li {
	/* list-style: disc outside; */
}
ol li {
	list-style: decimal outside;
}

.mast {
	max-height: 80vh;
	width: 100%;
	object-fit: cover;
}

section {
	position: relative;
}
section#about:before,
section#about:after,
section#contact:before,
section#contact:after {
	content: " ";
	display: block;
	width: 10vw;
	height: 10vw;
	position: absolute;
	background-image: url("images/section_mark.svg");
	background-size: cover;
	background-repeat: no-repeat;
}
section#about:before {
	left: 0;
	bottom: 0;
}
section#about:after {
	right: 0;
	top: 0;
	-ms-transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
}
section#contact:before {
	left: 0;
	top: 0;
	-ms-transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg);
}
section#contact:after {
	right: 0;
	bottom: 0;
	-ms-transform: rotate(270deg);
	-webkit-transform: rotate(270deg);
	transform: rotate(270deg);
}
section#services {
	background: var(--green);
}
hr.green {
    background: var(--green);
    height: 65px;
    border: none;
    margin: 0;
}
#members .gallery {
	/*display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-align-items: center;
	align-items: center;*/
	display: grid;
    grid-template-columns: repeat( auto-fit, minmax(202px, 1fr) );
    grid-gap: 35px 55px;
	-webkit-align-items: center;
	align-items: center;
	margin-bottom: 10rem;
    margin-top: 6rem;
}
#members .gallery li {
	
}
#members .gallery img {
	max-height: 85px;
	width: auto;
	display: block;
	margin: auto;
	filter: grayscale(1);
	transition: opacity 0.13s ease;
}
#members .gallery img:hover {
	opacity: 0.3;
}
#members .gallery img {
	max-height: 85px;
	width: auto;
	display: block;
	margin: auto;
	filter: grayscale(1);
}
#footer {
	border-top: 2px solid #bfbfbf;
}

#contact .wrap {
	width: 1300px;
}
.gform_body {
	text-align: left;
	margin-top: 4rem;
}
body .gform_wrapper input, 
body .gform_wrapper textarea, 
body .gform_wrapper select {
    height: 7rem;
    line-height: 7rem;
    padding: 0 2.5rem !important;
    font-size: 22px !important;
    font-family: 'Karla', sans-serif;
	border: 1px solid #9B9B9B;
	transition: border 0.15s ease;
}
body .gform_wrapper input:focus:not(.gform_button), 
body .gform_wrapper textarea:focus, 
body .gform_wrapper select:focus {
	border: 1px solid #609b9a;
}
body .gform_wrapper textarea {
	padding-top: 1.6rem !important;
	padding-bottom: 1.6rem !important;
	line-height: 1.4em;
}
body .gform_wrapper.gravity-theme .gfield_label {
	text-align: left;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--grey);
}
.cta,
body .gform_wrapper .gform_button {
	display: block;
	text-align: center;
	color: var(--black);
    height: 55px;
    line-height: 55px;
    background: var(--green);
    border-radius: 35px;
    border: none;
    width: 210px;
    letter-spacing: 0;
    margin: auto;
    font-weight: 700;
    font-size: 17px !important;
	transition: background 0.15s ease;
}
.cta:hover,
body .gform_wrapper .gform_button:hover {
	background-color: var(--blue);
}
body .gform_wrapper .gfield_required {
    vertical-align: bottom;
}
body .grecaptcha-badge {
	display: none !important;
}
body .gform_wrapper .gform_validation_errors {
	border-radius: 0;
}
body .gform_wrapper .gform_validation_errors h2 {
    font-size: 18px;
}
body .gform_wrapper.gravity-theme .gform_footer {
	position: relative;
}
body .gform_ajax_spinner {
	margin: auto;
	display: block;
	position: absolute;
	top: -12px;
	left: 0;
	right: 0;
}

#footer {
	border-top: 2px solid #595C61;
	padding-top: 80px;
	padding-bottom: 80px;
}
#footer a:not(.cta) {
	color: var(--green);
	font-weight: bold;
}
@media (min-width: 901px) {
	#footer .wrap {
		display: -webkit-flex;
		display: flex;
	}
	#footer .wrap > div {
		-webkit-flex: 1;
		-ms-flex: 1;
		flex: 1;
	}
	#footer .links {
		text-align: right;
		max-width: 250px;
	}
	#footer .links .cta {
		margin-bottom: 70px;
		margin-right: 0;
	}
	#footer .logo {
		max-width: 175px;
	}
}
#footer .logo img {
	width: 122px;
}
#footer .links ul li {
	display: inline-block;
	vertical-align: middle;
	margin: 0 5px;
}
#footer .links ul a {
	width: 50px;
	height: 50px;
	display: inline-block;
}
#footer .links ul li a:hover {
	opacity: 0.5;
}
#footer .links ul li a {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70%;
    padding: 10px;
    border: 5px solid var(--blue);
    border-radius: 50%;
	transition: opacity 0.15s ease;
}
#footer .links ul li.linkedin a {
	background-image: url("images/Social-Icons_LinkedIn.svg");
}
#footer .links ul li.twitter a {
	background-image: url("images/Social-Icons_Twitter.svg");
}
#header {
	padding: 42px 0;
}
#header .logo {
	position: absolute;
	left: 20px;
	top: 50%;
	-ms-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	width: 220px;
}
#header .logo.square {
	display: none;
}
#header .wrap {
	position: relative;
}
#header .nav {
}
@media (min-width: 901px) {
	#header .nav ul {
		display: -webkit-flex;
		display: flex;
		-webkit-justify-content: space-around;
		justify-content: space-around;
		width: 570px;
		max-width: 100%;
		margin: 0 auto;
	}
}
#header .nav ul {
}
#header .nav li {
	margin: 0 8px;
}
#header .nav a {
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--darkgrey);
	font-weight: bold;
	position: relative;
	display: inline-block;
	padding: 0 4px;
}
#header .nav a:hover:before {
	bottom: -2px;
	opacity: 1;
}
#header .nav a:before {
	content: "";
	left: 0;
	width: 100%;
	position: absolute;
	background: var(--green);
	transition: all 0.1s ease;
	height: 2px;
	opacity: 0;
	bottom: 0;
}
#header .cta {
	position: absolute;
	right: 20px;
	top: 50%;
	-ms-transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}
@media (min-width: 901px) {
	.admin-bar #handle {
		top: 50px;
	}
}
#handle {
	display: none;
	z-index: 105;
	position: fixed;
	cursor: pointer;
	height: 44px;
	width: 56px;
	top: 17px;
	right: 20px;
	background: var(--grey);
	-webkit-transition: 0.4s background;
	-o-transition: 0.4s background;
	transition: 0.4s background;
}
#handle .top {
	top: 8px;
}
#handle .middle {
	top: 20px;
}
#handle .bottom {
	top: 32px;
}
#handle svg {
	-webkit-transition: all 0.4s ease;
	-o-transition: all 0.4s ease;
	transition: all 0.4s ease;
	position: absolute;
	width: 40px;
	height: 4px;
	right: 8px;
	-ms-transform: rotate(0deg);
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
}
#handle svg rect {
	-webkit-transition: fill 0.4s ease;
	-o-transition: fill 0.4s ease;
	transition: fill 0.4s ease;
    fill: var(--white);
}
.nav-open #handle svg rect {
    fill: var(--white);
}
.nav-open #handle {
	background: transparent;
}
.nav-open #handle .top,
.nav-open #handle .bottom {
    top: 20px;
    right: 8px;
}
.nav-open #handle .top {
	-ms-transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.nav-open #handle .middle {
	opacity: 0;
}
.nav-open #handle .bottom {
	-ms-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}
@media (min-width: 901px) AND (max-width: 1100px) {
	#header .logo {
		width: 180px;
	}
	#header .nav ul {
		width: 500px;
	}
	#header .cta {
		width: 170px;
	}
}
@media (max-width: 900px) {
	html.js {
		margin-top: 0 !important;
	}
	html #wpadminbar {
		display: none;
	}
	#footer {
		text-align: center;
		padding-top: 30px;
		padding-bottom: 30px;
	}
	#footer .logo img {
		margin: auto;
		display: block;
		width: 85px;
	}
	#footer .logo {
		margin-bottom: 20px;
	}
	
	#footer .links .cta {
		margin-top: 10px;
	}
	#footer .links ul {
		margin-top: 20px;
	}
	#footer .links .cta {
		margin-left: auto;
		margin-right: auto;
	}
	.cta,
	body .gform_wrapper .gform_button {
		height: 45px;
		line-height: 45px;
		width: 190px;
	}
	.nav-open #header .nav-container {
		right: 0;
		transition: right 0.2s ease;
	}
	#header .nav-container {
		margin-top: 0;
		position: fixed;
		right: -100%;
		width: 100%;
		z-index: 100;
		top: 0;
		bottom: 0;
		position: fixed;
		overflow-y: scroll;
		overflow-x: hidden;
		display: -webkit-flex;
		display: flex;
		-webkit-align-items: center;
		align-items: center;
		background: rgb(159 208 219 / 95%);
		transition: right 0.1s ease;
		max-width: 100%;
	}
	#header .nav-container nav {
		margin: auto;
		text-align: center;
		padding-bottom: 30px;
		padding-top: 40px;
	}
	#header .nav-container .nav li {
		margin: 8px 0;
	}
	#header .nav-container .nav a {
		font-size: 45px;
		font-weight: 900;
		line-height: 1em;
		display: inline-block;
		padding: 6px 10px 8px;
		transition: opacity 0.15s ease;
		color: var(--white);
		vertical-align: middle;
	}
	#handle {
		display: block;
	}
	#header .cta {
		right: 100px;
	}
	#header .logo {
		width: 150px;
	}
}
@media (max-width: 600px) {		
	#header .nav-container .nav a {
		font-size: 9.8vw;
	}
	section {
		padding: 9rem 0;
	}
	#members .gallery {
		grid-template-columns: repeat( auto-fit, minmax(132px, 1fr) );
		grid-gap: 25px 35px;
	}
	#members .gallery img {
		max-height: 70px;
	}
	#members iframe {
		height: 120vw;
	}
}
@media (max-width: 500px) {
	#header .logo {
		display: none;
	}
	#header .logo.square {
		display: block;
		width: 55px;
	}
	#header .cta {
		height: 40px;
		line-height: 40px;
		width: 180px;
	}
}

.gform_confirmation_wrapper {
	font-size: 22px;
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.7);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
}

.modal-content {
	position: relative;
	background-color: #fff;
	padding: 15px;
	width: calc(100% - 40px);
	max-width: 1300px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-modal {
	position: absolute;
	top: 0px;
	right: 10px;
	font-size: 28px;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.15s ease;
}
.close-modal:hover {
	opacity: 1;
}

.modal-body {
	display: flex;
	text-align: center;
}
.modal-body > .col {
	flex: 1;
	padding: 15px 30px;
}
.modal-body img {
	border: 2px solid #b5b5b5;
	margin: 15px 0 15px;
}
.modal h3 {
	text-transform: uppercase;
	font-weight: 700;
}
.modal h3,
.modal p {
	letter-spacing: 0.05em;
	line-height: 1.2em;
}
.modal h3 {
	font-size: 18px;
}
.modal p {
	font-size: 20px;
}
.modal .cta {
	display: block;
	text-align: center;
	color: var(--black);
	height: 45px;
	line-height: 42px;
	background: var(--green);
	border-radius: 35px;
	border: none;
	width: 210px;
	letter-spacing: 0;
	margin: auto;
	font-weight: 700;
	font-size: 17px !important;
	transition: background 0.15s ease;
}
.modal .cta:hover {
	background-color: var(--blue);
}
.modal .cta.outline {
    border: 2px solid var(--green);
    background: white;
}
.modal .cta.outline:hover {
    background: var(--green);
	color: var(--white);
}
.modal .cta + .cta {
	margin-top: 10px;
}
@media (max-width: 900px) {
	.modal-body > .col {
		padding: 15px 20px;
	}
	.modal p {
		font-size: 18px;
	}
}
@media (min-width: 601px) {
	.modal-body > .col:first-child {
		border-right: 2px solid #ededed;
	}
}
@media (max-width: 600px) {
	.modal-body > .col:first-child {
		border-bottom: 2px solid #ededed;
	}
	.modal p {
		margin-top: 14px;
	}
	.modal-body {
		flex-direction: column;
	}
	.modal-body img {
		height: 200px;
		margin: 10px 0 15px;
	}
}
@media (max-height: 750px), (max-width: 600px) {
	.modal {
		align-items: start;
	}
	.modal-content {
		top: 20px;
		margin-bottom: 40px;
	}
}

strong.em {
    color: #d10000;
}