/*
 * approach.css — the tabbed "Embrace Recovery" section.
 *
 * Figma: "services" frame, node 45:1864. Artboard reference: section on
 * --forest-ink, 44/60 heading, a 527px tab column of 110px pills with 24px
 * between them, and a 1079x512 panel 24px to their right.
 */

/*
 * Display type is scaled to this site's 1280px column. The artboard sets its
 * sizes against a 1634px content width, so every heading here is that size
 * multiplied by 1280/1634 (~0.78) at the top of its clamp, with the slope
 * recomputed so the curve still reaches that maximum at 1920. Body copy and
 * button labels are untouched — 16px is a floor, not a scaled value.
 */

.approach {
	background: var(--surface-deep);
	color: var(--white);
}

.approachInner {
	width: min(100% - (var(--gutter) * 2), var(--container));
	margin-inline: auto;
	padding-block: clamp(56px, 6.2vw, 120px);
}

.approachEyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	line-height: 28px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--white);
}

.approachEyebrow .eyebrowRule {
	color: var(--accent-on-dark);
}

/* h2. Fixed 42px by explicit request, matching every other h2 on the page. */
.approachTitle {
	margin-top: clamp(12px, 1.3vw, 20px);
	max-width: 22em;
	font-size: 42px;
	line-height: 1.364;
	font-weight: 400;
	text-transform: capitalize;
	color: var(--white);
}

.approachTitle span {
	color: inherit;
}

/* ------------------------------------------------------------- Layout */

.approachTabs {
	margin-top: clamp(36px, 4.3vw, 80px);
	display: grid;
	/* 527 / 1079 of the artboard's 1630 content width. */
	grid-template-columns: minmax(0, 527fr) minmax(0, 1079fr);
	gap: 24px;
	align-items: start;
}

/* --------------------------------------------------------------- Tabs */

.approachTabList {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.approachTab {
	width: 100%;
	min-height: 94px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 5px 15px 5px 25px;
	border-radius: 30px;
	/* --surface-frame at the artboard's 98%, which lets a little of the dark
	   section show through. Written out rather than via relative colour syntax,
	   which is newer than this theme's browser floor. */
	background: rgba(221, 231, 221, 0.98);
	color: var(--ink);
	text-align: left;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.approachTabLabel {
	font-size: 20px;
	line-height: 1.454;
}

.approachTabCircle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--white);
	color: var(--ink);
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.approachTabCircle .btnArrow {
	width: 18px;
	height: 13px;
}

.approachTab:hover {
	background: var(--surface-frame);
}

.approachTab:hover .approachTabCircle {
	transform: translate(2px, -2px);
}

/*
 * The selected tab. The artboard fills it with --accent, but the label is 18px
 * regular — still normal text by WCAG's measure, which only treats 24px, or
 * 18.66px bold, as large — and #f1f0f0 on --accent is 3.7:1. The deepened teal
 * carries the same label at 5.0:1 and reads as the same colour beside the
 * other pills.
 */
.approachTab.isActive {
	background: var(--accent-deep);
	color: #fff;
}

.approachTab.isActive .approachTabCircle {
	background: var(--surface-deep);
	color: #fff;
}

/* ------------------------------------------------------------- Panels */

.approachPanel {
	display: grid;
	grid-template-columns: minmax(0, 426fr) minmax(0, 605fr);
	gap: clamp(24px, 2.6vw, 48px);
	min-height: 450px;
	padding: 24px;
	border-radius: 30px;
	background: rgba(221, 231, 221, 0.98);
	color: var(--ink);
}

/* `hidden` has to be re-asserted: `display: grid` above would otherwise win
   and every panel would render at once. */
.approachPanel[hidden] {
	display: none;
}

.approachMedia {
	border-radius: 16px;
	overflow: hidden;
}

.approachMediaImg {
	width: 100%;
	height: 100%;
	min-height: 300px;
	object-fit: cover;
}

.approachBody {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-block: 0;
}

.approachBadge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: var(--accent-deep);
	color: var(--white);
}

.approachPanelTitle {
	margin-top: 15px;
	max-width: 16em;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 400;
	text-transform: capitalize;
	color: var(--surface-deep);
}

.approachList {
	margin-top: clamp(16px, 1.8vw, 30px);
	display: grid;
	gap: 15px;
}

.approachListItem {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-family: var(--font-body);
	font-size: clamp(0.875rem, 0.85rem + 0.16vw, 1rem);
	line-height: 1.325;
	color: var(--ink);
}

.listCheck {
	flex: 0 0 auto;
	width: 19px;
	height: 24px;
	/* Icon on a light surface — a graphic, so the 3:1 bar applies, and
	   --accent clears it at 3.7:1. */
	color: var(--accent);
	margin-top: 2px;
}

.approachCta {
	margin-top: clamp(20px, 2.2vw, 36px);
}

/* -------------------------------------------------------------- Small */

@media (max-width: 1024px) {
	/* Side by side stops working once the panel is narrower than its image
	   plus a readable column, so the tabs become a row above it. */
	.approachTabs {
		grid-template-columns: minmax(0, 1fr);
	}

	.approachTabList {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 12px;
	}

	.approachTabItem {
		flex: 1 1 260px;
	}

	.approachTab {
		min-height: 78px;
		padding: 14px 14px 14px 24px;
	}

	.approachTabCircle {
		width: 44px;
		height: 44px;
	}

	.approachPanel {
		grid-template-columns: minmax(0, 1fr);
		/* The fixed 450px only matters for matching a side-by-side image's
		   own height; stacked, the panel should just be as tall as its
		   content. */
		min-height: auto;
	}

	.approachMediaImg {
		min-height: 260px;
		max-height: 380px;
	}
}

@media (max-width: 767px) {
	.approachTabLabel {
		font-size: 17px;
	}
}

@media (max-width: 560px) {
	.approachTabItem {
		flex: 1 1 100%;
	}

	.approachPanel {
		padding: 16px;
		border-radius: 24px;
	}

	.approachCta {
		align-self: stretch;
		justify-content: space-between;
	}
}
