/**
 * Step inside the clinic — Figma 340:1524.
 *
 * @package Love_Beauty_Skin
 */

.step-inside-clinic {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	/* Normal desktop: 660px */
	min-height: 41.25rem;
	height: 41.25rem;
	overflow: hidden;
	/* Figma px-[100px] py-[88px] */
	padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 6vw, 6.25rem);
	box-sizing: border-box;
}

.step-inside-clinic__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

/* Taller than the section so vertical parallax does not show empty edges */
.step-inside-clinic__parallax {
	position: absolute;
	z-index: 0;
	left: 0;
	right: 0;
	top: -15%;
	bottom: -15%;
	will-change: transform;
}

.step-inside-clinic__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media (prefers-reduced-motion: reduce) {
	.step-inside-clinic__parallax {
		will-change: auto;
		top: 0;
		bottom: 0;
	}
}

/* Light scrim so white headline stays readable on pale photography */
.step-inside-clinic__scrim {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.35) 0%,
		rgba(0, 0, 0, 0.08) 45%,
		transparent 70%
	);
	pointer-events: none;
}

.step-inside-clinic__inner {
	position: relative;
	z-index: 1;
	max-width: var(--lbs-container-max);
	margin-inline: auto;
	width: 100%;
	box-sizing: border-box;
}

.step-inside-clinic__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1.25rem, 3vw, 1.875rem);
	/* Figma: headline block ~509px; button row ~578px — allow full width for two CTAs in one line */
	max-width: min(100%, 36.125rem);
}

/* Figma H2 — 56px IvyMode Light → Cormorant Garamond 300 */
.step-inside-clinic__title {
	margin: 0;
	font-family: var(--lbs-font-display);
	font-weight: 300;
	font-size: clamp(2.25rem, 3vw + 1.5rem, 3.5rem);
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* CTAs: row from 767px up (default); stack when narrower */
.step-inside-clinic__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.8125rem;
	width: 100%;
	min-width: 0;
}

.step-inside-clinic__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--lbs-cta-btn-gap, 1.25rem);
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	min-height: var(--lbs-cta-btn-min-height, 3.25rem);
	/* Figma: no horizontal padding on the white button chrome — label + arrow only */
	padding-block: var(--lbs-cta-btn-padding-y, 1.25rem);
	padding-inline: 0;
	white-space: nowrap;
	background-color: #fff;
	color: var(--lbs-color-nav);
	font-family: var(--lbs-cta-btn-font-family, var(--lbs-font-body));
	font-weight: var(--lbs-cta-btn-font-weight, 300);
	font-size: var(--lbs-cta-btn-font-size, 0.875rem);
	line-height: var(--lbs-cta-btn-line-height, 1.4);
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color var(--lbs-transition), color var(--lbs-transition), box-shadow var(--lbs-transition);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.step-inside-clinic__btn:hover,
.step-inside-clinic__btn:focus-visible {
	background-color: #fafafa;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-inside-clinic__btn:focus-visible {
	outline: 2px solid var(--lbs-color-accent-pink);
	outline-offset: 2px;
}

.step-inside-clinic__btn-text {
	flex: 0 1 auto;
	min-width: 0;
	text-align: center;
}

.step-inside-clinic__btn-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 1024px) {
	.step-inside-clinic {
		min-height: 32.25rem;
		height: 32.25rem;
	}
}

@media (max-width: 600px) {
	.step-inside-clinic {
		min-height: 33.25rem;
		height: 33.25rem;
	}
	.step-inside-clinic__img{object-position: 75% 50% !important;}
}

@media (max-width: 767px) {
	.step-inside-clinic__actions {
		flex-direction: column;
		gap: 0.5625rem;
	}

	.step-inside-clinic__btn {
		flex: 0 0 auto;
		width: 100%;
	}
}
