/*
Theme Name: Fostering Medicals
Author: George English
Author URI: http://englishwebdesign.com
Description: Bespoke theme
Version: 9999.9.9
*/

@import 'css/styles.css';

*,
*:before,
*:after {
	box-sizing: border-box;
}

:root {
	--primary: #253f32;

	--bg-grey: #f7fbf7;

	--secondary: #F1DABF;
}

body {
	font-family: 'Darker Grotesque', sans-serif;


	/*height: 100vh;
	overflow: hidden;*/

	margin: 0;

	line-height: 1.25;

	/*background-color: #000;
	color: #fff;*/

	background-color: rgba(0, 128, 0, 0.03);
	color: var(--primary);

	font-size: 24px;
}

@media (min-width: 1600px) {
	body {
		font-size: 25px;
	}
}

/*.site-content {
	width: 100vw;
	height: 100vh;
	overflow-y: auto;
	perspective: 10px;	
	position: relative;
}*/

/** {
	transform-style: preserve-3d;
}*/

hr {
	margin: 50px 0 45px;
	border: none;
	border-top: 2px solid var(--bg-grey-2);
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4, p, ul {
	margin: 0 0 20px;
}

h1, h2, h3 {
	font-weight: inherit;
	font-size: 2em;
	line-height: 1.2;

	margin-left: -0.01em;
}

h1, h2 {
	line-height: 1.1;
	font-family: 'DM Serif Display';
	font-weight: 400;
	letter-spacing: -0.02em;
	font-feature-settings: "liga";
	color: var(--primary);
}

@media (max-width: 567px) {

	h1, h2 {
		font-size: 1.5em;
	}

}

h3 {
	font-size: 1.4em;
	margin-bottom: 30px;
	line-height: 0.9;
}

h4 {
	font-size: 1em;
	font-weight: inherit;
}

p + h3 {
	margin-top: 50px;
}

p {
	max-width: 36em;
}

p:last-child {
	margin-bottom: 0;
}

/* */

@media (min-width: 568px) {

	.lede {
		font-size: 27px;
	}

}

@media (min-width: 1600px) {

	.lede {
		font-size: 29px;
	}

}

.entry-content a:not(.btn) {
	color: var(--primary);
	border-bottom: 1px solid;
}


.entry-content ul {
	margin-bottom: 30px;
	padding: 0;
	list-style: none;
}

.entry-content ul li {
	padding-left: 30px;
	margin-bottom: 15px;
	position: relative;
}

.entry-content ul li:before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--primary);
	font-weight: 800;
}

/* */

.heading-period {
	display: inline-block;
	width: 0.2em; 
	height: 0.2em; 
	background: var(--primary); 
	border-radius: 50%;
}

.heading-line {
	display: inline-block; 
	border-top: 0.15em solid; 
	width: 1.5em;
}

.container {
	width: 85%;
	margin-left: auto;
	margin-right: auto;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -20px -40px;
}

.row.no-gutter {
	margin: 0;
}

.row.no-gutter > .col {
	padding: 0;
}

.col {
	flex-basis: 0;
	flex-grow: 1;
	padding: 0 20px 40px;
}

.col-auto {
	flex-basis: auto;
	flex-grow: 0;
	flex-shrink: 0;
}

.col-33,
.col-25,
.col-50,
.col-60,
.col-100 {
	flex-basis: 100%;
	flex-grow: 0;
	flex-shrink: 0;
}

/*@media (min-width: 568px) {
 
	.col-33,
	.col-25 {
		flex-basis: 50%;
	}
}*/

@media (min-width: 1024px) {

	.col-33 {
		flex-basis: 40%;
	}
	.col-60 {
		flex-basis: 60%;
	}

}

@media (min-width: 1200px) {

	.row.wide-gutter {
		margin: 0 -40px -80px;
	}

	.row.wide-gutter > .col {
		padding: 0 40px 80px;
	}

	.col-33 {
		flex-basis: 33.333%;
	}

	.col-25 {
		flex-basis: 25%;
	}

	.col-50 {
		flex-basis: 50%;
	}

	.col-60 {
		flex-basis: 60%;
	}

	.section-text .inset {
		padding: 0 8.333%;
	}

}

@media (min-width: 1600px) {

	.inset {
		padding: 0 8.333%;
	}

}

.site-header {
	/*position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;*/
	
	
	padding-top: 50px;
	padding-bottom: 50px;

	/*box-shadow: 0 0 30px rgba(37, 62, 50, 0.5);*/
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-footer nav ul,
.site-header nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/*@media (hover: hover) {

	.site-footer nav a:hover,
	.site-footer nav a:hover {
		color: var(--primary);
	}

}*/

.current-menu-item {
	font-weight: 700;
}

/* */

.btn-burger {
    transition: 0s;

    /*transition-delay: 0.3s;

    opacity: 1 !important;*/

    position: fixed;
	z-index: 30;
	background: var(--bg-grey);
	color: var(--primary);
	border: none;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	padding: 0;

	right: 20px;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.burger-bar {
    display: block;
    width: 22px;
    border-top: 2px solid;
    transition: transform 0.3s;
}

.btn-burger .state-inactive .burger-bar + .burger-bar {
    margin-top: 4px;
}

.btn-burger .state-inactive {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.btn-burger .state-inactive,
.btn-burger .state-active {
    width: 22px;
    height: 22px;
    position: relative;
    overflow: hidden;
}

.btn-burger .state-active {
    position: absolute;
}

.btn-burger .state-inactive .burger-bar:nth-child(1) {
    transition-delay: 0.3s;
}

.btn-burger .state-inactive .burger-bar:nth-child(2) {
    transition-delay: 0.35s;
}

.btn-burger .state-inactive .burger-bar:nth-child(3) {
    transition-delay: 0.4s;
    /*width: 16px;*/
}

.btn-burger .state-active .burger-bar {
    position: absolute;
    top: calc(50% - 1px);
    left: calc(50% - 11px);
}

.btn-burger .state-active .burger-bar:nth-child(1) {
    transform: rotate(-45deg) translateX(-27px);

    transition-delay: 0.1s;
}

.btn-burger .state-active .burger-bar:nth-child(2) {
    transform: rotate(45deg) translateX(27px);
}

/* */

body.main-nav-active .btn-burger {
    transition-delay: 0s;

    background: #fff;
    color: var(--royalblue);
}

body.main-nav-active .btn-burger .state-inactive .burger-bar {
    transform: translateX(22px);
}

body.main-nav-active .btn-burger .state-inactive .burger-bar:nth-child(1) {
    transition-delay: 0s;
}

body.main-nav-active .btn-burger .state-inactive .burger-bar:nth-child(2) {
    transition-delay: 0.05s;
}

body.main-nav-active .btn-burger .state-inactive .burger-bar:nth-child(3) {
    transition-delay: 0.1s;
}

/* */

@keyframes cross_1 {
    0% {
        transform: rotate(-45deg) translateX(27px);
    }
    100% {
        transform: rotate(-45deg);
    }
}

@keyframes cross_2 {
    0% {
        transform: rotate(45deg) translateX(-27px);
    }
    100% {
        transform: rotate(45deg);
    }
}

body.main-nav-active .btn-burger .state-active .burger-bar:nth-child(1) {
    transform: rotate(-45deg);
    transition: 0s;
    transition-delay: 0s;

    animation-name: cross_1;
    animation-duration: 0.3s;
    animation-fill-mode: backwards;
    animation-delay: 0.5s;
}

body.main-nav-active .btn-burger .state-active .burger-bar:nth-child(2) {
    transform: rotate(45deg);
    transition: 0s;
    transition-delay: 0s;

    animation-name: cross_2;
    animation-duration: 0.3s;
    animation-fill-mode: backwards;
    animation-delay: 0.4s;
}

@media (min-width: 1024px) {

	.site-header .right {
		margin-left: 380px !important;
	}

	.logo-container {
		position: absolute;
		left: 50%;
		z-index: 1;
		transform: translateX(-50%);
	}

	.site-header nav ul {
		display: flex;
		justify-content: space-between;
	}

	.site-footer nav ul,
	.site-header nav ul {
		display: flex;
		line-height: 2;
	}

	.site-header nav li:first-child {
		margin-left: 50px;
	}

	.site-footer nav li + li,
	.site-header nav li + li {
		margin-left: 2em;
	}

	.mobile-nav-angle,
	.btn-burger {
		display: none;
	}

}

@media (max-width: 1023px) {

	.hide-on-mobile {
		display: none !important;
	}

	.site-header {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	.site-header .logo svg {
		height: 40px;
	}

	.site-header nav {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;

		z-index: 5;

		padding-bottom: 10vw;

		background: var(--primary);
		color: #fff;
		display: flex;
		align-items: center;
		font-size: 1.5em;
		line-height: 1.5;
		text-align: center;
		justify-content: center;

		display: none;
	}

	.site-footer nav {
		line-height: 1.5;
		margin-top: 20px;
	}

	.site-header nav ul.sub-menu {
		display: none;
	}

	body.main-nav-active .site-header nav {
		display: flex;
	}

}

/* */

.btn {
	padding: 15px 35px 19px;
	margin: 0;
	font-size: 22px;
	font-family: inherit;
	font-weight: 500;
	letter-spacing: 0;

	display: inline-block;
	text-align: center;
	border-radius: 8px;

	border: 1px solid transparent;
	background: var(--primary);
	color: var(--secondary);

	transition: 0.3s;
	line-height: 24px;

	cursor: pointer;
}

.btn:hover {
	transform: translateY(-6px);
	box-shadow: 
		0 30px 40px rgba(0,0,0,0.1), 
		0 15px 20px rgb(37, 63, 50, 0.1);
}

/*@media (min-width: 1700px) {
	.btn {
		font-size: 16px;
	}
}*/

p + .btn,
p + p .btn {
	margin-top: 15px;	
}

.btn svg {
	width: 24px;
	height: 24px;
	vertical-align: top;
	margin-left: 10px;
	margin-right: -10px;
	opacity: 0.5;

	transform: translateY(2px);
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--primary);
	color: var(--primary);
}

.btn-outline:hover {
	background: var(--primary);
	color: var(--secondary);
}

/*.btn-tertiary {
	background: var(--tertiary) !important;
}

.btn-tertiary:hover {
	box-shadow: 
		0 30px 40px rgba(0,0,0,0.1), 
		0 15px 20px rgba(33, 158, 188, 0.1);
}*/

.logo svg {
	width: auto; 
	height: 70px;
	vertical-align: top;
	fill: currentColor;
}

.logo-mark {
	fill: var(--primary);
}

/* Animation */

@media (prefers-reduced-motion: no-preference) {

	.animate {
		transition: opacity 0.6s, transform 0.6s;
	}

	body.intersection-observer .animate.animate-hidden {
		opacity: 0;
		transform: translateY(80px);
	}

	body.intersection-observer .animate.animate-hidden.animate-from-left {
		opacity: 0;
		transform: translateX(-20px);
	}

	body.intersection-observer .animate.animate-hidden.animate-from-right {
		opacity: 0;
		transform: translateX(20px);
	}

	body.intersection-observer .animate.animate-hidden.animate-up-100 {
		opacity: 1;
		transform: translateY(100%);
	}

	body.intersection-observer .animate.animate-hidden.animate-down-100 {
		opacity: 1;
		transform: translateY(-100%);
	}

	body.intersection-observer .animate.animate-hidden.animate-opacity {
		opacity: 0;
	}

	.animate + .animate {
		transition-delay: 0.1s;
	}

	.animate + .animate + .animate {
		transition-delay: 0.2s;
	}

	.animate + .animate + .animate + .animate {
		transition-delay: 0.3s;
	}

	.animate + .animate + .animate + .animate + .animate {
		transition-delay: 0.4s;
	}

	.animate + .animate + .animate + .animate + .animate + .animate {
		transition-delay: 0.5s;
	}

	.animate + .animate + .animate + .animate + .animate + .animate + .animate {
		transition-delay: 0.6s;
	}

	/* */

	.animate-slow + .animate-slow {
		transition-delay: 0.2s;
	}

	.animate-slow + .animate-slow + .animate-slow {
		transition-delay: 0.4s;
	}

	.animate-slow + .animate-slow + .animate-slow + .animate-slow {
		transition-delay: 0.6s;
	}

	.animate-slow + .animate-slow + .animate-slow + .animate-slow + .animate-slow {
		transition-delay: 0.8s;
	}

	.animate-slow + .animate-slow + .animate-slow + .animate-slow + .animate-slow + .animate-slow {
		transition-delay: 1s;
	}

	.animate-slow + .animate-slow + .animate-slow + .animate-slow + .animate-slow + .animate-slow + .animate-slow {
		transition-delay: 1.2s;
	}

}

/* */

.section-padded {
	padding: clamp(60px, 10vw, 150px) 0; 
}

.section-padded-unclamped {
	padding: 10vw 0;
}

.section-hero + .section-shortcode {
	padding-top: 0;
}

/* */

.section-image-text {
	background-color: var(--bg-grey); 
	overflow: hidden;
}

.section-image-text .image {
	background-size: cover; 
	background-color: var(--bg-grey); 
	background-position: 50% 100%;
	position: relative;
}

.section-image-text .image:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(var(--bg-grey), hsla(0, 60%, 96%, 0));
}

@media (max-width: 1023px) {

	.section-image-text .image {
		padding-top: 100%;
	}

}

@media (min-width: 1024px) {

	.section-image-text .image {
		position: absolute; 
		top: 0; 
		bottom: 0; 
		width: 30%; 
	}

	.section-image-text {
		min-height: 90vh; 
		display: flex; 
		align-items: center; 
		position: relative;
	}

}

/* */

.section-services .tab {
	cursor: pointer;
}

.section-services .tab:ho ver {
	color: var(--primary);
}

.section-services .tab.active {
	font-weight: 500;
	color: var(--primary);
}

.section-services,
.section-service {
	background: var(--bg-grey);
	position: relative;
}

.section-service hr {
	border-color: var(--primary);
}

/* */

/*.pre-heading {
	margin-top: -20px;
	line-height: 20px;
	font-size: 18px;
	text-transform: uppercase; 
	letter-spacing: 0.333em; 
}*/

.section-clients h3 {
	margin-bottom: 50px; 
	text-align: center;
}

.client-logos {
	display: flex;
	align-items: center;
	flex-wrap: wrap;

	/*margin: 0 -3.333%;*/

	justify-content: space-between;
}

.client-logos img {
	width: calc(100% / 10);
	height: auto;
	max-height: 90px;
	object-fit: contain;
	/*margin: 0 3.333%;*/
}

@media (max-width: 567px) {

	.client-logos {
		flex-wrap: wrap;
		justify-content: center;
		margin: 0 -20px -40px;
	}

	.client-logos img {
		max-height: 60px;
		width: calc(50% - 40px);
		margin: 0 20px 40px;
	}
}

.section-dark {
	background: var(--primary);
	color: var(--bg-grey);
}

.section-dark h2 {
	color: var(--secondary);
}


.site-footer {
	background: var(--primary);
	color: var(--secondary);
	overflow: hidden;
}

@media (max-width: 567px) {

	.site-footer {
		text-align: center;
	}

}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	font-size: 20px;
	margin-top: 30px; 
	padding-top: 30px;
	margin-bottom: env(safe-area-inset-bottom);

	position: relative;

	border-top: 2px solid;
}

@media (hover: hover) {

	.footer-bottom a:hover {
		border-bottom: 1px solid;
	}

}

.menu-footer-bottom-menu-container * {
	display: inline;
}

.menu-footer-bottom-menu-container ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.menu-footer-bottom-menu-container li + li:before {
	content: "\00a0\00a0|\00a0\00a0\00a0";
}

@media (min-width: 568px) {

	.footer-main {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.footer-bottom {
		margin-top: 60px;
	}

	.menu-footer-bottom-menu-container {
		display: inline;
	}

	.menu-footer-bottom-menu-container li:before {
		content: "\00a0\00a0|\00a0\00a0\00a0";
	}

}

@media (max-width: 567px) {

	/*.site-footer .logo {
		max-width: 8em;
	}*/

	.footer-bottom {
		/*font-size: 14px;
		line-height: 20px;*/
		flex-direction: column;
	}
}

/* */

.section-contact h4 {
	margin-top: -10px;
}

.section-contact,
.section-faq {
	position: relative;
}

@media (max-width: 567px) {
	.section-contact .btn {
		width: 100%;
	}
}

/*.section-contact form .row {
	margin-bottom: 0;
}

.section-contact form .row > .col {
	padding-bottom: 0;
}*/

form p {
	margin: 0;
	max-width: 100%;
}

/* */

.section-faq {
	background: var(--bg-grey);
	position: relative;
}

.section-services hr,
.section-faq hr {
	border-color: inherit;
	opacity: 0.1;
}

@media (max-width: 567px) {
	.section-services hr,
	.section-faq hr {
		margin: 40px 0 35px;
	}
}

.section-faq p {
	max-width: 100%;
}

.section-grid + .section-contact,
.section-faq + .section-contact {
	border-top: 2px solid var(--bg-grey);
}

.site-header + .section-contact {
	background: linear-gradient(150deg, var(--bg-grey), #fff 50%);
}

.expander-title {
	position: relative;
	padding-right: 60px;
	margin-bottom: 0;
}

.expander-title:after {
	content: "";
	position: absolute;
	width: 24px;
	height: 24px;
	top: calc(50% - 16px);
	right: 6px;
	background-image: url('img/angle-down.svg');
	background-size: cover;
	transition: 0.4s
}

.expander-title.toggled-on:after {
	transform: rotate(180deg);
}

.expander-title:hover {
	color: var(--lightblue);
	cursor: pointer;
}

.expander {
	overflow: hidden;
	padding-top: 30px;
}

@media (min-width: 568px) {

	.expander-title:after {
		width: 32px;
		height: 32px;
		right: 0;
	}

	.expander {
		padding-right: 60px;
	}

}

.expander *:last-child {
	margin-bottom: 0;
}

/* */

@keyframes underline {
	0% {
		transform-origin: right;
		transform: scaleX(1);
	}
	33% {
		transform-origin: right;
		transform: scaleX(0);
	}
	66% {
		transform: scaleX(0);
		transform-origin: left;
	}
	100% {
		transform-origin: left;
		transform: scaleX(1);
	}
}

.link-contact {
	line-height: 24px;
	color: var(--primary);
	display: inline-flex;
	align-items: center;
}

.link-contact u {
	text-decoration: none;
	display: inline-block;
	position: relative;
	padding: 10px 0;
}

.link-contact u:after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	border-top: 1px solid;
	/*transform: scaleX(0);*/
	transform-origin: right;
}

.link-contact:hover u:after {
	animation-name: underline;
	animation-duration: 0.5s;
	animation-fill-mode:forwards;
}

.link-contact svg {
	width: 24px;
	height: 24px;
	vertical-align: top;
	color: inherit;
	margin-right: 20px;
	margin-bottom: -4px;
}

.link-contact ~ .link-contact {
	margin-top: 10px;
}











/* */

.phone-sticky {
	perspective: 125vw;
}

.section-phone {
	position: relative;
}

.phone-content-1,
.phone-content-2 {
	position: relative;
}

.phone-rotator {
	position: absolute;
	left: 50%;
	top: 50%;

	transform: translate(-50%, -50%);

	transform-style: preserve-3d;
}

/*.phone-shadow {
	position: absolute;

	width: 18vw;
	height: 36vw;
	border-radius: 2.25vw;
	background: var(--secondary-darker);

	transform: translateZ(-200vw) scale(2);

	backface-visibility: hidden;
}*/

.phone-container {
	transform: translateX(133.333%) rotateZ(10deg);
	transform-style: preserve-3d;
	/*transition: 0.2s;*/
}

.flip-phone .phone-container {
	transform: translateX(133.333%) rotateZ(10deg) rotateY(-180deg);
}

.phone {
	display: none;
	width: 18vw;
	background: var(--bg-grey);
	position: relative;
	/*transform: translateZ(-0.625vw);*/
}

.phone:before {
	content: "";
	display: block;
	padding-top: 144.4%; /* A4 */
}

.show-phone .phone {
	display: block;
}

/*.phone2 {
	position: absolute;
	transform: translateZ(0.625vw);
	/*background: var(--secondary-darker);*/
	/*border: 1px solid rgba(255,255,255,0.1);*
}

.screen {
	position: absolute;
	top: 1vw;
	left: 1vw;
	width: 16vw;
	overflow: hidden;
	background-color: #fff; /*var(--secondary);*
}*/

:root {
	--phone-scale: 16;
}

@media (min-width: 1200px) {

	.section-phone {
		min-height: 200vh;
	}

	.phone-wrapper {
		position: absolute; 
		top: 10vh; 
		left: 0; 
		right: 0; 
		bottom: 0; 
		z-index: 2; 
		pointer-events: none;
	}

	.phone-sticky {
		position: sticky;
		top: 0;
		height: 100vh;
	} 

	.phone-content-1 > .row {
		height: 100vh; 
		padding-top: 20vw;
	}

	.phone-content-2 > .row {
		height: 100vh; 
		align-items: flex-end; 
		padding-bottom: 10vw;
	}

}

@media (max-width: 1199px) {

	:root {
		--phone-scale: 32;
	}

	.phone-content-1,
	.phone-content-2 {
		padding: max(60px, 10vw) 0;
	}

	.section-phone {
		overflow: hidden;
	}

	.phone-sticky {
		height: calc(2.4vw * var(--phone-scale));
		perspective: 150vw;
	}

	.phone-container {
		transform: translateX(0%) rotateZ(10deg) rotateX(2.5deg);
	}

	.flip-phone .phone-container {
		transform: translateX(0%) rotateZ(10deg) rotateX(-2.5deg) rotateY(-180deg);
	}

	.phone {
		width: 36vw;
	}

	/*.phone2 {
		transform: translateZ(1.25vw);
	}

	.screen {
		top: 2vw;
		left: 2vw;
		width: 32vw;
	}*/

}

@media (max-width: 567px) {

	:root {
		--phone-scale: 48;
	}

	.phone {
		width: 54vw;
	}

	/*.phone2 {
		transform: translateZ(1.875vw);
	}

	.screen {
		top: 3vw;
		left: 3vw;
		width: 48vw;
	}*/

}

/*.screen:not(.loaded):before {
	content: "";
	position: absolute;
	top: calc(50% - 12px);
	left: calc(50% - 12px);
	width: 24px;
	height: 24px;
	z-index: 1;

	border: 3px solid transparent;
	border-left: 3px solid var(--secondary);
	animation: spin 1s infinite linear;
	border-radius: 50%;
}*/

.screen .iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 375px;
	height: 750px; /*797px;*/

	/*z-index: 2;*/

	border-radius: 29px;
	border: none;

	transform-origin: top left;
	overflow: hidden;
}

.screen .iframe img {
	width: 100%;
	height: auto;
}

.flip-phone .iframe-1,
.iframe-2 {
	display: none;
}

.flip-phone .iframe-2 {
	display: block;
}

