/* ==========================================================================
   Principles widget  (.aew-pr)
   Real CSS pixels, measured on the 1920px wide About page.
   ========================================================================== */

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

	box-sizing: border-box;
	background-color: #fff;
	color: #1a1a1a;
	font-family: var(--aew-font);
	-webkit-font-smoothing: antialiased;
}

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

.aew-pr__inner {
	width: calc(100% - (var(--aew-gutter) * 2));
	max-width: 1540px;
	margin-inline: auto;
}

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

.aew-pr__head {
	margin-bottom: 61px;
	text-align: center;
}

.aew-pr__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 0 0 26px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 1.7px;
	line-height: 1.4;
	text-transform: uppercase;
}

.aew-pr__eyebrow-line {
	flex: none;
	display: block;
	width: 50px;
	height: 4px;
	background: var(--aew-accent);
}

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

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

.aew-pr__title-text {
	color: #1a1a1a;
}

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

/* ---- Cards ---- */

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

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

.aew-pr__card {
	flex: 1 1 auto;
	min-width: 0;
	padding: 30px;
	border: 1px solid #e5e5e5;
	background-color: #f9f9f9;
}

.aew-pr__icon {
	--aew-icon-box: 60px;

	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--aew-icon-box);
	height: var(--aew-icon-box);
	margin-bottom: 25px;
	border: 1px solid #e5e5e5;
	background-color: #fff;
	font-size: 24px;
	line-height: 1;
	color: var(--aew-accent);
}

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

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

/* h3 and p carry the kit's global styles, so reset what matters */
.aew-pr .aew-pr__card-title {
	margin: 0 0 11px;
	padding: 0;
	font-family: inherit;
	font-size: 17.5px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.3;
	text-transform: uppercase;
	color: #1a1a1a;
}

.aew-pr .aew-pr__card-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #666;
}

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

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

	.aew-pr .aew-pr__title {
		font-size: 44px;
	}

	.aew-pr__head {
		margin-bottom: 52px;
	}

	.aew-pr__card {
		padding: 26px 24px;
	}
}

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

	.aew-pr .aew-pr__title {
		font-size: 32px;
	}

	.aew-pr__head {
		margin-bottom: 40px;
	}

	.aew-pr__eyebrow {
		font-size: 14px;
	}

	.aew-pr__eyebrow-line {
		width: 32px;
	}

	.aew-pr__card {
		padding: 24px 22px;
	}
}
