/*
	Theme Name: Join
	Theme URI: https://wpdedicated.uk
	Description: Hand Crafted theme
	Version: 1.0
	Author: Ben Kitching
	Author URI: https://benkitching.uk
	Tags: Blank, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

:root {
  --flashman: #BADAD8;
  --cloud: #E3F0EF;
  --black: #383838;
  --gray: #F0F2EE;
  --light-gray: #c7c8c6;
  --thistle: #dcd0fa;
  --honeydew: #c0e9cd;
  --offwhite: #f9faf8;
  --mintcream: #EDF7EF;
  --seagreen: #5ECC95;
  --ghostwhite: #F5F1FD;
  --bisque: #EED7BE;
  --linen: #F8EFE5;
  --rapeseed: #f6f06c;
  --blitz: #fdfadc;
}

/* 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 {
	font-size:1vw;
	margin:0;
	padding:0;
}
@media (min-width:1921px) {
	html {
		font-size: 19px;
	}
	.home #page-cover, #page-cover {
		height: 40rem !important;
	}
}
body {
	font: 400 1rem/1.2 'DM Sans', Arial, sans-serif;
	color: #000;
	margin: 0;
	padding: 0;
	max-width: 100vw;
	overflow-x: clip;
}
body.loading {
	overflow: hidden;
}

#header, .footer, #page-header, #page-cover, #page-content {
	max-width: 1920px;
	margin-left:auto;
	margin-right: auto;
}
#loader {
	background-color:#fff;
	width:100vw;
	height:100vh;
	position:absolute;
	top:0;
	left:0;
	z-index:9999999;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
img {
	max-width:100%;
	vertical-align:bottom;
}

/*------------------------------------*\
    LINKS
\*------------------------------------*/

a {
	color:inherit;
	text-decoration:underline;
	transition:0.5s all;
}
a:hover {
	text-decoration:none;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}

a.no-decoration {
	text-decoration: none;
}

a.btn, span.btn {
	border: 1px solid #000;
	border-radius: 2rem;
	padding: 0.5rem 2rem;
	height: max-content;
	text-decoration:none;
}
a.btn:hover, .filter a.btn.active {
	background-color: #000;
	color: #fff;
}
a.btn.no-hover {
	background-color: transparent;
	color: #000;
}

a.btn.square {
	border-radius: 0;
}

a.btn.thistle {
	background-color: var(--thistle);
	border-color: var(--thistle);
}
a.btn.bisque {
	background-color: var(--bisque);
	border-color: var(--bisque);
}
a.btn.thistle:hover, a.btn.bisque:hover {
	background-color: transparent;
	border-color: #000;
	color: #000;
}

a.btn.white {
	background-color: #000;
	border-color: #fff;
	color: #fff;
}
a.btn.white:hover {
	background-color: #fff;
	color: #000;
}

.visually-hidden { 
    border: 0;
    padding: 0;
    margin: 0;
    position: absolute !important;
    height: 1px; 
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

.filter {
	padding: 3rem 0;
	position: relative;
	margin-bottom: 2rem;
	position: sticky;
	top: 8rem;
	z-index: 2;
}
.filter .btn {
	margin-right: 1rem;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

.block {
	width:100%;
	position: relative;
}

.wrapper {
	max-width:1824px;
	width:95%;
	margin:0 auto;
	position:relative;
}
.logo {
	height: 4rem;
	margin-right: 1rem;
}
.logo img {
	height: 100%;
	width: auto;
}

main {
	padding-top: 6rem;
	min-height: 100vh;
}
.page-template-default main {
	padding-top: 20rem;
}
#header-upper {
	padding: 2rem 0;
	z-index: 5;
	position: fixed;
	width: 100%;
	max-width: 1920px;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
}

#header-upper .wrapper {
	display: flex;
	align-items: center;
}

#header-lower {
	height: 6rem;
	width: 100%;
	z-index: 1;
	position: fixed;
	width: 100%;
	top: 8rem;
	left: 50%;
	transform: translateX(-50%);
	max-width: 1920px;
}

.nav {
	margin-left: auto;
}
.nav-menu {
	display: flex;
	align-items: center;
}
.nav ul {
	list-style-type: none;
	display: flex;
}
.nav a {
	text-decoration: none;
	padding: 0.5rem 1rem;
	border-radius: 3rem;
	background-color: #fff;
	color: var(--black);
	margin-right: 0.5rem;
	border: 1px solid #fff;
}

.nav li a {
	opacity: 0;
}

.nav a:hover, .nav a.active {
	border-color: var(--black);
	background-color: transparent;
}

.home .nav a {
	background-color: #fff;
	color: #000;
	border-color: #fff;
}

.nav a.active:hover {
	border-color: #fff;
	background-color: #fff;
}

.home .nav a.active:hover {
	background-color: transparent;
	color: #fff;
}

.nav a#nav-toggle, a.toggle-switch {
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2.4rem;
	height: 2.4rem;
	margin-right: 0;
}

a.toggle-switch {
	border-radius: 50%;
}

.nav a#nav-toggle svg, .toggle-switch svg {
	width: 1.2rem;
	height: auto;
}

.nav-open #nav-toggle, .open .toggle-switch {
	transform: rotate(45deg);
}

#page-header {
	padding: 4rem 0;
	position: fixed;
	width: 100%;
	top: 14rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}
#page-header h1 {
	font-size: 16rem;
	font-weight: 400;
	letter-spacing: -2pt;
	margin: 0;
}
#page-header h1 svg {
	width: auto;
	height: 20rem;
}

#page-cover {
	position: sticky;
	height: 42rem;
	top: calc(8rem + 1px);
	margin-top: 18rem;
	z-index: 2;
}
.single #page-cover {
	margin-top: 30rem;
}
#page-cover:before, .filter:before {
	content: '';
	width: 95%;
	max-width: 1824px;
	position: absolute;
	top:0;
	left: 50%;
	transform: translateX(-50%);
	height: 0.5px;
	background-color: var(--black);
	opacity: 0.4;
}
.filter:before {
	top: unset;
	bottom: 0;
}
#page-content {
	position: relative;
	z-index: 2;
	margin-top: -38rem;
	padding-bottom: 4rem;
}

.footer {
	background-color: #fff;
	position: relative;
	z-index: 2;
}
#footer-signup {
	padding-top: 4rem;
	padding-bottom: 8rem;
}
#footer-bottom .logo {
	margin-bottom: 2rem;
}
#imprint {
	padding: 0.5rem 0;
}
#imprint a {
	margin-left: 4rem;
}
#signup-form {
	margin-top: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#signup-form input[type=email] {
	border: none;
	outline: none;
	font-size: 3.2rem;
	font-weight: 700;
	padding-bottom: 0.5rem;
	flex-grow: 1;
	color: var(--light-gray);
}
#signup-form input::placeholder {
	color: var(--light-gray);
}

.social {
	margin-top: 1.5rem;
	text-align: right;
}
.social-profile img, .social-profile svg {
	width: 2.5rem;
	height: auto;
	margin-left: 0.5rem;
}

.social-profile svg path, .team-meta a svg path {
	transform: 0.5s fill;
}
.social-profile:hover svg path, .team-meta a:hover svg path {
	fill: #fff;
}
.social-profile:hover svg path.d, .team-meta a:hover svg path.d {
	fill: #000;
}

/*------------------------------------*\
    Colors
\*------------------------------------*/

.text-white {
	color: #fff;
}
.text-black {
	color: var(--black);
}
.text-upper {
	text-transform: uppercase;
}

.bg-clear {
	background-color: transparent;
}
.bg-white {
	background-color: #fff;
}
.bg-offwhite {
	background-color: var(--offwhite);
}
.bg-black {
	background-color: #000;
}
.bg-gray {
	background-color: var(--gray);
}
.bg-flashman {
	background-color: var(--flashman);
}
.bg-cloud {
	background-color: var(--cloud);
}
.bg-honeydew {
	background-color: var(--honeydew);
}
.bg-mintcream {
	background-color: var(--mintcream);
}
.bg-seagreen {
	background-color: var(--seagreen);
}
.bg-thistle {
	background-color: var(--thistle);
}
.bg-ghostwhite {
	background-color: var(--ghostwhite);
}
.bg-bisque {
	background-color: var(--bisque);
}
.bg-linen {
	background-color: var(--linen);
}
.bg-rapeseed {
	background-color: var(--rapeseed);
}
.bg-blitz {
	background-color: var(--blitz);
}
.esg .bg-mintcream {
	background-color: #fcf5bc;
}

/*------------------------------------*\
	MISC
\*------------------------------------*/

.w60 {
	width: 60%;
}

.circle {
	width: 0.75rem;
	height: 0.75rem;
	margin-right: 0.25rem;
	display: inline-block;
	border-radius: 50%;
}
.border {
	position: relative;
}
.border:before {
	content: '';
	width: calc(100% - 2rem);
	position: absolute;
	left: 1rem;
	background-color: var(--black);
	height: 1px;
	opacity: 0.4;
}
.border.top:before {
	top: 0;
}
.border.bottom:before {
	bottom: 0;
}
.border.full:before {
	width: 100%;
	left: 0;
}

.square-image {
	width: 100%;
	padding-bottom: 100%;
	position: relative;
}
.landscape-image {
	width: 100%;
	padding-bottom: 60%;
	position: relative;
}
.square-image img, .landscape-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

::selection {
	background:var(--black);
	color: var(--cloud);
	text-shadow: none;
}
::-webkit-selection {
	background:var(--black);
	color: var(--cloud);
	text-shadow: none;
}
::-moz-selection {
	background:var(--black);
	color: var(--cloud);
	text-shadow: none;
}

input::placholder {
	color: #BCBCBC;
}

/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

p {
	margin: 1rem 0;
}
h1, .h1, h2, .h2, h3, .h3, h4, h5, h6 {
	margin:1rem 0;
	line-height: 1;
	font-weight: 400;
}

h1, .h1 {
	font-size: 5.5rem;
}

h2, .h2 {
	font-size: 3.6rem;
}

h3, .h3 {
	font-size: 2rem;
}
h4, .h4 {
	font-size: 1.5rem;
}
h5, .h5 {
	font-size: 1.2rem;
}

.bold {
	font-weight: 700;
}

.text-right {
	text-align: right;
}
.text-center {
	text-align: center;
}

.smaller-text {
	font-size: 0.8rem;
}

@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dm-sans.ttf') format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dm-sans-italic.ttf') format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
}

/*------------------------------------*\
    Spacing and Grid
\*------------------------------------*/

.w100 {
	width: 100%;
}
.w80 {
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}
img.w100, img.w80 {
	height: auto;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -1rem;
	margin-right: -1rem;
}
.row.nowrap {
	flex-wrap: nowrap;
}

.col {
	padding: 1rem;
	position: relative;
}

.col.half {
	width: 50%
}
.col.third {
	width: 33.33%;
}
.col.sixty {
	width: 60%;
}
.col.forty {
	width: 40%;
}
.col.quarter {
	width: 25%;
}
.col.fifth {
	width: 20%;
	min-width: 20%;
}

.py0 {
	padding-top: 0;
	padding-bottom: 0;
}
.py2 {
	padding-top: 2rem;
	padding-bottom: 2rem;
}
.py4 {
	padding-top: 4rem;
	padding-bottom: 4rem;
}
.pt4 {
	padding-top: 4rem;
}

/*------------------------------------*\
    OVERRIDES
\*------------------------------------*/

.esg #page-header h1 {
	font-size: 12rem;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

.sfs {
	display: none !important;
}

@media (orientation:portrait) {

	html {
		font-size: 3.2vw;
	}

	main {
		transition: 1s filter;
	}

	.page-template-default main {
		padding-top: 8rem;
	}
	.filtered main, .filtered .footer, .filtered #header-lower {
		filter: brightness(0.2);
	}

	.hfs {
		display: none !important;
	}
	.sfs {
		display: block !important;
	}

	#header-upper {
		height: 8rem;
		pointer-events: none;
	}

	#header-upper .wrapper {
		display: block;
	}

	#header-upper .logo {
		pointer-events: all;
	}

	#nav-toggle {
		position: fixed;
		top: 2.5rem;
		right: 1.8rem;
		width: 2.8rem;
		height: 2.8rem;
		pointer-events: all;
	}

	.nav a#nav-toggle svg, .toggle-switch svg {
	    width: 1.6rem;
	}

	.nav a.active {
		border-color: #fff;
		color: #fff;
	}

	.nav-menu ul {
		flex-wrap: wrap;
		padding: 0;
		margin-top: 6rem;
	}

	.nav-menu li {
	    width: 100%;
	    text-align: center;
	    height: 4rem;
	}

	.nav-open #header-upper .wrapper {
		pointer-events: all;
	}

	h3, .h3 {
		font-size: 1.8rem;
	}

	#page-content {
		margin-top: -50rem;
	}

	.row {
		margin-left: 0;
		margin-right: 0;
	}
	.row .col {
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	#footer-signup .col.border:before {
		display: none;
	}
	#footer-signup p.h2 {
		font-size: 1.6rem;
		margin-bottom: 0;
	}

	#signup-form {
		flex-wrap: wrap;
	}
	#signup-form input[type=email] {
		font-size: 1.4rem;
		padding-bottom: 1rem;
		width: 100%;
		border-bottom: 1px solid var(--light-gray);
	}

	#signup-form a.btn {
		display: block;
		margin: 2rem auto 0;
	}

	#footer-bottom .logo {
	    height: 3rem;
	}

	#footer-bottom .col.half.border.top {
		padding-top: 0;
		padding-bottom: 0;
	}
	#footer-bottom .row:nth-child(2) {
		border-top: 1px solid var(--light-gray);
	}
	#footer-bottom .col.half.border.top:before {
		display: none;
	}
	#footer-bottom .col.half.border.top:first-child {
		width: 85%;
	}
	#footer-bottom .col.half.border.top:last-child {
		width: 15%;
	}
	.social-profile img, .social-profile svg {
		width: 3rem;
	}

	#imprint .text-right {
		text-align: left;
	}
	#imprint .text-right a {
		margin-left: 0;
		margin-right: 2rem;
	}

	#page-header {
		padding: 1rem 0;
		height: 12rem;
	}
	#page-header h1 {
		font-size: 6rem;
		margin-top: 1rem;

	}
	#page-header h1 svg {
		height: 8rem;
	}
	#page-cover {
		margin-top: 24rem;
	}
	.block.intro {
		font-size: 1.4rem;
		padding-bottom: 2rem;
	}
	.block.intro .w60 {
		width: 90%;
	}
	a.btn, span.btn {
		padding: 0.5rem 1rem;
	}
	.filter .btn {
		margin-right: 0.5rem;
	}

	.portfolio-strip .col.sixty div.h4 {
		padding-right: 0;
		font-size: 1.2rem;
		margin-bottom: 2rem;
	}
	.portfolio-cats.sfs {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
	}
	.portfolio-cats.sfs .btn {
		padding: 0.25rem 0.5rem;
		margin-right: 0.5rem;
	}
	.portfolio-cats.sfs p {
		width: 100%;
	}
	.portfolio-strip .col.sixty .row {
		margin-top: 2rem;
	}
	.portfolio-strip .col.sixty .row .col.fifth {
		width: 50%;
		padding-left: 0;
		padding-right: 0;
		margin-bottom: 1rem;
	}
	#portfolios-wrapper .portfolio-strip .btn {
		margin-left: 0;
	}
	.portfolio-strip .col.portfolio-strip-img {
		padding-left: 10rem;
		top: -4.8rem;
		margin-bottom: -3.8rem;
	}

	.team-inner {
		padding-bottom: 0;
		margin-bottom: 0;
	}
	.team-bottom {
		position: static;
		height: auto;
	}

	.contacts .smaller-text {
		font-size: 1rem;
	}
	.contacts .office-location {
		font-size: 1.2rem;
	}
	.contacts a.btn {
		width: max-content;
		margin: 2rem auto;
	}

	.accordion-title {
		padding-bottom: 1rem;
	}
	.accordion-title .toggle-switch {
		width: 3rem;
		height: 3rem;
		right: 1rem;
	}
	.accordion-content-inner {
		margin-left: 1rem;
		width: 90%;
		font-size: 1rem;
	}
	.accordion-content-inner p {
		padding: 1rem 0;
	}

	.esg #page-header h1 {
		font-size: 4rem;
	}
	.esg .wysiwyg h1 {
		font-size: 3rem;
	}
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.block-editor-block-list__block {
	width: 80%;
	max-width: 1440px;
}

.block-editor-block-list__block.acf-block-preview {
	zoom:0.5;
}
html .mceContentBody {
    font-size: 18px;
    padding:10px;
}
.editor-styles-wrapper a {
	text-decoration: none;
}
.editor-styles-wrapper input[type=text], .editor-styles-wrapper input[type=textarea], .editor-styles-wrapper input[type=email], .editor-styles-wrapper input[type=password] {
	border-radius: 4px;
	border-color:#8c8f94;
}

.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;
}