/* DREAMS CLINIC Patient Journey — editorial route, content-first enhancement. */
.dc-journey {
	--dc-journey-gutter: clamp(1.25rem, 5vw, 5rem);
	--dc-journey-max: var(--dc-container-wide, 88rem);
	color: var(--dc-color-ink, #211b23);
	background: var(--dc-color-paper, #fcfafb);
}

.dc-journey__hero {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	min-block-size: min(48rem, 92svh);
	background: var(--dc-color-purple-900, #3b174d);
	color: var(--dc-color-surface, #fff);
}

.dc-journey__hero-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(8rem, 17vh, 12rem) clamp(2rem, 7vw, 7rem) clamp(4rem, 8vw, 7rem) var(--dc-journey-gutter);
}

.dc-journey__eyebrow {
	margin: 0 0 1.5rem;
	font-size: var(--dc-type-small, 0.875rem);
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.5;
	text-transform: uppercase;
}

.dc-journey__hero h1 {
	max-inline-size: 10ch;
	margin: 0;
	font-family: var(--dc-font-display, Georgia, serif);
	font-size: clamp(3.5rem, 6.6vw, 7.5rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.96;
}

.dc-journey__hero-intro,
.dc-journey__overview-intro,
.dc-journey__stage-description,
.dc-journey__closing-intro {
	font-size: var(--dc-type-lead, 1.25rem);
	line-height: var(--dc-leading-body, 1.65);
}

.dc-journey__hero-intro {
	max-inline-size: 39rem;
	margin-block-start: 2rem;
	color: rgb(255 255 255 / 88%);
}

.dc-journey__hero-intro p,
.dc-journey__overview-intro p,
.dc-journey__stage-description p,
.dc-journey__closing-intro p {
	margin: 0 0 1em;
}

.dc-journey__hero-intro p:last-child,
.dc-journey__overview-intro p:last-child,
.dc-journey__stage-description p:last-child,
.dc-journey__closing-intro p:last-child {
	margin-block-end: 0;
}

.dc-journey__location {
	margin: 1.75rem 0 2rem;
	color: rgb(255 255 255 / 75%);
	font-size: var(--dc-type-small, 0.875rem);
	letter-spacing: 0.08em;
}

.dc-journey__hero-media,
.dc-journey__figure,
.dc-journey__image-frame {
	position: relative;
	min-inline-size: 0;
}

.dc-journey__hero-figure,
.dc-journey__hero-figure .dc-journey__image-frame {
	block-size: 100%;
}

.dc-journey__figure {
	margin: 0;
	overflow: hidden;
	background: var(--dc-color-surface-muted, #f6f2f5);
}

.dc-journey__image-frame {
	block-size: 100%;
	overflow: hidden;
}

.dc-journey__image {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 850ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dc-journey__hero-figure .dc-journey__image {
	object-position: center;
}

.dc-journey__image-caption {
	position: absolute;
	inset-block-end: 1rem;
	inset-inline-end: 1rem;
	margin: 0;
	padding: 0.55rem 0.8rem;
	background: rgb(33 27 35 / 72%);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.4;
}

.dc-journey__button {
	display: inline-flex;
	min-block-size: 3.25rem;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	padding: 0.85rem 1.35rem;
	border: 1px solid currentColor;
	color: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.dc-journey__button--light {
	border-color: rgb(255 255 255 / 68%);
	color: #fff;
}

.dc-journey__button:hover {
	background: #fff;
	color: var(--dc-color-purple-900, #3b174d);
}

.dc-journey__button:focus-visible,
.dc-journey__map a:focus-visible,
.dc-journey__related a:focus-visible {
	outline: 3px solid var(--dc-color-magenta-500, #a52e78);
	outline-offset: 4px;
}

.dc-journey__overview {
	max-inline-size: var(--dc-journey-max);
	margin-inline: auto;
	padding: clamp(5rem, 9vw, 9rem) var(--dc-journey-gutter) clamp(4rem, 7vw, 7rem);
}

.dc-journey__overview-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.62fr);
	column-gap: clamp(2rem, 9vw, 9rem);
	align-items: end;
}

.dc-journey__eyebrow--dark {
	grid-column: 1 / -1;
	margin-block-end: 1rem;
	color: var(--dc-color-magenta-700, #8c2a68);
}

.dc-journey__overview h2,
.dc-journey__closing h2 {
	margin: 0;
	font-family: var(--dc-font-display, Georgia, serif);
	font-size: clamp(3rem, 6vw, 6rem);
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 0.98;
}

.dc-journey__overview-intro {
	max-inline-size: 34rem;
	margin-block-start: 1rem;
	color: var(--dc-color-muted, #625a63);
}

.dc-journey__map {
	position: relative;
	margin-block-start: clamp(3.5rem, 7vw, 6.5rem);
}

.dc-journey__route {
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	inline-size: 100%;
	block-size: 9.5rem;
	overflow: visible;
	fill: none;
	pointer-events: none;
}

.dc-journey__route-base,
.dc-journey__route-progress {
	fill: none;
	stroke-linecap: round;
	stroke-width: 1.5;
}

.dc-journey__route-base {
	stroke: var(--dc-color-line, #ded7df);
}

.dc-journey__route-progress {
	stroke: var(--dc-color-magenta-500, #a52e78);
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset 500ms ease;
}

.dc-journey__map ol {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin: 0;
	padding: 1.1rem 0 0;
	list-style: none;
}

.dc-journey__map li {
	min-inline-size: 0;
	padding-block-start: 0;
}

.dc-journey__map li:nth-child(even) {
	padding-block-start: 4.1rem;
}

.dc-journey__map a {
	display: flex;
	min-block-size: 8rem;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
	color: var(--dc-color-ink, #211b23);
	text-align: center;
	text-decoration: none;
}

.dc-journey__waypoint-number {
	display: grid;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	flex: 0 0 auto;
	place-items: center;
	border: 1px solid var(--dc-color-purple-700, #511f68);
	border-radius: 50%;
	background: var(--dc-color-paper, #fcfafb);
	color: var(--dc-color-purple-900, #3b174d);
	font-size: 0.8rem;
	font-weight: 700;
	transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.dc-journey__map a[aria-current="step"] .dc-journey__waypoint-number,
.dc-journey__map a:hover .dc-journey__waypoint-number {
	transform: scale(1.08);
	background: var(--dc-color-purple-900, #3b174d);
	color: #fff;
}

.dc-journey__waypoint-title {
	max-inline-size: 11rem;
	font-size: clamp(0.74rem, 0.9vw, 0.9rem);
	font-weight: 600;
	line-height: 1.45;
}

.dc-journey__related {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
	margin-block-start: 2.75rem;
	padding-block-start: 1.25rem;
	border-block-start: 1px solid var(--dc-color-line, #ded7df);
}

.dc-journey__related a {
	color: var(--dc-color-purple-700, #511f68);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.dc-journey__related a span {
	display: inline-block;
	margin-inline-start: 0.5rem;
}

.dc-journey__stages {
	max-inline-size: var(--dc-journey-max);
	margin-inline: auto;
	padding-inline: var(--dc-journey-gutter);
}

.dc-journey__stage {
	display: grid;
	position: relative;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	gap: clamp(2rem, 8vw, 8rem);
	align-items: center;
	padding-block: clamp(4rem, 9vw, 9rem);
	border-block-start: 1px solid var(--dc-color-line, #ded7df);
	scroll-margin-block-start: 2rem;
}

.dc-journey__stage:nth-child(even) .dc-journey__stage-copy {
	grid-column: 2;
	grid-row: 1;
}

.dc-journey__stage:nth-child(even) .dc-journey__stage-media {
	grid-column: 1;
	grid-row: 1;
}

.dc-journey__stage-copy {
	max-inline-size: 40rem;
}

.dc-journey__stage-label {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.3rem;
	color: var(--dc-color-magenta-700, #8c2a68);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.5;
	text-transform: uppercase;
}

.dc-journey__stage-label > span:first-child {
	font-variant-numeric: tabular-nums;
}

.dc-journey__stage h2 {
	max-inline-size: 14ch;
	margin: 0;
	font-family: var(--dc-font-display, Georgia, serif);
	font-size: clamp(2.75rem, 4.2vw, 4.8rem);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1;
}

.dc-journey__stage-description {
	max-inline-size: 42rem;
	margin-block-start: 1.5rem;
	color: var(--dc-color-muted, #625a63);
}

.dc-journey__stage-figure {
	aspect-ratio: 0.84;
}

.dc-journey__stage-figure .dc-journey__image-frame {
	position: absolute;
	inset: 0;
}

.dc-journey__stage-figure .dc-journey__image {
	position: absolute;
	inset: 0;
}

.dc-journey__stage-waypoint {
	display: none;
}

.dc-journey__closing {
	padding: clamp(5rem, 10vw, 10rem) var(--dc-journey-gutter);
	background: var(--dc-color-purple-900, #3b174d);
	color: #fff;
}

.dc-journey__closing-inner {
	max-inline-size: 66rem;
	margin-inline: auto;
}

.dc-journey__closing h2 {
	max-inline-size: 13ch;
}

.dc-journey__closing-intro {
	max-inline-size: 43rem;
	margin-block-start: 1.5rem;
	color: rgb(255 255 255 / 84%);
}

.dc-journey__closing .dc-journey__button {
	margin-block-start: 2rem;
}

html[dir="rtl"] .dc-journey__hero h1,
html[dir="rtl"] .dc-journey__overview h2,
html[dir="rtl"] .dc-journey__stage h2,
html[dir="rtl"] .dc-journey__closing h2 {
	font-family: var(--dc-font-arabic-display, "Noto Naskh Arabic", sans-serif);
	letter-spacing: 0;
	line-height: 1.3;
}

html[dir="rtl"] .dc-journey__hero h1 {
	font-size: clamp(3rem, 5.8vw, 6.5rem);
}

html[dir="rtl"] .dc-journey__hero-intro,
html[dir="rtl"] .dc-journey__overview-intro,
html[dir="rtl"] .dc-journey__stage-description,
html[dir="rtl"] .dc-journey__closing-intro,
html[dir="rtl"] .dc-journey__waypoint-title {
	font-family: var(--dc-font-arabic-body, "Noto Sans Arabic", sans-serif);
}

html[dir="rtl"] .dc-journey__route {
	transform: scaleX(-1);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.dc-journey__stage-figure:hover .dc-journey__image {
		transform: scale(1.035);
	}
}

@media (max-width: 64rem) {
	.dc-journey__hero {
		min-block-size: 42rem;
	}

	.dc-journey__hero h1 {
		font-size: clamp(3.25rem, 7vw, 5.5rem);
	}

	.dc-journey__overview-heading {
		grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.75fr);
		column-gap: 3rem;
	}

	.dc-journey__stage {
		gap: 3rem;
	}
}

@media (max-width: 48rem) {
	.dc-journey__hero {
		grid-template-columns: 1fr;
		min-block-size: auto;
	}

	.dc-journey__hero-copy {
		padding: 9rem var(--dc-journey-gutter) 3.5rem;
	}

	.dc-journey__hero h1 {
		max-inline-size: 12ch;
		font-size: clamp(3.25rem, 12vw, 5.25rem);
	}

	.dc-journey__hero-media {
		min-block-size: min(68vw, 28rem);
	}

	.dc-journey__hero-figure {
		position: absolute;
		inset: 0;
	}

	.dc-journey__hero-figure .dc-journey__image {
		position: absolute;
		inset: 0;
	}

	.dc-journey__overview-heading {
		display: block;
	}

	.dc-journey__overview h2 {
		max-inline-size: 12ch;
		font-size: clamp(3rem, 10vw, 4.5rem);
	}

	.dc-journey__overview-intro {
		max-inline-size: 42rem;
		margin-block-start: 1.25rem;
	}

	.dc-journey__map {
		margin-block-start: 3rem;
		padding-inline-start: 0;
	}

	.dc-journey__route {
		display: none;
	}

	.dc-journey__map ol {
		display: block;
		position: relative;
		padding-block: 0;
		padding-inline-start: 0;
	}

	.dc-journey__map ol::before {
		position: absolute;
		inset-block: 1.4rem 1.5rem;
		inset-inline-start: 1.35rem;
		inline-size: 1px;
		background: linear-gradient(to bottom, var(--dc-color-magenta-500, #a52e78) var(--dc-journey-progress, 0%), var(--dc-color-line, #ded7df) var(--dc-journey-progress, 0%));
		content: "";
	}

	.dc-journey__map li,
	.dc-journey__map li:nth-child(even) {
		padding: 0;
	}

	.dc-journey__map a {
		display: grid;
		grid-template-columns: 2.75rem minmax(0, 1fr);
		min-block-size: 4.25rem;
		justify-content: start;
		gap: 1rem;
		text-align: start;
	}

	.dc-journey__waypoint-title {
		max-inline-size: 28rem;
		font-size: 0.95rem;
	}

	.dc-journey__related {
		margin-block-start: 1rem;
	}

	.dc-journey__stage,
	.dc-journey__stage:nth-child(even) {
		display: flex;
		position: relative;
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
		padding-block: 3.5rem;
		padding-inline-start: 3.25rem;
	}

	.dc-journey__stage-copy,
	.dc-journey__stage:nth-child(even) .dc-journey__stage-copy {
		order: 1;
		max-inline-size: none;
	}

	.dc-journey__stage-media,
	.dc-journey__stage:nth-child(even) .dc-journey__stage-media {
		order: 2;
	}

	.dc-journey__stage-waypoint {
		display: grid;
		position: absolute;
		inset-block-start: 3.45rem;
		inset-inline-start: 0;
		inline-size: 2.5rem;
		block-size: 2.5rem;
		place-items: center;
		border: 1px solid var(--dc-color-purple-700, #511f68);
		border-radius: 50%;
		background: var(--dc-color-paper, #fcfafb);
		color: var(--dc-color-purple-900, #3b174d);
		font-size: 0.72rem;
		font-weight: 700;
	}

	.dc-journey__stages {
		position: relative;
	}

	.dc-journey__stages::before {
		position: absolute;
		inset-block: 0;
		inset-inline-start: calc(var(--dc-journey-gutter) + 1.2rem);
		inline-size: 1px;
		background: var(--dc-color-line, #ded7df);
		content: "";
	}

	.dc-journey__stage-figure {
		inline-size: 100%;
		max-inline-size: 34rem;
		aspect-ratio: 0.92;
	}

	html[dir="rtl"] .dc-journey__hero h1 {
		font-size: clamp(3rem, 11vw, 4.8rem);
	}
}

@media (max-width: 30rem) {
	.dc-journey__hero-copy {
		padding-block-start: 8rem;
	}

	.dc-journey__hero h1 {
		font-size: clamp(3rem, 12.5vw, 4rem);
	}

	.dc-journey__hero-intro,
	.dc-journey__overview-intro,
	.dc-journey__stage-description,
	.dc-journey__closing-intro {
		font-size: 1.05rem;
	}

	.dc-journey__overview h2,
	.dc-journey__closing h2 {
		font-size: clamp(2.8rem, 11vw, 3.8rem);
	}

	.dc-journey__stage h2 {
		font-size: clamp(2.55rem, 10vw, 3.4rem);
	}

	.dc-journey__stage-label {
		align-items: flex-start;
		font-size: 0.7rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dc-journey__image,
	.dc-journey__button,
	.dc-journey__waypoint-number,
	.dc-journey__route-progress {
		transition-duration: 0.01ms !important;
	}
}
