/* Homepage case studies, using the existing SegPulse accent and backgrounds. */
.case-showcase [hidden] {
	display: none !important;
}

.case-tabs {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin: 0 auto 2.25rem;
}

.case-tabs .case-tab {
	flex: 0 1 auto;
	min-width: 0;
	padding: 0.85rem 1.4rem;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 0.25em;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: none;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.case-tabs .case-tab[aria-selected="true"] {
	border-color: #39E562;
	background: #39E562;
	color: #101813;
}

.case-tabs .case-tab:hover {
	border-color: #39E562;
}

.case-tab:focus-visible,
.case-video-play:focus-visible,
.case-contact .button:focus-visible,
.case-panel:focus-visible {
	outline: 2px solid #39E562;
	outline-offset: 4px;
}

.case-video-stage {
	position: relative;
	overflow: hidden;
	border-radius: 0.5em;
	background: #0b0b0b;
}

.case-video-stage video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.case-video-stage .case-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: auto;
	max-width: calc(100% - 2rem);
	padding: 0.85rem 1.4rem;
	background: #39E562;
	box-shadow: none;
	color: #101813;
	font-weight: 600;
	white-space: nowrap;
}

.case-video-stage .case-video-play:hover {
	background: #65ec84;
}

.case-video-error {
	margin-top: 1rem;
	text-align: center;
}

.case-contact {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
	text-align: center;
}

.case-contact .button {
	width: auto;
	max-width: 100%;
}

@media (max-width: 736px) {
	.case-tabs {
		gap: 0.5rem;
		margin-bottom: 1.5rem;
	}

	.case-tabs .case-tab {
		flex: 1 1 0;
		padding: 0.8rem 0.5rem;
		font-size: 0.875rem;
	}

	.case-contact {
		margin-top: 1.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.case-tabs .case-tab {
		transition: none;
	}
}
