/**
 * Edwin Hero widget — isolated styles.
 * All rules are scoped under .edwin-hero so nothing leaks in/out.
 */

.edwin-hero {
	background-color: var(--edwin-charcoal);
	background-image:
		radial-gradient(ellipse 900px 500px at 15% -10%, rgba(249, 115, 22, 0.16), transparent 60%),
		linear-gradient(160deg, #232323 0%, var(--edwin-charcoal) 45%, #101010 100%);
	color: var(--edwin-white) !important;
	overflow: hidden;
}

.edwin-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(26, 26, 26, 0.35) 0%, rgba(26, 26, 26, 0.78) 100%);
	pointer-events: none;
}

.edwin-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	min-height: 60vh;
	padding: calc(var(--edwin-space-8) + var(--edwin-space-3)) var(--edwin-space-4) calc(var(--edwin-space-8) + var(--edwin-space-3));
}

.edwin-hero__content {
	display: flex;
	flex-direction: column;
	align-items: inherit;
	gap: var(--edwin-space-3);
	max-width: 720px;
	width: 100%;
	text-align: center;
}

.edwin-hero__badge {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	background: rgba(249, 115, 22, 0.15) !important;
	color: var(--edwin-orange) !important;
	border: 1px solid rgba(249, 115, 22, 0.4);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	white-space: normal;
	overflow-wrap: break-word;
	padding: 8px 16px;
	border-radius: 999px;
}

.edwin-hero__title {
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--edwin-white) !important;
	margin-bottom: var(--edwin-space-2) !important;
}

.edwin-hero__desc {
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82) !important;
	max-width: 60ch;
	margin-bottom: var(--edwin-space-3) !important;
}

.edwin-hero__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: var(--edwin-space-3);
}

.edwin-hero__trust-item {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--edwin-white) !important;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	padding: 8px 14px;
	border-radius: var(--edwin-radius-sm);
}

.edwin-hero__trust-item i,
.edwin-hero__trust-item svg {
	color: var(--edwin-orange) !important;
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
	max-width: none;
	max-height: none;
}

.edwin-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--edwin-space-2);
	margin-top: var(--edwin-space-1);
}

/* ---------------------------------------------------------------------
 * Stats bar — floating card that overlaps the bottom edge of the hero,
 * the "immediately below" trust strip (years / projects / reviews).
 * ------------------------------------------------------------------ */
.edwin-hero__stats {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--edwin-space-3);
	background: var(--edwin-white) !important;
	width: calc(100% - 64px);
	max-width: 1200px;
	margin: -64px auto 0;
	padding: var(--edwin-space-4) var(--edwin-space-4);
	border-radius: var(--edwin-radius-lg);
	box-shadow: 0 20px 45px -15px rgba(26, 26, 26, 0.35);
}

.edwin-hero__stat {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 14px;
	color: var(--edwin-charcoal) !important;
}

.edwin-hero__stat-text {
	min-width: 0;
}

.edwin-hero__stat-label {
	overflow-wrap: break-word;
}

.edwin-hero__stat i,
.edwin-hero__stat svg {
	font-size: 26px !important;
	width: 26px !important;
	height: 26px !important;
	max-width: none;
	max-height: none;
	color: var(--edwin-orange) !important;
	flex-shrink: 0;
}

.edwin-hero__stat-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.edwin-hero__stat-number {
	font-size: 22px;
	font-weight: 800;
	color: var(--edwin-charcoal) !important;
}

.edwin-hero__stat-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--edwin-gray) !important;
}

a.edwin-hero__stat:hover {
	opacity: 0.75;
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.edwin-hero__stats {
		grid-template-columns: repeat(2, 1fr);
		margin-top: -32px;
	}
}

@media (max-width: 767px) {
	.edwin-hero__inner {
		padding: var(--edwin-space-4) var(--edwin-space-2) var(--edwin-space-6);
		min-height: auto;
	}

	.edwin-hero__content {
		gap: var(--edwin-space-2);
	}

	.edwin-hero__badge {
		font-size: 11px;
		padding: 7px 14px;
	}

	.edwin-hero__title {
		font-size: 30px;
		line-height: 1.18;
	}

	.edwin-hero__desc {
		font-size: 15px;
		margin-bottom: var(--edwin-space-2) !important;
	}

	.edwin-hero__trust {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
		width: 100%;
		margin-bottom: var(--edwin-space-2);
	}

	.edwin-hero__trust-item {
		justify-content: center;
		width: 100%;
		font-size: 12px;
		padding: 8px 10px;
		text-align: left;
	}

	.edwin-hero__trust-item span {
		overflow-wrap: break-word;
	}

	.edwin-hero__buttons {
		width: 100%;
		gap: 10px;
	}

	.edwin-hero__buttons .edwin-btn {
		flex: 1 1 100%;
		padding: 15px 24px;
		font-size: 15px;
		text-align: center;
		justify-content: center;
	}

	.edwin-hero__stats {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--edwin-space-2);
		width: calc(100% - 32px);
		margin: -28px auto 0;
		padding: var(--edwin-space-3);
	}

	.edwin-hero__stat {
		gap: 10px;
	}

	.edwin-hero__stat i,
	.edwin-hero__stat svg {
		font-size: 20px !important;
		width: 20px !important;
		height: 20px !important;
	}

	.edwin-hero__stat-number {
		font-size: 18px;
	}
}
