/* ==========================================================================
   QB - Fahwa About — Frontend Styles
   ========================================================================== */

.qb-fahwa-about {
	--qb-fa-gold: #C89B3C;
	--qb-fa-ink: #1A1A1A;
	--qb-fa-muted: #6B6B6B;

	display: flex;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 80px;
	row-gap: 56px;
	width: 100%;
}

/* ---------------------------------- Visual column ---------------------------------- */

.qb-fahwa-about__visual {
	position: relative;
	width: 46%;
	flex-shrink: 0;
	min-width: 280px;
	aspect-ratio: 1 / 1.005;
}

.qb-fahwa-about__image {
	overflow: hidden;
	line-height: 0;
	position: absolute;
}

.qb-fahwa-about__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.qb-fahwa-about__image--large {
	top: 0;
	left: 0;
	width: 96%;
	height: 86%;
	border-radius: 24px;
	z-index: 1;
}

.qb-fahwa-about__image--small {
	width: 52%;
	height: 41%;
	border-radius: 20px;
	border: 8px solid #FFFFFF;
	z-index: 2;
	box-sizing: border-box;
	transform: translate(var(--qb-small-tx, 0px), var(--qb-small-ty, 0px));
}

.qb-fahwa-about__image--small.qb-pos-bottom-right {
	right: 0;
	bottom: 0;
}

.qb-fahwa-about__image--small.qb-pos-bottom-left {
	left: 0;
	bottom: 0;
}

.qb-fahwa-about__image--small.qb-pos-top-right {
	top: 0;
	right: 0;
}

.qb-fahwa-about__image--small.qb-pos-top-left {
	top: 0;
	left: 0;
}

/* ---------------------------------- Stats badge ---------------------------------- */

.qb-fahwa-about__badge {
	position: absolute;
	top: 4.5%;
	right: -3%;
	z-index: 3;
	background: #FFFFFF;
	border-radius: 16px;
	padding: 20px 24px;
	box-shadow: 0 20px 45px -18px rgba(20, 20, 20, 0.28);
	min-width: 132px;
	text-align: left;
}

.qb-fahwa-about__badge.qb-pos-top-left {
	right: auto;
	left: -3%;
}

.qb-fahwa-about__badge.qb-pos-bottom-right {
	top: auto;
	bottom: 4.5%;
	right: -3%;
}

.qb-fahwa-about__badge.qb-pos-bottom-left {
	top: auto;
	bottom: 4.5%;
	right: auto;
	left: -3%;
}

.qb-fahwa-about__badge-number {
	font-size: 34px;
	line-height: 1;
	font-weight: 800;
	color: var(--qb-fa-ink);
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.qb-fahwa-about__badge-suffix {
	color: var(--qb-fa-gold);
}

.qb-fahwa-about__badge-label {
	margin-top: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--qb-fa-muted);
	white-space: nowrap;
}

/* ---------------------------------- Content column ---------------------------------- */

.qb-fahwa-about__content {
	flex: 1 1 420px;
	min-width: 280px;
}

.qb-fahwa-about__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
}

.qb-fahwa-about__dash {
	display: inline-block;
	height: 3px;
	border-radius: 2px;
}

.qb-fahwa-about__dash--1 {
	width: 14px;
	background-color: var(--qb-fa-ink);
}

.qb-fahwa-about__dash--2 {
	width: 34px;
	background-color: var(--qb-fa-gold);
}

.qb-fahwa-about__heading {
	margin: 0 0 28px;
	font-size: clamp(32px, 3.6vw, 48px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--qb-fa-ink);
}

.qb-fahwa-about__highlight {
	font-style: italic;
	font-weight: 600;
	color: var(--qb-fa-gold);
	font-family: Georgia, 'Times New Roman', serif;
}

.qb-fahwa-about__description p {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--qb-fa-muted);
}

.qb-fahwa-about__description p:last-child {
	margin-bottom: 0;
}

.qb-fahwa-about__button-wrap {
	margin-top: 32px;
}

.qb-fahwa-about__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 18px 36px;
	border-radius: 50px;
	background-color: var(--qb-fa-gold);
	color: #FFFFFF;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.01em;
	text-decoration: none;
	box-shadow: 0 16px 30px -14px rgba(200, 155, 60, 0.55);
	transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.qb-fahwa-about__button:hover,
.qb-fahwa-about__button:focus-visible {
	background-color: var(--qb-fa-ink);
	color: #FFFFFF;
	transform: translateY(-2px);
	box-shadow: 0 18px 34px -14px rgba(20, 20, 20, 0.4);
}

.qb-fahwa-about__button:focus-visible {
	outline: 2px solid var(--qb-fa-gold);
	outline-offset: 3px;
}

/* ==========================================================================
   Entrance animations
   ========================================================================== */

.qb-fahwa-about--animated .qb-anim {
	opacity: 0;
	will-change: transform, opacity;
	transition-property: opacity, transform;
	transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.qb-fahwa-about--animated .qb-anim.qb-in-view {
	opacity: 1;
	transform: none !important;
}

/* fade-up (default) */
.qb-fahwa-about--animated[data-anim-style="fade-up"] .qb-anim {
	transform: translateY(28px);
}

/* fade-in */
.qb-fahwa-about--animated[data-anim-style="fade-in"] .qb-anim {
	transform: none;
}

/* zoom-in */
.qb-fahwa-about--animated[data-anim-style="zoom-in"] .qb-anim {
	transform: scale(0.92);
}

/* slide-in — visual column slides from left, content column from right */
.qb-fahwa-about--animated[data-anim-style="slide-in"] .qb-fahwa-about__visual .qb-anim {
	transform: translateX(-40px);
}

.qb-fahwa-about--animated[data-anim-style="slide-in"] .qb-fahwa-about__content .qb-anim {
	transform: translateX(40px);
}

@media (prefers-reduced-motion: reduce) {
	.qb-fahwa-about--animated .qb-anim {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.qb-fahwa-about {
		column-gap: 56px;
		row-gap: 48px;
	}

	.qb-fahwa-about__badge {
		padding: 16px 20px;
	}

	.qb-fahwa-about__badge-number {
		font-size: 28px;
	}
}

@media (max-width: 767px) {
	.qb-fahwa-about {
		flex-direction: column;
	}

	.qb-fahwa-about__visual,
	.qb-fahwa-about__content {
		width: 100% !important;
		flex-basis: auto;
	}

	.qb-fahwa-about__badge {
		right: -1.5%;
		padding: 14px 18px;
	}

	.qb-fahwa-about__badge.qb-pos-top-left,
	.qb-fahwa-about__badge.qb-pos-bottom-left {
		left: -1.5%;
	}

	.qb-fahwa-about__badge-number {
		font-size: 24px;
	}

	.qb-fahwa-about__heading {
		font-size: 30px;
	}

	.qb-fahwa-about__button {
		width: 100%;
	}
}

@media (max-width: 420px) {
	.qb-fahwa-about__image--small {
		width: 62%;
		border-width: 6px;
	}

	.qb-fahwa-about__badge {
		min-width: 108px;
		padding: 12px 14px;
	}

	.qb-fahwa-about__badge-number {
		font-size: 20px;
	}

	.qb-fahwa-about__badge-label {
		font-size: 9.5px;
	}
}
