/* ==========================================================================
   Advantage widget  (.aew-advantage)
   ========================================================================== */

.aew-advantage {
	--aew-accent: var(--aew-red);   /* control: Brand colour */
	--aew-gutter: 24px;             /* control: Side gap */

	position: relative;
	box-sizing: border-box;
	overflow: hidden;               /* the big word is wider than small screens */
	isolation: isolate;
	background-color: #f9f9f9;
	color: #111;
	font-family: var(--aew-font);
	-webkit-font-smoothing: antialiased;
}

.aew-advantage *,
.aew-advantage *::before,
.aew-advantage *::after {
	box-sizing: border-box;
}

/* ---- Big faded word behind everything ---- */

.aew-advantage__word {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	transform: translate(-50%, -50%);
	font-size: 250px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	color: #f2f2f2;
	pointer-events: none;
	user-select: none;
}

.aew-advantage__inner {
	position: relative;
	width: calc(100% - (var(--aew-gutter) * 2));
	max-width: 1076px;
	margin-inline: auto;
}

/* ---- Heading ---- */

.aew-advantage__head {
	margin-bottom: 56px;
	text-align: center;
}

.aew-advantage__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 0 20px;
	font-size: 11.2px;
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.4;
	text-transform: uppercase;
}

.aew-advantage__eyebrow-line {
	flex: none;
	display: block;
	width: 35px;
	height: 2px;
	background: var(--aew-accent);
}

.aew-advantage__eyebrow-text {
	color: var(--aew-accent);
}

/* extra class so the Elementor kit's global h1–h6 styles don't win */
.aew-advantage .aew-advantage__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 41.8px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
}

.aew-advantage__title-text {
	color: #111;
}

.aew-advantage__title-accent {
	color: var(--aew-accent);
}

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

.aew-advantage__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aew-advantage__item {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.aew-advantage__card {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	padding: 21px;
	border: 1px solid #e8e8e8;
	background-color: #fff;
}

.aew-advantage__num {
	position: absolute;
	top: 12px;
	right: 20px;
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	color: #f4f4f4;
	pointer-events: none;
	user-select: none;
}

.aew-advantage__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 14px;
	border: 1px solid #f0f0f0;
	background-color: #f9f9f9;
	font-size: 17px;
	line-height: 1;
	color: var(--aew-accent);
}

.aew-advantage__icon svg,
.aew-advantage__icon i {
	width: 1em;
	height: 1em;
	color: inherit;
}

.aew-advantage__icon svg:not([stroke]) {
	fill: currentColor;
}

/* h3 and p carry the kit's global styles, so reset what matters */
.aew-advantage .aew-advantage__card-title {
	position: relative;
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1.6;
	text-transform: uppercase;
	color: #111;
}

.aew-advantage .aew-advantage__card-text {
	position: relative;
	margin: 0;
	font-size: 10.5px;
	line-height: 1.62;
	color: #676863;
}

/* ---- Responsive (columns are also a control; these are the defaults) ---- */

@media (max-width: 1024px) {
	.aew-advantage__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.aew-advantage__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
