/*
 * Hairtec Behandeltraject - section styles.
 *
 * Type scale follows the site (Elementor kit 13): h2 32/24px bold, content
 * h3 25/20px bold, body 16px on a 24px line, labels 12px bold uppercase.
 *
 * Every selector is scoped to .hbt with at least (0,2,0) specificity so the
 * Elementor kit element rules (h2, h3, a, button) cannot override it,
 * whatever order WP Rocket's "Remove Unused CSS" merges stylesheets in.
 */

.hbt {
	--hbt-primary: #223558;
	--hbt-secondary: #eeeff2;
	--hbt-text: #5c5c5c;
	--hbt-muted: #636a7c;
	--hbt-nav-idle: #6b7284;
	--hbt-current-border: #d7d7d7;
	--hbt-current-bg: #eeeff2;
	--hbt-surface: #ffffff;
	--hbt-border: #e4e6ec;
	--hbt-rule: rgba(34, 53, 88, 0.12);
	--hbt-visual-from: #eeeff2;
	--hbt-visual-to: #ffffff;
	--hbt-radius: 20px;
	--hbt-gap: 32px;
	--hbt-sticky-top: 110px;
	--hbt-visual-height: 170px;
	--hbt-col-intro: 4fr;
	--hbt-col-steps: 8fr;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hbt-gap);
	min-width: 0;
	color: var(--hbt-text);
	font-family: inherit;
}

.hbt *,
.hbt *::before,
.hbt *::after {
	box-sizing: border-box;
}

/* Intro column */

.hbt .hbt-intro {
	min-width: 0;
}

.hbt .hbt-eyebrow {
	display: inline-block;
	margin: 0 0 22px;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--hbt-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hbt .hbt-title {
	display: block;
	margin: 0 0 14px;
	color: var(--hbt-primary);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
}

.hbt .hbt-title em {
	font-style: normal;
}

.hbt .hbt-lead {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--hbt-text);
}

.hbt .hbt-review {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 28px;
	color: var(--hbt-text);
	font-size: 14px;
	line-height: 1.5;
}

.hbt .hbt-review-avatar {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--hbt-border);
}

.hbt .hbt-review-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--hbt-primary);
}

.hbt .hbt-review-meta {
	display: block;
	color: var(--hbt-muted);
	font-size: 13px;
}

.hbt .hbt-review a {
	color: var(--hbt-primary);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	text-decoration-color: transparent;
	transition: text-decoration-color 0.2s ease;
}

.hbt .hbt-review a:hover,
.hbt .hbt-review a:focus-visible {
	text-decoration-color: currentColor;
}

.hbt .hbt-review a:focus-visible {
	outline: 2px solid var(--hbt-primary);
	outline-offset: 2px;
	border-radius: 3px;
}

.hbt .hbt-review-meta a {
	color: var(--hbt-text);
	font-weight: 400;
	text-decoration-color: rgba(92, 92, 92, 0.4);
}

/* Step navigation: a plain numbered list on every screen size */

.hbt .hbt-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--hbt-border);
}

.hbt .hbt-nav-list > li {
	border-bottom: 1px solid var(--hbt-border);
}

.hbt .hbt-nav-link {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-height: 44px;
	padding: 11px 0;
	color: var(--hbt-nav-idle);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	transition: color 0.35s ease;
}

.hbt .hbt-nav-num {
	flex: 0 0 auto;
	min-width: 1.6em;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: inherit;
}

/* Steps that have been reached while scrolling stay filled in. */
.hbt .hbt-nav-link.is-passed,
.hbt .hbt-nav-link:hover {
	color: var(--hbt-primary);
}

.hbt .hbt-nav-link:focus-visible {
	outline: 2px solid var(--hbt-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Step cards */

.hbt .hbt-steps {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.hbt .hbt-step {
	scroll-margin-top: calc(var(--hbt-sticky-top) - 16px);
	overflow: hidden;
	border: 1px solid var(--hbt-border);
	border-radius: var(--hbt-radius);
	background: var(--hbt-surface);
	transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* The card that matches the current step in the navigation. */
@media (min-width: 1025px) {
	.hbt .hbt-step.is-current {
		border-color: var(--hbt-current-border);
		background: var(--hbt-current-bg);
		box-shadow: 0 0 0 1px var(--hbt-current-border);
	}

	.hbt .hbt-step.is-current .hbt-content {
		border-left-color: var(--hbt-current-border);
	}
}

.hbt .hbt-visual {
	position: relative;
	height: var(--hbt-visual-height);
	overflow: hidden;
	background: linear-gradient(180deg, var(--hbt-visual-from) 0%, var(--hbt-visual-to) 100%);
	color: var(--hbt-primary);
}

.hbt .hbt-rings {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hbt .hbt-visual-num {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--hbt-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	transform: translate(-50%, -50%);
	box-shadow: 0 12px 28px rgba(34, 53, 88, 0.22);
}

.hbt .hbt-visual-img {
	position: absolute;
	right: 28px;
	bottom: 22px;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	border: 4px solid #fff;
	object-fit: cover;
	box-shadow: 0 10px 24px rgba(34, 53, 88, 0.18);
}

.hbt .hbt-body {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	grid-template-areas:
		"head content"
		"cta  content";
	grid-template-rows: auto 1fr;
	padding: 34px 36px;
}

/* Left column: number, title and the page link; right column: the text. */
.hbt .hbt-head {
	grid-area: head;
	padding-right: 32px;
}

.hbt .hbt-content {
	grid-area: content;
	min-width: 0;
	padding-left: 32px;
	border-left: 1px solid var(--hbt-border);
}

.hbt .hbt-cta {
	grid-area: cta;
	align-self: end;
	margin: 24px 0 0;
	padding-right: 32px;
}

.hbt .hbt-no {
	margin: 0 0 10px;
	color: var(--hbt-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.hbt .hbt-no span {
	color: var(--hbt-muted);
}

.hbt .hbt-step-title {
	display: block;
	margin: 0;
	color: var(--hbt-primary);
	font-size: 25px;
	font-weight: 700;
	line-height: 1.2;
}

/* Rich text inside a card */

.hbt .hbt-text {
	max-width: 68ch;
}

.hbt .hbt-text p,
.hbt .hbt-text ul,
.hbt .hbt-text ol {
	margin: 0 0 14px;
	color: var(--hbt-text);
	font-size: 16px;
	line-height: 1.5;
}

.hbt .hbt-text ul,
.hbt .hbt-text ol {
	padding-left: 22px;
}

.hbt .hbt-text li {
	margin-bottom: 8px;
}

.hbt .hbt-text li::marker {
	color: var(--hbt-primary);
	font-weight: 700;
}

.hbt .hbt-text > :last-child {
	margin-bottom: 0;
}

.hbt .hbt-text h4 {
	margin: 22px 0 8px;
	color: var(--hbt-primary);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

.hbt .hbt-text strong {
	color: var(--hbt-primary);
}

.hbt .hbt-text a {
	color: var(--hbt-primary);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(34, 53, 88, 0.35);
	transition: text-decoration-color 0.2s ease;
}

.hbt .hbt-text a:hover,
.hbt .hbt-text a:focus-visible {
	text-decoration-color: currentColor;
}

.hbt .hbt-text a:focus-visible {
	outline: 2px solid var(--hbt-primary);
	outline-offset: 2px;
	border-radius: 3px;
}

/* "Lees verder" disclosure */

.hbt .hbt-more {
	margin-top: 6px;
}

.hbt .hbt-more > summary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--hbt-primary);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.hbt .hbt-more > summary::-webkit-details-marker {
	display: none;
}

.hbt .hbt-more > summary::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease, margin 0.2s ease;
}

.hbt .hbt-more[open] > summary::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.hbt .hbt-more > summary:hover {
	color: var(--hbt-text);
}

.hbt .hbt-more > summary:focus-visible {
	outline: 2px solid var(--hbt-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

.hbt .hbt-more-close,
.hbt .hbt-more[open] .hbt-more-open {
	display: none;
}

.hbt .hbt-more[open] .hbt-more-close {
	display: inline;
}

.hbt .hbt-more > .hbt-text {
	padding-top: 20px;
}

/* Page link: the site's outlined pill button. */

.hbt .hbt-cta-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--hbt-primary);
	border-radius: 100px;
	color: var(--hbt-primary);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hbt .hbt-cta-link::after {
	content: "\2192";
	font-size: 15px;
	line-height: 1;
}

.hbt .hbt-cta-link:hover {
	background: var(--hbt-primary);
	color: #fff;
}

.hbt .hbt-cta-link:focus-visible {
	outline: 2px solid var(--hbt-primary);
	outline-offset: 3px;
}

/* Optional "next step" link (only when the cards are stacked). */

.hbt .hbt-foot {
	margin: 14px 0 0;
}

.hbt .hbt-next-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--hbt-text);
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
}

.hbt .hbt-next-link strong {
	color: var(--hbt-primary);
	font-weight: 700;
}

.hbt .hbt-next-link::after {
	content: "\2192";
	color: var(--hbt-primary);
	font-size: 15px;
	line-height: 1;
}

.hbt .hbt-next-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hbt .hbt-next-link:focus-visible {
	outline: 2px solid var(--hbt-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Below 1025px the step list is hidden unless explicitly enabled; the
   cards carry a "next step" link instead. */

@media (max-width: 1024px) {
	.hbt:not(.hbt--nav-mobile) .hbt-nav {
		display: none;
	}
}

@media (min-width: 1025px) {
	.hbt:not(.hbt--stacked) .hbt-next-link {
		display: none;
	}
}

/* Two-column layout with a sticky intro from 1025px up */

@media (min-width: 1025px) {
	.hbt {
		grid-template-columns: minmax(0, var(--hbt-col-intro)) minmax(0, var(--hbt-col-steps));
		gap: clamp(40px, 5vw, 80px);
		align-items: start;
	}

	.hbt.hbt--stacked {
		grid-template-columns: minmax(0, 1fr);
	}

	.hbt:not(.hbt--stacked) .hbt-intro {
		position: sticky;
		top: var(--hbt-sticky-top);
	}

	.hbt:not(.hbt--stacked) .hbt-nav-list,
	.hbt:not(.hbt--stacked) .hbt-nav-list > li {
		border: 0;
	}

	.hbt:not(.hbt--stacked) .hbt-nav-link {
		min-height: 0;
		padding: 9px 0;
		font-size: 20px;
	}

	.hbt:not(.hbt--stacked) .hbt-nav-link:focus-visible {
		outline-offset: 4px;
		border-radius: 6px;
	}
}

/* Step-by-step pager below 1025px: one card at a time with a counter, a
   progress line and previous/next buttons. The layout is set here so it is
   stable before behandeltraject.js runs; the script only swaps the card. */

.hbt .hbt-pager,
.hbt .hbt-pager-nav {
	display: none;
}

.hbt .hbt-step[hidden] {
	display: none;
}

.hbt .hbt-pager {
	margin-bottom: -6px;
	scroll-margin-top: var(--hbt-sticky-top);
}

.hbt .hbt-pager-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.hbt .hbt-pager-count {
	display: block;
	color: var(--hbt-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.hbt .hbt-pager-count b {
	color: var(--hbt-primary);
}

.hbt .hbt-pager-bar {
	height: 2px;
	border-radius: 2px;
	background: var(--hbt-secondary);
	overflow: hidden;
}

.hbt .hbt-pager-bar span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: var(--hbt-primary);
	transition: width 0.3s ease;
}

/* Previous/next: the outlined pill buttons used across the site. The
   :focus rule keeps the theme's button:focus background out. */
.hbt .hbt-pager-btn,
.hbt .hbt-pager-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--hbt-primary);
	border-radius: 100px;
	background: transparent;
	color: var(--hbt-primary);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.hbt .hbt-pager-btn::before,
.hbt .hbt-pager-btn::after {
	font-size: 15px;
	line-height: 1;
}

.hbt .hbt-pager-prev::before {
	content: "\2190";
}

.hbt .hbt-pager-next::after {
	content: "\2192";
}

@media (hover: hover) {
	.hbt .hbt-pager-btn:hover:not(:disabled) {
		background: var(--hbt-primary);
		color: #fff;
	}
}

.hbt .hbt-pager-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.hbt .hbt-pager-btn:focus-visible {
	outline: 2px solid var(--hbt-primary);
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.hbt.hbt--pager .hbt-pager {
		display: block;
	}

	.hbt.hbt--pager .hbt-pager-nav {
		display: flex;
		gap: 8px;
	}

	/* Until the script takes over, only the first card is shown. */
	.hbt.hbt--pager:not(.is-ready) .hbt-step ~ .hbt-step {
		display: none;
	}

	.hbt.hbt--pager .hbt-next-link,
	.hbt.hbt--pager .hbt-no {
		display: none;
	}


}

/* The site's phone scale: h2 24px, content h3 20px. */
@media (max-width: 767px) {
	.hbt .hbt-title {
		font-size: 24px;
	}

	.hbt .hbt-step-title {
		font-size: 20px;
	}

	.hbt .hbt-body {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"head"
			"content"
			"cta";
		grid-template-rows: auto;
		padding: 24px 22px;
	}

	.hbt .hbt-head,
	.hbt .hbt-cta {
		padding-right: 0;
	}

	.hbt .hbt-head {
		margin-bottom: 14px;
	}

	.hbt .hbt-content {
		padding-left: 0;
		border-left: 0;
	}

	.hbt .hbt-cta {
		margin-top: 20px;
	}
}

@media (max-width: 600px) {
	.hbt {
		--hbt-visual-height: 130px;
	}

	.hbt .hbt-visual-img {
		right: 18px;
		bottom: 16px;
		width: 64px;
		height: 64px;
	}

	.hbt .hbt-review {
		font-size: 13.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbt .hbt-nav-link,
	.hbt .hbt-nav-num,
	.hbt .hbt-more > summary,
	.hbt .hbt-more > summary::after,
	.hbt .hbt-cta-link,
	.hbt .hbt-step,
	.hbt .hbt-pager-btn,
	.hbt .hbt-pager-bar span,
	.hbt .hbt-text a {
		transition: none;
	}
}
