/**
 * Damena Process Timeline Widget Stylesheet
 * Scoped strictly under .damena-process-timeline-wrapper
 */

:root {
	--damena-pt-bg: #efe7d6;
	--damena-pt-spine-color: #10273c;
	--damena-pt-spine-dot: #10273c;
	--damena-pt-spine-glow: rgba(16, 39, 60, 0.08);
	--damena-pt-text-dark: #10273c;
	--damena-pt-text-muted: #34495d;
	--damena-pt-tab-bg: rgba(216, 205, 182, 0.42);
	--damena-pt-tab-border: #ada492;
	--damena-pt-tab-active-bg: #10273c;
	--damena-pt-tab-active-text: #ffffff;
	--damena-pt-radius: 16px;
	--damena-pt-radius-mobile: 12px;
}

.damena-process-timeline-wrapper {
	--damena-pt-tabs-gap: 8px;
	--damena-pt-tab-normal-text: var(--damena-pt-text-dark);
	--damena-pt-tab-normal-bg: transparent;
	--damena-pt-tab-normal-border: var(--damena-pt-tab-border);
	--damena-pt-tab-hover-text: var(--damena-pt-text-dark);
	--damena-pt-tab-hover-bg: #e5dcc7;
	--damena-pt-tab-hover-border: var(--damena-pt-text-dark);
	--damena-pt-tabs-floating-bg: rgba(239, 231, 214, 0.94);
	--damena-pt-tabs-floating-border: rgba(16, 39, 60, 0.14);
	--damena-pt-tabs-floating-shadow: 0 12px 28px rgba(16, 39, 60, 0.16);
	--damena-pt-sticky-mode: top;
	--damena-pt-sticky-top-gap: 48px;
	--damena-pt-sticky-bottom: 40px;
	--damena-pt-step-copy-gap: 8px;
	--damena-pt-variant-gap: 16px;
	--damena-pt-badge-gap: 12px;
	--damena-pt-badge-align: center;
	--damena-pt-badge-color: #ffffff;
	--damena-pt-badge-bg: #10273c;
	--damena-pt-badge-border-color: #10273c;
	--damena-pt-badge-border-width: 1px;
	--damena-pt-badge-radius: 999px;
	--damena-pt-badge-padding: 6px 12px;
	--damena-pt-badge-sep-color: var(--damena-pt-text-muted);
	box-sizing: border-box;
	width: 100%;
	position: relative;
	font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--damena-pt-text-dark);
	background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 34rem), var(--damena-pt-bg);
	border-block: 1px solid #d8cdb6;
	overflow: clip;
}

.damena-process-timeline-wrapper *,
.damena-process-timeline-wrapper *::before,
.damena-process-timeline-wrapper *::after {
	box-sizing: border-box;
}

/* Header Section */
.damena-pt-hero {
	display: flex;
	width: min(100% - 40px, 1240px);
	margin-inline: auto;
	padding-block: clamp(64px, 8vw, 112px) clamp(72px, 9vw, 124px);
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.damena-pt-eyebrow {
	font-size: 11.2px;
	font-weight: 700;
	line-height: 16.8px;
	letter-spacing: 2.464px;
	text-transform: uppercase;
	color: var(--damena-pt-text-dark);
	margin: 0;
}

.damena-pt-hero h1,
.damena-pt-hero h2,
.damena-pt-hero h3,
.damena-pt-title {
	max-width: 580px;
	margin-top: 24px;
	margin-bottom: 0;
	font-size: clamp(38px, 5vw, 48px);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.72px;
	color: var(--damena-pt-text-dark);
	text-wrap: balance;
}

.damena-pt-intro {
	max-width: 725px;
	margin-top: 48px;
	margin-bottom: 0;
	color: var(--damena-pt-text-muted);
	font-size: 18px;
	line-height: 29.25px;
	text-wrap: pretty;
}

/* Tab Switcher & Hero Reservation Slot */
.damena-pt-tabs-slot {
	display: inline-flex;
	justify-content: center;
	margin-top: 32px;
}

.damena-pt-tabs-slot.has-sticky-active {
	min-height: var(--damena-pt-tabs-slot-h, 50px);
	min-width: var(--damena-pt-tabs-slot-w, auto);
}

.damena-process-timeline-wrapper .damena-pt-tabs {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--damena-pt-tabs-gap, 8px);
	margin-top: 0;
	padding: 4px;
	border: 1px solid transparent;
	border-radius: 999px;
	background-color: var(--damena-pt-tab-bg);
	transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.damena-process-timeline-wrapper .damena-pt-tabs.is-floating,
.damena-process-timeline-wrapper .damena-pt-tabs.is-docked {
	z-index: 50;
	margin-top: 0;
	background-color: var(--damena-pt-tabs-floating-bg);
	border-color: var(--damena-pt-tabs-floating-border);
	box-shadow: var(--damena-pt-tabs-floating-shadow);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.damena-process-timeline-wrapper .damena-pt-tabs.is-floating {
	position: fixed;
	left: var(--damena-pt-dock-x, 50%);
	transform: translateX(-50%);
	max-width: calc(100vw - 32px);
}

.damena-process-timeline-wrapper .damena-pt-tabs.is-floating--top {
	top: var(--damena-pt-floating-top, 128px);
	bottom: auto;
}

.damena-process-timeline-wrapper .damena-pt-tabs.is-floating--bottom {
	top: auto;
	bottom: max(var(--damena-pt-sticky-bottom, 24px), env(safe-area-inset-bottom, 0px));
}

.damena-process-timeline-wrapper .damena-pt-tabs.is-docked {
	position: absolute;
	top: auto;
	left: 50%;
	transform: translateX(-50%);
	max-width: calc(100% - 32px);
}

.damena-process-timeline-wrapper .damena-pt-tabs.is-docked--from-top {
	bottom: var(--damena-pt-sticky-bottom, 40px);
}

.damena-process-timeline-wrapper .damena-pt-tabs.is-docked--from-bottom {
	bottom: max(var(--damena-pt-sticky-bottom, 24px), env(safe-area-inset-bottom, 0px));
}

.damena-process-timeline-wrapper .damena-pt-tab {
	min-width: 104px;
	min-height: 40px;
	height: auto;
	padding: 8px 18px;
	border: 1px solid var(--damena-pt-tab-normal-border);
	border-radius: 999px;
	color: var(--damena-pt-tab-normal-text);
	background-color: var(--damena-pt-tab-normal-bg);
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 180ms ease, box-shadow 220ms ease;
}

.damena-process-timeline-wrapper .damena-pt-tab:not([aria-selected="true"]):hover {
	transform: translateY(-2px);
	color: var(--damena-pt-tab-hover-text);
	background-color: var(--damena-pt-tab-hover-bg);
	border-color: var(--damena-pt-tab-hover-border);
}

.damena-process-timeline-wrapper .damena-pt-tab:active {
	transform: translateY(0) scale(0.97);
}

.damena-process-timeline-wrapper .damena-pt-tab[aria-selected="true"],
.damena-process-timeline-wrapper .damena-pt-tab[aria-selected="true"]:hover {
	border-color: var(--damena-pt-tab-active-border, var(--damena-pt-tab-active-bg));
	color: var(--damena-pt-tab-active-text);
	background-color: var(--damena-pt-tab-active-bg);
	box-shadow: 0 6px 18px rgba(16, 39, 60, 0.18);
}

.damena-process-timeline-wrapper .damena-pt-tab:focus-visible {
	outline: 3px solid #14415f;
	outline-offset: 3px;
}

/* Steps List Container */
.damena-pt-list {
	width: min(100% - 40px, 1240px);
	margin-inline: auto;
	padding-bottom: clamp(36px, 6vw, 84px);
}

.damena-process-timeline-wrapper[data-sticky-tabs="yes"] .damena-pt-list {
	padding-bottom: clamp(96px, 10vw, 132px);
}

/* Individual Process Step */
.damena-pt-step {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--step-delay, 0ms),
		transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--step-delay, 0ms);
}

.damena-pt-step[data-visible="true"] {
	opacity: 1;
	transform: translateY(0);
}

.damena-pt-step-content {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) 95px minmax(0, 1.75fr);
	gap: 24px;
}

/* Alternating Grid Configuration */
.damena-pt-step:nth-child(even) .damena-pt-step-text {
	grid-column: 3;
}

.damena-pt-step:nth-child(even) .damena-pt-route-spine {
	grid-column: 2;
	grid-row: 1;
}

.damena-pt-step:nth-child(even) .damena-pt-step-media {
	grid-column: 1;
	grid-row: 1;
}

/* Step Copy */
.damena-pt-step-text {
	padding-bottom: 64px;
}

.damena-pt-step-copy {
	display: flex;
	flex-direction: column;
	gap: var(--damena-pt-step-copy-gap, 8px);
}

.damena-pt-step-number-row {
	display: flex;
	flex-wrap: wrap;
	align-items: var(--damena-pt-badge-align, center);
	gap: 8px var(--damena-pt-badge-gap, 12px);
}

.damena-pt-step-number {
	font-size: 38px;
	font-weight: 500;
	line-height: 42px;
	color: var(--damena-pt-text-dark);
}

.damena-pt-step-badge-sep {
	display: inline-flex;
	align-items: center;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	color: var(--damena-pt-badge-sep-color, var(--damena-pt-text-muted));
}

.damena-process-timeline-wrapper .damena-pt-step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--damena-pt-badge-padding, 6px 12px);
	border: var(--damena-pt-badge-border-width, 1px) solid var(--damena-pt-badge-border-color, #10273c);
	border-radius: var(--damena-pt-badge-radius, 999px);
	background-color: var(--damena-pt-badge-bg, #10273c);
	color: var(--damena-pt-badge-color, #ffffff);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.damena-process-timeline-wrapper[data-active-tab="primary"] .damena-pt-step-badge,
.damena-process-timeline-wrapper[data-active-tab="primary"] .damena-pt-step-badge-sep {
	display: none !important;
}

.damena-process-timeline-wrapper[data-active-tab="secondary"] .damena-pt-step-badge,
.damena-process-timeline-wrapper[data-active-tab="secondary"] .damena-pt-step-badge-sep {
	display: inline-flex !important;
}

.damena-pt-step-copy-inner {
	display: flex;
	flex-direction: column;
}

.damena-pt-step-copy-inner h2,
.damena-pt-step-copy-inner h3,
.damena-pt-step-title {
	font-size: 26px;
	font-weight: 600;
	line-height: 34px;
	margin: 0;
	color: var(--damena-pt-text-dark);
	text-wrap: balance;
}

.damena-pt-step-desc {
	color: var(--damena-pt-text-muted);
	font-size: 15px;
	line-height: 25px;
	margin: 0;
}

/* Tab Variant Switching in Steps */
.damena-pt-variant {
	display: flex;
	flex-direction: column;
	transition: opacity 250ms ease;
}

.damena-pt-variant-primary {
	gap: var(--damena-pt-variant-primary-gap, var(--damena-pt-variant-gap, 16px));
}

.damena-pt-variant-secondary {
	gap: var(--damena-pt-variant-secondary-gap, var(--damena-pt-variant-gap, 16px));
}

.damena-process-timeline-wrapper[data-active-tab="primary"] .damena-pt-variant-secondary {
	display: none !important;
}

.damena-process-timeline-wrapper[data-active-tab="primary"] .damena-pt-variant-primary {
	display: flex !important;
}

.damena-process-timeline-wrapper[data-active-tab="secondary"] .damena-pt-variant-primary {
	display: none !important;
}

.damena-process-timeline-wrapper[data-active-tab="secondary"] .damena-pt-variant-secondary {
	display: flex !important;
}

/* Tab Variant Switching in Step Media */
.damena-process-timeline-wrapper[data-active-tab="primary"] .damena-pt-image-pair--secondary {
	display: none !important;
}

.damena-process-timeline-wrapper[data-active-tab="primary"] .damena-pt-image-pair--primary {
	display: grid !important;
}

.damena-process-timeline-wrapper[data-active-tab="secondary"] .damena-pt-image-pair--primary {
	display: none !important;
}

.damena-process-timeline-wrapper[data-active-tab="secondary"] .damena-pt-image-pair--secondary {
	display: grid !important;
}

/* Central Route Spine */
.damena-pt-route-spine {
	position: relative;
	display: flex;
	min-height: 438px;
	justify-content: center;
}

.damena-pt-route-spine::after {
	width: 1px;
	height: 100%;
	content: "";
	background: var(--damena-pt-spine-color);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 250ms;
}

.damena-pt-step:last-child .damena-pt-route-spine::after {
	height: 22px;
}

.damena-pt-route-spine span {
	position: absolute;
	z-index: 1;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--damena-pt-spine-dot);
	box-shadow: 0 0 0 0 var(--damena-pt-spine-glow);
	transform: scale(0);
	transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms, box-shadow 500ms ease 420ms;
}

.damena-pt-step[data-visible="true"] .damena-pt-route-spine::after {
	transform: scaleY(1);
}

.damena-pt-step[data-visible="true"] .damena-pt-route-spine span {
	box-shadow: 0 0 0 8px var(--damena-pt-spine-glow);
	transform: scale(1);
}

/* Step Media */
.damena-pt-step-media {
	padding-bottom: 64px;
}

.damena-pt-image-pair {
	display: grid;
	min-height: 374px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.damena-pt-image-card {
	position: relative;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border-radius: var(--damena-pt-radius);
	background: #d9dde3;
	box-shadow: 0 10px 30px rgba(16, 39, 60, 0.07);
}

.damena-pt-image-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.damena-pt-image-card:hover img {
	transform: scale(1.045);
}

.damena-pt-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: #d9dde3;
	color: #7b8895;
}

.damena-pt-image-placeholder svg {
	width: 36px;
	height: 36px;
	opacity: 0.6;
}

/* Responsive: Tablet Viewport */
@media (max-width: 1024px) {
	.damena-process-timeline-wrapper {
		--damena-pt-sticky-mode: bottom;
		--damena-pt-sticky-bottom: 24px;
	}

	.damena-pt-hero {
		width: min(100% - 48px, 820px);
	}

	.damena-pt-list {
		width: min(100% - 48px, 900px);
	}

	.damena-pt-step-content {
		grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.12fr);
		gap: 16px;
	}

	.damena-pt-step:nth-child(even) .damena-pt-step-content {
		grid-template-columns: minmax(0, 1.12fr) 56px minmax(0, 1fr);
	}

	.damena-pt-route-spine {
		min-height: 398px;
	}

	.damena-pt-image-pair {
		min-height: 334px;
	}

	.damena-pt-step-copy-inner h2,
	.damena-pt-step-copy-inner h3,
	.damena-pt-step-title {
		font-size: 22px;
		line-height: 30px;
	}

	.damena-pt-step-desc {
		font-size: 14px;
		line-height: 23px;
	}
}

/* Responsive: Mobile Viewport */
@media (max-width: 767px) {
	.damena-process-timeline-wrapper {
		--damena-pt-sticky-bottom: 16px;
	}

	.damena-pt-hero,
	.damena-pt-list {
		width: min(100% - 32px, 560px);
	}

	.damena-pt-hero {
		padding-block: 56px 76px;
	}

	.damena-pt-hero h1,
	.damena-pt-hero h2,
	.damena-pt-hero h3,
	.damena-pt-title {
		max-width: 430px;
		margin-top: 18px;
		font-size: clamp(34px, 10vw, 42px);
		line-height: 1.16;
	}

	.damena-pt-intro {
		margin-top: 34px;
		font-size: 16px;
		line-height: 26px;
	}

	.damena-pt-tabs-slot {
		width: 100%;
		max-width: 280px;
		margin-top: 26px;
	}

	.damena-process-timeline-wrapper .damena-pt-tabs {
		width: 100%;
		max-width: 280px;
	}

	.damena-process-timeline-wrapper .damena-pt-tabs.is-floating {
		width: min(calc(100vw - 32px), 280px);
		max-width: min(calc(100vw - 32px), 280px);
	}

	.damena-process-timeline-wrapper .damena-pt-tabs.is-docked {
		width: min(calc(100% - 32px), 280px);
		max-width: min(calc(100% - 32px), 280px);
	}

	.damena-process-timeline-wrapper .damena-pt-tab {
		min-width: 0;
		min-height: 44px;
		flex: 1;
	}

	.damena-pt-step-content,
	.damena-pt-step:nth-child(even) .damena-pt-step-content {
		display: grid;
		grid-template-columns: 28px minmax(0, 1fr);
		gap: 0 14px;
	}

	.damena-pt-step-text,
	.damena-pt-step:nth-child(even) .damena-pt-step-text {
		grid-column: 2;
		grid-row: 1;
		padding-bottom: 28px;
	}

	.damena-pt-step-media,
	.damena-pt-step:nth-child(even) .damena-pt-step-media {
		grid-column: 2;
		grid-row: 2;
		padding-bottom: 54px;
	}

	.damena-pt-route-spine,
	.damena-pt-step:nth-child(even) .damena-pt-route-spine {
		min-height: 100%;
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.damena-pt-step-number {
		font-size: 30px;
		line-height: 36px;
	}

	.damena-pt-step-copy-inner h2,
	.damena-pt-step-copy-inner h3,
	.damena-pt-step-title {
		font-size: 22px;
		line-height: 29px;
	}

	.damena-pt-step-desc {
		font-size: 14px;
		line-height: 23px;
	}

	.damena-pt-image-pair {
		min-height: 0;
		aspect-ratio: 1.35;
		gap: 10px;
	}

	.damena-pt-image-card {
		border-radius: var(--damena-pt-radius-mobile);
	}
}

@media (max-width: 479px) {

	.damena-pt-hero,
	.damena-pt-list {
		width: min(100% - 24px, 390px);
	}

	.damena-pt-image-pair {
		aspect-ratio: 1.16;
	}
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {

	.damena-process-timeline-wrapper *,
	.damena-process-timeline-wrapper *::before,
	.damena-process-timeline-wrapper *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.damena-pt-step {
		opacity: 1 !important;
		transform: none !important;
	}

	.damena-pt-route-spine::after {
		transform: scaleY(1) !important;
	}

	.damena-pt-route-spine span {
		transform: scale(1) !important;
	}
}

/* Elementor Editor Canvas Visibility Safeguard */
.elementor-editor-active .damena-pt-step,
.damena-process-timeline-wrapper.is-edit-mode .damena-pt-step {
	opacity: 1 !important;
	transform: none !important;
}

.elementor-editor-active .damena-pt-route-spine::after,
.damena-process-timeline-wrapper.is-edit-mode .damena-pt-route-spine::after {
	transform: scaleY(1) !important;
}

.elementor-editor-active .damena-pt-route-spine span,
.damena-process-timeline-wrapper.is-edit-mode .damena-pt-route-spine span {
	transform: scale(1) !important;
}

.elementor-editor-active .damena-pt-tabs,
.damena-process-timeline-wrapper.is-edit-mode .damena-pt-tabs {
	position: relative !important;
	inset: auto !important;
	transform: none !important;
}