/*
Theme Name: Cornerstone PE
Theme URI: http://www.cornerstonepe.co.uk
Author: Lollystick
Author URI: http://www.lollystick.co.uk
Description: A custom theme for Cornerstone PE.
Version: 1.0
Text Domain: cornerstonepe
*/


@charset "utf-8";
/* CSS Document */

@font-face {
    font-family: 'colaborate-boldregular';
    src: url('css/fonts/colabbol-webfont.eot');
    src: url('css/fonts/colabbol-webfont.eot?#iefix') format('embedded-opentype'),
         url('css/fonts/colabbol-webfont.woff') format('woff'),
         url('css/fonts/colabbol-webfont.ttf') format('truetype'),
         url('css/fonts/colabbol-webfont.svg#colaborate-boldregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'colaboratelightregular';
    src: url('css/fonts/colablig_0-webfont.eot');
    src: url('css/fonts/colablig_0-webfont.eot?#iefix') format('embedded-opentype'),
         url('css/fonts/colablig_0-webfont.woff') format('woff'),
         url('css/fonts/colablig_0-webfont.ttf') format('truetype'),
         url('css/fonts/colablig_0-webfont.svg#colaboratelightregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'colaborate-mediumregular';
    src: url('css/fonts/colabmed_0-webfont.eot');
    src: url('css/fonts/colabmed_0-webfont.eot?#iefix') format('embedded-opentype'),
         url('css/fonts/colabmed_0-webfont.woff') format('woff'),
         url('css/fonts/colabmed_0-webfont.ttf') format('truetype'),
         url('css/fonts/colabmed_0-webfont.svg#colaborate-mediumregular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'colaborate-thinregular';
    src: url('css/fonts/colabthi-webfont.eot');
    src: url('css/fonts/colabthi-webfont.eot?#iefix') format('embedded-opentype'),
         url('css/fonts/colabthi-webfont.woff') format('woff'),
         url('css/fonts/colabthi-webfont.ttf') format('truetype'),
         url('css/fonts/colabthi-webfont.svg#colaborate-thinregular') format('svg');
    font-weight: normal;
    font-style: normal;
}



p {
	font-family: 'colaboratelightregular', Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	font-size: 110%;
	line-height: 150%;
}
ul li {
	font-family: 'colaboratelightregular', Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	font-size: 110%;
	list-style: none;
	position: relative;
	line-height: 150%;
}
main ul li:before {
	position: absolute;
	top: -1px;
	left: -25px;
	list-style: square;
 	content: "■";
 	color: #BBB;
	font-size: 80%;
}
a {
	text-decoration: none;
}
h1 {
	font-family: 'colaborate-mediumregular', Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	font-size: 200%;
	letter-spacing: 0.03em;
	word-spacing: 0.3em;
	color: #2C5296;
	text-transform: uppercase;
}
h2 {
	font-family: 'colaboratelightregular', Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	font-size: 160%;
	letter-spacing: 0.06em;
	word-spacing: 0.3em;
	color: #5976AB;
	line-height: 100px;
	white-space: nowrap;
}
h3 {
	font-family: 'colaboratelightregular', Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	font-size: 140%;
	letter-spacing: 0.06em;
	word-spacing: 0.3em;
	color: #333;
}
body {
	background-color: #fff;
	margin: 0;
	color: #333;
}
main {
	margin-top: 120px;
}

body hr{
	margin-top: 10px;
	margin-bottom: 10px;
}
header {
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
	justify-content: flex-end;
    width: 100%;
    background-color: #fff;
    z-index: 100;
    position: fixed;
	height: 120px;
	top: 0;
}
#nav1 {
	display: block;
}
#nav1 ul li {
	white-space: nowrap;
	font-family:  'colaboratelightregular', Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 0.06em;
	word-spacing: 0.3em;
	font-size: 110%;
}
#nav1 ul li a, #nav1 ul li span {
    text-decoration: none;
}
#nav1 ul li a:link, #nav1 ul li a:visited {
    color: #000;
}
#nav1 ul li:hover > a {
	color: #D2FF4D;
}
.nav1 {
	width: 0 ;
}
.nav1, .nav1 * {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.nav1 input[type="checkbox"] {
	position: absolute;
	left: 0;
	top: 0;
	visibility: hidden;
}
.nav1 > label {
	z-index: 100;
	display: block;
	position: absolute;
	font-size: 10px;
	width: 3.5em;
	height: 3em;
	top: 45px !important;
	left: 45px;
	text-indent: -1000px;
	border: 0.3em solid #2F5496;
	border-width: 0.3em 0;
	cursor: pointer;
	-moz-transition: all 0.3s ease-in;
	-webkit-transition: all 0.3s ease-in;
	transition: all 0.3s ease-in;
	margin-right: 20px;
}
#nav1 ul {
	margin-top: 0;
}
#nav1 ul li:hover > ul {
	visibility: visible;
	right: calc(100% - 0px);
	opacity: 1;
	top: 0;
	-webkit-transition: opacity .5s;
	transition: opacity .5s;
}
.nav1 > label::before, .nav1 > label::after {
	content: "";
	display: block;
	position: absolute;
	width: 100%;
	height: 0.3em;
	top: 50%;
	margin-top: -0.2em;
	right: 0;
	background: #2F5496;
	-moz-transform: rotate(0);
	-webkit-transform: rotate(0);
	transform: rotate(0);
	-moz-transition: all 0.3s ease-in;
	-webkit-transition: all 0.3s ease-in;
	transition: all 0.3s ease-in;
}	
#nav1 ul {
	display: block;
	width: 100%;
	float: right;
}
#nav1 ul li {
	height: auto;
	float: none;
	display: block;
	width: 100%;	
}
#nav1 ul li a:link, #nav1 ul li a:visited {
	color: #fff;
}
.nav1 #nav1 {
	margin: 0;
	padding: 0;
	position: fixed;
	width: 25%;
	height: 100%;
	right: -25%;
	top: 0;
	opacity: .95;
	z-index: 10000;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	background: #5976AB;
	-moz-transition: all 0.3s ease-in;
	-webkit-transition: all 0.3s ease-in;
	transition: all 0.3s ease-in;
}
.nav1 ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
}
.nav1 ul li {
	display: block;
	margin: 0;
	width: 100%;
}
.nav1 ul li a {
	display: block;
	margin: 0;
	padding: 0 20px;
	text-align: left;
	font-size: 130%;
	float: none;
	width: 100%;
	height: 120px;
	line-height: 120px;
}
.nav1 ul li a {
	color: #fff;
	transition: 0.8s;
}
.nav1 ul li a:hover {
	color: #fff !important;
	background-color: #8DA7D7;
}
.nav1 #nav1 label {
	cursor: pointer;
	position: absolute;
	text-transform: lowercase;
	right: 0;
	top: 0;
	-moz-border-radius: 0 0 0 40px;
	-webkit-border-radius: 0 0 0 40px;
	border-radius: 0 0 0 40px;
	width: 40px;
	height: 30px;
	background: none;
	text-align: center;
}
.nav1 .overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	right: 0;
	top: 0;
	opacity: .0;
	background: #fff;
	z-index: 1001;
	visibility: hidden;
}
.nav1 .overlay label {
	width: 100%;
	height: 100%;
	position: absolute;
}
.nav1 #nav1 label:hover::after {
	-moz-transform: rotatey(180deg);
	-ms-transform: rotatey(180deg);
	-webkit-transform: rotatey(180deg);
	transform: rotatey(180deg);
}
.nav1 input[type="checkbox"]:checked ~ label {
	border-color: transparent;
}
.nav1 input[type="checkbox"]:checked ~ label::before {
	transform: rotate(-45deg);
}
.nav1 input[type="checkbox"]:checked ~ label::after {
	transform: rotate(45deg);
}
.nav1 input[type="checkbox"]:checked ~ #nav1 {
	right: 0;
}
.nav1 input[type="checkbox"]:checked ~ div.overlay {
	visibility: visible;
}
.logo {
	height: 100px;
	margin: 10px;
}
#featured-img {
	width: calc(100% - 20px);
	height: 480px;
	margin: 0 10px;
	padding-top: 120px;
	background-position: center;
	background-size: cover;
}
#qlinks {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
	padding: 10px 5px;
}
#qlinks .qlinks-column {
	margin: 0 5px;
	padding: 10px 20px;
	display: flex;
	flex-direction: row;
	flex: 1;
}
#qlinks .qlinks-column img {

	width: 100px;
}
.qlinks-content{
	display: block;
}
#qlinks .qlinks-content p {
	font-size: 100%;
}
#qlinks .qlinks-content h2 {
	color: #fff;
	text-transform: uppercase; 
}
.qlinks-a {
	display: flex;
	flex: 1;
	flex-direction: row;
	justify-content: space-evenly;
	color: #000;
}
.qlinks-a:hover {
	color: #fff;
}
#qlinks  .qlinks-content a:hover {
	color: #fff;
}
.qlink-col-1 {
	background-color: #B4C6E7;
	transition: 0.5s;
}
.qlink-col-2 {
	background-color: #8DA7D7;
	transition: 0.5s;
}
.qlink-col-3 {
	background-color: #5976AB;
	transition: 0.5s;
}
.qlink-col-1:hover, .qlink-col-2:hover, .qlink-col-3:hover {
	background-color: #2F5496;
}
.qlinks-content{
	width: 100%;
}

article {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 100px 50px 100px;
}

/* PARTNER FIRMS */

article .partner-container {

	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	padding-top: 20px;
}
span img {
	padding: 20px;
}

/* CONTACT DETAILS */

.contact-container{
	display: flex;
	flex-direction: row;
}
.contact-left{
	flex: 1;
}
.contact-right{
	flex: 1;
}
.contact-left img{
	padding: 0 4px 0 0;
}
article a{
	text-decoration: none;
	color: #333;
}
article a:hover {
	color: #2C5296;
}
.map-container{
	padding-top: 30px;
	width: 100%;
	height: 400px;
}

/* OUR PEOPLE */

.people-container-flex{
	display: flex;
	flex-direction: row;
}
.people-container{
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0 20px 30px 0;	
}
.our-people{
	padding-right: 20px;
	height: 100px;
}
.our-people-img img{
	width: 100%;
	max-width: 360px;
}
.img-container{
	height: 100%;
}
.img-container img{
	width: 100%;
	height: auto;
	padding-top: 30px;
}
.bio-container {
	padding-left: 30px;
}
.bio-container p{
    color: #333;
}
.page-id-21 h3{
	margin: 0;
	padding: 0;
}
.our-people-img p{
	margin: 0 0 10px 0;
	padding: 0;
	font-size: 90%;
}

/* FOOTER */

footer {
	background-color: #5976AB;
	height: 185px;
	margin: 10px;
	font-size: 90%;
	color: #fff;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
}
footer .column-left {
	flex-grow: 1;
	align-items: flex-end;
	margin: 0 15px;
}
footer .column-right {
	flex-grow: 1;
	align-items: flex-end;
	margin: 0 15px;
	text-align: right;
}
footer a {
	text-decoration: none;
	color: #fff;
}
footer a:hover {
	color: #000;
}

/* MEDIA QUERIES */

@media (max-width: 1600px) {
.nav1 #nav1 {
	width: 50%;
	right: -50%;
}
#qlinks .qlinks-column {
	margin: 0 5px 10px 5px;
	flex: 1 1 auto;
}
#qlinks .qlinks-column img {
	width: 70px;
}
h2{
	line-height: 70px;
}
#qlinks .qlinks-column{
	padding: 0 0;
}
footer {
	align-items: flex-start;
	flex-direction: column;
	height: auto;
}
footer .column-right {
	text-align: left;
}
.img-container{
	flex: 1 0 auto;

}
.bio-container{
	flex: 1 0 auto;
}
.bio-container {
	padding-left: 0px;
	padding-bottom: 30px;
}
.contact-container{
	display: flex;
	flex-direction: column-reverse;
}
.contact-left{
	flex: 1 1 auto;
}

.contact-right{
	flex: 1 1 auto;
}
.map-container{
	padding-top: 0;
	width: 100%;
	height: 400px;
}
#featured-img {
	height: 350px;
}
.page-id-21 article {
	max-width: 1400px;
	margin: 0 auto;
	padding: 30px 60px 50px 60px;
}
}



@media (max-width: 1300px) {
.people-container-flex {
	flex: 1 1 auto;
	flex-wrap: wrap;
}
}

@media (max-width: 1150px) {
#qlinks {
	flex: 1 1 auto;
	flex-direction: column;
}
#featured-img {
	height: 280px;
}
.qlinks-a{
	flex: 1 1 auto;
	flex-direction: column;
}
.people-container {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.our-people-img{
	padding-bottom: 25px;
}
.our-people{
	padding-left: 0;
}
}

@media (max-width: 500px) {
article .partner-container {
	flex-direction: column;
	align-items: center;
	height:auto;
}
.our-people{
	padding-right: 20px;
	height: 80px;
}
.nav1 #nav1 {
	width: 65%;
	right: -65%;
}
article {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px 50px 20px;
}
.page-id-21 article {
	padding: 30px 20px 50px 40px;
}
#qlinks .qlinks-column img {
	width: 50px;
}
h2{
	line-height: 56px;
}
#qlinks .qlinks-column {
    padding: 0px 0px;
}

.nav1 > label {
	top: 31px !important;
	left: 25px;
}
.logo {
	height: 70px;
	margin: 10px;
}
header{
	height: 90px;
}
main {
	margin-top: 90px;
}
p {
	font-family: 'colaboratelightregular', Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
}
.nav1 ul li a {
	font-size: 100%;
	height: 90px;
	line-height: 90px;
}
h2 {
	font-size: 130%;
	padding-left: 0;
}
#featured-img {
	height: 200px;
}
}


@media (max-height: 720px) {
.nav1 ul li a {
	font-size: 100%;
	height: 65px;
	line-height: 70px;
}
.nav1 #nav1 {
	width: 65%;
	right: -65%;
}
.logo {
	height: 70px;
	margin: 10px;
}
header{
	height: 90px;
}
.nav1 > label {
	top: 31px !important;
	left: 25px;
}
}

