/* Solutions Finance – homepage hero */

/* Fallback: hide theme slider on the front page if any markup still renders */
.home #slider,
.home .slider { display: none !important; }

.sf-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 490px;
	background: #f3f3f3;
	display: flex;
	align-items: center;
}

.sf-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.sf-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 70% 55%;
	transform-origin: 60% 55%;
	will-change: transform;
	animation: sf-hero-drift 20s ease-in-out infinite alternate;
}

.sf-hero__fade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, #f3f3f3 0%, #f3f3f3 34%, rgba(243,243,243,.85) 44%, rgba(243,243,243,0) 64%);
}

.sf-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

.sf-hero__title {
	margin: 0 0 26px;
	padding: 0;
	font-family: 'Archivo', sans-serif;
	font-weight: 700;
	font-size: 60px;
	line-height: 1.08;
	letter-spacing: -1.8px;
	color: #25232b;
	text-transform: none;
	text-align: left;
}

.sf-hero__line { display: block; }

.sf-hero__title em {
	font-style: normal;
	color: #d4177c;
}

.sf-hero__script {
	margin: 0;
	max-width: 520px;
	font-family: 'Caveat', cursive;
	font-weight: 500;
	font-size: 36px;
	line-height: 1.2;
	color: #25232b;
	text-align: left;
}

/* ---------- Animation ---------- */

@keyframes sf-hero-drift {
	from { transform: scale(1) translateX(0); }
	to   { transform: scale(1.1) translateX(-2%); }
}

@keyframes sf-hero-up {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: none; }
}

/* Hidden start state only when JS is running */
.js .sf-hero .sf-hero__line,
.js .sf-hero .sf-hero__script { opacity: 0; transform: translateY(24px); }

.js .sf-hero.is-visible .sf-hero__line,
.js .sf-hero.is-visible .sf-hero__script {
	animation: sf-hero-up 900ms cubic-bezier(.2,.7,.2,1) both;
}

.js .sf-hero.is-visible .sf-hero__line:nth-child(1) { animation-delay: 150ms; }
.js .sf-hero.is-visible .sf-hero__line:nth-child(2) { animation-delay: 300ms; }
.js .sf-hero.is-visible .sf-hero__line:nth-child(3) { animation-delay: 450ms; }
.js .sf-hero.is-visible .sf-hero__script            { animation-delay: 700ms; }

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

@media (min-width: 1200px) and (max-width: 1919px) {
	.sf-hero__title  { font-size: clamp(44px, 3.125vw, 60px); }
	.sf-hero__script { font-size: clamp(28px, 1.875vw, 36px); }
}

@media (min-width: 768px) and (max-width: 1199px) {
	.sf-hero { height: 440px; }
	.sf-hero__title  { font-size: 44px; }
	.sf-hero__script { font-size: 28px; }
	.sf-hero__fade {
		background: linear-gradient(90deg, #f3f3f3 0%, #f3f3f3 45%, rgba(243,243,243,.85) 58%, rgba(243,243,243,0) 80%);
	}
}

@media (max-width: 767px) {
	.sf-hero {
		height: auto;
		min-height: 460px;
		align-items: flex-start;
	}
	.sf-hero__inner { padding: 40px 20px 0; }
	.sf-hero__fade {
		background: linear-gradient(180deg, #f3f3f3 0%, #f3f3f3 48%, rgba(243,243,243,.8) 62%, rgba(243,243,243,0) 82%);
	}
	.sf-hero__img { object-position: 65% 100%; }
	.sf-hero__title  { font-size: 34px; letter-spacing: -1px; }
	.sf-hero__script { font-size: 24px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.sf-hero__img { animation: none; transform: none; will-change: auto; }
	.js .sf-hero .sf-hero__line,
	.js .sf-hero .sf-hero__script,
	.js .sf-hero.is-visible .sf-hero__line,
	.js .sf-hero.is-visible .sf-hero__script {
		opacity: 1;
		transform: none;
		animation: none;
	}
}
