/* Brave Ronil — Support Journey. Figma node 5014:13116 + fieldwell-style
   pinned horizontal-scroll card focus (GSAP ScrollTrigger). */
/* Full-bleed break-out lives on the wrapper, NOT on the pinned element. Keeping
   the negative margins off .brb-jr means ScrollTrigger can pin it as a clean
   position:fixed without the left edge shifting at pin start (the "jerk"). */
.brb-jr-bleed {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
}

.brb-jr {
	--brb-jr-text: #181d27;
	--brb-jr-sub: #414651;
	--brb-jr-card-w: 411px; /* card width per breakpoint (also used for centering) */
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #ffffff;
	padding: 96px 0;
	box-sizing: border-box;
}
.brb-jr *,
.brb-jr *::before,
.brb-jr *::after {
	box-sizing: border-box;
}

.brb-jr__inner {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

/* Header */
.brb-jr__head {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}
.brb-jr__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.brb-jr__dot {
	width: 12px;
	height: 12px;
	border-radius: 9999px;
	background: #ff4405;
	flex: 0 0 auto;
}
.brb-jr__badge-txt {
	font-family: "Inter Tight", sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	text-transform: uppercase;
	color: var(--brb-jr-text);
}
.brb-jr__title {
	margin: 0;
	max-width: 782px;
	font-family: "Bitter", serif;
	font-weight: 600;
	font-size: 48px;
	line-height: 52px;
	letter-spacing: -0.96px;
	color: var(--brb-jr-text);
}

/* Cards row — the track scrolls horizontally while the section is pinned;
   the card nearest the viewport centre straightens, the rest stay tilted. */
.brb-jr__cards {
	position: relative;
	width: 100%;
	/* sits inside the centred inner so the first card aligns under the header
	   (Figma). Trailing cards bleed right and are clipped by .brb-jr (viewport
	   edge), so the last card peeks exactly like the design. */
	overflow: visible;
}
.brb-jr__track {
	display: flex;
	align-items: center;
	gap: 24px;
	width: max-content;
	min-height: 404px;
	/* side padding (set by JS) lets the first/last card reach the centre */
	will-change: transform;
}
.brb-jr__card {
	flex: 0 0 auto;
	width: var(--brb-jr-card-w);
	height: 332px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 40px;
	border-radius: 16px;
	transform-origin: center center;
	/* resting tilt comes from the inline transform (Figma scatter); GSAP
	   straightens to 0deg on scroll. */
	will-change: transform;
	backface-visibility: hidden;
}
.brb-jr__card-title {
	margin: 0;
	font-family: "Bitter", serif;
	font-weight: 600;
	font-size: 32px;
	line-height: 40px;
	color: var(--brb-jr-text);
}
.brb-jr__card-desc {
	margin: 0;
	font-family: "Inter Tight", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: var(--brb-jr-sub);
}

/* Fallback when JS/GSAP is unavailable or motion is reduced: a plain, legible
   horizontal scroll with the cards upright (no transforms, no pin). */
.brb-jr--static .brb-jr__cards {
	overflow-x: auto;
	/* pin y explicitly — overflow-x:auto alone makes the browser promote
	   overflow-y from visible to auto, spawning a phantom vertical scrollbar
	   (nested double-scroll). */
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}
.brb-jr--static .brb-jr__track {
	padding: 0 32px;
}

/* ---- Tablet ---- (Figma node 5014:13349, 834w) */
@media (max-width: 1024px) {
	.brb-jr {
		--brb-jr-card-w: 240px; /* first card width; tilted cards bleed right */
		padding: 80px 0;
	}
	.brb-jr__inner {
		padding: 0 32px;
		gap: 48px;
	}
	.brb-jr__head {
		gap: 8px;
	}
	.brb-jr__title {
		font-size: 36px;
		line-height: 44px;
		letter-spacing: -0.72px;
	}
	.brb-jr__track {
		gap: 24px;
		min-height: 258px;
		/* stretch so every card matches the tallest (equal heights on tablet) */
		align-items: stretch;
	}
	.brb-jr__card {
		height: auto;
		min-height: 216px;
		justify-content: flex-start;
		gap: 16px;
		padding: 24px;
	}
	.brb-jr__card-title {
		font-size: 18px;
		line-height: 28px;
	}
	.brb-jr__card-desc {
		font-size: 16px;
		line-height: 24px;
	}
}

/* ---- Mobile ---- (Figma node 5014:13221, 375w)
   Plain vertical stack: no scatter/rotation, no scroll animation, full-width
   cards stacked with a 12px gap. Covers everything below the 768px animation
   breakpoint. */
@media (max-width: 767px) {
	.brb-jr {
		padding: 64px 0;
	}
	.brb-jr__inner {
		padding: 0 16px;
		gap: 48px;
	}
	.brb-jr__head {
		gap: 8px;
	}
	.brb-jr__title {
		font-size: 32px;
		line-height: 40px;
		letter-spacing: 0;
	}
	.brb-jr__cards {
		overflow: visible;
	}
	.brb-jr__track {
		flex-direction: column;
		width: 100%;
		gap: 12px;
		min-height: 0;
	}
	/* override the static-fallback row padding/scroll for the vertical stack */
	.brb-jr--static .brb-jr__cards {
		overflow: visible;
	}
	.brb-jr--static .brb-jr__track {
		padding: 0;
	}
	.brb-jr__card {
		width: 100%;
		height: auto;
		min-height: 0;
		justify-content: flex-start;
		gap: 16px;
		padding: 24px;
		/* kill the Figma scatter tilt from the inline transform on mobile */
		transform: none !important;
	}
	.brb-jr__card-title {
		font-size: 18px;
		line-height: 28px;
	}
	.brb-jr__card-desc {
		font-size: 16px;
		line-height: 24px;
	}
}
