/* ==========================================================================
   AAS Process Steps - "How We Work" section: badge + heading + photo
   with a diagonal red accent cut, then a connected row of numbered
   steps (icon badge overlapping a circular photo, chevron connectors).
   ========================================================================== */

.aas-pw {
	--aas-accent: var(--e-global-color-accent, #FE212A);
	--aas-dark: var(--e-global-color-primary, #0D0D0D);
	--aas-text: var(--e-global-color-text, #666666);
	--aas-white: var(--e-global-color-white, #FFFFFF);
	--aas-light: var(--e-global-color-secondary, #F5F5F5);
	--aas-font-heading: var(--e-global-typography-primary-font-family, "Space Grotesk", sans-serif);
	--aas-font-text: var(--e-global-typography-text-font-family, "DM Sans", sans-serif);

	position: relative;
	background: var(--aas-light);
	padding: 70px 0 60px;
	overflow: hidden;
}

/* ---- Top: heading/description + diagonal photo ------------------------- */
.aas-pw-top {
	position: relative;
	display: grid;
	grid-template-columns: minmax(300px, 640px) 1fr;
	align-items: stretch;
	min-height: 320px;
	max-width: 1500px;
	margin: 0 auto 50px;
	padding-left: 40px;
	gap: 20px;
}

.aas-pw-left {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 0;
}
.aas-pw-left .aas-badge-dash {
	display: inline-block;
	width: 32px;
	height: 3px;
	background: var(--aas-accent);
	margin-right: 10px;
	vertical-align: middle;
}
.aas-pw-left .aas-badge-text {
	font-family: var(--aas-font-heading);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1px;
	color: var(--aas-dark);
}

.aas-pw-heading.aas-heading {
	font-family: var(--aas-font-heading);
	color: var(--aas-dark);
	font-weight: 700;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.2;
	margin: 14px 0 16px;
}
.aas-pw-accent {
	color: var(--aas-accent);
}

.aas-pw-description {
	font-family: var(--aas-font-text);
	color: var(--aas-text);
	line-height: 1.7;
	max-width: 480px;
}

/* ---- Right: photo with diagonal red accent cut -------------------------- */
.aas-pw-image-col {
	position: relative;
	overflow: hidden;
	/* Bleeds all the way to the browser's right edge, regardless of the
	   section's own max-width/centering. */
	margin-right: calc(50% - 50vw);
	/* Angled left edge, matching the reference's diagonal cut. */
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
}
.aas-pw-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Soft fade at the bottom edge so the photo blends into the section
   background instead of ending in a hard, "cut-off" line. */
.aas-pw-image-col::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 90px;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--aas-light) 100%);
	z-index: 2;
	pointer-events: none;
}
/* Red diagonal ribbon crossing the top-left edge of the photo. */
.aas-pw-deco {
	position: absolute;
	top: 0;
	left: 0;
	width: 110px;
	height: 100%;
	background: var(--aas-accent);
	clip-path: polygon(60% 0, 100% 0, 40% 100%, 0% 100%);
	z-index: 3;
	pointer-events: none;
}

/* ---- Steps row ------------------------------------------------------------ */
.aas-pw-steps {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 40px;
}

.aas-pw-step {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 250px;
	transition: transform 0.35s ease;
}
.aas-pw-step:hover {
	transform: translateY(-6px);
}

.aas-pw-step-visual {
	position: relative;
	width: 150px;
	height: 150px;
	margin-bottom: 18px;
}
.aas-pw-step-photo {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid var(--aas-white);
	box-shadow: 0 10px 24px rgba(13,13,13,0.12);
	background: var(--aas-white);
	display: block;
}
.aas-pw-step-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.aas-pw-step:hover .aas-pw-step-photo img {
	transform: scale(1.12);
}

.aas-pw-step-icon {
	position: absolute;
	top: -14px;
	left: -14px;
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--aas-accent);
	color: var(--aas-white);
	border-radius: 50%;
	border: 4px solid var(--aas-white);
	font-size: 20px;
	box-shadow: 0 8px 18px rgba(254,33,42,0.3);
	z-index: 2;
	transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.aas-pw-step-icon svg {
	width: 20px;
	height: 20px;
}
.aas-pw-step:hover .aas-pw-step-icon {
	transform: rotate(-8deg) scale(1.08);
	background: var(--aas-dark);
}

.aas-pw-step-text {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.aas-pw-step-number {
	font-family: var(--aas-font-heading);
	font-weight: 700;
	font-size: 26px;
	color: var(--aas-dark);
	line-height: 1.3;
	border-right: 2px solid var(--aas-accent);
	padding-right: 10px;
	flex-shrink: 0;
}
.aas-pw-step-title {
	font-family: var(--aas-font-heading);
	font-weight: 700;
	font-size: 16px;
	color: var(--aas-dark);
	margin: 0 0 6px;
}
.aas-pw-step-desc {
	font-family: var(--aas-font-text);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--aas-text);
	margin: 0;
}

.aas-pw-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	color: var(--aas-accent);
	background: var(--aas-white);
	font-size: 15px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(13,13,13,0.1);
	flex-shrink: 0;
	margin: 55px 8px 0;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.aas-pw-arrow:hover {
	background: var(--aas-accent);
	color: var(--aas-white);
	transform: scale(1.1);
}

/* ---- CTA ------------------------------------------------------------------ */
.aas-pw-cta {
	text-align: center;
	margin-top: 44px;
}
.aas-pw-btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	background: var(--aas-accent);
	color: var(--aas-white);
	font-family: var(--aas-font-heading);
	font-weight: 600;
	padding: 5px 5px 5px 24px;
	border-radius: 5px;
	border: 1px solid var(--aas-accent);
	text-decoration: none;
	transition: all 0.3s ease;
}
.aas-pw-btn .aas-btn-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 4px;
	background: rgba(255,255,255,0.18);
	color: var(--aas-white);
	flex-shrink: 0;
}
.aas-pw-btn:hover {
	background: var(--aas-dark);
	color: var(--aas-white);
	border-color: var(--aas-dark);
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
	.aas-pw-top {
		grid-template-columns: 1fr;
	}
	.aas-pw-image-col {
		clip-path: none;
		min-height: 260px;
		border-radius: 16px;
		margin-right: 0;
		margin: 0 40px;
	}
	.aas-pw-deco {
		display: none;
	}
	.aas-pw-steps {
		justify-content: flex-start;
	}
	.aas-pw-arrow {
		display: none;
	}
	.aas-pw-step {
		width: 46%;
		margin-bottom: 30px;
	}
}
@media (max-width: 600px) {
	.aas-pw-top {
		padding: 0 20px;
	}
	.aas-pw-steps {
		padding: 0 20px;
	}
	.aas-pw-step {
		width: 100%;
	}
}
