:root {
	--primary-colour-white: #fff;
	--primary-colour-black: #2b2d42;
	--primary-colour-red: #d91c32;
	--hover-colour-red: #a71223;
}

* {
	padding: 0;
	margin: 0;
	list-style-type: none;
	text-decoration: none;
	font-family: Open Sans;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--primary-colour-white);
	color: var(--primary-colour-black);
	font-family: open sans;
}

.scroll-down {
	position: absolute;
	bottom: 5vh;
	width: 100%;
	left: 0;
	display: flex;
	justify-content: center;
	z-index: 10;
	font-size: 32px;
}

.bounce {
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-20px);
	}
	60% {
		transform: translateY(-10px);
	}
}
.t-card {
	min-height: 100vh;
	width: 100%;
	position: relative;
	padding-bottom: 200px;
}
.t-card .card-inner {
	width: 100%;
	/* max-width: 70rem; */
	margin: auto;
	padding: 2rem 4rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.t-title {
	font-family: purista-web;
	text-transform: uppercase;
    font-size: clamp(32px, 4vw, 62px);
    letter-spacing: 2px;
	font-weight: 600;
	margin: 2rem 0 4rem;
}
.t-title:has(+ .t-subtitle) {
    margin-bottom: 0;
}
.t-subtitle {
    font-size: clamp(16px, 2vw, 32px);
	font-weight: 500;
}

.cta {
	background: var(--primary-colour-red);
	color: var(--primary-colour-white);
	padding: 0.5em 1em;
	text-transform: uppercase;
	font-weight: 700;
	font-size: clamp(16px, 2vw, 22px);
	display: inline-block;
	border-radius: 6px;
	cursor: pointer;
	border: none;
	font-family: purista-web;
	margin-top: 1em;
}
.cta.white {
	background: var(--primary-colour-white);
	color: var(--primary-colour-red);
}
.cta:hover {
	background: var(--hover-colour-red);
	color: var(--primary-colour-white);
}

.splash-triangle {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	transform: rotate(180deg);
}

.splash-triangle svg {
	position: relative;
	display: block;
	width: calc(100% + 1.3px);
	height: 150px;
}

.splash-triangle.white .shape-fill {
	fill: var(--primary-colour-white);
}
.splash-triangle.blue .shape-fill {
	fill: #2b2d42;
}
.splash-triangle.red .shape-fill {
	fill: var(--primary-colour-red);
}

.main-header {
	position: absolute;
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 1rem 2rem;
}
.main-header .main-header-logo {
	position: absolute;
	top: 0;
	left: 2rem;
	z-index: 10;
}
.main-header .main-header-logo img {
	width: clamp(75px, 9vw, 200px);
}
.main-header .main-nav {
	position: fixed;
	z-index: 1000;
}
.main-header .main-nav .main-nav-layer {
	display: flex;
	grid-area: menu;
}
.main-header .main-nav .main-nav-layer li a {
	padding: 0.5em 1em;
	font-weight: 700;
	color: var(--primary-colour-white);
	background: var(--primary-colour-red);
	font-family: purista-web;
	text-transform: uppercase;
	margin: 0.25em;
	border-radius: 3px;
	display: flex;
	align-items: center;
	gap: .5em;
	outline: 2px solid #fff;
}
.main-header .main-nav .main-nav-layer li a .social-text {
	font-family: purista-web;
	display: none;
}
.main-header .main-nav .main-nav-layer li a .nav-icon {
	color: var(--primary-colour-white);
}
.main-header .main-nav .main-nav-layer li a:hover {
	background: var(--hover-colour-red);
}
.main-header .main-nav .main-nav-layer .blank-brick {
	padding: 0.5em 1em;
	font-weight: 700;
	color: var(--primary-colour-white);
	background: var(--hover-colour-red);
	margin: 0.25em;
	border-radius: 3px;
	display: flex;
	flex-grow: 1;
	outline: 2px solid #fff;
}
.main-header .main-nav .top-level {
	justify-content: flex-end;
	grid-area: top-level;
}
.main-header .main-nav .middle-level {
	grid-area: mid-level;
}
.mobile-menu-toggle {
	display: none;
}
.mobile-nav-logo {
	display: none;
}
@media screen and (max-width: 767px) {
	.main-header .main-nav {
		display: none;
		padding: 1rem 2rem;
	}
	.main-header .main-nav.open {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset: 0;
		background: #fff;
		z-index: 990;
	}
	.main-header .main-nav.open .mobile-nav-logo {
		display: block;
	}
	.main-header .main-nav.open .mobile-nav-logo img {
		max-width: 55px;
		margin-bottom: 1rem;
	}
	.main-header .main-nav.open .main-nav-layer {
		flex-direction: column;
	}
	.main-header .main-nav.open .main-nav-layer li {
		max-width: 300px;
	}
	.main-header .main-nav .main-nav-layer li a .social-text {
		display: inline;
	}
	.main-header .main-nav .main-nav-layer .blank-brick {
		display: none;
	}
	.mobile-menu-toggle {
		display: flex;
		flex-direction: column;
		gap: 4px;
		align-items: center;
		z-index: 1000;
	}
	.toggle-brick-row {
		display: flex;
		gap: 4px;
	}
	.menu-text {
		font-family: purista-web;
		color: #fff;
		text-transform: uppercase;
		font-size: 14px;
	}
	.menu-text-close {
		color: #d91c32;
		display: none;
	}
	.mobile-menu-toggle .toggle-brick {
		width: 24px;
		height: 8px;
		background-color: #d91c32;
		border-radius: 3px;
		outline: 1px solid #fff;
	}
	.fill-brick {
		background-color: #a71223;
		height: 8px;
		width: 8px;
		display: block;
		border-radius: 3px;
		outline: 1px solid #fff;
	}
}

#splash {
	background-image: url(../images/front.png);
	background-size: cover;
	background-position: top left;
	height: 100vh;
	width: 100%;
	display: flex;
	padding: 0;
}
#splash .card-inner {
	align-items: flex-end;
	justify-content: center;
	margin: initial;
}
#splash .splash-panel {
	width: 100%;
	max-width: 65%;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}
#splash .card-inner .intro-text {
	color: #fff;
	text-align: right;
	width: 100%;
	font-weight: 300;
	text-shadow: 1px 1px 5px #000;
}
@media screen and (max-width: 767px) {
	.t-card .card-inner {
		padding: .6rem 1.2rem;
	}
	#splash .splash-panel {
		max-width: 100%;
		justify-content: center;
	}
	#splash .card-inner .intro-text {
		text-align: center;
	}
}
#splash .card-inner .intro-text.intro {
	font-family: open sans;
	font-size: 24px;
	line-height: 1;
	margin: 0;
}
#splash .card-inner .intro-text.title {
	font-family: purista-web;
	font-weight: 600;
	font-size: clamp(32px, 4vw, 62px);
	text-transform: uppercase;
	letter-spacing: 2px;
}
#splash .card-inner .intro-text.subtitle {
	font-family: Open Sans;
	font-size: clamp(16px, 2vw, 32px);
	font-weight: 500;
	width: 100%;
	margin: 1rem 0;
}
#splash .scroll-down a {
	transform: rotate(-45deg);
	color: var(--primary-colour-red);
}
#splash .scroll-down a:hover {
	color: var(--hover-colour-red);
}
.experience-carousel {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr) );
	gap: 1rem;
	align-items: center;
	padding: 0 1rem;
}
.experience-logo {
	width: 100%;
	filter: grayscale();
}
.experience-logo:hover {
	filter: initial;
}

#projects {
	background-color: var(--primary-colour-red);
}
#projects .t-title {
	color: #fff;
}

.main-footer {
	position: relative;
	background: var(--primary-colour-black);
}
.main-footer .footer-inner {
	margin: auto;
	display: grid;
	grid-template-areas:
	    "title title"
	    "contact map"
    ;
    gap: 1em;
    grid-template-columns: 1fr 1.5fr;
}
.main-footer .footer-inner .footer-title {
	color: var(--primary-colour-white);
	width: 100%;
	grid-area: title;
}
.main-footer .footer-inner .contact-section {
    grid-area: contact;
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.main-footer .footer-inner .map-section {
    grid-area: map;
}
.main-footer .footer-inner .map-section iframe {
    border: 2px solid #fff;   
}
.main-footer .footer-inner .contact-form.email {
	display: flex;
	flex-wrap: wrap;
	background: var(--primary-colour-white);
	padding: 1em;
	border-radius: 6px;
	width: 50%;
}
.main-footer .footer-inner .contact-form.email label {
	width: 100%;
	font-size: 18px;
	color: var(--primary-colour-black);
	margin-bottom: 0.2em;
	font-weight: 500;
}
.main-footer .footer-inner .contact-form.email input {
	width: 100%;
	margin-bottom: 0.5em;
	border-radius: 6px;
	border: 1px solid #ddd;
	min-height: 40px;
	padding: 0.5em;
	font-size: 18px;
}
.main-footer .footer-inner .contact-form.email textarea {
	width: 100%;
	margin-bottom: 0.5em;
	border-radius: 6px;
	border: 1px solid #ddd;
	min-height: 100px;
	padding: 0.5em;
	font-size: 18px;
}

.main-footer .footer-subtitle {
	color: var(--primary-colour-black);
}
.main-footer .contact-block {
	display: flex;
	align-items: center;
	border: 2px solid #fff;
	background: #fff;
	width: 100%;
}
.main-footer .contact-block-icon {
	background: var(--primary-colour-red);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 75px;
	width: 75px;
	aspect-ratio: 1/1;
	margin-right: 1rem;
	color: #fff;
	font-size: 32px;
}
.main-footer .contact-block-details a,
.main-footer .contact-block-details p {
	color: var(--primary-colour-red);
	font-weight: 600;
	font-size: clamp(14px, 2vw, 20px);
}
.main-footer .contact-block-details a:hover {
	color: var(--hover-colour-red);
}
.main-footer .social-nav {
	display: flex;
	align-items: center;
	gap: 1em;
}
.main-footer .social-nav p a {
	font-size: 32px;
}
@media screen and (max-width: 767px) {
    .main-footer .footer-inner {
    	grid-template-areas:
    	    "title"
    	    "contact"
    	    "map"
        ;
        grid-template-columns: 1fr;
    }
}

.experience-panel {
	display: flex;
	min-height: 50vh;
}
.experience-panel .card-inner {
	width: 50%;
}
.experience-panel .t-title-we-are {
	font-size: clamp(12px, 2vw, 16px);
	font-style: italic;
}
.experience-panel .t-title {
	color: #d91c32;
	line-height: 1;
	display: flex;
	align-items: center;
	gap: 1rem;
}
.experience-panel .t-title .icon {
	font-size: 25px;
	color: #2b2d42;
}
.experience-panel .experience-image {
	width: 50%;
}
.experience-panel .experience-image:has(.right-image) {
	display: flex;
	justify-content: flex-end;
}
.experience-panel .experience-image .left-image {
	max-width: 100%;
	display: block;
}
.experience-panel .experience-image .right-image {
	max-width: 100%;
	display: block;
}
.experience-panel .nhbc-logo {
	display: block;
	max-width: 150px;
}
.experience-panel .t-desc {
	margin: 1rem 0;
}
.experience-separator {
	display: none;
}
@media (max-width: 767px) {
	.experience-panel {
		flex-direction: column;
	}
	.experience-panel .card-inner {
		width: 100%;
		order: 1;
		margin-bottom: 2.5rem;
	}
	.experience-panel .experience-image {
		width: 100%;
		order: 0;
		margin-top: 2.5rem;
	}	
	.experience-separator {
		display: block;
		width: 100%;
		max-width: 75%;
		margin: auto;
		height: 4px;
		background-color: #d91c32;
		border-radius: 5px;
		border: 0;
	}
	.experience-panel .experience-image .left-image,
	.experience-panel .experience-image .right-image {
		clip-path: initial;
	}
	.experience-logo {
		filter: initial;
	}
}