/**
 * Bushehr Premium Hero v3
 * فونت: ارث از سایت | انیمیشن GPU | بدون blur روی تصویر محصول
 */

.bsh-hero {
	--bsh-gold: #c5a46b;
	--bsh-text: #ffffff;
	--bsh-muted: #a3b3af;
	--bsh-bg: #0a1412;
	--bsh-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--bsh-ease-soft: cubic-bezier(0.87, 0, 0.13, 1);

	position: relative;
	width: 100%;
	background: var(--bsh-bg);
	color: var(--bsh-text);
	overflow: hidden;
	/* فونت پیش‌فرض سایت */
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.bsh-hero *,
.bsh-hero *::before,
.bsh-hero *::after {
	box-sizing: border-box;
}

.bsh-hero--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.bsh-hero__container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 4vw, 2rem);
	min-height: inherit;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(1rem, 2vw, 1.75rem);
}

.bsh-hero__stage {
	position: relative;
	width: 100%;
	flex: 1 1 auto;
	min-height: clamp(520px, 70vh, 820px);
}

/* ---------- Slides ---------- */
.bsh-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate3d(0, 12px, 0);
	transition:
		opacity var(--bsh-t, 700ms) var(--bsh-ease),
		transform var(--bsh-t, 700ms) var(--bsh-ease),
		visibility var(--bsh-t, 700ms) var(--bsh-ease);
	will-change: opacity, transform;
}

.bsh-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
	z-index: 2;
}

.bsh-hero__slide[hidden] {
	display: block !important; /* keep for transition; visibility handles it */
}

.bsh-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	height: 100%;
	min-height: inherit;
}

/* RTL: visual on the "start" side depending on dir – keep logical */
[dir="rtl"] .bsh-hero__grid {
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

[dir="rtl"] .bsh-hero__visual {
	order: 2;
}

[dir="rtl"] .bsh-hero__content {
	order: 1;
}

/* ---------- Visual + icons ---------- */
.bsh-hero__visual {
	width: 100%;
	min-width: 0;
}

.bsh-hero__visual-row {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 1.5vw, 1.15rem);
	width: 100%;
}

/* Icons column – left of image in LTR; mirrored in RTL via row direction */
.bsh-hero__view-switcher {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	flex: 0 0 auto;
	z-index: 3;
}

[dir="rtl"] .bsh-hero__visual-row {
	flex-direction: row-reverse;
}

.bsh-hero__view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.05);
	color: var(--bsh-text);
	cursor: pointer;
	transition:
		background 0.3s var(--bsh-ease),
		border-color 0.3s var(--bsh-ease),
		color 0.3s var(--bsh-ease),
		transform 0.3s var(--bsh-ease),
		box-shadow 0.3s var(--bsh-ease);
	padding: 0;
	line-height: 0;
	-webkit-tap-highlight-color: transparent;
}

.bsh-hero__view-btn:hover,
.bsh-hero__view-btn:focus-visible {
	border-color: rgba(197, 164, 107, 0.55);
	color: var(--bsh-gold);
	outline: none;
	transform: translateY(-1px);
}

.bsh-hero__view-btn.is-active {
	background: var(--bsh-gold);
	border-color: var(--bsh-gold);
	color: #0a1412;
	box-shadow: 0 8px 24px rgba(197, 164, 107, 0.28);
}

.bsh-hero__view-btn i,
.bsh-hero__view-btn svg {
	display: block;
	pointer-events: none;
}

.bsh-hero__view-fallback {
	font-size: 14px;
	line-height: 1;
}

.bsh-hero__visual-frame {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	aspect-ratio: 5 / 4;
	max-height: min(640px, 72vh);
	border-radius: 24px;
	overflow: hidden;
	isolation: isolate;
	filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.5));
}

.bsh-hero__img-stack {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: inherit;
}

.bsh-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
	opacity: 0;
	transform: scale(1.03) translate3d(0, 0, 0);
	transition:
		opacity var(--bsh-t, 700ms) var(--bsh-ease-soft),
		transform 0.9s var(--bsh-ease);
	will-change: opacity, transform;
	user-select: none;
	pointer-events: none;
	/* شارپ – بدون blur */
	filter: none !important;
	image-rendering: auto;
}

.bsh-hero__img.is-active {
	opacity: 1;
	transform: scale(1) translate3d(0, 0, 0);
	z-index: 1;
}

.bsh-hero__frame-border {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 1px solid rgba(255, 255, 255, 0.1);
	pointer-events: none;
	z-index: 2;
}

.bsh-hero__block-label {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-size: 0.75rem;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(10, 20, 18, 0.45);
	border: 1px solid rgba(197, 164, 107, 0.22);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	white-space: nowrap;
	max-width: calc(100% - 1.5rem);
	overflow: hidden;
	text-overflow: ellipsis;
}

.bsh-hero__pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bsh-gold);
	flex: 0 0 auto;
	box-shadow: 0 0 0 0 rgba(197, 164, 107, 0.55);
	animation: bsh-pulse 2s ease-out infinite;
}

@keyframes bsh-pulse {
	0% { box-shadow: 0 0 0 0 rgba(197, 164, 107, 0.55); }
	70% { box-shadow: 0 0 0 10px rgba(197, 164, 107, 0); }
	100% { box-shadow: 0 0 0 0 rgba(197, 164, 107, 0); }
}

/* ---------- Content ---------- */
.bsh-hero__content {
	min-width: 0;
	display: flex;
	align-items: center;
}

.bsh-hero__content-inner {
	width: 100%;
	max-width: 34rem;
}

.bsh-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.15rem;
	color: var(--bsh-gold);
	font-size: 0.8125rem;
	letter-spacing: 0.18em;
	font-weight: 500;
	text-transform: uppercase;
}

.bsh-hero__eyebrow-line {
	display: inline-block;
	width: 2.25rem;
	height: 1px;
	background: color-mix(in srgb, var(--bsh-gold) 75%, transparent);
}

.bsh-hero__title {
	margin: 0 0 1.1rem;
	font-size: clamp(2.1rem, 4.6vw, 4.25rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
	font-weight: 600;
	font-family: inherit;
}

.bsh-hero__title-line {
	display: block;
}

.bsh-hero__title-line--gold {
	color: var(--bsh-gold);
}

.bsh-hero__desc {
	margin: 0 0 1.35rem;
	max-width: 32rem;
	color: var(--bsh-muted);
	font-size: clamp(1rem, 1.3vw, 1.125rem);
	line-height: 1.7;
	font-weight: 400;
	font-family: inherit;
}

/* Specs */
.bsh-hero__specs-wrap {
	margin-bottom: 1.35rem;
}

.bsh-hero__specs-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: transparent;
	color: var(--bsh-text);
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease;
}

.bsh-hero__specs-toggle:hover,
.bsh-hero__specs-toggle:focus-visible {
	border-color: color-mix(in srgb, var(--bsh-gold) 60%, transparent);
	outline: none;
}

.bsh-hero__chevron {
	width: 0.45rem;
	height: 0.45rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.3s var(--bsh-ease);
	margin-top: -0.2rem;
}

.bsh-hero__specs-toggle[aria-expanded="true"] .bsh-hero__chevron {
	transform: rotate(225deg);
	margin-top: 0.15rem;
}

.bsh-hero__specs-panel {
	margin-top: 0.85rem;
	padding: 1rem 1.15rem;
	border-radius: 1rem;
	border: 1px solid rgba(197, 164, 107, 0.18);
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	max-width: 22rem;
	transform-origin: top center;
	animation: bsh-panel-in 0.35s var(--bsh-ease) both;
}

.bsh-hero__specs-panel[hidden] {
	display: none !important;
}

@keyframes bsh-panel-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

.bsh-hero__specs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.bsh-hero__spec {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	font-size: 0.875rem;
	font-family: inherit;
}

.bsh-hero__spec-label {
	color: var(--bsh-muted);
}

.bsh-hero__spec-value {
	color: var(--bsh-gold);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-align: end;
}

/* CTA */
.bsh-hero__cta-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
}

.bsh-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 3.35rem;
	padding: 0.85rem 2rem;
	border-radius: 999px;
	background: var(--bsh-gold);
	color: #0a1412;
	text-decoration: none;
	font-family: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	border: none;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.12s linear;
	will-change: transform;
}

.bsh-hero__cta:hover {
	filter: brightness(1.06);
}

.bsh-hero__cta:focus-visible {
	outline: 2px solid var(--bsh-gold);
	outline-offset: 3px;
}

.bsh-hero__cta-icon {
	display: inline-flex;
	transition: transform 0.3s var(--bsh-ease);
}

[dir="rtl"] .bsh-hero__cta:hover .bsh-hero__cta-icon {
	transform: translateX(-3px);
}

[dir="ltr"] .bsh-hero__cta:hover .bsh-hero__cta-icon {
	transform: translateX(3px);
}

[dir="ltr"] .bsh-hero__cta-icon svg {
	transform: scaleX(-1);
}

.bsh-hero__cta-note {
	margin: 0;
	font-size: 0.75rem;
	color: var(--bsh-muted);
	font-family: inherit;
}

/* ---------- Product navigation ---------- */
.bsh-hero__product-nav {
	width: 100%;
	padding-top: 0.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bsh-hero__product-nav-track {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-top: 1rem;
}

.bsh-hero__product-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: transparent;
	color: var(--bsh-text);
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
	transition:
		background 0.3s var(--bsh-ease),
		border-color 0.3s var(--bsh-ease),
		color 0.3s var(--bsh-ease),
		transform 0.25s var(--bsh-ease);
	-webkit-tap-highlight-color: transparent;
}

.bsh-hero__product-btn:hover,
.bsh-hero__product-btn:focus-visible {
	border-color: rgba(197, 164, 107, 0.45);
	outline: none;
}

.bsh-hero__product-btn.is-active {
	background: var(--bsh-gold);
	border-color: var(--bsh-gold);
	color: #0a1412;
}

.bsh-hero__product-num {
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
	font-weight: 600;
}

.bsh-hero__product-btn.is-active .bsh-hero__product-num {
	opacity: 1;
}

.bsh-hero--empty {
	min-height: 240px;
	display: grid;
	place-items: center;
	color: #ccc;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.bsh-hero__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		align-content: center;
	}

	[dir="rtl"] .bsh-hero__grid {
		grid-template-columns: 1fr;
	}

	[dir="rtl"] .bsh-hero__visual,
	[dir="rtl"] .bsh-hero__content,
	.bsh-hero__visual,
	.bsh-hero__content {
		order: initial;
	}

	.bsh-hero__visual {
		order: 1;
	}

	.bsh-hero__content {
		order: 2;
	}

	.bsh-hero__stage {
		min-height: 0;
		position: relative;
	}

	.bsh-hero__slide {
		position: relative;
		inset: auto;
		display: none;
		transform: none;
	}

	.bsh-hero__slide.is-active {
		display: block;
		transform: none;
	}

	.bsh-hero__content-inner {
		max-width: 40rem;
		margin: 0 auto;
		text-align: center;
	}

	.bsh-hero__eyebrow {
		justify-content: center;
	}

	.bsh-hero__desc {
		margin-left: auto;
		margin-right: auto;
	}

	.bsh-hero__specs-wrap {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.bsh-hero__specs-panel {
		width: min(100%, 22rem);
	}

	.bsh-hero__cta-wrap {
		align-items: center;
	}

	/* آیکون‌ها زیر تصویر در تبلت/موبایل */
	.bsh-hero__visual-row {
		flex-direction: column;
		align-items: stretch;
	}

	[dir="rtl"] .bsh-hero__visual-row {
		flex-direction: column;
	}

	.bsh-hero__view-switcher {
		flex-direction: row;
		order: 2;
		justify-content: center;
		padding-top: 0.15rem;
	}

	.bsh-hero__visual-frame {
		order: 1;
		max-height: min(480px, 56vh);
		aspect-ratio: 16 / 12;
	}

	.bsh-hero__product-nav-track {
		justify-content: center;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.bsh-hero__container {
		padding: 1.25rem 1rem 1.5rem;
	}

	.bsh-hero__title {
		font-size: clamp(1.85rem, 8vw, 2.35rem);
	}

	.bsh-hero__visual-frame {
		max-height: 340px;
		aspect-ratio: 4 / 3;
	}

	.bsh-hero__block-label {
		font-size: 0.68rem;
		bottom: 0.65rem;
	}

	.bsh-hero__product-btn {
		padding: 0.5rem 0.8rem;
		font-size: 0.75rem;
	}

	.bsh-hero__view-btn {
		width: 44px;
		height: 44px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.bsh-hero__slide,
	.bsh-hero__img,
	.bsh-hero__cta,
	.bsh-hero__view-btn,
	.bsh-hero__product-btn,
	.bsh-hero__specs-panel {
		transition: none !important;
		animation: none !important;
	}
}