/* About Us page — Home Plus */

.about-page {
	--hp-blue-light: #88A4CC;
	--hp-blue-mid: #203E7A;
	--hp-blue-dark: #031749;
	--hp-navy: #132064;
	--hp-timeline-bg: #89A4CC;
	--hp-red: #EB0928;
	color: #fff;
}

/* Header floats over hero */
.site-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
	width: 100%;
	background: transparent !important;
	box-shadow: none;
}

/* —— Hero: timeline + stage —— */
.about-hero {
	display: grid;
	grid-template-columns: minmax(140px, 18%) 1fr;
	min-height: clamp(560px, 86vh, 820px);
	background: var(--hp-navy);
	direction: ltr;
	overflow: hidden;
}

/* Timeline (physical left) */
.about-timeline {
	background: var(--hp-timeline-bg);
	padding: 2.5rem 0.75rem;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 2;
}

.about-timeline__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	position: relative;
	width: 100%;
	max-width: 150px;
}

.about-timeline__list::before {
	content: "";
	position: absolute;
	left: 0.55rem;
	top: 0.55rem;
	bottom: 0.55rem;
	width: 2px;
	background: var(--hp-blue-dark);
	opacity: 0.85;
}

.about-timeline__item {
	position: relative;
	padding: 1.35rem 0;
}

.about-timeline__item:first-child {
	padding-top: 0;
}

.about-timeline__item:last-child {
	padding-bottom: 0;
}

.about-timeline__marker {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	direction: ltr;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	text-align: inherit;
	cursor: default;
}

.about-timeline__item.is-selectable .about-timeline__marker {
	cursor: pointer;
}

.about-timeline__item.is-selectable .about-timeline__marker:focus-visible {
	outline: 2px solid var(--hp-blue-dark);
	outline-offset: 4px;
	border-radius: 0.35rem;
}

.about-timeline__dot {
	position: relative;
	z-index: 1;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	border: 2px solid var(--hp-blue-dark);
	background: var(--hp-timeline-bg);
	flex-shrink: 0;
	box-sizing: border-box;
}

.about-timeline__item.is-active .about-timeline__dot {
	background: var(--hp-blue-dark);
	box-shadow: 0 0 0 4px rgba(3, 23, 73, 0.12);
}

.about-timeline__year {
	font-size: clamp(0.92rem, 1.3vw, 1.05rem);
	font-weight: 700;
	color: var(--hp-blue-dark);
	line-height: 1.35;
	white-space: nowrap;
	direction: rtl;
	unicode-bidi: isolate;
}

.about-timeline__item.is-active .about-timeline__year {
	font-weight: 800;
}

/* Stage: banner fills right (and under copy); text overlays left */
.about-stage {
	position: relative;
	min-height: inherit;
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
	background: var(--hp-navy);
	overflow: hidden;
}

.about-stage__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.about-stage__media picture,
.about-stage__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	display: block;
}

.about-stage__media img {
	object-fit: cover;
	object-position: right center;
}

.about-stage__copy {
	position: relative;
	z-index: 1;
	grid-column: 1;
	grid-row: 1;
	direction: rtl;
	text-align: left;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	width: min(100%, 38rem);
	max-width: 100%;
	padding: calc(var(--hp-header-height) + 2.5rem) clamp(1.35rem, 3.2vw, 3rem) 3rem clamp(1.1rem, 2vw, 1.75rem);
	color: #fff;
	background: linear-gradient(
		90deg,
		var(--hp-navy) 0%,
		rgba(19, 32, 100, 0.96) 42%,
		rgba(19, 32, 100, 0.7) 68%,
		rgba(19, 32, 100, 0.25) 88%,
		transparent 100%
	);
}

.about-stage__title {
	margin: 0 0 1.15rem;
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	font-weight: 800;
	line-height: 1.35;
	color: #fff;
}

.about-stage__text {
	margin: 0;
	font-size: clamp(0.85rem, 1.2vw, 1rem);
	font-weight: 400;
	line-height: 2;
	color: rgba(255, 255, 255, 0.96);
	max-width: 34rem;
	white-space: pre-line;
}

/* About newsletter copy matches UI */
.page-about .newsletter__text strong {
	font-size: 0;
	line-height: 0;
}

.page-about .newsletter__text strong::before {
	content: "تمیزی را دنبال کنید";
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.5;
	display: block;
	margin-bottom: 0.15rem;
}

/* Motion */
.about-stage__copy.is-switching {
	animation: about-fade-up 0.45s ease both;
}

@media (prefers-reduced-motion: no-preference) {
	.about-stage__copy {
		animation: about-fade-up 0.7s ease both;
	}

	.about-timeline__item {
		animation: about-fade-in 0.55s ease both;
	}

	.about-timeline__item:nth-child(1) { animation-delay: 0.05s; }
	.about-timeline__item:nth-child(2) { animation-delay: 0.15s; }
	.about-timeline__item:nth-child(3) { animation-delay: 0.25s; }
	.about-timeline__item:nth-child(4) { animation-delay: 0.35s; }

	.about-stage__media img {
		animation: about-zoom 1.1s ease both;
	}
}

@keyframes about-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

@keyframes about-fade-in {
	from { opacity: 0; transform: translateX(-10px); }
	to { opacity: 1; transform: none; }
}

@keyframes about-zoom {
	from { opacity: 0.65; transform: scale(1.04); }
	to { opacity: 1; transform: none; }
}

/* —— Tablet —— */
@media (max-width: 1024px) {
	.about-hero {
		grid-template-columns: minmax(120px, 22%) 1fr;
	}

	.about-stage {
		grid-template-columns: 1fr;
	}

	.about-stage__media {
		grid-column: 1;
		grid-row: 1;
		position: absolute;
		inset: 0;
	}

	.about-stage__copy {
		grid-column: 1;
		grid-row: 1;
		max-width: none;
		width: min(100%, 32rem);
		background: linear-gradient(90deg, rgba(19, 32, 100, 0.96) 0%, rgba(19, 32, 100, 0.82) 70%, transparent 100%);
	}
}

/* —— Mobile —— */
@media (max-width: 768px) {
	.about-hero {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr auto;
		min-height: 0;
	}

	.about-timeline {
		padding: 0.85rem 1rem;
		order: 1;
	}

	.about-timeline__list {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		max-width: none;
		gap: 0.25rem;
		padding-top: 0.35rem;
	}

	.about-timeline__list::before {
		left: 0.7rem;
		right: 0.7rem;
		top: 0.9rem;
		bottom: auto;
		width: auto;
		height: 2px;
	}

	.about-timeline__item {
		padding: 0;
		flex: 1;
		display: flex;
		justify-content: center;
	}

	.about-timeline__marker {
		flex-direction: column;
		align-items: center;
		gap: 0.45rem;
		text-align: center;
	}

	.about-timeline__year {
		white-space: nowrap;
		font-size: 0.78rem;
		line-height: 1.3;
		max-width: none;
		direction: rtl;
		unicode-bidi: isolate;
	}

	.about-stage {
		min-height: clamp(520px, 78vh, 680px);
		grid-template-columns: 1fr;
		order: 0;
	}

	.about-stage__media {
		grid-column: 1;
		grid-row: 1;
		position: absolute;
		inset: 0;
	}

	.about-stage__media img {
		object-fit: cover;
		object-position: center top;
	}

	.about-stage__copy {
		grid-column: 1;
		grid-row: 1;
		align-self: end;
		justify-content: flex-end;
		max-width: none;
		width: 100%;
		padding: 5rem 1.25rem 2.75rem;
		background: linear-gradient(180deg, transparent 0%, rgba(3, 23, 73, 0.55) 35%, rgba(3, 23, 73, 0.92) 100%);
	}

	.about-stage__title {
		font-size: 1.28rem;
		margin-bottom: 0.85rem;
	}

	.about-stage__text {
		font-size: 0.85rem;
		line-height: 1.9;
		max-width: none;
	}
}

@media (max-width: 480px) {
	.about-timeline__year {
		font-size: 0.72rem;
		max-width: none;
	}

	.about-stage {
		min-height: 560px;
	}
}
