/* ==========================================================================
   Why Choose Us (template-parts/tech-ae-why-choose-us) — Elementor widget
   Everything is scoped to .tech-ae-wcu. Cards per row: 1 · 2 from 768px ·
   --tech-ae-wcu-cols (default 3) from 1200px; a shorter last row is centred.
   ========================================================================== */
.tech-ae-wcu {
	--tech-ae-wcu-gray: #606060;
	--tech-ae-wcu-blue: #0B5199;
	--tech-ae-wcu-text: #222222;
	--tech-ae-wcu-navy: #04335C;
	--tech-ae-wcu-black: #000000;
	--tech-ae-wcu-white: #FFFFFF;

	/* Editable in Elementor (Style → Section, Cards per row) */
	--tech-ae-wcu-bg: var(--tech-ae-wcu-white);
	--tech-ae-wcu-cols: 3;
	--tech-ae-wcu-pad-top: clamp(40px, 3rem + 2vw, 40px);
	--tech-ae-wcu-pad-bottom: clamp(40px, 3rem + 2vw, 40px);

	--tech-ae-wcu-gap: 20px;
	--tech-ae-wcu-radius: 20px;
	--tech-ae-wcu-ease: cubic-bezier(.2, .7, .2, 1);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: var(--tech-ae-wcu-pad-top) 0 var(--tech-ae-wcu-pad-bottom);
	background-color: var(--tech-ae-wcu-bg);
	background-image: var(--tech-ae-wcu-bg-image, none);
	background-position: center;
	background-size: cover;
	color: var(--tech-ae-wcu-text);
	font-family: var(--tech-ae-font, inherit);
}

/* Decoration: a navy dot grid fading out from the top, and a soft blue glow. */
.tech-ae-wcu::before,
.tech-ae-wcu::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

.tech-ae-wcu::before {
	inset: 0;
	background-image: radial-gradient(rgba(4, 51, 92, .14) 1px, transparent 1.4px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 70%);
}

.tech-ae-wcu::after {
	top: -260px;
	right: -200px;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(11, 81, 153, .12) 0%, rgba(11, 81, 153, 0) 65%);
}

/* With a background image: the background colour lies over it as an overlay. */
.tech-ae-wcu--has-bg-image::before {
	background: var(--tech-ae-wcu-bg);
	opacity: var(--tech-ae-wcu-overlay, .88);
	-webkit-mask-image: none;
	mask-image: none;
}

.tech-ae-wcu--has-bg-image::after {
	display: none;
}

.tech-ae-wcu__inner {
	width: 100%;
	max-width: 1328px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 24px);
}

/* Heading ------------------------------------------------------------------- */
.tech-ae-wcu__head {
	max-width: 780px;
}

.tech-ae-wcu--align-center .tech-ae-wcu__head {
	margin-inline: auto;
	text-align: center;
}

.tech-ae-wcu--align-right .tech-ae-wcu__head {
	margin-left: auto;
	text-align: right;
}

.tech-ae-wcu__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 7px 16px 7px 14px;
	border: 1px solid rgba(11, 81, 153, .18);
	border-radius: 999px;
	background: rgba(11, 81, 153, .06);
	color: var(--tech-ae-wcu-blue);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.tech-ae-wcu__eyebrow::before {
	content: "";
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--tech-ae-wcu-navy);
	box-shadow: 0 0 0 3px rgba(11, 81, 153, .18);
	transform: rotate(45deg);
}

.tech-ae-wcu__title {
	margin: 18px 0 0;
	color: var(--tech-ae-wcu-navy);
	font-family: var(--tech-ae-font-head, inherit);
	font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.85rem);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -.015em;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.tech-ae-wcu__head>.tech-ae-wcu__title:first-child {
	margin-top: 0;
}

.tech-ae-wcu__desc {
	max-width: 640px;
	margin: 16px 0 0;
	color: var(--tech-ae-wcu-gray);
	font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
	line-height: 1.7;
	text-wrap: pretty;
}

.tech-ae-wcu--align-center .tech-ae-wcu__desc {
	margin-inline: auto;
}

.tech-ae-wcu--align-right .tech-ae-wcu__desc {
	margin-left: auto;
}

/* Light heading text, for a dark background colour or image (Style → Section → Text colour) */
.tech-ae-wcu--light::before {
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
}

.tech-ae-wcu--light::after {
	background: radial-gradient(circle, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 65%);
}

.tech-ae-wcu--light .tech-ae-wcu__eyebrow {
	border-color: rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .08);
	color: var(--tech-ae-wcu-white);
}

.tech-ae-wcu--light .tech-ae-wcu__eyebrow::before {
	background: var(--tech-ae-wcu-white);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .2);
}

.tech-ae-wcu--light .tech-ae-wcu__title {
	color: var(--tech-ae-wcu-white);
}

.tech-ae-wcu--light .tech-ae-wcu__desc {
	color: rgba(255, 255, 255, .8);
}

/* Grid ---------------------------------------------------------------------- */
.tech-ae-wcu__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--tech-ae-wcu-gap);
	margin: clamp(36px, 1.5rem + 2vw, 60px) 0 0;
	padding: 0;
	list-style: none;
}

.tech-ae-wcu__inner>.tech-ae-wcu__grid:first-child {
	margin-top: 0;
}

.tech-ae-wcu__item {
	display: flex;
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
}

/* Card ---------------------------------------------------------------------- */
.tech-ae-wcu__card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	border: 1px solid rgba(4, 51, 92, .10);
	border-radius: var(--tech-ae-wcu-radius);
	background: var(--tech-ae-wcu-white);
	box-shadow: 0 1px 2px rgba(4, 51, 92, .05), 0 14px 34px -22px rgba(4, 51, 92, .35);
	transition: transform .4s var(--tech-ae-wcu-ease), box-shadow .4s var(--tech-ae-wcu-ease), border-color .4s var(--tech-ae-wcu-ease);
}

/* Bottom accent line that draws in on hover / focus */
.tech-ae-wcu__card::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--tech-ae-wcu-blue), var(--tech-ae-wcu-navy));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--tech-ae-wcu-ease);
}

.tech-ae-wcu__card:hover,
.tech-ae-wcu__card:focus-within {
	border-color: rgba(11, 81, 153, .30);
	box-shadow: 0 2px 4px rgba(4, 51, 92, .06), 0 28px 50px -26px rgba(4, 51, 92, .55);
	transform: translateY(-6px);
}

.tech-ae-wcu__card:hover::after,
.tech-ae-wcu__card:focus-within::after {
	transform: scaleX(1);
}

/* Highlighted card (editor switch) */
.tech-ae-wcu__card--highlight {
	border-color: rgba(4, 51, 92, .55);
	box-shadow: 0 2px 4px rgba(4, 51, 92, .08), 0 22px 46px -24px rgba(4, 51, 92, .6);
}

.tech-ae-wcu__card--highlight::after {
	transform: scaleX(1);
}

/* Image area */
.tech-ae-wcu__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--tech-ae-wcu-navy), var(--tech-ae-wcu-blue));
}

.tech-ae-wcu__media::after {
	/* Depth at the image's lower edge, under the icon badge */
	content: "";
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(to top, rgba(4, 51, 92, .45), rgba(4, 51, 92, 0));
	pointer-events: none;
}

.tech-ae-wcu .tech-ae-wcu__img {
	/* Beats Elementor's ".elementor img { height: auto }" */
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--tech-ae-wcu-ease);
}

.tech-ae-wcu__card:hover .tech-ae-wcu__img,
.tech-ae-wcu__card:focus-within .tech-ae-wcu__img {
	transform: scale(1.06);
}

/* No image chosen: navy panel with a fine line grid and the icon, large and faint */
.tech-ae-wcu__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .16), transparent 42%),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 28px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 28px),
		linear-gradient(135deg, var(--tech-ae-wcu-navy) 0%, var(--tech-ae-wcu-blue) 100%);
}

.tech-ae-wcu__media-icon {
	color: rgba(255, 255, 255, .22);
	font-size: clamp(64px, 6vw, 92px);
	line-height: 1;
	transition: transform .8s var(--tech-ae-wcu-ease);
}

.tech-ae-wcu__media-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.tech-ae-wcu__card:hover .tech-ae-wcu__media-icon {
	transform: scale(1.08) rotate(-4deg);
}

/* Content */
.tech-ae-wcu__body {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 26px 26px 28px;
}

.tech-ae-wcu__card--media.tech-ae-wcu__card--icon .tech-ae-wcu__body {
	padding-top: 50px;
}

/* Icon badge: sits on the image / content boundary */
.tech-ae-wcu__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 62px;
	height: 62px;
	margin-bottom: 18px;
	border-radius: 18px;
	background: var(--tech-ae-wcu-white);
	box-shadow: inset 0 0 0 1px rgba(11, 81, 153, .16), 0 12px 24px -12px rgba(4, 51, 92, .55);
	color: var(--tech-ae-wcu-blue);
	font-size: 26px;
	line-height: 1;
	transition: background .35s var(--tech-ae-wcu-ease), color .35s var(--tech-ae-wcu-ease), transform .35s var(--tech-ae-wcu-ease), box-shadow .35s var(--tech-ae-wcu-ease);
}

.tech-ae-wcu__icon i,
.tech-ae-wcu__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	font-size: inherit;
	line-height: 1;
	fill: currentColor;
}

.tech-ae-wcu__card--media .tech-ae-wcu__icon {
	position: absolute;
	top: -31px;
	left: 26px;
	margin: 0;
}

.tech-ae-wcu__card:hover .tech-ae-wcu__icon,
.tech-ae-wcu__card:focus-within .tech-ae-wcu__icon,
.tech-ae-wcu__card--highlight .tech-ae-wcu__icon {
	background: linear-gradient(140deg, var(--tech-ae-wcu-blue), var(--tech-ae-wcu-navy));
	box-shadow: 0 14px 26px -12px rgba(4, 51, 92, .75);
	color: var(--tech-ae-wcu-white);
}

.tech-ae-wcu__card:hover .tech-ae-wcu__icon,
.tech-ae-wcu__card:focus-within .tech-ae-wcu__icon {
	transform: translateY(-3px);
}

.tech-ae-wcu__card-title {
	margin: 0 0 10px;
	color: var(--tech-ae-wcu-text);
	font-family: var(--tech-ae-font-head, inherit);
	font-size: clamp(1.15rem, 1.02rem + .45vw, 1.375rem);
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
	transition: color .3s ease;
}

.tech-ae-wcu__card:hover .tech-ae-wcu__card-title {
	color: var(--tech-ae-wcu-navy);
}

.tech-ae-wcu__card-desc {
	margin: 0 0 24px;
	color: var(--tech-ae-wcu-gray);
	font-size: 15.5px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.tech-ae-wcu__card-desc:last-child {
	margin-bottom: 0;
}

/* Button: pinned to the bottom, so buttons line up across a row */
.tech-ae-wcu__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	min-height: 48px;
	margin-top: auto;
	padding: 8px 8px 8px 20px;
	border-radius: 12px;
	background: var(--tech-ae-wcu-blue);
	box-shadow: 0 10px 20px -12px rgba(11, 81, 153, .9);
	color: var(--tech-ae-wcu-white);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: background .3s ease, box-shadow .3s ease;
}

.tech-ae-wcu__btn:hover,
.tech-ae-wcu__btn:focus-visible {
	background: var(--tech-ae-wcu-navy);
	box-shadow: 0 12px 24px -12px rgba(4, 51, 92, .95);
	color: var(--tech-ae-wcu-white);
}

.tech-ae-wcu__btn:focus-visible {
	outline: 3px solid rgba(11, 81, 153, .45);
	outline-offset: 3px;
}

.tech-ae-wcu__btn>span:first-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.tech-ae-wcu__btn-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: rgba(255, 255, 255, .16);
	transition: transform .3s var(--tech-ae-wcu-ease), background .3s ease;
}

.tech-ae-wcu__btn:hover .tech-ae-wcu__btn-arrow,
.tech-ae-wcu__btn:focus-visible .tech-ae-wcu__btn-arrow {
	background: var(--tech-ae-wcu-white);
	color: var(--tech-ae-wcu-navy);
	transform: translateX(3px);
}

/* Scroll-in reveal (the script adds .is-reveal; without it everything is simply visible) */
.tech-ae-wcu.is-reveal .tech-ae-wcu__item {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s ease, transform .7s var(--tech-ae-wcu-ease);
}

.tech-ae-wcu.is-reveal .tech-ae-wcu__item:nth-child(3n + 2) {
	transition-delay: .1s;
}

.tech-ae-wcu.is-reveal .tech-ae-wcu__item:nth-child(3n + 3) {
	transition-delay: .2s;
}

.tech-ae-wcu.is-reveal .tech-ae-wcu__item.is-visible {
	opacity: 1;
	transform: none;
}

/* Phones ----------------------------------------------------------------- */
@media (max-width: 767px) {
	.tech-ae-wcu::after {
		display: none;
	}

	/* Simpler decoration on small screens */
	.tech-ae-wcu__body {
		padding: 22px 20px 22px;
	}

	.tech-ae-wcu__card--media.tech-ae-wcu__card--icon .tech-ae-wcu__body {
		padding-top: 44px;
	}

	.tech-ae-wcu__icon {
		width: 56px;
		height: 56px;
		border-radius: 16px;
		font-size: 23px;
	}

	.tech-ae-wcu__card--media .tech-ae-wcu__icon {
		top: -28px;
		left: 20px;
	}

	.tech-ae-wcu__btn {
		justify-content: space-between;
		width: 100%;
	}
}

/* Tablet: 2 per row --------------------------------------------------------- */
@media (min-width: 768px) {
	.tech-ae-wcu {
		--tech-ae-wcu-gap: 24px;
	}

	.tech-ae-wcu__item {
		flex-basis: calc((100% - var(--tech-ae-wcu-gap)) / 2);
	}
}

/* Desktop: 3 per row (or the number chosen in Elementor) -------------------- */
@media (min-width: 1200px) {
	.tech-ae-wcu {
		--tech-ae-wcu-gap: 28px;
	}

	.tech-ae-wcu__item {
		flex-basis: calc((100% - (var(--tech-ae-wcu-cols) - 1) * var(--tech-ae-wcu-gap)) / var(--tech-ae-wcu-cols));
	}
}

/* Reduced motion: no movement, no reveal */
@media (prefers-reduced-motion: reduce) {

	.tech-ae-wcu *,
	.tech-ae-wcu *::before,
	.tech-ae-wcu *::after {
		transition: none !important;
	}

	.tech-ae-wcu__card:hover,
	.tech-ae-wcu__card:focus-within,
	.tech-ae-wcu__card:hover .tech-ae-wcu__img,
	.tech-ae-wcu__card:focus-within .tech-ae-wcu__img,
	.tech-ae-wcu__card:hover .tech-ae-wcu__icon,
	.tech-ae-wcu__card:hover .tech-ae-wcu__media-icon,
	.tech-ae-wcu__btn:hover .tech-ae-wcu__btn-arrow {
		transform: none;
	}

	.tech-ae-wcu.is-reveal .tech-ae-wcu__item {
		opacity: 1;
		transform: none;
	}
}