/* =========================================================
   JB IT SOLUTIONS — HOMEPAGE DIENSTEN
   ========================================================= */

.jb-services-home {
	position: relative;
	padding: 72px 0;
	background: #f3f5f6;
}

.jb-services-home,
.jb-services-home * {
	box-sizing: border-box;
}

.jb-services-home__container {
	width: min(1200px, calc(100% - 40px));
	margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.jb-services-home__header {
	display: grid;
	grid-template-columns:
		minmax(0, 1.25fr)
		minmax(280px, 0.75fr);
	gap: 48px;
	align-items: end;
	margin-bottom: 34px;
}

.jb-services-home__eyebrow {
	margin: 0 0 10px;
	color: #ff8c00;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.jb-services-home__title {
	max-width: 700px;
	margin: 0;
	color: #1c2226;
	font-size: clamp(2.2rem, 4vw, 3.7rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.045em;
}

.jb-services-home__intro {
	max-width: 500px;
	margin: 0;
	color: #5b646b;
	font-size: 1rem;
	line-height: 1.7;
}

/* =========================================================
   GRID
   ========================================================= */

.jb-services-home__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

/* =========================================================
   VOLLEDIG KLIKBARE KAART
   ========================================================= */

.jb-services-home__card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 300px;
	flex-direction: column;
	padding: 22px 20px 18px;
	overflow: hidden;
	border: 1px solid #dce1e4;
	border-radius: 16px;
	color: #171c1f;
	background: #ffffff;
	box-shadow: 0 10px 26px rgba(31, 36, 40, 0.06);
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 220ms ease,
		border-color 220ms ease,
		box-shadow 220ms ease;
}

.jb-services-home__card::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: #ff8c00;
	content: "";
	opacity: 0;
	transform: scaleX(0.3);
	transform-origin: left;
	transition:
		opacity 220ms ease,
		transform 220ms ease;
}

.jb-services-home__card:hover,
.jb-services-home__card:focus-visible {
	border-color: rgba(255, 140, 0, 0.65);
	color: #171c1f;
	box-shadow: 0 20px 42px rgba(31, 36, 40, 0.12);
	text-decoration: none;
	transform: translateY(-5px);
}

.jb-services-home__card:hover::before,
.jb-services-home__card:focus-visible::before {
	opacity: 1;
	transform: scaleX(1);
}

.jb-services-home__card:focus-visible {
	outline: 3px solid rgba(255, 140, 0, 0.45);
	outline-offset: 4px;
}

/* =========================================================
   ICOON
   ========================================================= */

.jb-services-home__icon {
	display: block;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	margin: 0 0 20px;
	overflow: hidden;
	border-radius: 13px;
	background: #383e42;
	box-shadow: 0 8px 18px rgba(31, 36, 40, 0.14);
}

.jb-services-home__icon img {
	display: block;
	width: 58px;
	height: 58px;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 13px;
	object-fit: cover;
	object-position: center;
	transition: transform 220ms ease;
}

.jb-services-home__card:hover
.jb-services-home__icon img,
.jb-services-home__card:focus-visible
.jb-services-home__icon img {
	transform: scale(1.06);
}

/* =========================================================
   TITEL
   ========================================================= */

.jb-services-home__card-title {
	display: block;
	margin: 0 0 12px;
	color: #171c1f;
	font-size: 1.18rem;
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.025em;
	transition: color 180ms ease;
}

.jb-services-home__card:hover
.jb-services-home__card-title,
.jb-services-home__card:focus-visible
.jb-services-home__card-title {
	color: #ff8c00;
}

/* =========================================================
   OMSCHRIJVING
   ========================================================= */

.jb-services-home__description {
	display: block;
	flex: 1;
	margin: 0;
	color: #5b646b;
	font-size: 0.93rem;
	line-height: 1.65;
}

/* =========================================================
   ONDERSTE LINKREGEL
   ========================================================= */

.jb-services-home__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #e0e4e7;
	color: #171c1f;
	font-size: 0.86rem;
	font-weight: 800;
	line-height: 1.3;
}

.jb-services-home__arrow {
	color: #383e42;
	font-size: 1rem;
	transition:
		color 180ms ease,
		transform 180ms ease;
}

.jb-services-home__card:hover
.jb-services-home__arrow,
.jb-services-home__card:focus-visible
.jb-services-home__arrow {
	color: #ff8c00;
	transform: translateX(4px);
}

/* =========================================================
   ONDERSTE KNOP
   ========================================================= */

.jb-services-home__footer {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.jb-services-home__button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: 2px solid #383e42;
	border-radius: 8px;
	color: #1c2226;
	background: transparent;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition:
		color 180ms ease,
		border-color 180ms ease,
		background-color 180ms ease,
		transform 180ms ease;
}

.jb-services-home__button:hover,
.jb-services-home__button:focus-visible {
	border-color: #ff8c00;
	color: #ffffff;
	background: #ff8c00;
	text-decoration: none;
	transform: translateY(-2px);
}

.jb-services-home__button:focus-visible {
	outline: 3px solid rgba(255, 140, 0, 0.35);
	outline-offset: 4px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
	.jb-services-home__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.jb-services-home {
		padding: 56px 0;
	}

	.jb-services-home__header {
		grid-template-columns: 1fr;
		gap: 16px;
		align-items: start;
	}

	.jb-services-home__intro {
		max-width: 680px;
	}
}

@media (max-width: 560px) {
	.jb-services-home {
		padding: 46px 0;
	}

	.jb-services-home__container {
		width: min(100%, calc(100% - 24px));
	}

	.jb-services-home__grid {
		grid-template-columns: 1fr;
	}

	.jb-services-home__card {
		min-height: auto;
	}

	.jb-services-home__footer {
		display: block;
	}

	.jb-services-home__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jb-services-home__card,
	.jb-services-home__card::before,
	.jb-services-home__icon img,
	.jb-services-home__card-title,
	.jb-services-home__arrow,
	.jb-services-home__button {
		transition: none;
	}

	.jb-services-home__card:hover,
	.jb-services-home__card:focus-visible,
	.jb-services-home__button:hover,
	.jb-services-home__button:focus-visible {
		transform: none;
	}
}