/*
 * Onepager layout on top of css/main.css: hero, section rhythm, focus areas,
 * references, managing director, office, contact and the slim footer.
 * Template decorations (grey boxes, dot patterns, oversized background words)
 * are switched off here so the page stays calm.
 */

[data-section] {
	scroll-margin-top: 90px;
}

picture {
	display: block;
}

/* Logo as WebP where image-set() is understood; main.css keeps the PNG for the rest. */
.head .head2 > .inner .logo {
	background-image: image-set(url(../Images/logo.webp) type("image/webp"), url(../Images/logo.png) type("image/png"));
}

/* ---------- switch off template decorations ---------- */

#subhead #subhead2 {
	max-height: none;
}

#subhead #subhead2::before,
.site .allcont::before,
.site .allcont .cont::before,
.foot::before {
	content: none;
}

.site .allcont {
	padding-top: 0;
}

.site .allcont .cont > div:last-child {
	margin-bottom: 0;
}

/* ---------- hero ---------- */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 680px;
	overflow: hidden;
	background: #252525;
}

.hero__image,
.hero__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hero__image img {
	display: block;
	object-fit: cover;
}

.hero__image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.78) 100%);
}

.hero__text {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 140px 0 80px;
	color: #fff;
}

.hero__text > .inner {
	width: 92%;
	max-width: 1280px;
	margin: 0 auto;
}

.hero__text h1 {
	color: #fff;
	max-width: 15em;
	font-size: 54px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero__text p {
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
	font-size: 19px;
	max-width: 32em;
}

/* ---------- section rhythm ---------- */

.section {
	padding: 140px 0;
}

.section--band {
	background: #F2F2F2;
}

.section__head {
	max-width: 760px;
	margin-bottom: 70px;
}

.section__kicker {
	display: block;
	margin-bottom: 18px;
	font-family: "Inter", Verdana, Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #005AA4;
}

.section h2 {
	font-size: 46px;
	line-height: 115%;
}

.section__lead {
	font-size: 19px;
	line-height: 32px;
	max-width: 640px;
}

.section p {
	margin: 0;
}

.section p + p {
	margin-top: 18px;
}

/* ---------- focus areas ---------- */

.focus__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 60px 50px;
}

.focus__item {
	padding-top: 28px;
	border-top: 2px solid #252525;
}

.focus__item h3 {
	font-size: 26px;
	margin-bottom: 14px;
}

/* ---------- about ---------- */

.about__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 60px 90px;
	align-items: start;
}

.about__grid .section__head {
	margin-bottom: 0;
}

.about__text p {
	font-size: 18px;
	line-height: 32px;
}

.about__text p:first-child {
	font-size: 23px;
	line-height: 38px;
	color: #252525;
}

/* ---------- references ---------- */

.references__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px 50px;
}

.references__item {
	margin: 0;
}

.references__link {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #F2F2F2;
}

.references__link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.references__item:hover img {
	transform: scale(1.03);
}

.references__item figcaption {
	padding-top: 24px;
	cursor: pointer;
}

.references__item h3 {
	font-size: 23px;
}

.references__location {
	font-weight: 400;
	color: #6D6D6D;
}

.references__item figcaption p {
	margin-top: 6px;
}

.references__count {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 16px;
	border: 0;
	font-family: "Inter", Verdana, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 100%;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	background: #252525;
	cursor: pointer;
	transition: background-color 0.3s ease-in-out;
}

.references__item:hover .references__count,
.references__count:hover,
.references__count:focus-visible {
	background-color: #005AA4;
	color: #fff;
}

.references__item .gallery-links {
	display: none;
}

/* ---------- managing director ---------- */

.person {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 60px 90px;
	align-items: start;
}

.person .section__head {
	margin-bottom: 0;
}

.person__text p {
	font-size: 18px;
	line-height: 32px;
}

/* ---------- office ---------- */

.office__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 50px;
	align-items: end;
}

.office__text {
	padding-bottom: 30px;
}

.office__text h2 {
	font-size: 40px;
}

.office__text p {
	padding-top: 24px;
}

.office__image {
	margin: 0;
}

.office__image img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- contact ---------- */

.contact {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 40px 90px;
	align-items: start;
}

.contact .section__head {
	margin-bottom: 0;
}

.contact__lines {
	line-height: 36px;
}

.contact__lines a {
	font-family: "Inter", Verdana, Arial, sans-serif;
	font-size: 19px;
	font-weight: 700;
	color: #252525;
}

.contact__lines a:hover {
	color: #005AA4;
}

.contact__fax {
	font-size: 15px;
}

/* ---------- footer ---------- */

.foot {
	padding: 60px 0 40px;
	border-top: 1px solid #E5E5E5;
}

.foot__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 30px 60px;
}

.foot__contact p {
	margin: 0;
}

.foot__lines {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 40px;
	margin-top: 10px;
}

.foot__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

.foot__logos img {
	display: block;
	height: 44px;
	width: auto;
}

.foot .foot__bottom {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #E5E5E5;
}

/* ---------- responsive ---------- */

@media all and (max-width: 1025px) {
	.hero {
		min-height: 560px;
	}

	.hero__text h1 {
		font-size: 44px;
	}

	.section {
		padding: 100px 0;
	}

	.section h2 {
		font-size: 38px;
	}

	.office__text h2 {
		font-size: 32px;
	}

	.about__grid,
	.person,
	.contact {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.office__grid {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.office__text {
		grid-column: 1 / -1;
		padding-bottom: 0;
	}
}

@media all and (max-width: 768px) {
	.hero {
		min-height: 480px;
	}

	.hero__text {
		padding: 100px 0 50px;
	}

	.hero__text h1 {
		font-size: 36px;
	}

	.hero__text p {
		font-size: 17px;
	}

	.section {
		padding: 70px 0;
	}

	.section__head {
		margin-bottom: 40px;
	}

	.section h2 {
		font-size: 32px;
	}

	.focus__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.references__grid {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.about__text p:first-child {
		font-size: 19px;
		line-height: 32px;
	}
}

@media all and (max-width: 470px) {
	.hero {
		min-height: 420px;
	}

	.hero__text h1 {
		font-size: 30px;
	}

	.hero__text p {
		font-size: 16px;
		line-height: 26px;
	}

	.section h2 {
		font-size: 28px;
	}

	.office__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.foot__top {
		gap: 24px;
	}
}
