/* ==========================================================================
   Heading Hero widget  (.aew-page-hero)
   Real CSS pixels, measured on the 1920px wide About page.
   ========================================================================== */

.aew-page-hero {
	--aew-accent: var(--aew-red);   /* control: Brand colour */
	--aew-gutter: 24px;             /* control: Side gap */
	--aew-grid-color: rgba(255, 255, 255, 0.04);
	--aew-grid-size: 100px;
	--aew-sep: #6b6c6c;
	--aew-sep-gap: 14px;

	position: relative;
	box-sizing: border-box;
	min-height: 622px;
	padding: 199px 0 80px;
	overflow: hidden;
	isolation: isolate;
	background-color: #0b0b0c;
	color: #fff;
	font-family: var(--aew-font);
	-webkit-font-smoothing: antialiased;
}

.aew-page-hero *,
.aew-page-hero *::before,
.aew-page-hero *::after {
	box-sizing: border-box;
}

/* ---- Background layers ---- */

.aew-page-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.aew-page-hero__media picture {
	display: block;
	width: 100%;
	height: 100%;
}

.aew-page-hero__bg-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
}

.aew-page-hero__overlay {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(90deg, rgba(6, 6, 7, 0.92) 0%, rgba(6, 6, 7, 0.25) 100%);
}

.aew-page-hero__grid {
	display: none;
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, var(--aew-grid-color) 1px, transparent 1px),
		linear-gradient(to bottom, var(--aew-grid-color) 1px, transparent 1px);
	background-size: var(--aew-grid-size) var(--aew-grid-size);
}

.aew-page-hero--grid .aew-page-hero__grid {
	display: block;
}

.aew-page-hero__bar {
	display: none;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: var(--aew-accent);
	opacity: 0.65;
}

.aew-page-hero--bar .aew-page-hero__bar {
	display: block;
}

/* ---- Content ---- */

.aew-page-hero__inner {
	position: relative;
	width: calc(100% - (var(--aew-gutter) * 2));
	max-width: 1540px;
	margin-inline: auto;
}

/* breadcrumb */
.aew-page-hero__crumbs {
	margin: 0 0 28px;
}

.aew-page-hero__crumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aew-page-hero__crumb {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 1.5px;
	line-height: 1.4;
	text-transform: uppercase;
	color: #a0a1a1;
}

/* separator: a small chevron drawn with borders, not part of the text */
.aew-page-hero__crumb + .aew-page-hero__crumb::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin: 0 var(--aew-sep-gap) 0 calc(var(--aew-sep-gap) - 3px);
	border-top: 1.5px solid var(--aew-sep);
	border-right: 1.5px solid var(--aew-sep);
	transform: rotate(45deg);
}

.aew-page-hero__crumb a {
	color: #a0a1a1;
	text-decoration: none;
	transition: color 0.2s ease;
}

.aew-page-hero__crumb a:hover,
.aew-page-hero__crumb a:focus-visible {
	color: #fff;
}

.aew-page-hero__crumb a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.aew-page-hero__crumb [aria-current] {
	color: var(--aew-accent);
}

.aew-page-hero--crumb-bold .aew-page-hero__crumb [aria-current] {
	font-weight: 700;
}

/* title: extra class so the Elementor kit's global h1–h6 styles don't win */
.aew-page-hero .aew-page-hero__title {
	margin: 0 0 28px;
	padding: 0;
	font-family: inherit;
	font-size: 88px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: normal;
	text-transform: none;
}

.aew-page-hero__title-line,
.aew-page-hero__title-accent {
	display: block;
}

.aew-page-hero__title-line {
	color: #fff;
}

.aew-page-hero__title-accent {
	color: var(--aew-accent);
}

.aew-page-hero .aew-page-hero__subtitle {
	max-width: 900px;
	margin: 0 0 40px;
	font-size: 20px;
	line-height: 1.4;
	color: #bababb;
}

/* short accent line that runs into a thin divider */
.aew-page-hero__rule {
	display: flex;
	align-items: center;
	gap: 20px;
}

.aew-page-hero__accent {
	flex: none;
	display: block;
	width: 80px;
	height: 4px;
	background-color: var(--aew-accent);
}

.aew-page-hero__divider {
	flex: 1 1 auto;
	display: block;
	height: 2px;
	background-color: #303031;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
	.aew-page-hero {
		min-height: 520px;
		padding: 150px 0 64px;
	}

	.aew-page-hero .aew-page-hero__title {
		font-size: 60px;
	}

	.aew-page-hero .aew-page-hero__subtitle {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.aew-page-hero {
		min-height: 0;
		padding: 120px 0 48px;
	}

	.aew-page-hero .aew-page-hero__title {
		font-size: 40px;
	}

	.aew-page-hero .aew-page-hero__subtitle {
		margin-bottom: 28px;
		font-size: 16px;
	}

	.aew-page-hero__crumbs {
		margin-bottom: 20px;
	}

	.aew-page-hero__accent {
		width: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aew-page-hero__crumb a {
		transition: none;
	}
}
