/*
Block Name: Hero Icon Links
Description: Hero slider with linked diamond icon panels.
*/


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

.hero-area-icon-links {
	position: relative;
}

.hero-area-icon-links .hero-slider .hero-slide {
	position: relative;
	min-height: 0;
	padding: 4rem 0;
	background-size: cover;
	background-position: center;
}

.hero-area-icon-links .hero-slider .hero-slide-angle {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	transform: none;
	background: linear-gradient(
		to right,
		rgba(77, 77, 79, 0.8) 0%,
		rgba(77, 77, 79, 0.6) 30%,
		rgba(77, 77, 79, 0.2) 70%,
		rgba(77, 77, 79, 0) 100%
	);
}

.hero-area-icon-links .hero-slide .container {
	position: relative;
	z-index: 2;
	padding-top: 0;
	padding-bottom: 0;
}

.hero-area-icon-links .hero-slide-content {
	max-width: 75%;
	margin: 0;
}

.hero-area-icon-links .hero-slide-content h1,
.hero-area-icon-links .hero-slide-content h2 {
	margin-top: 0;
	color: #fff;
	font-size: 5.5rem;
}


/* --------------------------------------------------
   Main hero button
-------------------------------------------------- */

.hero-area-icon-links .hero-slide-content a.button2 {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
}

.hero-area-icon-links .hero-slide-content a.button2::after {
	content: "→";
	color: #fff;
	font-size: 1.5em;
	line-height: 1;
	transition: transform 0.25s ease;
}

.hero-area-icon-links .hero-slide-content a.button2:hover,
.hero-area-icon-links .hero-slide-content a.button2:focus {
	color: #e65300;
	text-decoration: none;
}

.hero-area-icon-links .hero-slide-content a.button2:hover::after,
.hero-area-icon-links .hero-slide-content a.button2:focus::after {
	transform: translateX(5px);
}


/* --------------------------------------------------
   Diamond icon links
-------------------------------------------------- */

.hero-area-icon-links .hero-icon-links {
	position: relative;
	z-index: 10;
	width: min(100% - 4rem, 1240px);
	margin: 4rem auto 0;
	padding: 0;
}

.hero-area-icon-links .hero-icon-links-inner {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 0 0 38px;
}

.hero-area-icon-links .hero-icon-link {
	display: flex;
	flex: 0 0 130px;
	align-items: center;
	justify-content: center;
	width: 130px;
	height: 130px;
	padding: 16px;
	box-sizing: border-box;
	color: #fff;
	text-align: center;
	text-decoration: none;
	background: rgba(55, 55, 55, 0.82);
	border: 3px solid #e65300;
	transform: rotate(45deg);
	transition:
		background 0.25s ease,
		transform 0.25s ease;
}

.hero-area-icon-links .hero-icon-link:nth-child(even) {
	margin-top: 88px;
}

.hero-area-icon-links .hero-icon-link:hover,
.hero-area-icon-links .hero-icon-link:focus {
	color: #fff;
	text-decoration: none;
	background: rgba(35, 35, 35, 0.95);
	transform: rotate(45deg) scale(1.05);
}

.hero-area-icon-links .hero-icon-link-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transform: rotate(-45deg);
}

.hero-area-icon-links .hero-icon-link img {
	width: 38px;
	height: 38px;
	margin-bottom: 10px;
	object-fit: contain;
}

.hero-area-icon-links .hero-icon-link span:not(.hero-icon-link-arrow) {
	display: block;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
}

.hero-area-icon-links .hero-icon-link-arrow {
	display: block;
	margin-top: 8px;
	color: #e65300;
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1;
}


/* --------------------------------------------------
   Smaller desktops
-------------------------------------------------- */

@media (max-width: 1200px) {

	.hero-area-icon-links .hero-slide-content h1,
	.hero-area-icon-links .hero-slide-content h2 {
		font-size: 5rem;
	}

	.hero-area-icon-links .hero-icon-links-inner {
		gap: 16px;
		padding-bottom: 80px;
	}

	.hero-area-icon-links .hero-icon-link {
		flex-basis: 118px;
		width: 118px;
		height: 118px;
		padding: 14px;
	}

	.hero-area-icon-links .hero-icon-link:nth-child(even) {
		margin-top: 80px;
	}

	.hero-area-icon-links .hero-icon-link img {
		width: 35px;
		height: 35px;
		margin-bottom: 9px;
	}

	.hero-area-icon-links .hero-icon-link span:not(.hero-icon-link-arrow) {
		font-size: 0.82rem;
	}

	.hero-area-icon-links .hero-icon-link-arrow {
		margin-top: 7px;
		font-size: 1.55rem;
	}
}


/* --------------------------------------------------
   Tablets
-------------------------------------------------- */

@media (max-width: 992px) {

	.hero-area-icon-links .hero-slider .hero-slide {
		padding: 4rem 0;
	}

	.hero-area-icon-links .hero-slide-content {
		max-width: 80%;
	}

	.hero-area-icon-links .hero-slide-content h1,
	.hero-area-icon-links .hero-slide-content h2 {
		font-size: 4.2rem;
	}

	.hero-area-icon-links .hero-slide-content p {
		font-size: 1.8rem;
	}

	.hero-area-icon-links .hero-icon-links-inner {
		gap: 14px;
		padding-bottom: 68px;
	}

	.hero-area-icon-links .hero-icon-link {
		flex-basis: 102px;
		width: 102px;
		height: 102px;
		padding: 11px;
		border-width: 2px;
	}

	.hero-area-icon-links .hero-icon-link:nth-child(even) {
		margin-top: 68px;
	}

	.hero-area-icon-links .hero-icon-link img {
		width: 30px;
		height: 30px;
		margin-bottom: 7px;
	}

	.hero-area-icon-links .hero-icon-link span:not(.hero-icon-link-arrow) {
		font-size: 0.7rem;
	}

	.hero-area-icon-links .hero-icon-link-arrow {
		margin-top: 5px;
		font-size: 1.3rem;
	}
}


/* --------------------------------------------------
   Mobile and small tablets: retain one row
-------------------------------------------------- */

@media (max-width: 767px) {

	.hero-area-icon-links .hero-slider .hero-slide {
		padding: 4rem 0;
		background-position: center;
	}

	.hero-area-icon-links .hero-slide-content {
		max-width: 100%;
	}

	.hero-area-icon-links .hero-slide-content h1,
	.hero-area-icon-links .hero-slide-content h2 {
		font-size: 3.2rem;
		line-height: 1.1;
	}

	.hero-area-icon-links .hero-slide-content p {
		font-size: 1.6rem;
	}

	.hero-area-icon-links .hero-icon-links {
		width: calc(100% - 2rem);
		margin-top: 4rem;
	}

	.hero-area-icon-links .hero-icon-links-inner {
		justify-content: center;
		gap: clamp(5px, 2vw, 12px);
		padding-bottom: clamp(46px, 12vw, 62px);
	}

	.hero-area-icon-links .hero-icon-link {
		flex: 0 0 clamp(68px, 18vw, 92px);
		width: clamp(68px, 18vw, 92px);
		height: clamp(68px, 18vw, 92px);
		padding: 8px;
	}

	.hero-area-icon-links .hero-icon-link:nth-child(even) {
		margin-top: clamp(46px, 12vw, 62px);
	}

	.hero-area-icon-links .hero-icon-link img {
		width: clamp(21px, 6vw, 28px);
		height: clamp(21px, 6vw, 28px);
		margin-bottom: 5px;
	}

	.hero-area-icon-links .hero-icon-link span:not(.hero-icon-link-arrow) {
		font-size: clamp(0.48rem, 1.6vw, 0.64rem);
		line-height: 1.1;
	}

	.hero-area-icon-links .hero-icon-link-arrow {
		margin-top: 4px;
		font-size: clamp(1rem, 3vw, 1.2rem);
	}
}


/* --------------------------------------------------
   Small mobile: two-row layout
-------------------------------------------------- */

@media (max-width: 425px) {

	.hero-area-icon-links .hero-slide-content h1,
	.hero-area-icon-links .hero-slide-content h2 {
		font-size: 2.7rem;
	}

	.hero-area-icon-links .hero-icon-links {
		width: calc(100% - 3rem);
	}

	.hero-area-icon-links .hero-icon-links-inner {
		display: grid;
		grid-template-columns: repeat(2, 90px);
		justify-content: center;
		column-gap: 48px;
		row-gap: 48px;
		padding-bottom: 0;
	}

	.hero-area-icon-links .hero-icon-link {
		width: 90px;
		height: 90px;
		flex-basis: auto;
		padding: 9px;
	}

	.hero-area-icon-links .hero-icon-link:nth-child(even) {
		margin-top: 0;
	}

	.hero-area-icon-links .hero-icon-link img {
		width: 27px;
		height: 27px;
		margin-bottom: 6px;
	}

	.hero-area-icon-links .hero-icon-link span:not(.hero-icon-link-arrow) {
		font-size: 0.62rem;
	}

	.hero-area-icon-links .hero-icon-link-arrow {
		margin-top: 5px;
		font-size: 1.2rem;
	}
}


/* --------------------------------------------------
   Very small mobile
-------------------------------------------------- */

@media (max-width: 350px) {

	.hero-area-icon-links .hero-slide-content h1,
	.hero-area-icon-links .hero-slide-content h2 {
		font-size: 2.4rem;
	}

	.hero-area-icon-links .hero-icon-links-inner {
		grid-template-columns: repeat(2, 80px);
		column-gap: 42px;
		row-gap: 42px;
	}

	.hero-area-icon-links .hero-icon-link {
		width: 80px;
		height: 80px;
		padding: 7px;
	}

	.hero-area-icon-links .hero-icon-link img {
		width: 23px;
		height: 23px;
	}

	.hero-area-icon-links .hero-icon-link span:not(.hero-icon-link-arrow) {
		font-size: 0.54rem;
	}
}