/**
 * Company Overview Features Widget - Frontend Styles
 *
 * All colours, sizes and spacing are controllable from Elementor's Style
 * tab. The values below are sensible fallbacks only.
 */

.cow-wrapper {
	box-sizing: border-box;
	width: 100%;
}

.cow-wrapper *,
.cow-wrapper *::before,
.cow-wrapper *::after {
	box-sizing: border-box;
}

/* -------------------------------------------------- */
/* Header (small title / heading / description)        */
/* -------------------------------------------------- */

.cow-header {
	margin-bottom: 50px;
}

.cow-small-title {
	display: block;
	font-family: inherit;
	color: #0F6CBD;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 12px;
}

.cow-main-heading {
	margin: 0 0 20px;
	color: #222222;
	font-weight: 700;
	line-height: 1.3;
}

.cow-description {
	margin: 0;
	color: #666666;
	font-size: 16px;
	line-height: 1.8;
}

.cow-description p {
	margin: 0 0 1em;
}

.cow-description p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------- */
/* Grid                                                */
/* -------------------------------------------------- */

.cow-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 50px;
	row-gap: 45px;
	width: 100%;
}

/* -------------------------------------------------- */
/* Feature card                                        */
/* -------------------------------------------------- */

.cow-feature {
	--cow-hover-lift: -6px;
	--cow-icon-scale: 1.1;

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	text-decoration: none;
	color: inherit;
	transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
	will-change: transform;
}

.cow-feature:hover,
.cow-feature:focus-within {
	transform: translateY(var(--cow-hover-lift));
}

a.cow-feature {
	cursor: pointer;
}

.cow-feature-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	font-size: 26px;
	line-height: 1;
	color: #0F6CBD;
	border: 1px solid #0F6CBD;
	border-radius: 50%;
	margin-bottom: 18px;
	transition: color 300ms ease, border-color 300ms ease, transform 300ms ease, background-color 300ms ease;
}

.cow-feature-icon-wrap svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.cow-feature:hover .cow-feature-icon-wrap,
.cow-feature:focus-within .cow-feature-icon-wrap {
	color: #0956A3;
	border-color: #0956A3;
	transform: scale(var(--cow-icon-scale));
}

.cow-feature-title {
	margin: 0 0 12px;
	color: #222222;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.4;
}

.cow-feature-description {
	margin: 0;
	color: #666666;
	font-size: 16px;
	line-height: 1.8;
}

/* Keyboard accessibility */
.cow-feature:focus-visible {
	outline: 2px solid #0F6CBD;
	outline-offset: 4px;
	border-radius: 4px;
}

/* -------------------------------------------------- */
/* Responsive                                           */
/* -------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
	.cow-features-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.cow-features-grid {
		grid-template-columns: repeat(1, 1fr) !important;
	}

	.cow-main-heading {
		font-size: 28px !important;
	}
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
	.cow-feature,
	.cow-feature-icon-wrap {
		transition: none !important;
	}
}
