/*
 * Horn & Ivory Core: Home (the landing page).
 *
 * Sits on top of base.css. One breakpoint: mobile is below 900px.
 * Sizes are the approved artboards': desktop at 1440px, mobile at 390px.
 * Square corners, ivory in place of white, text always at full opacity.
 */

/* ---------- Shared by the sections ---------- */

.hi-home-section {
	display: flex;
	align-items: center;
}

.hi-home-title {
	line-height: 1.1;
}

.hi-home-title span,
.hi-home-hero__title span,
.hi-home-day__title span {
	display: block;
}

.hi-eyebrow + .hi-home-title {
	margin-top: 12px;
}

.hi-home-title + .hi-lead {
	margin-top: 16px;
}

.hi-home-kicker {
	font-family: var(--hi-font-body);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.55;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--hi-navy);
}

.hi-band--navy .hi-home-kicker {
	color: var(--hi-blush);
}

.hi-home-arches {
	color: var(--hi-accent);
}

/* ---------- Postcode form (hero and final call to action) ---------- */

.hi-home-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 36px;
	text-align: left;
}

.hi-home-form .hi-label {
	line-height: 1.55;
}

.hi-home-form .hi-input {
	border: 0;
}

/* ---------- Hero ---------- */

.hi-home-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 800px;
	overflow: hidden;
}

.hi-home-hero__photo {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 54%;
}

.hi-home-hero__photo img {
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.hi-home-hero__photo::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, #07203f 0%, rgba(7, 32, 63, 0.6) 22%, rgba(7, 32, 63, 0) 55%);
}

.hi-home-hero__inner {
	position: relative;
	padding-top: 64px;
	padding-bottom: 64px;
}

/* 600px as designed. On narrower desktop screens the copy stays clear of the photograph. */
.hi-home-hero__copy {
	max-width: min(600px, calc(46vw + 18px));
}

.hi-home-hero__title {
	margin: 20px 0 24px;
	font-size: clamp(46px, 4.45vw, 64px);
	line-height: 1.03;
	color: var(--hi-ivory);
}

.hi-home-hero__accent {
	color: var(--hi-blush);
}

.hi-home-hero__lead,
.hi-home-hero .hi-home-form {
	max-width: 520px;
}

/* ---------- Seasonal notice ---------- */

.hi-home-notice {
	margin: 0;
	padding: 14px 0;
	border-left: 0;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
}

/* ---------- Belief ---------- */

.hi-home-belief {
	min-height: 640px;
}

.hi-home-belief .hi-home-arches {
	margin: 0 auto 24px;
}

.hi-home-belief .hi-home-title {
	max-width: 940px;
	margin: 0 auto;
	font-size: 56px;
}

.hi-home-belief .hi-lead {
	margin-top: 28px;
}

/* ---------- The Weekend ---------- */

.hi-home-weekend {
	min-height: 760px;
}

.hi-home-weekend .hi-home-title {
	font-size: 48px;
}

.hi-home-weekend .hi-home-title__accent {
	color: var(--hi-accent);
}

.hi-home-weekend .hi-lead {
	max-width: 640px;
}

.hi-home-weekend__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 64px;
	padding: 0;
	list-style: none;
}

.hi-home-day {
	padding-top: 24px;
	border-top: 3px solid var(--hi-navy);
}

.hi-home-day--sunday {
	border-top-color: var(--hi-accent);
}

.hi-home-day__title {
	margin-bottom: 10px;
	font-size: 30px;
	line-height: 1.2;
}

.hi-home-day__part {
	margin-top: 4px;
}

/* ---------- The Colours ---------- */

.hi-home-colours {
	min-height: 1260px;
}

.hi-home-colours .hi-home-title {
	max-width: 900px;
	font-size: 52px;
}

.hi-home-colours__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	margin-top: 56px;
	padding: 0;
	list-style: none;
}

.hi-home-colours__grid img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.hi-home-colours__action {
	margin-top: 48px;
}

/* ---------- The Kit ---------- */

.hi-home-kit {
	min-height: 1040px;
}

.hi-home-kit__inner {
	display: grid;
	grid-template-columns: 400px minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	column-gap: 80px;
	align-items: start;
}

.hi-home-kit__intro {
	grid-column: 1;
	grid-row: 1;
}

.hi-home-kit__list {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.hi-home-kit__action {
	grid-column: 1;
	grid-row: 2;
	margin-top: 36px;
}

.hi-home-kit .hi-home-title {
	font-size: 48px;
}

.hi-home-kit__list p {
	font-size: 17px;
}

/* ---------- Two Ways ---------- */

.hi-home-ways {
	min-height: 1060px;
}

.hi-home-ways .hi-home-title {
	max-width: 820px;
	margin: 0 auto;
	font-size: 52px;
	text-align: center;
}

.hi-home-ways__grid {
	margin-top: 56px;
}

.hi-home-way {
	display: flex;
	flex-direction: column;
	padding: 48px;
}

.hi-home-way__title {
	margin: 12px 0 20px;
	font-size: 34px;
	line-height: 1.2;
}

.hi-home-way__price {
	font-family: var(--hi-font-head);
	font-weight: 400;
	font-size: 72px;
	line-height: 1.1;
}

.hi-home-way__note {
	margin-top: 8px;
}

.hi-home-way__text {
	margin: 20px 0;
}

.hi-home-way__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.hi-home-way__list li {
	padding-top: 10px;
	border-top: 1px solid var(--hi-navy);
}

.hi-band--navy .hi-home-way__list li {
	border-top-color: var(--hi-rule);
}

.hi-home-way__button {
	margin-top: auto;
}

/* ---------- The Builders Merchant ---------- */

.hi-home-merchant {
	min-height: 680px;
}

.hi-home-merchant .hi-home-title {
	max-width: 1000px;
	font-size: 64px;
	line-height: 1.06;
}

.hi-home-merchant .hi-home-title__accent {
	color: var(--hi-navy);
}

.hi-home-merchant .hi-lead {
	margin-top: 32px;
	font-size: 22px;
}

/* ---------- The Name ---------- */

.hi-home-name {
	min-height: 460px;
}

.hi-home-name__inner {
	display: flex;
	align-items: center;
	gap: 80px;
}

.hi-home-name__head {
	flex: 0 0 400px;
}

.hi-home-name .hi-home-arches {
	margin-bottom: 20px;
}

.hi-home-name__text {
	flex: 1 1 0;
	min-width: 0;
	max-width: 620px;
	font-size: 22px;
	line-height: 1.55;
}

/* ---------- Final Call To Action ---------- */

.hi-home-final {
	min-height: 620px;
}

.hi-home-final__inner {
	max-width: 640px;
	text-align: center;
}

.hi-home-final .hi-home-title {
	font-size: 52px;
}

/* ---------- Mobile (below 900px) ---------- */

@media (max-width: 899px) {
	.hi-eyebrow + .hi-home-title {
		margin-top: 10px;
	}

	.hi-home-title + .hi-lead {
		margin-top: 12px;
	}

	.hi-home-kicker {
		font-size: 12px;
		line-height: 1.5;
	}

	.hi-home-form {
		gap: 10px;
		margin-top: 28px;
	}

	.hi-home-form .hi-label {
		line-height: 18px;
	}

	.hi-home-form .hi-btn {
		padding-left: 12px;
		padding-right: 12px;
		font-size: 12px;
	}

	/* Hero: the photograph sits on top and the copy rises over its lower edge. */

	.hi-home-hero {
		display: block;
		min-height: 0;
	}

	.hi-home-hero__photo {
		position: relative;
		width: auto;
		height: 340px;
		overflow: hidden;
	}

	.hi-home-hero__photo img {
		object-position: 50% 10%;
	}

	.hi-home-hero__photo::after {
		background: linear-gradient(180deg, rgba(7, 32, 63, 0) 30%, rgba(7, 32, 63, 0.92) 78%, #07203f 100%);
	}

	.hi-home-hero__inner {
		min-height: 560px;
		margin-top: -88px;
		padding-top: 0;
		padding-bottom: 40px;
	}

	.hi-home-hero__copy,
	.hi-home-hero__lead,
	.hi-home-hero .hi-home-form {
		max-width: none;
	}

	.hi-home-hero__title {
		margin: 10px 0 14px;
		font-size: 38px;
		line-height: 1.05;
	}

	.hi-home-hero .hi-home-form {
		margin-top: 22px;
	}

	.hi-home-notice {
		padding: 12px 0;
		font-size: 15px;
	}

	/* Belief */

	.hi-home-belief {
		min-height: 530px;
	}

	.hi-home-belief .hi-home-arches {
		margin-bottom: 20px;
	}

	.hi-home-belief .hi-home-title {
		font-size: 34px;
	}

	.hi-home-belief .hi-lead {
		margin-top: 20px;
	}

	/* The Weekend */

	.hi-home-weekend {
		min-height: 1190px;
	}

	.hi-home-weekend .hi-home-title {
		font-size: 34px;
	}

	.hi-home-weekend__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		margin-top: 36px;
	}

	.hi-home-day {
		padding-top: 16px;
	}

	.hi-home-day__title {
		margin-bottom: 8px;
		font-size: 26px;
	}

	.hi-home-day__part {
		margin-top: 2px;
	}

	/* The Colours: a strip to swipe through, bleeding to both edges of the screen. */

	.hi-home-colours {
		min-height: 740px;
	}

	.hi-home-colours .hi-home-title {
		font-size: 34px;
	}

	.hi-home-colours__grid {
		display: flex;
		gap: 12px;
		margin: 28px calc(var(--hi-gutter) * -1) 0;
		padding: 0 var(--hi-gutter);
		overflow-x: auto;
	}

	.hi-home-colours__grid li {
		flex: 0 0 160px;
	}

	.hi-home-colours__grid img {
		width: 160px;
		height: 200px;
		aspect-ratio: auto;
	}

	.hi-home-colours__action {
		margin-top: 28px;
	}

	/* The Kit: intro, then the list, then the button. */

	.hi-home-kit {
		min-height: 1400px;
	}

	.hi-home-kit__inner {
		display: block;
	}

	.hi-home-kit .hi-home-title {
		font-size: 34px;
	}

	.hi-home-kit__list {
		margin-top: 28px;
	}

	.hi-home-kit__list .hi-steps__item {
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.hi-home-kit__list .hi-steps__item::before {
		top: 12px;
	}

	.hi-home-kit__list p {
		font-size: 16px;
	}

	.hi-home-kit__action {
		margin-top: 32px;
	}

	/* Two Ways */

	.hi-home-ways {
		min-height: 1570px;
	}

	.hi-home-ways .hi-home-title {
		max-width: none;
		margin: 0;
		font-size: 34px;
		text-align: left;
	}

	.hi-home-ways__grid {
		margin-top: 32px;
	}

	.hi-home-way {
		padding: 24px;
	}

	.hi-home-way__title {
		margin: 10px 0 12px;
		font-size: 30px;
	}

	.hi-home-way__price {
		font-size: 60px;
	}

	.hi-home-way__note {
		margin-top: 4px;
	}

	.hi-home-way__text {
		margin: 16px 0;
	}

	.hi-home-way__list {
		gap: 8px;
		margin-bottom: 28px;
	}

	.hi-home-way__list li {
		padding-top: 8px;
	}

	/* The Builders Merchant */

	.hi-home-merchant {
		min-height: 480px;
	}

	.hi-home-merchant .hi-home-title {
		font-size: 36px;
		line-height: 1.1;
	}

	.hi-home-merchant .hi-lead {
		margin-top: 24px;
		font-size: 18px;
	}

	/* The Name */

	.hi-home-name {
		min-height: 400px;
	}

	.hi-home-name__inner {
		display: block;
	}

	.hi-home-name .hi-home-arches {
		margin-bottom: 16px;
	}

	.hi-home-name .hi-home-title {
		font-size: 34px;
		line-height: 1.1;
	}

	.hi-home-name__text {
		max-width: none;
		margin-top: 16px;
		font-size: 17px;
	}

	/* Final Call To Action */

	.hi-home-final {
		min-height: 420px;
	}

	.hi-home-final__inner {
		max-width: none;
		text-align: left;
	}

	.hi-home-final .hi-home-title {
		font-size: 34px;
	}
}
