/**
 * Partnership level tiles
 *
 * Four full-bleed image tiles across, each with a gold rank bar, name, price
 * and positioning line. Photos sit desaturated and dim, coming to full colour
 * on hover.
 *
 * Ported from the mockup's `.tiers` component.
 */

.rc-tiers {
	border-top: 5px solid #fc0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.rc-tier {
	align-items: flex-end;
	background-color: #000;
	display: flex;
	min-height: 380px;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.rc-tier img {
	filter: grayscale(100%);
	height: 100%;
	left: 0;
	object-fit: cover;
	opacity: .42;
	position: absolute;
	top: 0;
	transition: opacity .4s ease, transform .6s ease, filter .4s ease;
	width: 100%;
}

.rc-tier:hover img,
.rc-tier:focus img {
	filter: grayscale(0);
	opacity: .7;
	transform: scale(1.05);
}

/*
 * The label sits above the photo with its own gradient, so the text stays
 * readable regardless of what the image looks like behind it.
 */
.rc-tier-label {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .88) 58%);
	padding: 1.875rem 1.375rem 1.625rem;
	position: relative;
	width: 100%;
}

/* Rank indicator — fades down the tiers to show relative level. */
.rc-tier-bar {
	background-color: #fc0;
	display: block;
	height: 8px;
	margin-bottom: 1rem;
	width: 40px;
}

.rc-tier-bar-3 { opacity: .72; }
.rc-tier-bar-2 { opacity: .48; }
.rc-tier-bar-1 { opacity: .26; }

.rc-tier-name {
	color: #fff;
	display: block;
	font-size: 1.09rem;
	font-weight: 800;
	line-height: 1.14;
	margin-bottom: .4375rem;
	text-transform: uppercase;
}

.rc-tier-price {
	color: #fc0;
	display: block;
	font-size: 1.625rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: .6875rem;
}

.rc-tier-desc {
	color: #c4c4c4;
	display: block;
	font-size: .8rem;
	line-height: 1.5;
}

/* Keep anchored tiles clear of the sticky section menu. */
.rc-tier[id] {
	scroll-margin-top: 5rem;
}

@media (max-width: 900px) {
	.rc-tiers {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.rc-tiers {
		grid-template-columns: 1fr;
	}

	.rc-tier {
		min-height: 300px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rc-tier img {
		transition: none;
	}

	.rc-tier:hover img,
	.rc-tier:focus img {
		transform: none;
	}
}
