/*
|--------------------------------------------------------------------------
| HomeBuild Metrics Automatic Calculator Hub
|--------------------------------------------------------------------------
*/


.hpc-hub-grid {
	display: grid;

	grid-template-columns:
		repeat(
			2,
			minmax(0, 1fr)
		);

	gap: 24px;

	width: 100%;
}


/*
|--------------------------------------------------------------------------
| Calculator Card
|--------------------------------------------------------------------------
*/

.hpc-hub-card {
	display: flex;
	flex-direction: column;

	min-width: 0;
	min-height: 100%;

	margin: 0;
	padding: 26px;

	background: #FAF7F2;

	border: 1px solid #E6DED2;
	border-radius: 14px;

	box-sizing: border-box;

	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}


@media (hover: hover) and (pointer: fine) {

	.hpc-hub-card:hover {
		transform: translateY(-2px);

		box-shadow:
			0 10px 24px
			rgba(31, 41, 55, 0.07);
	}
}


/*
|--------------------------------------------------------------------------
| Category Eyebrow
|--------------------------------------------------------------------------
*/

.hpc-hub-card-group {
	margin-bottom: 8px;

	color: #B7794B;

	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;

	letter-spacing: 1.2px;
	text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| Title
|--------------------------------------------------------------------------
*/

.hpc-hub-card-title {
	margin:
		0
		0
		10px;

	font-size: 27px;
	font-weight: 600;
	line-height: 1.25;
}


.hpc-hub-card-title a {
	color: #2F6D62;

	text-decoration: none;
}


.hpc-hub-card-title a:hover {
	color: #285C53;
}


/*
|--------------------------------------------------------------------------
| Description
|--------------------------------------------------------------------------
*/

.hpc-hub-card-description {
	flex-grow: 1;

	margin:
		0
		0
		18px;

	color: #6B7280;

	font-size: 16px;
	line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Button
|--------------------------------------------------------------------------
*/

.hpc-hub-card-action {
	margin-top: auto;
	text-align: center;
}


.hpc-hub-card-button,
.hpc-hub-card-button:visited {
	display: inline-block;

	padding: 12px 20px;

	background: #2F6D62 !important;
	color: #FFFFFF !important;

	border-radius: 999px;

	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;

	text-decoration: none !important;

	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}


.hpc-hub-card-button:hover,
.hpc-hub-card-button:focus,
.hpc-hub-card-button:focus-visible {
	background: #285C53 !important;
	color: #FFFFFF !important;

	text-decoration: none !important;
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

	.hpc-hub-grid {
		gap: 18px;
	}


	.hpc-hub-card {
		padding: 22px;
	}


	.hpc-hub-card-title {
		font-size: 24px;
	}
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

	.hpc-hub-grid {
		grid-template-columns:
			minmax(0, 1fr);

		gap: 16px;
	}


	.hpc-hub-card {
		width: 100%;

		padding: 20px;
	}


	.hpc-hub-card-title {
		font-size: 22px;
	}


	.hpc-hub-card-description {
		margin-bottom: 16px;

		font-size: 15px;
	}


	.hpc-hub-card-button {
		width: 100%;

		box-sizing: border-box;

		text-align: center;
	}
}