/* Services Scroll Tabs */

.fc-scroll-tabs {
	--fc-accent: #486572;
	--fc-text: #26343a;
	--fc-muted: #6b7a80;
	--fc-border: #d9dedf;
	--fc-bg: #eceee9;
	--fc-font-heading: 'Chamberi Display', Georgia, serif;
	--fc-header-offset: 150px;
	width: 100%;
	margin: 0 auto;
	color: var(--fc-text);
}

/* Sticky tab nav */

.fc-scroll-tabs__nav {
	position: sticky;
	top: var(--fc-header-offset);
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	background: var(--fc-bg);
	border: 1px solid var(--fc-border);
	border-radius: 10px;
	margin-bottom: 48px;
}

.fc-scroll-tabs__nav-item {
	appearance: none !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--fc-text) !important;
	padding: 18px 22px !important;
	cursor: pointer;
	white-space: nowrap;
	position: relative;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.fc-scroll-tabs__nav-item:hover {
	color: var(--fc-accent) !important;
	background: rgba(72, 101, 114, 0.06) !important;
}

.fc-scroll-tabs__nav-item.is-active {
	background: rgba(72, 101, 114, 0.1) !important;
	color: var(--fc-accent) !important;
}

.fc-scroll-tabs__nav-item.is-active::after {
	content: '';
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 0;
	height: 2px;
	background: var(--fc-accent);
}

.fc-scroll-tabs__nav-item:focus-visible {
	outline: 2px solid var(--fc-accent);
	outline-offset: -2px;
}

/* Body: sections (left) + sticky media (right) */

.fc-scroll-tabs__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
}

.fc-scroll-tabs__sections {
	display: flex;
	flex-direction: column;
}

.fc-scroll-tabs__section {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 0;
	border-bottom: 1px solid var(--fc-border);
}

.fc-scroll-tabs__section:last-child {
	border-bottom: none;
}

/* Hidden on desktop — the sticky crossfading .fc-scroll-tabs__media
   column handles the image there. Shown per-section on mobile only. */
.fc-scroll-tabs__section-image {
	display: none;
}

.fc-scroll-tabs__title {
	font-family: var(--fc-font-heading);
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.15;
	margin: 0 0 20px;
	color: var(--fc-text);
}

.fc-scroll-tabs__text {
	line-height: 1.6;
	color: var(--fc-muted);
	max-width: 48ch;
	margin: 0 0 20px;
}

.fc-scroll-tabs__intro,
.fc-scroll-tabs__outro {
	line-height: 1.6;
	color: var(--fc-text);
	max-width: 48ch;
	margin: 0 0 16px;
}

.fc-scroll-tabs__bullets {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	max-width: 48ch;
}

.fc-scroll-tabs__bullets li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 10px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--fc-muted);
}

.fc-scroll-tabs__bullets li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fc-accent);
}

/* Sticky crossfading media column */

.fc-scroll-tabs__media {
	position: sticky;
	top: calc(var(--fc-header-offset) + 64px + 48px);
	height: 60vh;
	max-height: 620px;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}

.fc-scroll-tabs__image {
	position: absolute;
	inset: 0;
	width: 100%!important;
	height: 100%!important;
	object-fit: cover!important;
	object-position: center;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.fc-scroll-tabs__image.is-active {
	opacity: 1;
}

/* Mobile */

@media (max-width: 900px) {
	/*
	 * Was a horizontally-scrolling nav (overflow-x:auto + nowrap).
	 * Now wraps into a centered block of pills instead, since these
	 * are real anchor links (scroll-to-section), not accordion panels,
	 * this is just a layout change to the nav itself.
	 */
	.fc-scroll-tabs__nav {
		flex-wrap: wrap;
		justify-content: center;
	}

	.fc-scroll-tabs__nav-item {
		padding: 14px 16px !important;
		font-size: 14px;
	}

	.fc-scroll-tabs__body {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	/* Shared crossfading image column is desktop-only behaviour;
	   on mobile each section carries its own static image instead. */
	.fc-scroll-tabs__media {
		display: none;
	}

	.fc-scroll-tabs__section {
		min-height: 0;
		padding: 32px 0;
	}

	.fc-scroll-tabs__section-image {
		display: block;
		width: 100%;
		aspect-ratio: 4 / 3;
		object-fit: cover;
		object-position: center;
		border-radius: 10px!important;
		margin-bottom: 24px;
	}
}