/*
|--------------------------------------------------------------------------
| HomeBuild Metrics Dynamic Homepage Calculator Sections
|--------------------------------------------------------------------------
|
| Loaded only when the homepage dynamic shortcodes are present.
|
| Shortcodes:
| [homebuild_project_groups]
| [homebuild_home_calculators]
|
*/


/*
|--------------------------------------------------------------------------
| Browse Calculators By Project
|--------------------------------------------------------------------------
*/

.hpc-home-project-grid {
	display: grid;
	grid-template-columns: repeat(
		auto-fit,
		minmax(280px, 1fr)
	);
	gap: 24px;

	width: 100%;
}


.hpc-home-project-card {
	display: flex;
	flex-direction: column;

	min-width: 0;
	min-height: 100%;

	overflow: hidden;

	background: #FAF7F2;

	border: 1px solid #E6DED2;
	border-radius: 14px;

	box-sizing: border-box;
}


.hpc-home-project-image {
	width: 100%;
	aspect-ratio: 16 / 9;

	overflow: hidden;

	background: #F3EEE7;
}


.hpc-home-project-image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}


.hpc-home-project-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;

	padding: 22px 22px 24px;
}


.hpc-home-project-title {
	margin: 0 0 10px;

	color: #2F6D62;

	font-size: 25px;
	font-weight: 600;
	line-height: 1.25;
}


.hpc-home-project-description {
	margin: 0 0 16px;

	color: #6B7280;

	font-size: 16px;
	line-height: 1.6;
}


.hpc-home-project-links {
	display: flex;
	flex-wrap: wrap;

	gap: 8px 14px;

	margin-top: auto;
}


.hpc-home-project-link,
.hpc-home-project-link:visited {
	color: #2F6D62;

	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;

	text-decoration: underline;
	text-underline-offset: 2px;
}


.hpc-home-project-link:hover,
.hpc-home-project-link:focus {
	color: #285C53;
}


/*
|--------------------------------------------------------------------------
| Homepage Calculator Grid
|--------------------------------------------------------------------------
*/

.hpc-home-calculator-grid {
	display: grid;

	grid-template-columns:
		repeat(
			2,
			minmax(0, 1fr)
		);

	gap: 18px;

	width: 100%;
}


.hpc-home-calculator-card {
	display: flex;
	flex-direction: column;

	min-width: 0;
	min-height: 100%;

	padding: 24px;

	background: #FAF7F2;

	border: 1px solid #E6DED2;
	border-radius: 14px;

	box-sizing: border-box;
}



.hpc-home-calculator-title {
	margin: 0 0 8px;

	font-size: 24px;
	font-weight: 600;
	line-height: 1.3;
}


.hpc-home-calculator-title a,
.hpc-home-calculator-title a:visited {
	color: #2F6D62;

	text-decoration: none;
}


.hpc-home-calculator-title a:hover,
.hpc-home-calculator-title a:focus {
	color: #285C53;
}


.hpc-home-calculator-description {
	flex-grow: 1;

	margin: 0 0 12px;

	color: #6B7280;

	font-size: 16px;
	line-height: 1.6;
}


.hpc-home-calculator-action {
	margin-top: auto;
}


.hpc-home-calculator-link,
.hpc-home-calculator-link:visited {
	color: #2F6D62;

	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;

	text-decoration: underline;
	text-underline-offset: 2px;
}


.hpc-home-calculator-link:hover,
.hpc-home-calculator-link:focus {
	color: #285C53;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

	.hpc-home-project-grid {
		gap: 18px;
	}


	.hpc-home-project-content {
		padding: 20px;
	}


	.hpc-home-project-title {
		font-size: 23px;
	}


	.hpc-home-calculator-grid {
		gap: 16px;
	}


	.hpc-home-calculator-card {
		padding: 22px;
	}


	.hpc-home-calculator-title {
		font-size: 22px;
	}
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

	.hpc-home-project-grid,
	.hpc-home-calculator-grid {
		grid-template-columns:
			minmax(0, 1fr);

		gap: 16px;
	}


	.hpc-home-project-card,
	.hpc-home-calculator-card {
		width: 100%;
	}


	.hpc-home-project-content,
	.hpc-home-calculator-card {
		padding: 20px;
	}


	.hpc-home-project-title,
	.hpc-home-calculator-title {
		font-size: 22px;
	}


	.hpc-home-project-description,
	.hpc-home-calculator-description {
		font-size: 15px;
	}

}
