/**
 * Meet the Team — Swiper (5-up desktop), prev/next beige circle controls.
 *
 * @package Love_Beauty_Skin
 */

.meet-the-team {
	--mtt-pink: #d9a9a9;
	--mtt-grey: #636363;
	--mtt-beige: #f6eeea;
	--mtt-border: #f4e3e2;
	--mtt-overlay: rgba(0, 0, 0, 0.5);
	--mtt-media-h: 20rem;
	/* Slider control: light beige circle + charcoal line-art arrow */
	--mtt-nav-bg: #f6eeea;
	--mtt-nav-fg: #636363;

	position: relative;
	padding-block: clamp(2.5rem, 6vw, 4rem);
	background-color: #fff;
	overflow-x: clip;
}

/* Centered line: same width as main container, +10% each side (1.2×), not full-bleed */
.meet-the-team::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(
		100%,
		calc(min(calc(100% - 2 * var(--lbs-space-header-x)), var(--lbs-container-max)) * 1.2)
	);
	height: 1px;
	background-color: var(--lbs-color-palette-pink-dark);
	pointer-events: none;
}

/* Heading only — same max width as rest of site */
.meet-the-team__inner {
	max-width: var(--lbs-container-max);
	margin-inline: auto;
	padding-inline: var(--lbs-space-header-x);
	width: 100%;
	box-sizing: border-box;
}

/* Full-bleed carousel strip (edge-to-edge viewport) */
.meet-the-team__fullbleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	box-sizing: border-box;
	padding-inline: var(--lbs-space-header-x);
}

.meet-the-team__header {
	text-align: center;
	margin-bottom: clamp(2rem, 4vw, 3.4375rem);
	max-width: fit-content;
	margin-inline: auto;
}

.meet-the-team__eyebrow {
	margin: 0 0 0.125rem;
	font-family: var(--lbs-font-body);
	font-weight: 300;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	line-height: 1.1;
	color: var(--mtt-pink);
}

.meet-the-team__title {
	margin: 0;
	font-family: var(--lbs-font-display);
	font-weight: 300;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--mtt-grey);
}

.meet-the-team__inner--feature-grid-after {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.meet-the-team__actions--feature-grid {
	display: flex;
	justify-content: center;
}

.meet-the-team__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--lbs-cta-btn-gap, 1.25rem);
	width: fit-content;
	max-width: 100%;
	min-width: 0;
	min-height: 3.25rem;
	padding: 1.25rem 2rem;
	background-color: #fff;
	color: var(--lbs-color-nav, #636363);
	border: 1px solid var(--lbs-color-nav, #636363);
	font-family: var(--lbs-font-body);
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.4;
	text-decoration: none;
	box-sizing: border-box;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
	transition:
		background-color var(--lbs-transition),
		color var(--lbs-transition),
		box-shadow var(--lbs-transition);
}

.meet-the-team__cta:hover,
.meet-the-team__cta:focus-visible {
	background-color: #fafafa;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.meet-the-team__cta:focus-visible {
	outline: 2px solid var(--lbs-color-accent-pink, #d9a9a9);
	outline-offset: 2px;
}

.meet-the-team__cta-text {
	flex: 0 1 auto;
	min-width: 0;
	text-align: center;
	white-space: nowrap;
}

.meet-the-team__cta-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

/* Full-bleed track + next control (overlaps image row on desktop) */
.meet-the-team__track {
	position: relative;
	width: 100%;
}

.meet-the-team__swiper {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.meet-the-team__swiper.swiper-initialized {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.meet-the-team__swiper {
		opacity: 1;
		transition: none;
	}
}

.meet-the-team .swiper-wrapper {
	align-items: stretch;
}

.meet-the-team .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

.meet-the-team__slide {
	min-width: 0;
}

.meet-the-team__nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(99, 99, 99, 0.18);
	border-radius: 50%;
	background: var(--mtt-nav-bg);
	color: var(--mtt-nav-fg);
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: border-color var(--lbs-transition), background-color var(--lbs-transition), opacity var(--lbs-transition), box-shadow var(--lbs-transition);
}

.meet-the-team__nav-btn:hover,
.meet-the-team__nav-btn:focus-visible {
	border-color: rgba(99, 99, 99, 0.28);
	background-color: var(--mtt-nav-bg);
}

.meet-the-team__nav-btn:focus-visible {
	outline: 2px solid var(--lbs-color-accent-pink);
	outline-offset: 2px;
}

.meet-the-team__nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.meet-the-team__nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.meet-the-team__nav-img {
	display: block;
	width: 2rem;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	flex-shrink: 0;
}

.meet-the-team__nav-img--prev {
	transform: scaleX(-1);
}

/* Desktop: centre on photo area, overlap left/right card edges */
@media (min-width: 48em) {
	.meet-the-team__nav--prev {
		position: absolute;
		z-index: 2;
		left: 0;
		top: calc(var(--mtt-media-h) / 2);
		transform: translate(-45%, -50%);
	}

	.meet-the-team__nav--next {
		position: absolute;
		z-index: 2;
		right: 0;
		top: calc(var(--mtt-media-h) / 2);
		transform: translate(45%, -50%);
		margin-left: 0;
	}
}

/* Mobile: swiper full width, then prev | next row */
@media (max-width: 47.9375em) {
	.meet-the-team__track {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		gap: 0.75rem 1rem;
		align-items: center;
	}

	.meet-the-team__swiper {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.meet-the-team__nav--prev {
		position: static;
		transform: none;
		grid-row: 2;
		grid-column: 1;
		justify-self: start;
	}

	.meet-the-team__nav--next {
		position: static;
		transform: none;
		grid-row: 2;
		grid-column: 2;
		justify-self: end;
		width: auto;
		margin-top: 0;
	}
}

.meet-the-team__card {
	border: 1px solid var(--mtt-border);
	background-color: #fff;
	height: 100%;
}

.meet-the-team__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}

.meet-the-team__card-link:hover,
.meet-the-team__card-link:focus-visible {
	text-decoration: none;
}

/* Feature grid — cards are not links; same layout + overlay behaviour via hover / focus */
.meet-the-team--feature-grid .meet-the-team__card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	box-sizing: border-box;
	color: inherit;
}

.meet-the-team--feature-grid .meet-the-team__card-inner:hover .meet-the-team__overlay,
.meet-the-team--feature-grid .meet-the-team__card-inner:focus-within .meet-the-team__overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition:
		opacity 0.25s ease,
		visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
	.meet-the-team--feature-grid .meet-the-team__card-inner:hover .meet-the-team__overlay,
	.meet-the-team--feature-grid .meet-the-team__card-inner:focus-within .meet-the-team__overlay {
		transition: none;
	}
}

.meet-the-team__media {
	position: relative;
	background-color: var(--mtt-beige);
	aspect-ratio: 305 / 320;
	max-height: var(--mtt-media-h);
	overflow: hidden;
}

.meet-the-team__img {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.meet-the-team__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 1.5rem;
	background: var(--mtt-overlay);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.25s ease,
		visibility 0s linear 0.25s;
}

.meet-the-team__card-link:hover .meet-the-team__overlay,
.meet-the-team__card-link:focus-within .meet-the-team__overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition:
		opacity 0.25s ease,
		visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
	.meet-the-team__overlay {
		transition: none;
	}

	.meet-the-team__card-link:hover .meet-the-team__overlay,
	.meet-the-team__card-link:focus-within .meet-the-team__overlay {
		transition: none;
	}
}

.meet-the-team__bio {
	margin: 0;
	max-width: 16rem;
	font-family: var(--lbs-font-body);
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--mtt-beige);
}

.meet-the-team__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	padding: 1.5rem;
	border-top: 1px solid var(--mtt-border);
	font-family: var(--lbs-font-body);
	font-weight: 300;
	line-height: 1.4;
}

.meet-the-team__name {
	margin: 0;
	font-size: 1.25rem;
	color: var(--mtt-grey);
}

.meet-the-team__role {
	margin: 0;
	font-size: 1rem;
	color: var(--mtt-pink);
}

/* Bride grid — excerpt scrolls inside the photo; no overflow past the frame */
.meet-the-team--feature-grid .meet-the-team__overlay--feature-excerpt {
	justify-content: flex-start;
	align-items: stretch;
	overflow: hidden;
}

.meet-the-team--feature-grid .meet-the-team__bio--excerpt {
	flex: 1 1 auto;
	align-self: stretch;
	min-height: 0;
	max-width: none;
	width: 100%;
	margin: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.meet-the-team--feature-grid time.meet-the-team__date {
	display: block;
}

