/* =========================================================
   JB IT SOLUTIONS — HOMEPAGE HERO
   Hero, afbeeldingsdeck en responsive gedrag
   ========================================================= */

/* =========================================================
   HERO-BASIS
   ========================================================= */

.jb-home-hero {
	position: relative;
	display: flex;
	min-height: 650px;
	align-items: center;
	overflow: hidden;
	color: #ffffff;
	background: #1f2428;
}

.jb-home-hero__background {
	position: absolute;
	inset: 0;
	display: block;
	background:
		radial-gradient(
			circle at 82% 30%,
			rgba(255, 140, 0, 0.2),
			transparent 34%
		),
		linear-gradient(
			110deg,
			#171c1f 0%,
			#202529 58%,
			#2d2923 100%
		);
}

.jb-home-hero__background::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.14;
	background-image:
		linear-gradient(
			rgba(255, 255, 255, 0.06) 1px,
			transparent 1px
		),
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.06) 1px,
			transparent 1px
		);
	background-size: 50px 50px;
	-webkit-mask-image:
		linear-gradient(
			90deg,
			transparent,
			#000 55%
		);
	mask-image:
		linear-gradient(
			90deg,
			transparent,
			#000 55%
		);
}

.jb-home-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	width: min(
		calc(100% - 2.5rem),
		var(--jb-container)
	);
	grid-template-columns:
		minmax(0, 1.05fr)
		minmax(390px, 0.95fr);
	gap: clamp(3rem, 7vw, 7rem);
	align-items: center;
	margin-inline: auto;
	padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

.jb-home-hero__content {
	max-width: 760px;
	min-width: 0;
}

.jb-home-hero .jb-eyebrow {
	color: #ff8c00;
}

body.jb-theme .jb-home-hero h1,
.jb-home-hero h1 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(3.8rem, 6.5vw, 6.6rem);
	line-height: 0.94;
	letter-spacing: -0.06em;
}

.jb-home-hero__intro {
	max-width: 660px;
	margin: 1.4rem 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	line-height: 1.7;
}

.jb-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 1.8rem;
}

.jb-home-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin: 1.7rem 0 0;
	padding: 0;
	list-style: none;
}

.jb-home-hero__trust li {
	position: relative;
	padding-left: 1.35rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.88rem;
}

.jb-home-hero__trust li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #ff8c00;
	font-weight: 900;
}

/* =========================================================
   AFBEELDINGSDECK
   ========================================================= */

.jb-hero-deck {
	position: relative;
	display: block;
	width: min(100%, 520px);
	min-height: 500px;
	justify-self: end;
}

.jb-hero-deck__stage {
	position: relative;
	display: block;
	width: 100%;
	height: 455px;
	perspective: 1200px;
}

.jb-hero-deck__card {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 22px;
	background: #2d3236;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
	transform-origin: 50% 100%;
	transition:
		transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 420ms ease,
		filter 420ms ease;
}

/* =========================================================
   BEGINPOSITIE ZONDER JAVASCRIPT

   Deze nth-child-regels gelden alleen zolang JavaScript
   het deck nog niet heeft geïnitialiseerd.
   ========================================================= */

.jb-hero-deck:not([data-initialized="true"])
.jb-hero-deck__card:nth-child(1) {
	z-index: 3;
	opacity: 1;
	transform:
		translate(0, 0)
		rotate(-1deg)
		scale(1);
	filter: brightness(1);
	pointer-events: auto;
}

.jb-hero-deck:not([data-initialized="true"])
.jb-hero-deck__card:nth-child(2) {
	z-index: 2;
	opacity: 1;
	transform:
		translate(42px, -16px)
		rotate(6deg)
		scale(0.96);
	filter: brightness(0.76);
	pointer-events: none;
}

.jb-hero-deck:not([data-initialized="true"])
.jb-hero-deck__card:nth-child(3) {
	z-index: 1;
	opacity: 1;
	transform:
		translate(78px, 4px)
		rotate(12deg)
		scale(0.91);
	filter: brightness(0.58);
	pointer-events: none;
}

/* =========================================================
   DYNAMISCHE POSITIES

   main.js wisselt deze classes bij iedere slide.
   ========================================================= */

.jb-hero-deck__card.is-position-0 {
	z-index: 3;
	opacity: 1;
	transform:
		translate(0, 0)
		rotate(-1deg)
		scale(1);
	filter: brightness(1);
	pointer-events: auto;
}

.jb-hero-deck__card.is-position-1 {
	z-index: 2;
	opacity: 1;
	transform:
		translate(42px, -16px)
		rotate(6deg)
		scale(0.96);
	filter: brightness(0.76);
	pointer-events: none;
}

.jb-hero-deck__card.is-position-2 {
	z-index: 1;
	opacity: 1;
	transform:
		translate(78px, 4px)
		rotate(12deg)
		scale(0.91);
	filter: brightness(0.58);
	pointer-events: none;
}

.jb-hero-deck__card.is-exiting {
	z-index: 4;
	opacity: 0;
	transform:
		translate(-130px, 30px)
		rotate(-15deg)
		scale(0.94);
	pointer-events: none;
}

/* =========================================================
   AFBEELDINGEN EN BIJSCHRIFT
   ========================================================= */

.jb-hero-deck__card img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

.jb-hero-deck__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			transparent 35%,
			rgba(18, 22, 24, 0.88) 100%
		);
	pointer-events: none;
}

.jb-hero-deck__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: grid;
	gap: 0.4rem;
	padding: 1.6rem;
	pointer-events: none;
}

.jb-hero-deck__caption span {
	color: #ff8c00;
	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.jb-hero-deck__caption strong {
	max-width: 390px;
	color: #ffffff;
	font-size: 1.35rem;
	line-height: 1.3;
}

/* =========================================================
   BEDIENING
   ========================================================= */

.jb-hero-deck__controls {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.3rem;
}

.jb-hero-deck__button {
	position: relative;
	z-index: 11;
	display: inline-flex;
	min-height: 2.85rem;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0.7rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	color: #ffffff;
	background:
		linear-gradient(
			145deg,
			rgba(255, 255, 255, 0.10),
			rgba(255, 255, 255, 0.035)
		);
	box-shadow:
		0 8px 22px rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		border-color 180ms ease,
		background-color 180ms ease,
		color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

.jb-hero-deck__button-label {
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.02em;
	line-height: 1;
}

.jb-hero-deck__button:hover {
	border-color: #ff8c00;
	color: #ffffff;
	background: #ff8c00;
	box-shadow:
		0 8px 24px rgba(255, 140, 0, 0.30),
		0 0 0 4px rgba(255, 140, 0, 0.09);
	transform: translateY(-2px);
}

.jb-hero-deck__button:active {
	transform: translateY(0) scale(0.96);
}

.jb-hero-deck__button:focus-visible {
	border-color: #ff8c00;
	outline: 3px solid rgba(255, 140, 0, 0.38);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.jb-hero-deck__button {
		transition: none;
	}
}

.jb-hero-deck__dots {
	position: relative;
	z-index: 11;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.jb-hero-deck__dot {
	display: block;
	width: 0.55rem;
	height: 0.55rem;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.35);
	box-shadow: none;
	cursor: pointer;
	transition:
		width 180ms ease,
		background-color 180ms ease;
}

.jb-hero-deck__dot:hover {
	background: rgba(255, 255, 255, 0.7);
}

.jb-hero-deck__dot.is-active {
	width: 1.8rem;
	background: #ff8c00;
}

.jb-hero-deck__dot:focus-visible {
	outline: 2px solid #ff8c00;
	outline-offset: 3px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
	.jb-home-hero__inner {
		grid-template-columns:
			minmax(0, 1fr)
			minmax(330px, 0.75fr);
		gap: 3rem;
	}

	.jb-hero-deck {
		min-height: 450px;
	}

	.jb-hero-deck__stage {
		height: 405px;
	}
}

@media (max-width: 850px) {
	.jb-home-hero__inner {
		grid-template-columns: 1fr;
	}

	.jb-home-hero__content {
		max-width: 720px;
	}

	.jb-hero-deck {
		width: min(calc(100% - 60px), 540px);
		justify-self: center;
		margin-top: 1rem;
	}
}

/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 650px) {
	.jb-home-hero {
		min-height: auto;
	}

	.jb-home-hero__inner {
		width: min(
			calc(100% - 1.5rem),
			var(--jb-container)
		);
		padding-block: 4rem;
	}

	body.jb-theme .jb-home-hero h1,
	.jb-home-hero h1 {
		font-size: clamp(3.1rem, 15vw, 4.8rem);
	}

	.jb-home-hero__actions {
		width: 100%;
	}

	.jb-home-hero__actions .jb-button {
		width: 100%;
	}

	.jb-hero-deck {
		width: calc(100% - 32px);
		min-height: 390px;
	}

	.jb-hero-deck__stage {
		height: 345px;
	}

	/* Fallbackpositie zonder JavaScript */

	.jb-hero-deck:not([data-initialized="true"])
	.jb-hero-deck__card:nth-child(2) {
		transform:
			translate(22px, -10px)
			rotate(5deg)
			scale(0.96);
	}

	.jb-hero-deck:not([data-initialized="true"])
	.jb-hero-deck__card:nth-child(3) {
		transform:
			translate(40px, 2px)
			rotate(9deg)
			scale(0.91);
	}

	/* Dynamische posities */

	.jb-hero-deck__card.is-position-1 {
		transform:
			translate(22px, -10px)
			rotate(5deg)
			scale(0.96);
	}

	.jb-hero-deck__card.is-position-2 {
		transform:
			translate(40px, 2px)
			rotate(9deg)
			scale(0.91);
	}

	.jb-hero-deck__caption {
		padding: 1.2rem;
	}

	.jb-hero-deck__caption strong {
		font-size: 1.1rem;
	}

	.jb-hero-deck__controls {
		margin-top: 1rem;
	}
}

/* =========================================================
   VERMINDERDE BEWEGING
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.jb-hero-deck__card,
	.jb-hero-deck__button,
	.jb-hero-deck__dot {
		transition: none;
	}
}