/* ==========================================================================
   ADM Administraties - interactieve werkwijze
   ========================================================================== */

.adm-workflow-section {
	position: relative;
	overflow: hidden;
}

.adm-workflow-section::before,
.adm-workflow-section::after {
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255, 192, 203, 0.08);
	content: "";
	pointer-events: none;
}

.adm-workflow-section::before {
	top: -150px;
	left: -110px;
}

.adm-workflow-section::after {
	right: -140px;
	bottom: -170px;
}

.adm-workflow-intro {
	position: relative;
	z-index: 1;
	max-width: 820px;
	margin: 0 auto 34px;
	text-align: center;
}

.adm-workflow-intro p {
	margin-bottom: 0;
}

.adm-pdca {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
}

.adm-pdca__circle {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	width: min(650px, 88vw);
	aspect-ratio: 1;
	overflow: hidden;
	border: 9px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: #E8DED8;
	box-shadow: 0 26px 64px rgba(81, 71, 71, 0.22);
	isolation: isolate;
}

.adm-pdca__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	padding: clamp(34px, 6vw, 62px);
	border: 0;
	color: #514747;
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition:
		transform 180ms ease,
		filter 180ms ease,
		box-shadow 180ms ease;
}

.adm-pdca__item::before {
	display: none;
	content: none;
}

/*
 * Visuele volgorde met de klok mee:
 * Plan -> Do -> Act -> Overzicht -> terug naar Plan.
 */
.adm-pdca__item--plan {
	grid-column: 1;
	grid-row: 1;
	background: #D4C7C1;
}

.adm-pdca__item--do {
	grid-column: 2;
	grid-row: 1;
	background: #BF707C;
	color: #FFFFFF;
}

.adm-pdca__item--act {
	grid-column: 2;
	grid-row: 2;
	background: #FFC0CB;
}

.adm-pdca__item--overview {
	grid-column: 1;
	grid-row: 2;
	background: #E8DED8;
}

.adm-pdca__item:hover,
.adm-pdca__item:focus-visible {
	z-index: 4;
	transform: scale(1.045);
	filter: saturate(1.08);
	box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.adm-pdca__item:focus-visible {
	outline: 4px solid #FFFFFF;
	outline-offset: -10px;
}

.adm-pdca__label {
	position: relative;
	z-index: 2;
	font-family: var(--adm-serif);
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	font-weight: 700;
	line-height: 1;
}

.adm-pdca__micro {
	position: relative;
	z-index: 2;
	max-width: 150px;
	font-size: clamp(0.7rem, 1.1vw, 0.82rem);
	font-weight: 700;
	line-height: 1.35;
}

.adm-pdca__item--do .adm-pdca__label,
.adm-pdca__item--do .adm-pdca__micro {
	color: #FFFFFF;
}

.adm-pdca__hub {
	position: absolute;
	z-index: 7;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 30%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border: 8px solid rgba(255, 255, 255, 0.48);
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 10px 30px rgba(81, 71, 71, 0.14);
	pointer-events: none;
}

.adm-pdca__hub span {
	color: #BF707C;
	font-family: var(--adm-serif);
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	font-weight: 700;
}

.adm-pdca__arrow {
	position: absolute;
	z-index: 8;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1.5rem, 3vw, 2.3rem);
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
	text-shadow: 0 2px 8px rgba(81, 71, 71, 0.16);
}

.adm-pdca__arrow--top {
	top: 31%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.adm-pdca__arrow--right {
	top: 50%;
	right: 31%;
	transform: translate(50%, -50%) rotate(90deg);
}

.adm-pdca__arrow--bottom {
	bottom: 31%;
	left: 50%;
	transform: translate(-50%, 50%) rotate(180deg);
}

.adm-pdca__arrow--left {
	top: 50%;
	left: 31%;
	transform: translate(-50%, -50%) rotate(270deg);
}

.adm-pdca__hint {
	position: relative;
	z-index: 1;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.94) !important;
	font-size: 0.88rem;
	font-weight: 700;
	text-align: center;
}

/* Dialogs */
.adm-workflow-dialog {
	width: min(650px, calc(100% - 40px));
	max-height: min(82vh, 760px);
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 38px 38px 86px 38px;
	background: #E8DED8;
	color: #514747;
	box-shadow: 0 34px 100px rgba(44, 34, 36, 0.34);
}

.adm-workflow-dialog::backdrop,
.adm-modal::backdrop {
	background: rgba(43, 34, 36, 0.64);
	backdrop-filter: blur(5px);
}

.adm-workflow-dialog__inner {
	position: relative;
	padding: clamp(34px, 6vw, 58px);
	overflow: hidden;
}

.adm-workflow-dialog__inner::before {
	position: absolute;
	top: -90px;
	right: -85px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 192, 203, 0.34);
	content: "";
}

.adm-workflow-dialog__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 86px;
	min-height: 42px;
	margin-bottom: 24px;
	padding: 8px 18px;
	border-radius: 999px;
	background: #BF707C;
	color: #FFFFFF;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.adm-workflow-dialog--do .adm-workflow-dialog__badge {
	background: #514747;
}

.adm-workflow-dialog--act .adm-workflow-dialog__badge {
	background: #FFC0CB;
	color: #514747;
}

.adm-workflow-dialog--overview .adm-workflow-dialog__badge {
	background: #FFFFFF;
	color: #BF707C;
}

.adm-workflow-dialog .adm-eyebrow {
	position: relative;
	z-index: 1;
	color: #BF707C;
}

.adm-workflow-dialog h3 {
	position: relative;
	z-index: 1;
	margin-bottom: 18px;
	color: #514747;
	font-size: clamp(2rem, 5vw, 3rem);
}

.adm-workflow-dialog p {
	position: relative;
	z-index: 1;
	color: #514747;
}

.adm-workflow-dialog p:last-child {
	margin-bottom: 0;
}

.adm-workflow-dialog__close,
.adm-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 10;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #514747;
	color: #FFFFFF;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.adm-workflow-dialog__close:hover,
.adm-workflow-dialog__close:focus-visible,
.adm-modal__close:hover,
.adm-modal__close:focus-visible {
	background: #FFC0CB;
	color: #514747;
	transform: rotate(7deg);
}

@media (max-width: 700px) {
	.adm-pdca__circle {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
		width: min(92vw, 560px) !important;
		aspect-ratio: 1 !important;
		border-radius: 50% !important;
		border-width: 6px;
	}

	.adm-pdca__item {
		min-height: 0 !important;
		padding: 18px 12px;
	}

	.adm-pdca__label {
		font-size: clamp(1.2rem, 5vw, 1.6rem);
	}

	.adm-pdca__micro {
		max-width: 105px;
		font-size: 0.64rem;
	}

	.adm-pdca__hub {
		width: 31%;
		border-width: 5px;
	}

	.adm-pdca__arrow {
		font-size: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adm-pdca__item,
	.adm-workflow-dialog__close,
	.adm-modal__close {
		transition: none;
	}

	.adm-pdca__item:hover,
	.adm-workflow-dialog__close:hover,
	.adm-modal__close:hover {
		transform: none;
	}
}
