/*
 * Team utility classes – same names as the old theme.
 *
 * V3 widgets: type them in Advanced > CSS Classes.
 * V4 atomic elements: create a Global Class with the same name (they ship in
 * the starter kit) or add the class name in the element's classes field.
 *
 * They use !important on purpose: a layered !important beats Elementor's
 * styles (even Elementor's own !important), and the utilities layer is
 * declared before compat, so for !important rules utilities beat compat too.
 */
@layer wpcustom.utilities {
	/* Spacing */
	.noMargin,
	.noMarginLast p:last-of-type { margin-bottom: 0 !important; }
	.noPadding { padding: 0 !important; }

	/* Alignment */
	.alignCenter { margin-inline: auto !important; }
	.alignLeft { margin-left: 0 !important; margin-right: auto !important; }
	.alignRight { margin-left: auto !important; margin-right: 0 !important; }
	.textCenter { text-align: center !important; }

	/* Flex helpers */
	.flexCenter { display: flex !important; justify-content: center !important; align-items: center !important; }
	.flexBetween { display: flex !important; justify-content: space-between !important; align-items: center !important; }

	/* Sticky side button (vertical text). */
	.stickyBtn {
		position: fixed;
		inset-inline-end: 0;
		top: 50%;
		writing-mode: vertical-rl;
		transform: translateY(-50%) rotate(180deg);
		z-index: 999;
	}

	/* Icon beside text instead of above (V4 elements; V3 Icon Box is in compat-v3.css). */
	.iconSide:not(.elementor-widget) {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 0.5rem;
	}

	/* Visibility */
	.dwn { display: block !important; }
	@media (max-width: 767px) {
		.hideMobile { display: none !important; }
	}
	@media (min-width: 768px) {
		.showMobile { display: none !important; }
	}

	/* Media */
	.coverImg img { width: 100%; height: 100%; object-fit: cover; }
	.roundImg img { border-radius: var(--wpcustom-radius-m); }

	/* Smooth hover transition (old theme put this on every a/img). */
	.smooth, .smooth a, .smooth img { transition: var(--wpcustom-transition); }

	@media (max-width: 1024px) {
		.alignLeft, .alignRight { margin-inline: auto !important; }
	}
}
