/* Homepage-only entrance & interaction polish aligned with jwhanquoc flat tokens */

/* #1 Service tab press feedback & fine-pointer hover */
.tab_services_header .tablinks-services {
	transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tab_services_header .tablinks-services:active {
	transform: scale(0.97);
}

.tab_services_header .tablinks-services-image {
	transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
	.tab_services_header .tablinks-services:hover .tablinks-services-image {
		transform: translateY(-2px);
	}
}

/* #2-#6 One-shot below-the-fold scroll reveals (elements stay opacity: 1 unless armed by JS) */
:is(
	.jwhq-reveal-pending,
	.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-pending,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-pending
) {
	opacity: 0;
	transform: translateY(10px);
}

:is(
	.jwhq-reveal-pending,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-pending
)[data-jwhq-reveal-distance="12"] {
	transform: translateY(12px);
}

:is(
	.jwhq-reveal-in,
	.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-in,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
) {
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity 240ms cubic-bezier(0.23, 1, 0.32, 1),
		transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

:is(
	.jwhq-reveal-in,
	.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-in,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
)[data-jwhq-reveal-duration="250"] {
	transition-duration: 250ms, 250ms;
}

:is(
	.jwhq-reveal-in,
	.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-in,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
)[data-jwhq-reveal-duration="260"] {
	transition-duration: 260ms, 260ms;
}

/* Staggered reveal cadence: 35ms (#3, #4, #5) and 40ms (#2) */
:is(
	.jwhq-reveal-in,
	.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-in,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
)[data-jwhq-reveal-stagger="35"][data-jwhq-reveal-step="1"] {
	transition-delay: 35ms, 35ms;
}

:is(
	.jwhq-reveal-in,
	.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-in,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
)[data-jwhq-reveal-stagger="35"][data-jwhq-reveal-step="2"] {
	transition-delay: 70ms, 70ms;
}

:is(
	.jwhq-reveal-in,
	.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-in,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
)[data-jwhq-reveal-stagger="35"][data-jwhq-reveal-step="3"] {
	transition-delay: 105ms, 105ms;
}

:is(
	.jwhq-reveal-in,
	.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-in,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
)[data-jwhq-reveal-stagger="35"][data-jwhq-reveal-step="4"] {
	transition-delay: 140ms, 140ms;
}

:is(
	.jwhq-reveal-in,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
)[data-jwhq-reveal-stagger="40"][data-jwhq-reveal-step="1"] {
	transition-delay: 40ms, 40ms;
}

:is(
	.jwhq-reveal-in,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
)[data-jwhq-reveal-stagger="40"][data-jwhq-reveal-step="2"] {
	transition-delay: 80ms, 80ms;
}

:is(
	.jwhq-reveal-in,
	.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
)[data-jwhq-reveal-stagger="40"][data-jwhq-reveal-step="3"] {
	transition-delay: 120ms, 120ms;
}

@media (prefers-reduced-motion: reduce) {
	.tab_services_header .tablinks-services,
	.tab_services_header .tablinks-services-image {
		transition: none;
	}

	.tab_services_header .tablinks-services:active,
	.tab_services_header .tablinks-services:hover .tablinks-services-image {
		transform: none;
	}

	:is(
		.jwhq-reveal-pending,
		.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-pending,
		.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-pending
	),
	:is(
		.jwhq-reveal-pending,
		.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-pending
	)[data-jwhq-reveal-distance="12"] {
		transform: none;
	}

	:is(
		.jwhq-reveal-in,
		.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-in,
		.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
	),
	:is(
		.jwhq-reveal-in,
		.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-in,
		.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
	)[data-jwhq-reveal-duration],
	:is(
		.jwhq-reveal-in,
		.team-doctors-tab .team-doctors-tab-right .tablinks-services.jwhq-reveal-in,
		.services-main-full-video.jwhq-cv .jwhq-cv__card.jwhq-reveal-in
	)[data-jwhq-reveal-stagger][data-jwhq-reveal-step] {
		transition: opacity 160ms ease;
		transition-delay: 0ms;
	}
}
