/**
 * Our Treatments section styles.
 *
 * @package Novacare
 */

.treatments-section {
	background-color: #f5f1e7;
	color: #1c1917;
}

.treatments-section__inner {
	padding-block: clamp(4rem, 8vw, 5.5rem);
}

.treatments-section__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.treatments-section__intro {
	max-width: 42rem;
}

.treatments-section__eyebrow {
	margin: 0 0 0.875rem;
	font-family: var(--nv-font-sans);
	font-size: 12px;
	font-weight: 500;
	font-style: normal;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--nv-color-gold);
}

.treatments-section__title {
	margin: 0;
	font-family: var(--nv-font-serif);
	font-size: 44px;
	font-weight: 500;
	font-style: normal;
	line-height: 52.8px;
	letter-spacing: 0;
	color: var(--nv-color-heading);
}

.treatments-section__view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-shrink: 0;
	font-family: var(--nv-font-sans);
	font-size: 14px;
	font-weight: 500;
	font-style: normal;
	line-height: 20px;
	letter-spacing: 0;
	text-align: center;
	color: var(--nv-color-green);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, gap 0.2s ease;
}

.treatments-section__view-all:hover,
.treatments-section__view-all:focus {
	color: var(--nv-color-gold);
	gap: 0.625rem;
}

.treatments-section__view-all svg {
	flex-shrink: 0;
}

.treatments-section__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

/* Treatment card */
.treatment-card {
	height: 100%;
}

.treatment-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: #ffffff;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.treatment-card__link:hover,
.treatment-card__link:focus {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
}

.treatment-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background-color: #ece7dc;
}

.treatment-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.treatment-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.375rem 1.375rem 1.5rem;
}

.treatment-card__category {
	margin: 0 0 0.625rem;
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	font-weight: 500;
	font-style: normal;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #B8965A;
}

.treatment-card__title {
	margin: 0 0 0.75rem;
	font-family: var(--mt-font-brand);
	font-size: 1.375rem;
	font-weight: 500;
	line-height: 1.25;
	color: #1c1917;
}

.treatment-card__description {
	margin: 0 0 1.25rem;
	flex: 1;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	font-weight: 500;
	font-style: normal;
	line-height: 23.8px;
	letter-spacing: 0;
	color: #6B6356;
}

.treatment-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: auto;
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	font-weight: 500;
	font-style: normal;
	line-height: 16px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #2D4739;
	transition: color 0.2s ease, gap 0.2s ease;
}

.treatment-card__link:hover .treatment-card__cta,
.treatment-card__link:focus .treatment-card__cta {
	color: #c8a46e;
	gap: 0.5rem;
}

.treatment-card__cta svg {
	flex-shrink: 0;
}

/* RTL */
body.is-rtl .treatments-section__header {
	flex-direction: row-reverse;
}

body.is-rtl .treatments-section__view-all {
	flex-direction: row-reverse;
}

body.is-rtl .treatment-card__cta {
	flex-direction: row-reverse;
}

body.is-rtl .treatment-card__cta svg {
	transform: scaleX(-1);
}

@media (max-width: 991px) {
	.treatments-section__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.treatments-section__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.treatments-section__grid {
		grid-template-columns: 1fr;
	}

	body.is-rtl .treatments-section__header {
		align-items: flex-end;
	}
}
