/**
 * Co-creatie — block 2: process tabs (horizontal accordion).
 */

:root {
	--tf-blue: #3273EB;
	--tf-cocreatie-tab: #2D67D3;
	--tf-cocreatie-tab-w: 112px;
}

.tf-cocreatie-tabs.e-con,
.tf-cocreatie-tabs,
.tf-thermovormen-process.e-con,
.tf-thermovormen-process {
	--padding-top: 0 !important;
	--padding-bottom: 0 !important;
	--padding-left: 0 !important;
	--padding-right: 0 !important;
	background-color: var(--tf-blue) !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: clamp(64px, 7vw, 110px) var(--tf-page-x) clamp(72px, 8vw, 120px) !important;
	margin: 0 !important;
}

.tf-cocreatie-tabs-widget.elementor-widget-html,
.tf-cocreatie-tabs-widget,
.tf-thermovormen-process-widget.elementor-widget-html,
.tf-thermovormen-process-widget {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

.tf-cocreatie-tabs-widget .elementor-widget-container,
.tf-thermovormen-process-widget .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
}

.tf-cct {
	width: 100%;
	color: #fff;
	font-family: "Garet", sans-serif;
}

.tf-cct__intro {
	max-width: none;
	margin: 0 0 clamp(36px, 4.5vw, 64px);
}

.tf-cct__eyebrow {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.3;
	color: #fff;
}

.tf-cct__title {
	margin: 0;
	color: #fff;
	font-size: clamp(26px, calc(26px + (100vw - 1440px) * 10 / 480), 36px);
	font-weight: 400; /* Book */
	line-height: 1.35;
	white-space: nowrap;
}

.tf-cct__accordion {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: clamp(340px, 36vw, 460px);
	height: clamp(340px, 36vw, 460px);
	overflow: hidden;
}

.tf-cct__item {
	display: flex;
	width: var(--tf-cocreatie-tab-w);
	flex: 0 0 auto;
	min-width: var(--tf-cocreatie-tab-w);
	background: var(--tf-cocreatie-tab);
	border-left: 1px solid rgba(255, 255, 255, 0.18);
	overflow: hidden;
	transition:
	width 0.75s cubic-bezier(0.22, 1, 0.36, 1),
	background-color 0.55s ease;
	will-change: width;
}

.tf-cct__item:first-child {
	border-left: 0;
}

.tf-cct__item.is-active {
	width: calc(100% - (3 * var(--tf-cocreatie-tab-w)));
	background: #fff;
	border-left: 0;
}

.tf-cct__item.is-active + .tf-cct__item {
	border-left: 0;
}

.tf-cct__trigger {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	margin: 0;
	padding: 40px;
	width: var(--tf-cocreatie-tab-w);
	min-width: var(--tf-cocreatie-tab-w);
	flex: 0 0 var(--tf-cocreatie-tab-w);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end; /* down, not to the right */
	background: transparent !important;
	color: #fff !important;
	cursor: pointer;
	font-family: "Garet", sans-serif;
	font-size: 24px;
	font-weight: 500; /* Medium */
	line-height: 1;
	letter-spacing: 0.02em;
	box-shadow: none !important;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.tf-cct__trigger:hover,
.tf-cct__trigger:focus,
.tf-cct__trigger:active {
	color: #fff !important;
	background: transparent !important;
	box-shadow: none !important;
}

.tf-cct__item.is-active .tf-cct__trigger,
.tf-cct__item.is-active .tf-cct__trigger:hover,
.tf-cct__item.is-active .tf-cct__trigger:focus,
.tf-cct__item.is-active .tf-cct__trigger:active {
	color: var(--tf-blue) !important;
	background: transparent !important;
	cursor: default;
}

.tf-cct__trigger:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.tf-cct__item.is-active .tf-cct__trigger:focus-visible {
	outline-color: var(--tf-blue);
}

.tf-cct__trigger-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	writing-mode: vertical-rl;
	transform: translateY(0) rotate(180deg);
	white-space: nowrap;
	transition: transform 0.35s ease;
	will-change: transform;
}

/* Inactive tabs: rise slightly on hover */
.tf-cct__item:not(.is-active) .tf-cct__trigger:hover .tf-cct__trigger-label,
.tf-cct__item:not(.is-active) .tf-cct__trigger:focus-visible .tf-cct__trigger-label {
	transform: translateY(-10px) rotate(180deg);
}

.tf-cct__trigger-arrow {
	display: inline-block;
	font-size: 18px;
	line-height: 1;
	color: inherit;
}

.tf-cct__panel {
	flex: 1 1 auto;
	min-width: 0;
	opacity: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: clamp(28px, 3.5vw, 56px);
	padding: clamp(28px, 3vw, 48px) clamp(28px, 3.5vw, 56px) clamp(28px, 3vw, 48px) 0;
	pointer-events: none;
	visibility: hidden;
	transform: translateX(12px);
	transition:
	opacity 0.4s ease,
	transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
	visibility 0s linear 0.45s;
}

.tf-cct__item.is-active .tf-cct__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
	transition:
	opacity 0.5s ease 0.22s,
	transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s,
	visibility 0s linear 0s;
}

.tf-cct__media {
	flex: 0 1 46%;
	max-width: 520px;
	min-width: 0;
	align-self: stretch;
	display: flex;
}

.tf-cct__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tf-cct__copy {
	flex: 1 1 42%;
	min-width: 0;
	max-width: 28em;
	padding-right: clamp(8px, 1vw, 24px);
}

.tf-cct__heading {
	margin: 0 0 18px;
	color: var(--tf-blue);
	font-family: "Garet", sans-serif;
	font-size: clamp(28px, 2.4vw, 36px);
	font-weight: 800;
	line-height: 1.15;
}

.tf-cct__text {
	margin: 0;
	color: #1a1a1a;
	font-family: "Garet", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.55;
}

/* Thermovormen title is longer — allow wrap on mid widths */
.tf-thermovormen-process .tf-cct__title {
	white-space: normal;
	max-width: 28em;
}

@media (min-width: 1280px) {
	.tf-thermovormen-process .tf-cct__title {
		white-space: nowrap;
		max-width: none;
	}
}

@media (max-width: 1024px) {
	.tf-cocreatie-tabs.e-con,
	.tf-cocreatie-tabs,
	.tf-thermovormen-process.e-con,
	.tf-thermovormen-process {
		padding: 56px var(--tf-page-x) 64px !important;
	}

	.tf-cct__title {
		white-space: normal;
	}

	.tf-cct__accordion {
		flex-direction: column;
		height: auto;
		min-height: 0;
	}

	.tf-cct__item {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		flex-direction: column;
		transition: background-color 0.45s ease;
		will-change: auto;
	}

	.tf-cct__item.is-active {
		width: 100%;
	}

	.tf-cct__panel {
		display: none;
		transform: none;
		padding: 0 20px 24px;
		flex-direction: column;
		gap: 20px;
		transition: none;
	}

	.tf-cct__item.is-active .tf-cct__panel {
		display: flex;
		transform: none;
		transition: none;
	}

	.tf-cct__trigger {
		width: 100%;
		min-width: 0;
		flex: 0 0 auto;
		flex-direction: row;
		padding: 40px;
		justify-content: flex-start;
		align-items: center;
	}

	.tf-cct__trigger-label {
		writing-mode: horizontal-tb;
		transform: translateY(0);
	}

	.tf-cct__item:not(.is-active) .tf-cct__trigger:hover .tf-cct__trigger-label,
	.tf-cct__item:not(.is-active) .tf-cct__trigger:focus-visible .tf-cct__trigger-label {
		transform: translateY(-4px);
	}

	.tf-cct__trigger-arrow {
		transform: none;
	}

	.tf-cct__media {
		flex: none;
		max-width: none;
		width: 100%;
		aspect-ratio: 16 / 10;
		height: 29rem;
	}

	.tf-cct__copy {
		flex: none;
		max-width: none;
		padding: 0;
	}

	.tf-cct__heading {
		font-size: 28px;
	}

	.tf-cct__text {
		font-size: 16px;
	}
}

@media (max-width: 400px) {
	.tf-cct__trigger {
		padding: 20px var(--tf-page-x);
	}

	.tf-cct__media {
		height: auto;
	}

	.tf-cct__panel {
		padding: 0 var(--tf-page-x) 20px;
		gap: 16px;
	}

	.tf-cct__trigger-label {
		font-size: 15px;
		overflow-wrap: anywhere;
	}

	.tf-cct__heading {
		font-size: 22px;
		overflow-wrap: anywhere;
	}

	.tf-cct__text {
		font-size: 15px;
		line-height: 1.45;
	}
}

@media (min-width: 1025px) {
	.tf-cct__panel {
		flex: 0 0 auto;
		box-sizing: border-box;
		width: calc(100vw - 2 * var(--tf-page-x) - 4 * var(--tf-cocreatie-tab-w));
	}

	.tf-cct__media,
	.tf-cct__copy {
		flex-shrink: 0;
	}
}
