:root {

	/* Branding colours */
	--color-primary					: rgb(255, 100, 0) ;
	--color-secondary				: rgb(33, 48, 59) ;
	--color-neutral-light			: rgb(233, 233, 233);
	--color-neutral-mid				: rgb(68, 84, 103);
	--color-primary-light			: rgba(255, 111, 0, 0.1);

	/* Typography colours */
	--color-text-heading			: var(--color-secondary) ;
	--color-text-body				: color-mix( in srgb, var(--color-text-heading), white 15%) ;
	--color-text-heading-light		: #ffffff ;
	--color-text-body-light			: #f1f1f1 ;

	/* Buttons */
	--button-primary				: var(--color-primary);
	--button-primary-text			: white;
	--button-primary-hover			: color-mix(in srgb, var(--color-primary), black 25%);
	--button-primary-hover-text		: white;
	--button-secondary				: transparent;
	--button-secondary-text			: color-mix(in srgb, var(--color-primary), var(--color-secondary) 25%);
	--button-secondary-hover		: rgb(167, 85, 35);
	--button-secondary-hover-text	: white;

}

/* * {outline: solid 1px red;} */

html {
	scroll-behavior: smooth;
	font-smooth: always;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*	--------------------------------------------------
**	Typography
*/

h1, h2, h3, h4, h5, h6 {
	
	font-weight: 700
}
h1 {
	margin-bottom: 1rem
}
h2 {
	margin-top: 0;
	margin-bottom: 1.25rem;
}
h3 {
	margin-top: 0;
	margin-bottom: 0.625rem;
}
p:not(:last-child) {
	margin-top: 0;
	margin-bottom: 1.5rem;
}
.service-item > p {
	margin-top: 0;
	margin-bottom: 0;
}


/* 	Typography colours  */
h1, h2, h3, h4, h5, h6 {
	color: var(--color-text-heading);
}
h1.text-light, h2.text-light, h3.text-light, h4.text-light, h5.text-light, h6.text-light {
	color: var(--color-text-heading-light);
}
p {
	color: var(--color-text-body);
}
p.text-light {
	color: var(--color-text-body-light);
}


/*  --------------------------------------------------
**	Button Styling
*/	

.button {
	display: inline-block;
	border: 1px solid transparent;
	padding: 0.625rem 1.5rem;
	font-size: 1.25rem;
	border-radius: 5rem;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.15s ease-in, background-color 0.15s ease-in,
		border-color 0.15s ease-in;
	cursor: pointer;
}

.button.primary {
	background-color	: var(--button-primary);
	color				: var(--button-primary-text);
}
.button.primary:hover {
	background-color	: var(--button-primary-hover);
	border-color		: var(--button-primary-hover);
	color				: var(--button-primary-hover-text);
}

.button.secondary {
	background-color	: var(--button-secondary);
	color				: var(--button-secondary-text);
}


.choose-us {
	display: flex;
	margin-block: 3rem;
	margin-inline: auto;
	justify-content: center;
	align-items: center;
	justify-items: center;
	max-width: 720px;
	flex-direction: column;
	row-gap: 1rem;
	position:relative
}
.choose-us > li {
	position: relative;
}
.service-item > h3 {
	margin-top: 0;
	color: var(--color-primary)
}


@media (min-width: 768px) {
	.choose-us > li:first-of-type {
		left: -4rem;
	}
	
	.choose-us > li:last-of-type {
		right: -4rem;
	}
}

.anchor-point {
	position:absolute;
	top:0;
	scroll-margin: 2.5rem;
	/* border: red solid 1px; */
	/* height: 1px; */
}
.button.secondary:hover {
	background-color	: var(--button-secondary-hover);
	color				: var(--button-secondary-hover-text);
}
.button.header {
	margin-left: 1rem;
	background-color	: var(--button-primary-hover);
	color				: var(--button-primary-text);
}
.button.header:hover {
	background-color	: white;
	border-color		: white;
	color				: var(--button-primary-hover);
}




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

.bg-light-primary {
	background-color: var(--color-primary-light)
}

body {
	background: #fafafa;
	font-family: "PT Sans", sans-serif;
}

header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100vw;
	padding: 0;
	background-color: var(--color-primary);
	color: white;
}
header::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	height: 100%;
	width: 100%;
	box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
}
section.services {
	padding: 6rem 0 4rem;
}

section.content-grid {
	row-gap: 6.25rem;
}
section.common {
	border-top: 1px solid color-mix(in srgb, var(--color-secondary), transparent 90%);
	row-gap: 0;

}

h2 {
	font-size: 2.5rem;
}

nav > ul {
	list-style-type: none;
	padding-left: 0;
	display: flex;
}
.main-nav {
	flex-direction: row;
	align-content: baseline;
}

.df {
	/* Stands for dev focus */
	border: solid 1px red;
}

.content-flex {
	display: flex;
	justify-content: space-between;
}

.content-grid {
	--padding-inline: 2rem;
	--content-max-width: 1150px;
	--breakout-max-width: 1280px;

	--breakout-size: calc(
		(var(--breakout-max-width) - var(--content-max-width)) / 2
	);

	display: grid;
	grid-template-columns:
		[full-width-start] minmax(var(--padding-inline), 1fr)
		[breakout-start] minmax(0, var(--breakout-size))
		[content-start] min(
			100% - (var(--padding-inline) * 2),
			var(--content-max-width)
		)
		[content-end] minmax(0, var(--breakout-size))
		[breakout-end] minmax(var(--padding-inline), 1fr)
		[full-width-end];
	row-gap: 2rem;
}
.bg-off-white {
	background-color: var(--color-off-white);
}
.content {
	grid-column: content;
}
.breakout {
	grid-column: breakout;
}
.full-width {
	grid-column: full-width;
	/* background: var(--color-bg-full-width); */
	padding: 3.75rem;
}

.hero-content {
	color: color-mix(in srgb, var(--color-primary), white 80% );
}

.hero-content > h1 {
	color: white;
}
.hero-content > ul,
.hero-content > p {
	color: color-mix(in srgb, var(--color-primary), white 95% );
	transition: color 0.15s ease-in;
	font-size: 1.175rem !important;
}
.hero-content > ul > li:hover,
.hero-content > p:hover {
	color: white;
}

.hero-content > ul {
	padding-left: 1rem;
	font-size: 1.125rem;
}
.hero-content > ul > li {
	margin-bottom: 0.875rem;
	font-weight: 700;
}
.hero-content > p {
	font-size: 1rem;
	line-height: 1.4;
}

.button.secondary.white {
	color: white !important;
}

.bg-primary {
	background-color: var(--color-primary);
}
.text-white {
	color: white;
}
.hero-form > input,
.hero-form > textarea {
	display: block;
	padding: 0.5rem 0.75rem;
	border: 1px solid color-mix(in srgb, var(--color-primary), transparent 80%);
	border-radius: 0.25rem;
	background-color: var(--color-primary-light);
}
.hero-form > input:focus,
.hero-form > textarea:focus,
.hero-form > button:focus {
	outline-color: var(--color-primary);
	outline-offset: 2px;
}

.visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

.image-content > img,
.column-content > img {
	width: 100%;
	max-height: 600px;
	object-fit: cover;
	object-position: center;
	border-radius: 0.875rem;
}

.columns {
	display: grid;
	grid-auto-flow: column;
}
.columns-two {
	grid-template-columns: 1fr 1.25fr;
	align-items: center;
	column-gap: 60px;
}
.columns-two-even {
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	column-gap: 60px;
}
.columns-three {
	grid-template-columns: repeat(3, 1fr);
	column-gap: 40px;
	margin-bottom: 2rem;
}
.columns-four {
	grid-template-columns: repeat(4, 1fr);
	column-gap: 40px;
}
 

.columns-two.invert {
	grid-template-columns: 1.25fr 1fr;
}
.invert > div:first-child {
	order: 2;
}
.columns-center {
	align-self: center;
}
.block {
	display: inline-block;
}
.cta-block {
	background: var(--color-primary-light);
	padding: 40px 40px;
	border-radius: 1rem;
}
.content-services {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.cta-content {
	margin-bottom: 1.8755rem;
	max-width: 75ch;
	margin-inline: auto;
	text-align: center;
}

.bg-footer {
	background: var(--color-primary);
}
.bg-white {
	background: white;
}
.text-declaration {
	font-size: 0.75rem;
	line-height: 0.75rem;
}

footer > div:first-child {
	padding: 3.75rem 0 5rem;
	color: white;
}
.footer-content > h2 {
	color: white;
	font-size: 1.375rem;
	font-weight: 600;
}
.footer-nav > ul {
	flex-direction: column;
}
.footer-nav > ul > li {
	margin-bottom: 0.375rem;
}
.footer-nav > ul > li > a {
	display: block;
	color: #f3f3f3;
	text-decoration: none;
	transition: color 0.15s;
}
.footer-nav > ul > li > a:hover {
	color: white;
}

.hero {
	position: relative;
	min-height: 70svh;
	height: 100%;
	max-height: 75svh;
	background: color-mix(in srgb, var(--color-secondary), transparent 15%);
	border-bottom: 2rem solid var(--color-primary);
	/* box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.8); */
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: url("../img/16473.jpg");
	background-position-x: center;
	background-position-y: calc(50% + 4rem);
	background-repeat: none;
	background-size: cover;
}

.hero .content {
	margin: 81px 0 0;
}

.hero-form-container {
	position: absolute;
	top: -81px;
	bottom: 0;
	right: 0;
	padding: calc(1rem + 81px) 1.875rem 1rem;
	background: white;
	
	/* border-radius: 0.75rem 0.75rem 0 0; */
	display:flex;
	flex-direction: column;
	justify-content: center;
	/* align-items: end; */
}

.hero-form-container > form,
.modal-container > form {
	display: grid;
	row-gap: 0.625rem;
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	list-style-type: none;
	padding: 0;
	margin-bottom: 2rem;
}

.main-nav > ul {
	display: flex;
	flex-direction: row;
	flex-wrap: 0;
	justify-content: end;
	align-items: center;
	column-gap: 4px
}
.nav-item {
	text-decoration: none;
	display: inline-block;
	font-size: 0.875rem;
	color: var(--color-bg-grey);
	font-weight: 400;
	/* text-transform: uppercase; */
	padding: 4px 12px;
	background-color: transparent;
	border-radius: 5rem;
	transition: color 0.10s ease-in, background-color 0.1s ease-in;
}
.nav-item:hover {
	color: var(--color-secondary)
}
.nav-item:active {
	background-color: white;
	color: var(prim);
	/* font-weight: 700; */
}
.company-name {
	display: inline-block;
	margin-left: 1.25rem;
	font-weight: 700;
	font-size: 1.25rem;
}

/* Modal */
.modal {
	position: absolute;
	height: 100svh;
	width: 100svw;
	background: rgba(0, 0, 0, 0.6);
	z-index: 50;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.modal-container {
	position: relative;
	padding: 3rem 1.875rem 3rem;
	background: white;
	border-radius: 0.75rem 0.75rem;
}
.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
}



p,
ul {
	font-size: 1rem;
	line-height: 1.35;
}

.text-body {
	color: var(--color-bg-grey);
}

h1 {
	font-size: 2.5rem;
}

.text-content.dark-text > h2,
.text-content.dark-text > h3 {
	color: var(--color-text-heading);
}
.text-content.dark-text > p {
	color: var(--color-bg-grey);
}

.inner-shadow {
	box-shadow: inset 0 0px 20px color-mix(in srgb, var(--color-secondary), transparent 84%);
}
.text-container {
	max-width: 70ch;
	margin-inline: auto;
}
.service-item {
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: start;
	cursor: default;
	padding: 2.5rem 2rem;
	height: auto;
	align-self: stretch;
	border: solid 1px transparent;
	background-color: rgba(255, 255, 255, 1);
	text-align: left;
	border-radius: 0.25rem;
	transition: border-color 0.15s, color 0.15s, background-color 0.15s, transform 0.25s;
	box-shadow: 0 3px 8px color-mix(in srgb, var(--color-secondary), transparent 80%);
	
}
.service-item:hover {
	border: 2px solid white;
	margin: -1px;
	transform: scale(1.05)
	
}

.service-item-link,
.usp {
	display: block;
	text-align: center;
	color: white;
	text-decoration: none;
	padding: 1rem 1.5rem;
	background-color: var(--color-bg-hover);
	border: 1px solid transparent;
	border-radius: 0.25rem;
	transition: background-color 0.15s ease-in-out, border-color 0.15s;
	box-shadow: 0 3px 12px #33333340;
}
.service-item-link:hover,
.usp:hover {
	border: 2px solid white;
	margin: -1px;
	background-color: var(--color-bg-hover);
}
#contact {
	scroll-margin-top: 8rem;
}
.span-2 {
	grid-column: 2/4;
}
.usp > h2 {
	font-size: 1.25rem;
	line-height: 1.35;
}

/* 
.usp {
	border: 1px solid white;
	text-align: center;
	border-radius: 0.25rem;
	background-color: transparent;
	transition: background-color 0.3s ease-in-out;
	padding: 0.5rem;
}
.usp > h2 {
	font-size: 1.25rem;
	line-height: 1.35;
}
.usp:hover {
	background-color: var(--color-bg-hover);
} */



.footer-content > a {
	display: block;
	margin-bottom: 0.375rem;
	color: white;
	text-decoration: none;
}
.footer-content > a:hover {
	text-decoration: underline;
}
.footer-content > address {
	display: block;
	margin-bottom: 1rem;
	text-decoration: none;
}
.footer-logos > img {
	margin: 0;
}
.flex {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 0.25rem 0;
}
img.accreditations {
	display: inline-block;
	margin-top: 1rem;
	margin-inline: auto;
	margin-bottom: -2rem;
	width: 300px;
	mix-blend-mode: darken;
}
ul {
	padding-left:0;
}


@media (max-width: 960px) {
	.full-width {
		padding: 3.75rem 0;
	}
	
	.service-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.875rem;
	}
	.company-name, .hero-form-container {
		display: none;
	}
	.service-item-link {
		height: 2.5rem;
	}
	.span-2 {
		grid-column: 1;
	}
	.columns {
		grid-auto-flow: row;
	}
	.columns-two,
	.columns-two.invert,
	.columns-two-even,
	.columns-three,
	.columns-four {
		grid-template-columns: 1fr;
		row-gap: 1.5rem;
	}
}
