/*
	Theme Name: Ipsus Edgeley Road Consultation
	Theme URI: http://html5blank.com
	Description: A custom theme for the Edgeley Road Consultation
	Version: 1.0
	Author: Direction Forward (@direction4ward)
	Author URI: https://directionforward.com
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
	margin: 0;
	padding: 0;
	overscroll-behavior: none;
}
body {
	font-family: 'HelveticaNowDisplay-Regular', Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4em;
	font-weight: normal;
	color: #111111;
	margin: 0;
	padding: 0;
	overscroll-behavior: none;
	position: relative;
	background-color: #E6E4DE;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
}
a {
	color:inherit;
	text-decoration:none;
}
a:hover {
	
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}


/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
	width:90%;
	margin:0 auto 0 auto;
	position:relative;
}
.page-template-template-demo .wrapper {
	width: 100%;
	height: 100vh;
	background-color: #111111;
}
/* main */
main {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;
}
.page-template-template-demo main {
	height: 100%;
    justify-content: center;
    align-items: center;
}
/* header */
.header {
	padding: 5vw 0 2.5vw 0;
	width: 90vw;
}
header.fixed {
	position: fixed;
	z-index: -1;
}
/* logo */
.logo {
	padding: 1em 0 0 0;
}
.logo-img {
	max-width: 140px;
}
/* nav */
.nav {
	flex: 1;
	font-size: 1.125em;
	font-size: clamp(14px, 0.9333vi, 18px);
	line-height: 1.0em;
	padding: 1em 0 0 0;
	opacity: 0;
}
.nav.visible {
	opacity: 1;
}
.nav ul {
	margin: 0 0 0 0;
	padding: 0 0 5vw 0;
	height: 100%;
	list-style: none;
	display: flex;
    flex-wrap: wrap;
	align-content: stretch;
}
.nav ul li {
	flex-basis: 100%;
}
.nav ul li a {
    opacity: 0.6;
    display: inline-block;
    height: 100%;
	width: 100%;
	display: flex;
    align-items: center;
}

/* sidebar */
.sidebar {

}
/* footer */
.footer {
    font-size: 1em;
	line-height: 1.25em;
	color: #A3A19D;
}
.footer p {
	margin: 0 0 0 0;

}
.footer a {
	color: inherit;
}

.title {
	position: relative;
	display: inline-block;
}
#json {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(calc(100% - 1em), calc(0% - 2em));
	width: 168px;
	height: 168px;
	z-index: 1;
}


.sections {
	max-width: 1000px;
	flex: 2.75;
	overflow-y: scroll;
	padding: 0 0 5vw 0;
	-ms-overflow-style: none;  /* Hide scrollbar IE and Edge */
	scrollbar-width: none;  /* Hide scrollbar Firefox */
}
/* Hide scrollbar Chrome, Safari and Opera */
.sections::-webkit-scrollbar {
	display: none;
}

section {
	margin: 0 0 10vw 0;
}
.page-template-template-demo section {
	margin: 0 0 0 0;
}


.section-img,
.section-pdf,
section object {
	aspect-ratio: 5 / 7;
	width: 100%;
	height: auto !important;
	background-color: #B9B9B9;
}
.section-pdf {
	display: none;
}
.section-pdf iframe {
	pointer-events: none;
}
.section-img {
	border: 0.01em solid #666562;
}
.img-holder {
	position: relative;
}
.img-holder a {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 40px;
	height: 40px;
	z-index: 1;
	background-color: #5C5B59;
	display: flex;
    padding: 0.666em;
}
.img-holder a img {	
	opacity: 0.6;
	transition: opacity 0.1s linear;
}
.img-holder a:hover img {
	opacity: 1;
}



article {
	flex: 1;
	text-align: right;
	opacity: 0;
}
article.visible {
	opacity: 1;
}
.article-holder {
	display: flex;
	flex-wrap: wrap;
	height: 100%;
	align-content: space-between;
	padding: 0 0 5vw 0;
}
.article-holder > div {
	flex-basis: 100%;
}

.section-title {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	margin: 0 0 1em 0;
}


/*------------------------------------*\
    FORMS
\*------------------------------------*/

.form-title {
	font-family: 'HelveticaNowDisplay-Medium';
	margin: 0 0 0.5em 0;
	font-size: 6.25em;
	font-size: clamp(70px, 5.25vi, 100px);
	line-height: 0.85em;
	letter-spacing: -0.01em;
	color: white;
	font-weight: normal;
}
.gform_confirmation_wrapper,
.gform_wrapper {
	background-color: #B9B9B9;
	border: none;
	padding: 5em;
}
.gfield.hidden_label legend,
.gfield.hidden_label label,
.gform_validation_errors,
.gform_heading {
	display: none !important;
}


.gfield .validation_message {
    background-color: transparent !important;
    color: #511e1d !important;
    border: none !important;
    padding: 0 !important;
    margin: -1em 0 0 0;
    margin-block-start: unset !important;
}

textarea,
input {
	font-size: 1.0666em !important;
	font-size: clamp(14px, 0.9vi, 17px) !important;
	border: 1px solid white;
	transition: border-color 0.1s linear, opacity 0.1s linear;
	border-radius: 8px;
	opacity: 0.7;
	padding: 1em !important;
	margin: 0 0 0.5em 0 !important;
	line-height: 1.25em;
}
textarea:focus,
input:focus {
	opacity: 1;
	outline:0;
	border:1px solid #5C5B59;
}
.textarea.large {
	height: calc(16px * 1.0666 * 1.25 * 4 + 2em) !important;
}

.gform_button.button {
	display: block;
	width: 100%;
	background-color: #5C5B59;
	border: none;
	opacity: 1;
	color: white;
	text-align: left;
	font-family: 'HelveticaNowDisplay-Medium';
	transition: background-color 0.1s linear;
}
/* Ipsus red: e40714 */
.gform_button.button:hover {
	background-color: #511e1d;
}


.gform_wrapper .gform_ajax_spinner {
	display: block;
	text-align: center;
	position: absolute;
	margin-top: calc(1em + 1em + 0.5em + 1.25em);
}

/*------------------------------------*\
    IMAGES
\*------------------------------------*/



/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

@font-face {
    font-family: 'HelveticaNowDisplay-Medium';
    src: url('fonts/helveticanowdisplay-medium.eot') format('embedded-opentype'),
         url('fonts/helveticanowdisplay-medium.woff2') format('woff2'),
         url('fonts/helveticanowdisplay-medium.woff') format('woff'),
         url('fonts/helveticanowdisplay-medium.ttf') format('truetype'),
         url('fonts/helveticanowdisplay-medium.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'HelveticaNowDisplay-Regular';
    src: url('fonts/helveticanowdisplay-regular.eot') format('embedded-opentype'),
         url('fonts/helveticanowdisplay-regular.woff2') format('woff2'),
         url('fonts/helveticanowdisplay-regular.woff') format('woff'),
         url('fonts/helveticanowdisplay-regular.ttf') format('truetype'),
         url('fonts/helveticanowdisplay-regular.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

h1 {
	font-family: 'HelveticaNowDisplay-Medium';
	margin: 0 0 0 -1rem;
	font-size: 12.5em;
	font-size: clamp(130px, 10.5vi, 200px);
	line-height: 0.85em;
	letter-spacing: -0.02em;
	color: white;
	font-weight: normal;
}
h2 {
	font-family: 'HelveticaNowDisplay-Medium';
	margin: 0 0 0 0;
	font-size: 0.75em;
	line-height: 1.0em;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.3;
	font-weight: normal;
}
h3 {
	font-family: 'HelveticaNowDisplay-Medium';
	margin: 0 0 0 0;
	font-size: 1.2em;
	line-height: 1.4em;
	color: #A3A19D;

	font-weight: normal;
}
p {
	font-size: clamp(12px, 0.8333vi, 16px);
	margin: 0 0 0 0;
}
main p a {
	color: #A3A19D;
}
small {
	font-family: 'HelveticaNowDisplay-Medium';
	margin: 0 0 0 0;
	font-size: 0.75em;
	line-height: 1.0em;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.3;
	font-weight: normal;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (max-width:1024px) {

	#json {
		width: 100px;
		height: 100px;
		transform: translate(0%, 0%);
	}


	main {
		display: block;
	}
	.page-template-template-demo main {
		display: flex;
	}
	.nav {
		display: none;
	}
	section {
		margin: 0 0 10em 0;
	}
	.sections {
		padding: 0 0 0 0;
	}
	.sections section:first-of-type {
		margin-top: 5em;
	}
	.sections section:last-of-type {
		margin-bottom: 5em;
	}
	.gform_confirmation_wrapper,
	.gform_wrapper {
        padding: 5vi;
	}

	.ginput_complex {
		margin-bottom: 0 !important;
	}
	.ginput_complex span:first-of-type {
		margin-bottom: 1em !important;
	}
	.ginput_complex span:last-of-type {
		margin-bottom: 0 !important;
	}
	
	article {
		text-align: left;
		padding: 0 0 calc(5em + 5% + 1em + 5%) 0;
	}
	article .logo {
		display: none;
	}
	
	textarea,
	input {
		margin-bottom: 0 !important;
	}

	h1 {
		font-size: clamp(75px, 25vi, 100px);
		margin-left: -0.5rem;
	}
	.title h1 {
		margin-top: calc(100px - 10%);
	}

	.form-title {
		font-size: clamp(40px, 12.5vi, 50px);
	}

	.footer {
		position: absolute;
		bottom: 0;
		width: 100vw;
		left: -5vw;
		background-color: #5C5B59;
		color: white;
		text-align: center;
		padding: 5%;
	}

	.content p,
	.content h3 {
		color: #959191;
		font-size: clamp(16px, 5vi, 18px);
	}


}

@media only screen and (min-width:320px) {

}
@media only screen and (min-width:480px) {

}
@media only screen and (min-width:768px) {

}
@media only screen and (min-width:1024px) {

}
@media only screen and (min-width:1140px) {

}
@media only screen and (min-width:1280px) {

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	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:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	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;
	}
}
