/**
 * Emotional therapy page.
 */

.neomi-therapy {
	--therapy-ink: #292433;
	--therapy-plum: #6f315d;
	--therapy-muted: #504a58;
	--therapy-line: rgba(111, 49, 93, 0.16);
	--therapy-gold: #c9aa78;
	direction: rtl;
	overflow-x: hidden;
	background: #fffaf7;
	color: var(--therapy-ink);
	font-family: var(--neomi-font-body);
}

.neomi-therapy :where(h1, h2, h3, p) {
	margin: 0;
}

.neomi-therapy-hero {
	direction: ltr;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	align-items: start;
	row-gap: clamp(1rem, 2vw, 1.6rem);
	min-height: clamp(27rem, 39vw, 31rem);
	background:
		linear-gradient(90deg, rgba(255, 250, 247, 0.99), rgba(255, 250, 247, 0.93) 37%, rgba(255, 250, 247, 0.12) 56%),
		#fffaf7;
	overflow: hidden;
}

.neomi-therapy-hero__content {
	direction: rtl;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: clamp(19rem, 29vw, 24rem);
	padding: clamp(1.4rem, 2.6vw, 2rem) clamp(1.8rem, 5vw, 4.6rem) 0;
	text-align: center;
}

.neomi-therapy-hero h1 {
	width: min(100%, 26rem);
	max-width: 26rem;
	color: var(--therapy-plum);
	font-family: var(--neomi-font-display);
	font-size: clamp(3.05rem, 4.25vw, 4.15rem);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: 0;
}

.neomi-therapy-ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: min(6.6rem, 46%);
	margin: 0.75rem auto 1rem;
	color: rgba(111, 49, 93, 0.34);
}

.neomi-therapy-ornament::before,
.neomi-therapy-ornament::after {
	content: "";
	flex: 1;
	height: 1px;
	background: currentColor;
}

.neomi-therapy-ornament span {
	width: 0.68rem;
	height: 0.68rem;
	border: 1px solid currentColor;
	border-radius: 999px;
}

.neomi-therapy-hero__story {
	grid-column: 1 / -1;
	direction: rtl;
	display: block;
	width: min(72rem, calc(100% - clamp(2rem, 8vw, 8rem)));
	margin: clamp(-0.35rem, -0.55vw, -0.15rem) auto clamp(1rem, 1.8vw, 1.55rem);
	padding: clamp(0.85rem, 1.55vw, 1.2rem) clamp(1.25rem, 3vw, 2.4rem);
	background: rgba(255, 255, 255, 0.56);
	box-shadow: 0 18px 55px rgba(73, 48, 42, 0.045);
	text-align: center;
}

.neomi-therapy-hero__story p {
	max-width: none;
	color: #211c27;
	font-size: clamp(1.36rem, 1.62vw, 1.62rem) !important;
	font-weight: 600;
	line-height: 1.68;
}

.neomi-therapy-hero__story p + p {
	margin-block-start: 0.42rem;
}

.neomi-therapy-hero__quote {
	margin-block-start: 0.55rem !important;
	padding-block-start: 0.55rem;
	border-block-start: 1px solid rgba(111, 49, 93, 0.16);
	color: var(--therapy-plum) !important;
	font-family: var(--neomi-font-display);
	font-size: clamp(1.85rem, 2.35vw, 2.35rem) !important;
	font-weight: 700 !important;
	line-height: 1.28 !important;
	text-align: center;
}

.neomi-therapy-hero__image {
	direction: ltr;
	position: relative;
	min-height: clamp(19rem, 29vw, 24rem);
	overflow: hidden;
}

.neomi-therapy-hero__image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(255, 250, 247, 0.9), rgba(255, 250, 247, 0) 24%);
	pointer-events: none;
}

.neomi-therapy-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center top;
	background: #fffaf7;
}

.neomi-therapy-journey {
	padding: clamp(1.15rem, 2.2vw, 1.65rem) clamp(1.2rem, 5vw, 5rem) clamp(1.45rem, 2.8vw, 2.05rem);
	background:
		radial-gradient(circle at 50% 0%, rgba(196, 165, 116, 0.09), transparent 34%),
		#fffaf7;
	text-align: center;
}

.neomi-therapy-journey h2,
.neomi-therapy-team h2,
.neomi-therapy-closing h2 {
	color: var(--therapy-plum);
	font-family: var(--neomi-font-display);
	font-size: clamp(2.15rem, 3vw, 2.85rem);
	font-weight: 700;
	line-height: 1.14;
}

.neomi-therapy-small-rule {
	width: 2.8rem;
	height: 1px;
	margin: 0.55rem auto 1.05rem;
	background: rgba(196, 165, 116, 0.75);
}

.neomi-therapy-journey__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: min(67rem, 100%);
	margin: 0 auto;
}

.neomi-therapy-journey-card {
	padding: 0 clamp(1.6rem, 3.6vw, 3.6rem);
	border-inline-start: 1px solid var(--therapy-line);
}

.neomi-therapy-journey-card:last-child {
	border-inline-start: 0;
}

.neomi-therapy-icon {
	display: grid;
	place-items: center;
	width: 4.35rem;
	height: 4.35rem;
	margin: 0 auto 0.72rem;
	color: var(--therapy-plum);
	background: rgba(196, 165, 116, 0.12);
	border-radius: 999px;
}

.neomi-therapy-icon svg,
.neomi-therapy-home-icon svg {
	width: 2.55rem;
	height: 2.55rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.neomi-therapy-journey-card h3 {
	color: var(--therapy-plum);
	font-family: var(--neomi-font-display);
	font-size: clamp(1.32rem, 1.75vw, 1.65rem);
	font-weight: 700;
}

.neomi-therapy-journey-card p {
	max-width: 17rem;
	margin: 0.45rem auto 0;
	color: #302b36;
	font-size: clamp(0.9rem, 0.95vw, 0.96rem);
	font-weight: 500;
	line-height: 1.68;
}

.neomi-therapy-team {
	padding: clamp(1.55rem, 2.8vw, 2.35rem) clamp(1.2rem, 5vw, 5rem) clamp(1.75rem, 3vw, 2.55rem);
	background:
		linear-gradient(180deg, rgba(251, 246, 239, 0.9), rgba(255, 250, 247, 0.98)),
		#fffaf7;
	text-align: center;
}

.neomi-therapy-team__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: clamp(0.9rem, 1.7vw, 1.35rem);
	max-width: min(66rem, 100%);
	margin: clamp(1rem, 1.7vw, 1.35rem) auto 0;
}

.neomi-therapy-person {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid rgba(111, 49, 93, 0.07);
	border-radius: 0.45rem;
	box-shadow: 0 14px 38px rgba(73, 48, 42, 0.055);
	text-align: center;
}

.neomi-therapy-person__image-wrapper {
	flex: 0 0 auto;
	position: relative;
	width: 100%;
	height: clamp(13.5rem, 18vw, 16rem);
	overflow: hidden;
	background: rgba(255, 250, 247, 0.92);
}

.neomi-therapy-person__image-wrapper img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.neomi-therapy-person__content {
	display: flex;
	flex-direction: column;
	padding: clamp(0.85rem, 1.45vw, 1.15rem) clamp(1rem, 2vw, 1.45rem) clamp(1.15rem, 2vw, 1.55rem);
}

.neomi-therapy-person h3 {
	color: var(--therapy-plum);
	font-family: var(--neomi-font-display);
	font-size: clamp(1.25rem, 1.6vw, 1.55rem);
	font-weight: 700;
}

.neomi-therapy-person--ora h3 {
	white-space: nowrap;
}

.neomi-therapy-person p {
	margin-block-start: 0.45rem;
	color: #211c27;
	font-size: clamp(0.9rem, 0.96vw, 0.96rem);
	font-weight: 500;
	line-height: 1.62;
}

.neomi-therapy-closing {
	direction: ltr;
	position: relative;
	display: grid;
	grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1fr) minmax(10rem, 0.48fr);
	align-items: center;
	gap: clamp(1rem, 3vw, 3rem);
	min-height: clamp(15rem, 24vw, 20rem);
	padding: clamp(1.7rem, 3.4vw, 3rem) clamp(1.2rem, 5vw, 5.5rem);
	background:
		linear-gradient(90deg, rgba(255, 250, 247, 0.15), #fffaf7 30%, #fffaf7 70%, rgba(255, 250, 247, 0.55)),
		#fffaf7;
	overflow: hidden;
	text-align: center;
}

.neomi-therapy-closing__image {
	align-self: stretch;
	margin-inline-start: calc(clamp(1.2rem, 5vw, 5.5rem) * -1);
	overflow: hidden;
}

.neomi-therapy-closing__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: saturate(0.85) contrast(0.96);
}

.neomi-therapy-home-icon {
	display: grid;
	place-items: center;
	width: 3.55rem;
	height: 3.55rem;
	margin: 0 auto 0.45rem;
	color: var(--therapy-plum);
}

.neomi-therapy-closing__content {
	direction: rtl;
}

.neomi-therapy-closing__content p {
	max-width: 27rem;
	margin: 0.45rem auto 0;
	color: var(--therapy-ink);
	font-size: clamp(0.98rem, 1.1vw, 1.08rem);
	font-weight: 500;
	line-height: 1.62;
}

.neomi-therapy-closing__branch {
	position: relative;
	width: 11rem;
	height: 12rem;
	justify-self: center;
	color: rgba(196, 165, 116, 0.55);
}

.neomi-therapy-closing__branch::before {
	content: "";
	position: absolute;
	inset-inline-start: 48%;
	inset-block: 0;
	width: 1px;
	background: currentColor;
	transform: rotate(14deg);
}

.neomi-therapy-closing__branch::after {
	content: "";
	position: absolute;
	inset-inline-start: 36%;
	inset-block-start: 25%;
	width: 4.4rem;
	height: 6rem;
	border-block-start: 1px solid currentColor;
	border-inline-end: 1px solid currentColor;
	transform: rotate(-24deg);
	opacity: 0.8;
}

@media (max-width: 63.99rem) {
	.neomi-therapy-hero,
	.neomi-therapy-journey__grid,
	.neomi-therapy-team__grid,
	.neomi-therapy-closing {
		grid-template-columns: 1fr;
	}

	.neomi-therapy-hero {
		height: auto;
	}

	.neomi-therapy-hero__content {
		min-height: auto;
	}

	.neomi-therapy-hero__story {
		display: block;
		width: auto;
		text-align: center;
	}

	.neomi-therapy-hero__story p + p {
		margin-block-start: 0.7rem;
	}

	.neomi-therapy-hero__image {
		min-height: 18rem;
		order: -1;
	}

	.neomi-therapy-hero__image::before,
	.neomi-therapy-closing__branch {
		display: none;
	}

	.neomi-therapy-journey-card {
		padding-block: 1.25rem;
		border-inline-start: 0;
		border-block-end: 1px solid var(--therapy-line);
	}

	.neomi-therapy-closing__image {
		min-height: 13rem;
		margin-inline: calc(clamp(1.2rem, 5vw, 5.5rem) * -1);
	}
}

@media (max-width: 42rem) {
	.neomi-therapy-hero h1 {
		max-width: min(100%, 19.5rem);
		font-size: clamp(2.85rem, 11.5vw, 3.45rem);
	}

	.neomi-therapy-hero__content,
	.neomi-therapy-journey,
	.neomi-therapy-team,
	.neomi-therapy-closing {
		padding-inline: 1.35rem;
	}
}
