/*
 * Homepage hero (template-parts/home-hero.php).
 * Standalone because the theme's SCSS build can't be re-run. Loaded on the front page only.
 * Figma: "Home / Desktop 1441" (horizontal) and "Home / Desktop 1440" (vertical).
 * Horizontal is the base for every width; vertical applies from 1024px (Foundation large) up.
 */

.home-hero {
	position: relative;
	background-color: #021423;
	color: #fefefe;
}

/* Horizontal: full-width image above a centred navy text panel */

.home-hero__image {
	position: relative;
	height: clamp(240px, 32.1vw, 462px);
	overflow: hidden;
}

.home-hero__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.home-hero__panel {
	position: relative;
	padding: 48px 24px;
}

.home-hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 884px;
	margin: 0 auto;
	text-align: center;
}

.home-hero__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.home-hero .home-hero__title {
	margin: 0;
	color: #ba9e5d;
	font-size: 24px;
	line-height: 1.4;
	letter-spacing: 6px;
	text-transform: uppercase;
	font-weight: 400;
}

.home-hero .home-hero__intro {
	margin: 0;
	color: #fefefe;
	font-size: 16px;
	line-height: 29px;
}

.home-hero .home-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 256px;
	height: 56px;
	margin: 0;
	padding: 0 21px;
	background-color: #ba9e5d;
	color: #021423;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	white-space: nowrap;
}

.home-hero .home-hero__button:hover,
.home-hero .home-hero__button:focus {
	background-color: #fefefe;
	color: #021423;
}

@media (min-width: 640px) {
	.home-hero__panel {
		padding: 64px 32px;
	}

	.home-hero .home-hero__title {
		font-size: 48px;
		line-height: 67.2px;
		letter-spacing: 12px;
	}

	.home-hero .home-hero__intro {
		font-size: 21px;
		line-height: 35px;
	}
}

/* Vertical (desktop only): text on a navy panel at left, image filling the right */

@media (min-width: 1024px) {
	.home-hero--vertical {
		display: flex;
		align-items: center;
		min-height: 657px;
	}

	.home-hero--vertical .home-hero__image {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 36.53%;  /* 526 / 1440 */
		right: 0;
		height: auto;
	}

	/* Solid navy panel over the left of the image, as in the design */
	.home-hero--vertical .home-hero__panel {
		position: relative;
		align-self: stretch;
		display: flex;
		align-items: center;
		width: 48.75%;  /* 702 / 1440 */
		padding: 64px 48px 64px 8.333%;  /* 120 / 1440 */
		background-color: #021423;
	}

	.home-hero--vertical .home-hero__content {
		align-items: flex-start;
		gap: 42px;
		max-width: 510px;
		margin: 0;
		text-align: left;
	}

	.home-hero--vertical .home-hero__intro {
		max-width: 492px;
	}
}
