/* ==========================================================================
   Homepage hero banner
   --------------------------------------------------------------------------
   Scoped to ".home_hero" (added to the homepage banner only) so the inner
   page banners (.home_bg_img.inner_bann) keep their existing look.

   Loaded last in css.jsp so it overrides style_sheet.css / bootstrap.
   ========================================================================== */

.home_bg_img.home_hero {
	/* Change --hero-focus to re-frame the photo (e.g. "50% 40%"). */
	--hero-focus: center top;

	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	width: 100%;
	height: auto;
	min-height: 645px;
	overflow: hidden;
	background-color: #10303f; /* shown if the banner image is missing */
	background-repeat: no-repeat;
	background-position: center top;
	background-position: var(--hero-focus);
	-webkit-background-size: cover;
	background-size: cover;
}

/* Header keeps its normal flow position at the top of the banner. */
.home_hero > header {
	position: relative;
	z-index: 3;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
}

/* flex:0 0 auto + auto vertical margins centre the copy in the space that is
   left under the header, without turning .container into a flex item (which
   would clash with Bootstrap's container widths). */
.home_hero .hero_content {
	position: relative;
	z-index: 2;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
	width: 100%;
	margin-top: auto;
	margin-bottom: auto;
	padding: 0 0 60px;
}

.home_hero .inner_text {
	display: block;
	float: none;
	width: 50%;
	max-width: 620px;
	margin: 115px 0 0;
	text-align: left;
}

/* ---- Heading ------------------------------------------------------------ */

.home_hero .ml6 {
	margin: 0 0 15px;
	font-size: 38px; /* fallback for browsers without clamp() */
	font-size: clamp(22px, 4.6vw, 38px);
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.home_hero .ml6 .text-wrapper {
	display: block;
	padding: 0;
	overflow: visible; /* was hidden - clipped wrapped lines on small screens */
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.home_hero .ml6 .letters {
	display: inline;
	font-size: inherit;
	line-height: inherit;
}

/* ---- Supporting copy ---------------------------------------------------- */

.home_hero .inner_text p {
	margin: 0;
	font-size: 16px;
	font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.6;
	color: #fff;
}

/* ---- Call to action ----------------------------------------------------- */

.home_hero .info_btn ul {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.home_hero .info_btn ul li {
	display: block;
	margin: 0 12px 10px 0;
}

.home_hero .info_btn ul li a,
.home_hero .info_btn ul li:nth-child(1) a,
.home_hero .info_btn ul li:nth-child(2) a {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	min-height: 44px; /* accessible tap target */
	margin: 0;
	padding: 10px 24px;
	border: 1px solid #fff;
	border-radius: 20px 20px 20px 0;
	background: #ff6501;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .4px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	-webkit-transition: all .3s;
	transition: all .3s;
}

.home_hero .info_btn ul li a:hover,
.home_hero .info_btn ul li a:focus {
	background: #e65a00;
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

/* ==========================================================================
   Tablet and below - stack, centre and add a readability overlay
   ========================================================================== */

@media (max-width: 991px) {
	.home_bg_img.home_hero {
		--hero-focus: 50% 35%;
		min-height: 0;
		background-position: 50% 35%;
		background-position: var(--hero-focus);
	}

	/* Keeps white text legible over lighter parts of the photo. */
	.home_bg_img.home_hero:after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1;
		background: -webkit-linear-gradient(top, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 100%);
		background: linear-gradient(to bottom, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 100%);
		pointer-events: none;
	}

	.home_hero .hero_content {
		padding: 10px 0 44px;
	}

	.home_hero .inner_text {
		width: 100%;
		max-width: 680px;
		margin: 26px auto 0;
		text-align: center;
	}

	.home_hero .ml6,
	.home_hero .inner_text p {
		text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
	}

	.home_hero .inner_text p {
		max-width: 600px;
		margin: 0 auto;
	}

	.home_hero .info_btn ul {
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
	}

	.home_hero .info_btn ul li {
		margin: 0 6px 10px;
	}
}

/* ==========================================================================
   Phones
   ========================================================================== */

@media (max-width: 767px) {
	.home_bg_img.home_hero {
		min-height: 400px;
	}

	.home_hero .hero_content {
		padding: 6px 0 36px;
	}

	.home_hero .inner_text {
		margin-top: 20px;
	}

	.home_hero .ml6 {
		margin-bottom: 12px;
		font-size: 26px;
		font-size: clamp(21px, 6vw, 30px);
		line-height: 1.3;
	}

	.home_hero .inner_text p {
		font-size: 15px;
		line-height: 1.55;
	}

	.home_hero .info_btn ul {
		margin-top: 18px;
	}
}

@media (max-width: 400px) {
	.home_bg_img.home_hero {
		min-height: 360px;
	}

	.home_hero .info_btn ul li {
		width: 100%;
		margin: 0 0 10px;
	}

	.home_hero .info_btn ul li a,
	.home_hero .info_btn ul li:nth-child(1) a,
	.home_hero .info_btn ul li:nth-child(2) a {
		width: 100%;
		padding: 10px 16px;
	}
}

/* Short landscape screens - keep the banner from eating the whole viewport. */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 520px) {
	.home_bg_img.home_hero {
		min-height: 0;
	}

	.home_hero .hero_content {
		padding: 4px 0 24px;
	}

	.home_hero .inner_text {
		margin-top: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home_hero .inner_text.animated {
		-webkit-animation: none !important;
		animation: none !important;
	}
}
