/* ============================================================
   HJH Activatietest – Frontend Styles
   ============================================================ */

:root {
	--hjh-teal: #AFF3E6;
	--hjh-teal-dark: #2db5a7;
	--hjh-purple: #4E0E81;
	--hjh-dark: #111111;
	--hjh-white: #ffffff;
	--hjh-offwhite: #f4f4f4;
	--hjh-text: #4E0E81;
	--hjh-radius: 14px;
	--hjh-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	--hjh-font-head: 'Archivo', sans-serif;
	--hjh-font-body: 'Poppins', sans-serif;
}

/* ── Full-width breakout ────────────────────────────────────── */
.hjh-activatietest {
	font-family: var(--hjh-font-body);
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
	box-sizing: border-box;
}

.hjh-activatietest *,
.hjh-activatietest *::before,
.hjh-activatietest *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── Screens ───────────────────────────────────────────────── */
.hjh-screen {
	display: none;
}

.hjh-screen.is-active {
	display: flex;
	flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED HEADER COMPONENT
   Used on: intro screen, question screens
══════════════════════════════════════════════════════════════ */
.hjh-question-header,
.hjh-intro-header {
	position: relative;
	z-index: 20;
	background: var(--hjh-white);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 48px 0px;
	flex-shrink: 0;
	overflow: visible;
}

.hjh-question-header::after,
.hjh-intro-header::after {
	content: '';
	position: absolute;
	bottom: -41px;
	left: 0;
	width: 100%;
	height: 82px;
	background: var(--hjh-white);
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
}

/* ── Header inner wrapper ────────────────────────────────────── */
.hjh-header-inner {
	position: relative;
	z-index: 2;
	/* sits above the ::after curve */
	display: flex;
	align-items: center;
	gap: 24px;
}

/* ── Logo: HET JUISTE HOUT (left) ───────────────────────────── */
.hjh-logo-hjh {
	width: 118px;
	height: 69px;
	object-fit: contain;
	object-position: left center;
	display: block;
	flex-shrink: 0;
}

/* ── "Werkt bij" label (center) ─────────────────────────────── */
.hjh-header-werkt-bij {
	font-family: var(--hjh-font-body);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--hjh-purple);
	line-height: 1;
	white-space: nowrap;
	flex-shrink: 0;
}

.hjh-header-werkt-bij--white {
	color: rgba(255, 255, 255, 0.45);
}

/* ── Logo: Lelystad (right) ─────────────────────────────────── */
.hjh-logo-lelystad {
	width: 185px;
	height: 45px;
	object-fit: contain;
	object-position: left center;
	display: block;
	flex-shrink: 0;
}

/* On dark result screen – invert logos to white */
.hjh-logo-hjh--white {
	filter: brightness(0) invert(1);
}

.hjh-logo-lelystad--white {
	filter: brightness(0) invert(1);
}

/* ═══════════════════════════════════════════════════════════════
   INTRO SCREEN
══════════════════════════════════════════════════════════════ */
.hjh-screen-intro {
	min-height: 100vh;
}

.hjh-screen-intro.is-exiting .hjh-intro-body {
	opacity: 0;
	transition: opacity 0.38s ease;
}

/* Desktop: 2-column layout identical to question screens */
.hjh-intro-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	flex: 1;
	margin-top: -1px;
}

/* Left: teal content panel */
.hjh-intro-panel {
	background: var(--hjh-teal);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 64px 56px 48px;
}

.hjh-intro-inner {
	width: 575px;
}

.hjh-intro-title {
	font-family: var(--hjh-font-head);
	display: flex;
	flex-direction: column;
	margin-bottom: 36px;
}

.hjh-intro-title__pre,
.hjh-intro-title__main,
.hjh-intro-title__sub {
	font-size: clamp(2rem, 3.5vw, 4rem);
	font-weight: 900;
	font-stretch: semi-expanded;
	color: var(--hjh-purple);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.hjh-intro-toelichting {
	font-family: var(--hjh-font-body);
	font-size: 1.6rem;
	font-weight: 400;
	color: var(--hjh-purple);
	line-height: 1.6;
	opacity: 0.75;
	margin-top: 0px;
	margin-bottom: 40px;
}

/* Right: image */
.hjh-intro-image {
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: #c8c8c8;
	overflow: hidden;
}

.hjh-intro-person {
	position: absolute;
	bottom: 0;
	height: 80%;
	max-height: 90vh;
	width: auto;
	object-fit: contain;
	object-position: bottom center;
}

.hjh-intro-person--back {
	left: 0%;
	z-index: 1;
}

.hjh-intro-person--front {
	right: 0%;
	z-index: 2;
}

.hjh-intro-person.anim-out {
	animation: hjh-person-out 0.4s ease-in forwards;
}

@media (max-width: 1700px) {
	.hjh-intro-person--back {
		left: -15%;
	}

	.hjh-intro-person--front {
		right: -15%;
	}
}

@media (max-width: 1300px) {
	.hjh-intro-person--back {
		left: -20%;
	}

	.hjh-intro-person--front {
		right: -20%;
	}
}


@media (max-width: 768px) {
	.hjh-intro-person--back {
		left: -20%;
		filter: brightness(0.6);
	}

	.hjh-intro-person--front {
		right: -20%;
		filter: brightness(0.75);
	}
}

/* ── Buttons ─────────────────────────────────────────────────── */
.hjh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 22px;
	border: none;
	border-radius: 50px;
	font-family: var(--hjh-font-body);
	font-size: 1.6rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: transform var(--hjh-transition), box-shadow var(--hjh-transition);
	line-height: 1;
	white-space: nowrap;
}

.hjh-btn:hover,
.hjh-btn:focus-visible {
	text-decoration: none;
	transform: translateY(-2px);
}

.hjh-btn-start {
	background: var(--hjh-purple);
	color: var(--hjh-white);
}

.hjh-btn-start:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	color: var(--hjh-white);
}

.hjh-btn-primary {
	background: var(--hjh-teal);
	color: var(--hjh-dark);
}

.hjh-btn-primary:hover {
	background: var(--hjh-teal-dark);
	box-shadow: 0 8px 24px rgba(62, 207, 192, 0.35);
	color: var(--hjh-dark);
}

.hjh-btn-secondary {
	background: transparent;
	color: var(--hjh-white);
	border: 2px solid rgba(255, 255, 255, 0.4);
}

.hjh-btn-secondary:hover {
	border-color: var(--hjh-white);
	color: var(--hjh-white);
}


/* ═══════════════════════════════════════════════════════════════
   QUESTION SCREENS
══════════════════════════════════════════════════════════════ */
.hjh-screen-questions {
	min-height: 100vh;
	background: var(--hjh-teal);
}

.hjh-question {
	display: none;
	flex-direction: column;
	flex: 1;
}

.hjh-question.is-active {
	display: flex;
	flex: 1;
}

/* ── Question body: 2 columns, teal + photo ─────────────────── */
.hjh-question-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	flex: 1;
	/* Overlap the header curve: body sits behind the ::after pseudo-element */
	margin-top: -1px;
}

/* ── Left: teal content panel ───────────────────────────────── */
.hjh-question-panel {
	background: var(--hjh-teal);
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* vertically center stelling + antwoorden */
	/* Top padding accounts for the header curve overlap */
	padding: 64px 56px 48px;
	align-items: center;
}

/* ── Progress dots ───────────────────────────────────────────── */
.hjh-progress {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 24px;
	width: 575px;
}

.hjh-progress-label {
	font-family: var(--hjh-font-body);
	font-size: 1.6rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	color: var(--hjh-purple);
	margin-right: 6px;
	line-height: 1;
}

/* Dots: numbered circles */
.hjh-dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	min-width: 26px;
	border-radius: 50%;
	font-family: var(--hjh-font-body);
	padding-top: 1px;
	height: 26px;
	border: 2px solid rgba(78, 14, 129, 0.25);
	font-size: 1r;
	font-weight: 400;
	color: rgba(78, 14, 129, 0.4);
	transition: all var(--hjh-transition);
	line-height: 1;
}

/* Done: solid filled, no number shown */
.hjh-dot.is-done {
	background: var(--hjh-purple);
	border-color: var(--hjh-purple);
	color: white;
}

/* Active: outlined purple, number visible */
.hjh-dot.is-active {
	border-color: var(--hjh-purple);
	border-width: 2.5px;
	color: var(--hjh-purple);
	font-weight: 400;
	background-color: white;
}

/* ── Question text ───────────────────────────────────────────── */
.hjh-question-text {
	font-family: var(--hjh-font-head);
	font-stretch: semi-expanded;
	font-size: 4.8rem;
	font-weight: 700;
	color: var(--hjh-purple);
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin-bottom: 80px;
	width: 575px;
}

/* ── Answer buttons ──────────────────────────────────────────── */
.hjh-answers {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 575px
}

.hjh-answer {
	display: flex;
	align-items: center;
	padding: 20px 22px;
	background: var(--hjh-white);
	border: 2px solid transparent;
	border-radius: 50px;
	justify-content: center;
	/* pill shape */
	cursor: pointer;
	text-align: left;
	color: var(--hjh-text);
	font-family: var(--hjh-font-body);
	font-size: 1.6rem;
	line-height: 78%;
	font-weight: 500;
	width: 100%;
	transition: border-color var(--hjh-transition), background var(--hjh-transition), transform var(--hjh-transition);
}

.hjh-answer:hover {
	border-color: var(--hjh-purple);
	transform: translateX(4px);
}

.hjh-answer.is-selected {
	border-color: var(--hjh-purple);
	background: rgba(78, 14, 129, 0.08);
	transform: translateX(4px);
}

.hjh-question.is-answered .hjh-answer {
	pointer-events: none;
}

.hjh-question.is-answered .hjh-answer:not(.is-selected) {
	opacity: 0.4;
}

/* ── Right: images ───────────────────────────────────────────── */
.hjh-question-images {
	position: relative;
	overflow: hidden;
	background-color: #c8c8c8;
}

.hjh-question-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #c8c8c8;
	/* Start invisible; JS adds .anim-in / .anim-out */
	opacity: 0;
}

.hjh-question-bg-placeholder {
	background: linear-gradient(160deg, #b0ddd8, #8ecac4);
}

.hjh-question-person {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	z-index: 2;
	/* Start below the panel; JS adds .anim-in / .anim-out */
	transform: translateY(110%);
	opacity: 0;
}

.hjh-question-person img {
	width: auto;
	height: 95%;
	max-height: 80vh;
	object-fit: contain;
	object-position: bottom center;
	filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.2));
}

/* ── Image animation classes (added/removed by JS) ───────────── */
.hjh-question-bg.anim-in {
	animation: hjh-bg-in 0.5s ease forwards;
}

.hjh-question-bg.anim-out {
	animation: hjh-bg-out 0.32s ease-in forwards;
}

.hjh-question-person.anim-in {
	animation: hjh-person-in 0.52s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hjh-question-person.anim-out {
	animation: hjh-person-out 0.28s ease-in forwards;
}

@keyframes hjh-bg-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes hjh-bg-out {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes hjh-person-in {
	from {
		transform: translateY(110%);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes hjh-person-out {
	from {
		transform: translateY(0);
		opacity: 1;
	}

	to {
		transform: translateY(110%);
		opacity: 0;
	}
}

/* ═══════════════════════════════════════════════════════════════
   RESULT SCREEN
══════════════════════════════════════════════════════════════ */
.hjh-screen-result {
	background: var(--hjh-teal);
	min-height: 100vh;
}

/* Content area below the white header */
.hjh-result-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 64px 40px 64px;
	/* Push below header curve (same as question panel) */
	padding-top: 72px;
}

.hjh-result-header {
	margin-bottom: 32px;
	width: 650px;
}

.hjh-result-label {
	font-family: var(--hjh-font-head);
	font-size: 3.2rem;
	font-weight: 700;
	color: var(--hjh-purple);
	margin-bottom: 4px;
}

.hjh-percentage-display {
	display: flex;
	align-items: baseline;
	justify-content: center;
	line-height: 1;
	margin-bottom: 12px;
}

.hjh-percentage-number {
	font-family: var(--hjh-font-head);
	font-stretch: semi-expanded;
	font-size: 12rem;
	font-weight: 900;
	color: var(--hjh-purple);
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.hjh-percentage-sign {
	font-family: var(--hjh-font-head);
	font-stretch: semi-expanded;
	font-size: 12rem;
	font-weight: 900;
	color: var(--hjh-purple);
	line-height: 1;
	align-self: flex-start;
}

.hjh-result-sublabel {
	font-family: var(--hjh-font-head);
	font-stretch: semi-expanded;
	font-size: 3.2rem;
	font-weight: 700;
	color: var(--hjh-purple);
	line-height: 1.35;
}

/* ── Result content block (per score range) ─────────────────── */
.hjh-result-content {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	max-width: 650px;
	width: 100%;
	animation: hjh-fade-up 0.5s ease 0.4s both;
}

.hjh-result-content.is-active {
	display: flex;
}

@keyframes hjh-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Horizontal divider between score display and text */
.hjh-result-divider {
	width: 100%;
	height: 1px;
	background: #fff;
	margin: 4px 0;
}

.hjh-result-text {
	font-family: var(--hjh-font-body);
	font-size: 1.6rem;
	line-height: 1.8;
	color: var(--hjh-purple);
	text-align: center;
	opacity: 0.85;
}

.hjh-result-cta-text {
	font-family: var(--hjh-font-body);
	font-size: 1.6rem;
	margin-bottom: -8px;
	font-weight: 700;
	color: var(--hjh-purple);
}

/* Buttons stacked vertically, fixed width */
.hjh-result-buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}

/* Primary result button: dark purple filled */
.hjh-btn-result-primary {
	background: var(--hjh-purple);
	color: var(--hjh-white);
	width: 100%;
	max-width: 430px;
	font-size: 1.6rem;
	font-weight: 600;
	padding-left: 12px;
	padding-right: 12px;
	padding-top: 18px !important;
	padding-bottom: 18px !important;
	line-height: 78%;
}

.hjh-btn-result-primary:hover {
	background: #3a0a61;
	box-shadow: 0 8px 24px rgba(78, 14, 129, 0.35);
	color: var(--hjh-white);
}

/* Secondary result button: white bg, purple text */
.hjh-btn-result-secondary {
	background: var(--hjh-white);
	color: var(--hjh-purple);
	border: 2px solid transparent;
	width: 100%;
	max-width: 430px;
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 78%;
	padding-left: 12px;
	padding-right: 12px;
	padding-top: 18px !important;
	padding-bottom: 18px !important;
}

.hjh-btn-result-secondary:hover {
	border-color: var(--hjh-purple);
	color: var(--hjh-purple);
}

/* Restart button */
.hjh-btn-restart {
	background: transparent;
	color: rgba(78, 14, 129, 0.45);
	border: 1px solid rgba(78, 14, 129, 0.2);
	font-size: 0.82rem;
	padding: 11px 22px;
	margin-top: 12px;
	font-family: var(--hjh-font-body);
	font-weight: 600;
	border-radius: 50px;
	cursor: pointer;
	transition: color var(--hjh-transition), border-color var(--hjh-transition);
}

.hjh-btn-restart:hover {
	color: var(--hjh-purple);
	border-color: rgba(78, 14, 129, 0.45);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

/* ── Mid desktop (1024px – 1300px) ──────────────────────────── */
@media (max-width: 1300px) {
	.hjh-intro-panel {
		padding: 48px 48px 48px;
		align-items: center;
		justify-content: center;
	}

	.hjh-intro-inner {
		width: 100%;
		max-width: 420px;
	}

}

/* ── Tablet / small desktop (768px – 1024px) ─────────────────── */
@media (max-width: 1024px) {
	.hjh-intro-panel {
		padding: 48px 40px 40px;
		align-items: stretch;
	}

	.hjh-intro-inner {
		width: 100%;
		max-width: none;
	}

	.hjh-question-panel {
		padding: 48px 40px 40px;
		align-items: stretch;
	}

	.hjh-answer {
		line-height: 1.3;
	}

	.hjh-result-header {
		width: 100%;
	}

	.hjh-percentage-number,
	span.hjh-percentage-sign {
		font-size: 8rem;
	}

	p.hjh-result-label,
	.hjh-result-sublabel {
		font-size: 2.2rem;
	}

	.hjh-progress,
	.hjh-question-text,
	.hjh-answers {
		width: 100%;
	}

	.hjh-question-text {
		font-size: clamp(1.6rem, 3vw, 2.8rem);
	}

}

@media (max-width: 768px) {

	.hjh-question-header,
	.hjh-intro-header {
		padding: 28px 24px 10px;
		gap: 16px;
		max-height: none;
	}

	h2.hjh-question-text {
		margin-bottom: 40px;
	}

	.hjh-btn-start{
		background-color:#2db5a7;
	}

	.hjh-logo-hjh {
		width: 80px;
		height: 47px;
	}

	.hjh-logo-lelystad {
		width: 108px;
		height: 26px;
	}

	.hjh-question-body {
		display: flex;
		flex-direction: column;
		flex: 1;
	}

	.hjh-question-images {
		order: -1;
		height: 50vw;
		flex-shrink: 0;
	}

	.hjh-question-panel {
		flex: 1;
	}

	.hjh-question-person img {
		height: 80%;
	}

	.hjh-question-panel {
		padding: 32px 24px 40px;
		align-items: stretch;
	}

	.hjh-intro-title__pre,
	.hjh-intro-title__sub {
		font-size: 16px !important;
	}

	.hjh-progress,
	.hjh-question-text,
	.hjh-answers {
		width: 100%;
	}

	.hjh-progress {
		margin-bottom: 16px;
	}

	.hjh-question-text {
		font-size: clamp(1.4rem, 5.5vw, 2.2rem);
	}

	.hjh-question-panel {
		justify-content: start;
	}

	/* Intro: image as full background, text overlaid */
	.hjh-intro-body {
		display: flex;
		flex: 1;
		position: relative;
		min-height: calc(100vh - 110px);
	}

	.hjh-intro-image {
		position: absolute;
		inset: 0;
		z-index: 0;
	}

	.hjh-intro-image::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 30%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.25) 100%);
	}

	.hjh-intro-panel {
		position: relative;
		z-index: 1;
		background: transparent;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: center;
		padding: 40px 28px 56px;
		width: 100%;
		text-align: center;
	}

	.hjh-intro-inner {
		width: 100%;
		max-width: 480px;
	}

	.hjh-intro-title {
		margin-bottom: 28px;
		text-align: center;
	}

	.hjh-intro-title__pre {
		font-size: 48px;
		color: var(--hjh-white);
		font-weight: 500;
	}

	.hjh-intro-title__main {
		font-size: clamp(48px, 14vw, 54px);
		color: var(--hjh-white);
		line-height: 0.9;
	}

	.hjh-intro-title__sub {
		font-size: 48px;
		color: var(--hjh-white);
		font-weight: 500;
	}

	.hjh-intro-toelichting {
		display: none;
	}



	.hjh-result-body {
		padding: 48px 24px 48px;
	}

	.hjh-btn-result-primary,
	.hjh-btn-result-secondary {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.hjh-logo-hjh {
		width: 64px;
		height: 37px;
	}

	.hjh-btn-result-primary,
	.hjh-btn-result-secondary {
		font-size: 1.4rem
	}

	.hjh-logo-lelystad {
		width: 86px;
		height: 21px;
	}

	.hjh-header-werkt-bij {
		font-size: 1.2rem;
		;
	}

	.hjh-question-header::after,
	.hjh-intro-header::after {
		bottom: -20px;
		height: 42px;
	}

	.hjh-question-panel {
		padding: 28px 18px 32px;
	}

	.hjh-answer {
		padding: 13px 18px;
		font-size: 1.4rem;
		line-height: 1.4;
		text-align: center;
	}

	.hjh-result-text {
		text-align: left;
	}
}