/* ==========================================================================
   About widget  (.aew-about)
   ========================================================================== */

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

	position: relative;
	box-sizing: border-box;
	background-color: #fff;
	color: #111;
	font-family: var(--aew-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip; /* the accent bar / badge may poke out of the image box; never cause sideways scroll */
}

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

.aew-about__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 58px;
	width: calc(100% - (var(--aew-gutter) * 2));
	max-width: 1076px;
	margin-inline: auto;
}

.aew-about--image-right .aew-about__media {
	order: 2;
}

/* ---- Image side ---- */

.aew-about__media {
	position: relative;
	min-width: 0;
}

.aew-about__bar {
	position: absolute;
	--aew-bar-offset: 10px;
	top: 28px;
	bottom: 28px;
	left: calc(var(--aew-bar-offset) * -1);
	width: 3px;
	background: var(--aew-accent);
}

.aew-about--image-right .aew-about__bar {
	left: auto;
	right: calc(var(--aew-bar-offset) * -1);
}

.aew-about__img-box {
	position: relative;
	width: 100%;
	aspect-ratio: 510 / 454;
	overflow: hidden;
	background-color: #2a2624;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.aew-about__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
}

.aew-about__badge {
	position: absolute;
	right: -20px;
	bottom: 43px;
	z-index: 2;
	min-width: 185px;
	padding: 22px 20px 20px;
	background-color: var(--aew-accent);
	color: #fff;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.aew-about--image-right .aew-about__badge {
	right: auto;
	left: -20px;
}

.aew-about__badge-num,
.aew-about__badge-label {
	display: block;
}

.aew-about__badge-num {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
}

.aew-about__badge-label {
	margin-top: 6px;
	font-size: 10.6px;
	font-weight: 400;
	letter-spacing: 1px;
	line-height: 1.4;
	text-transform: uppercase;
}

.aew-about__badge-line {
	display: block;
	width: 24px;
	height: 2px;
	margin-top: 12px;
	background: currentColor;
	opacity: 0.5;
}

/* ---- Content side ---- */

.aew-about__content {
	min-width: 0;
}

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

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

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

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

.aew-about__title-line,
.aew-about__title-accent {
	display: block;
}

.aew-about__title-line {
	color: #111;
}

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

.aew-about__text {
	margin: 0 0 28px;
	font-size: 12.25px;
	line-height: 1.63;
	color: #626166;
}

.aew-about__text p {
	margin: 0 0 14px;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.aew-about__text p:last-child {
	margin-bottom: 0;
}

/* ---- Owner card ---- */

.aew-about__owner {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 17px 20px 17px 17px;
	border: 1px solid #e8e8e8;
	border-left: 3px solid var(--aew-accent);
	background-color: #f9f9f9;
}

.aew-about__owner-avatar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	overflow: hidden;
	border: 1px solid #e8e8e8;
	background: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: var(--aew-accent);
}

.aew-about__owner-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aew-about__owner-info {
	display: block;
	min-width: 0;
}

.aew-about__owner-name,
.aew-about__owner-role,
.aew-about__owner-note {
	display: block;
}

.aew-about__owner-name {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.aew-about__owner-role {
	margin-top: 2px;
	font-size: 9.1px;
	letter-spacing: 1px;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--aew-accent);
}

.aew-about__owner-note {
	margin-top: 2px;
	font-size: 9.7px;
	letter-spacing: 0.5px;
	line-height: 1.3;
	text-transform: uppercase;
	color: #5b5f60;
	overflow-wrap: anywhere;
}

/* ---- Feature list ---- */

.aew-about__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.aew-about__feature {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
}

.aew-about__feature-icon {
	flex: none;
	display: inline-flex;
	font-size: 14px;
	line-height: 1;
	color: var(--aew-accent);
}

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

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

.aew-about__feature-text {
	font-size: 12.75px;
	line-height: 1.4;
	color: #1b1c1d;
}

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

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

	/* stacked: image always first, regardless of the desktop side setting */
	.aew-about--image-right .aew-about__media {
		order: 0;
	}

	.aew-about--image-right .aew-about__bar {
		left: calc(var(--aew-bar-offset) * -1);
		right: auto;
	}

	.aew-about--image-right .aew-about__badge {
		left: auto;
		right: 0;
	}
}

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