/* ==========================================================================
   Probit Hero Block — full background slider
   ========================================================================== */

.hero {
	position: relative;
	padding: 100px 0 110px;
	background: var(--color-white);
	overflow: hidden;
	min-height: 520px;
	display: flex;
	align-items: center;
}

.hero--has-bg {
	min-height: 72vh;
	padding: 100px 0 100px;
	color: var(--color-white);
}

/* Full-width background slider */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__bg .hero__slider {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.2s ease;
	z-index: 0;
}

.hero__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		105deg,
		rgba(15, 27, 45, 0.88) 0%,
		rgba(15, 27, 45, 0.72) 45%,
		rgba(15, 27, 45, 0.45) 100%
	);
	pointer-events: none;
}

/* Light fallback pattern (no images) */
.hero__pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(59, 111, 255, 0.04) 0%, transparent 45%),
		radial-gradient(circle at 80% 70%, rgba(59, 111, 255, 0.03) 0%, transparent 40%);
}

.hero__pattern::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233B6FFF' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.35;
}

.hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
}

.hero__content {
	max-width: 640px;
}

.hero__title {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 20px;
	color: var(--color-navy);
}

.hero--has-bg .hero__title {
	color: var(--color-white);
}

.hero__title .text-primary {
	display: inline;
}

.hero--has-bg .hero__title .text-primary {
	color: #6b9fff;
}

.hero__subtitle {
	font-size: 1.0625rem;
	color: var(--color-gray-600);
	line-height: 1.75;
	margin-bottom: 32px;
	max-width: 560px;
}

.hero--has-bg .hero__subtitle {
	color: rgba(255, 255, 255, 0.82);
}

.hero--has-bg .section-eyebrow {
	color: rgba(255, 255, 255, 0.75);
}

.hero__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.hero__stats {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}

.hero-stat {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hero-stat__icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	background-color: var(--color-primary);
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.hero--has-bg .hero-stat__icon {
	background-color: #6b9fff;
}

.hero-stat__icon--experience {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.hero-stat__icon--projects {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.hero-stat__icon--clients {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.hero-stat__text {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-gray-600);
}

.hero--has-bg .hero-stat__text {
	color: rgba(255, 255, 255, 0.9);
}

/* Editor */
.probit-hero-editor__images {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 8px;
}

.probit-hero-editor__image {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 8px;
	background: #f0f0f1;
	border-radius: 4px;
	font-size: 12px;
}

/* Full-width alignment */
.hero.alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 768px) {
	.hero {
		padding: 72px 0 80px;
		min-height: 480px;
	}

	.hero--has-bg {
		min-height: 85vh;
		padding: 88px 0 72px;
	}

	.hero__actions {
		flex-direction: column;
		margin-bottom: 32px;
	}

	.hero__actions .btn {
		width: 100%;
		justify-content: center;
	}

	.hero__stats {
		flex-direction: column;
		gap: 14px;
	}
	.section-eyebrow {
		font-size: 12px;
	}
	.hero__title {
		font-size: 25px;
	}
	.hero__subtitle {
		font-size: 14px;
	}
	
}
