/**
 * Hero (Figma "V1 Hero", Home 10:6014 / 834 10:7116 / 390 10:8223; Local guide 10:11661).
 *
 * 1440: 920 high, ink, padding 32 / 120 / 48 (Local guide: bottom 76); the photo and the 35% layer
 * cover the whole section; caption top right; title 104/124 in a 760 column; the availability bar
 * (1200 x 96, white, radius 16) 56 under the text. 834: the same, padding 32, bar 48 under the
 * text. 390: a 760 photo stage (padding 20 / 20 / 80, caption top left, title 56/60), then the bar
 * under the photo on the ink background (padding 24).
 */

.sw-hero {
	display: flex;
	flex-direction: column;
	min-height: var(--sw-hero-h, 920px);
	padding-top: var(--sw-pad-t, 32px);
	padding-bottom: var(--sw-pad-b, 48px);
	overflow: hidden;
}

/* The page width with the gutter, as .sw-container, but as padding so the phone stage can bleed. */
.sw-hero__top,
.sw-hero__barwrap {
	position: relative;
	padding-inline: max(var(--sw-gutter), (100% - var(--sw-max)) / 2);
}

.sw-hero__top {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	position: static;
}

.sw-hero__media {
	position: absolute;
	inset: 0;
	background: var(--sw-c-ink);
}

.sw-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.sw-hero__overlay {
	position: absolute;
	inset: 0;
	background: var(--sw-overlay);
	pointer-events: none;
}

.sw-hero__credit {
	position: relative;
	align-self: flex-end;
	text-align: right;
}

/* The copy sits at the bottom of the photo. */
.sw-hero__copy {
	position: relative;
	max-width: 760px;
	margin-top: auto;
}

.sw-hero__title {
	color: var(--sw-heading);
}

.sw-hero__text {
	margin-top: 16px;
	color: var(--sw-text);
}

.sw-hero__more {
	margin-top: 16px;
}

/* Phone-only line breaks ("The art of / doing less."). */
.sw-hero__br {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Availability bar: three link fields, dividers and the ink button     */
/* ------------------------------------------------------------------ */

.sw-hero__barwrap {
	margin-top: 56px;
}

.sw-hero__bar {
	--sw-accent: var(--sw-c-ink);
	--sw-on-accent: var(--sw-c-white);
	display: flex;
	align-items: center;
	padding: 16px 16px 16px 4px;
	border-radius: var(--sw-radius-panel);
	background: var(--sw-c-white);
}

/* Field 326 x 64 at 1440 (182.7 at 834): label 12/16 muted, value 16/24 ink, 4 apart. */
.sw-hero__field {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	min-height: 64px;
	padding: 10px 20px;
	color: var(--sw-c-ink);
	text-decoration: none;
}

.sw-hero__label {
	color: var(--sw-c-muted);
}

.sw-hero__value {
	font-size: var(--sw-fs-body);
	line-height: var(--sw-lh-body);
}

.sw-hero__divider {
	flex: none;
	align-self: center;
	width: 1px;
	height: 40px;
	background: var(--sw-c-line);
}

.sw-hero__button {
	flex: none;
	width: 200px;
	padding: 0 16px;
}

/* ------------------------------------------------------------------ */
/* 834                                                                  */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.sw-hero {
		padding-bottom: var(--sw-pad-b, 32px);
	}

	.sw-hero__copy {
		max-width: none;
	}

	.sw-hero__barwrap {
		margin-top: 48px;
	}
}

/* ------------------------------------------------------------------ */
/* 390: photo stage, then the bar under it                             */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.sw-hero {
		min-height: 0;
		padding: 0;
	}

	.sw-hero__top {
		position: relative;
		min-height: var(--sw-hero-h, 760px);
		padding-top: var(--sw-pad-t, 20px);
		padding-bottom: var(--sw-pad-b, 80px);
	}

	.sw-hero__credit {
		align-self: flex-start;
		text-align: left;
	}

	.sw-hero__title {
		font-size: var(--sw-fs-display-sm);
		line-height: var(--sw-lh-display-sm);
	}

	.sw-hero__br {
		display: inline;
	}

	.sw-hero__text,
	.sw-hero__more {
		margin-top: 12px;
	}

	/* "Bar wrap": padding 24, no fill of its own, so the hero's ink shows. */
	.sw-hero__barwrap {
		margin-top: 0;
		padding: 24px;
	}

	/* 342 wide, padding 16; fields stacked (69 / 69 / 64) between rules, all 8 apart; button full width. */
	.sw-hero__bar {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 16px;
	}

	.sw-hero__field {
		flex: none;
	}

	.sw-hero__field:not(:nth-last-child(2)) {
		min-height: 69px;
	}

	.sw-hero__divider {
		width: 100%;
		height: 1px;
	}

	.sw-hero__button {
		width: 100%;
	}
}
