/**
 * Premium About Section
 * Precision Home
 */

.ph-about {
	--about-primary: #8e3b43;
	--about-primary-dark: #742f36;
	--about-gold: #d4af37;
	--about-dark: #151a21;
	--about-text: #5f646d;
	--about-surface: #ffffff;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 92px 0 76px;
	background:
		radial-gradient(
			circle at 90% 12%,
			rgba(212, 175, 55, 0.07),
			transparent 26%
		),
		linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
}

.ph-about *,
.ph-about *::before,
.ph-about *::after {
	box-sizing: border-box;
}

.ph-about__pattern {
	position: absolute;
	z-index: -1;
	width: 280px;
	height: 280px;
	opacity: 0.09;
	background-image:
		linear-gradient(30deg, var(--about-gold) 1px, transparent 1px),
		linear-gradient(150deg, var(--about-gold) 1px, transparent 1px);
	background-size: 28px 48px;
	pointer-events: none;
}

.ph-about__pattern--top {
	top: -85px;
	right: -75px;
}

.ph-about__pattern--bottom {
	bottom: -95px;
	left: -70px;
}

/* Layout */

.ph-about__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	align-items: center;
	gap: clamp(48px, 6vw, 88px);
}

/* Media */

.ph-about__media {
	position: relative;
	min-width: 0;
	padding: 0 0 44px 22px;
}

.ph-about__image-frame {
	position: relative;
	height: 610px;
	overflow: hidden;
	background: #e9e4df;
	border: 1px solid rgba(212, 175, 55, 0.32);
	border-radius: 30px;
	box-shadow: 0 28px 60px rgba(21, 26, 33, 0.14);
}

.ph-about__image-frame::before {
	position: absolute;
	z-index: 3;
	top: 0;
	right: 0;
	width: 205px;
	height: 160px;
	background:
		linear-gradient(
			145deg,
			rgba(116, 47, 54, 0.94),
			rgba(142, 59, 67, 0.72)
		);
	border-radius: 0 0 0 100%;
	content: "";
	pointer-events: none;
}

.ph-about__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 66% center;
}

.ph-about__image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 30px;
	background: linear-gradient(135deg, #f0ebe5, #e5ddd5);
	color: var(--about-primary);
	font-size: 17px;
	font-weight: 800;
	text-align: center;
}

.ph-about__image-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			rgba(21, 26, 33, 0.02) 35%,
			rgba(21, 26, 33, 0.28) 100%
		);
	pointer-events: none;
}

.ph-about__image-dots {
	position: absolute;
	z-index: 4;
	top: 32px;
	right: 34px;
	width: 82px;
	height: 82px;
	background-image:
		radial-gradient(
			circle,
			var(--about-gold) 2px,
			transparent 2.5px
		);
	background-size: 13px 13px;
}

/* Engineering card */

.ph-about__engineering-card {
	position: absolute;
	z-index: 5;
	right: -18px;
	bottom: 0;
	width: min(285px, 68%);
	padding: 61px 25px 24px;
	background:
		linear-gradient(
			145deg,
			var(--about-primary-dark),
			var(--about-primary)
		);
	color: #ffffff;
	border: 1px solid rgba(212, 175, 55, 0.68);
	border-radius: 20px;
	box-shadow: 0 22px 46px rgba(116, 47, 54, 0.26);
	text-align: center;
}

.ph-about__engineering-icon {
	position: absolute;
	top: 0;
	right: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	background: linear-gradient(145deg, #e1b83f, #c89325);
	color: #ffffff;
	border: 4px solid #ffffff;
	border-radius: 50%;
	transform: translate(50%, -44%);
}

.ph-about__engineering-icon svg {
	width: 35px;
	height: 35px;
}

.ph-about__engineering-card h3 {
	margin: 0 0 10px;
	color: #ffffff;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.45;
}

.ph-about__engineering-card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: 14px;
	line-height: 1.75;
}

.ph-about__engineering-line {
	display: block;
	width: 40px;
	height: 3px;
	margin: 17px auto 0;
	background: var(--about-gold);
	border-radius: 999px;
}

/* Content */

.ph-about__content {
	min-width: 0;
}

.ph-about__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	margin: 0 0 13px;
	color: var(--about-primary);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.6;
}

.ph-about__eyebrow span {
	width: 46px;
	height: 1px;
	background: var(--about-gold);
}

.ph-about__title {
	max-width: 740px;
	margin: 0 auto;
	color: var(--about-dark);
	font-size: clamp(35px, 3.4vw, 49px);
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.5px;
	text-align: center;
}

.ph-about__title span {
	color: var(--about-primary);
}

.ph-about__subtitle {
	max-width: 680px;
	margin: 15px auto 0;
	color: var(--about-primary);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.65;
	text-align: center;
}

.ph-about__divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 18px 0;
}

.ph-about__divider span {
	width: 60px;
	height: 1px;
	background: rgba(212, 175, 55, 0.78);
}

.ph-about__divider i {
	width: 10px;
	height: 10px;
	background: var(--about-gold);
	transform: rotate(45deg);
}

.ph-about__description {
	max-width: 720px;
	margin: 0 auto 30px;
	color: var(--about-text);
	font-size: 16px;
	line-height: 1.95;
	text-align: center;
}

/* Features */

.ph-about__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ph-about__feature {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	min-width: 0;
	min-height: 150px;
	padding: 19px 17px;
	background: var(--about-surface);
	border: 1px solid rgba(116, 47, 54, 0.09);
	border-radius: 17px;
	box-shadow: 0 13px 30px rgba(21, 26, 33, 0.07);
	transition:
		transform 220ms ease,
		border-color 220ms ease,
		box-shadow 220ms ease;
}

.ph-about__feature:hover {
	transform: translateY(-7px);
	border-color: rgba(212, 175, 55, 0.62);
	box-shadow: 0 23px 45px rgba(21, 26, 33, 0.11);
}

.ph-about__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	flex: 0 0 66px;
	background:
		linear-gradient(
			145deg,
			var(--about-primary-dark),
			var(--about-primary)
		);
	color: #f2d36f;
	border: 1px solid rgba(212, 175, 55, 0.82);
	border-radius: 17px;
	box-shadow: 0 12px 24px rgba(116, 47, 54, 0.18);
	transition:
		transform 220ms ease,
		background 220ms ease,
		color 220ms ease;
}

.ph-about__feature:hover .ph-about__feature-icon {
	transform: scale(1.06);
	background: #151a21;
	color: var(--about-gold);
}

.ph-about__feature-icon svg {
	width: 36px;
	height: 36px;
}

.ph-about__feature-content {
	min-width: 0;
}

.ph-about__feature h3 {
	margin: 0;
	color: var(--about-dark);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.5;
}

.ph-about__feature-line {
	display: block;
	width: 32px;
	height: 2px;
	margin: 8px 0;
	background: var(--about-gold);
}

.ph-about__feature p {
	margin: 0;
	color: #666c74;
	font-size: 14px;
	line-height: 1.75;
}

/* Statistics */

.ph-about__stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: 58px;
	padding: 23px 14px;
	background:
		linear-gradient(
			145deg,
			#111923 0%,
			#1a2631 100%
		);
	color: #ffffff;
	border: 1px solid rgba(212, 175, 55, 0.82);
	border-radius: 19px;
	box-shadow: 0 22px 48px rgba(21, 26, 33, 0.17);
}

.ph-about__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	padding: 6px 13px;
	border-inline-end: 1px solid rgba(212, 175, 55, 0.38);
	text-align: center;
}

.ph-about__stat:last-child {
	border-inline-end: 0;
}

.ph-about__stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	margin-bottom: 5px;
	color: #e2b83e;
}

.ph-about__stat-icon svg {
	width: 38px;
	height: 38px;
}

.ph-about__stat strong {
	color: #e2b83e;
	font-size: 29px;
	font-weight: 800;
	line-height: 1.15;
}

.ph-about__stat small {
	margin-top: 5px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 12px;
	line-height: 1.45;
}

/* Tablet */

@media (max-width: 1100px) {

	.ph-about {
		padding: 80px 0 65px;
	}

	.ph-about__layout {
		grid-template-columns: 1fr;
		gap: 62px;
	}

	.ph-about__media {
		width: min(100%, 690px);
		margin: 0 auto;
	}

	.ph-about__content {
		width: min(100%, 830px);
		margin: 0 auto;
	}

	.ph-about__image-frame {
		height: 560px;
	}

	.ph-about__title {
		font-size: clamp(32px, 4.3vw, 43px);
	}

	.ph-about__subtitle {
		font-size: 18px;
	}

	.ph-about__description {
		font-size: 16px;
	}

	.ph-about__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 17px;
	}

	.ph-about__stat:nth-child(3) {
		border-inline-end: 0;
	}

	.ph-about__stat:nth-child(n + 4) {
		padding-top: 20px;
		border-top: 1px solid rgba(212, 175, 55, 0.27);
	}
}

/* Mobile */

@media (max-width: 767px) {

	.ph-about {
		padding: 56px 0 48px;
	}

	.ph-about__layout {
		gap: 44px;
	}

	.ph-about__media {
		padding: 0 0 75px;
	}

	.ph-about__image-frame {
		height: 360px;
		border-radius: 21px;
	}

	.ph-about__image-frame::before {
		width: 125px;
		height: 100px;
	}

	.ph-about__image {
		object-position: 68% center;
	}

	.ph-about__image-dots {
		top: 18px;
		right: 18px;
		width: 58px;
		height: 58px;
		background-size: 10px 10px;
	}

	.ph-about__engineering-card {
		right: 50%;
		bottom: 0;
		width: calc(100% - 34px);
		padding: 48px 18px 19px;
		border-radius: 17px;
		transform: translateX(50%);
	}

	.ph-about__engineering-icon {
		width: 57px;
		height: 57px;
	}

	.ph-about__engineering-icon svg {
		width: 30px;
		height: 30px;
	}

	.ph-about__engineering-card h3 {
		font-size: 18px;
	}

	.ph-about__engineering-card p {
		font-size: 14px;
		line-height: 1.7;
	}

	.ph-about__content {
		width: 100%;
	}

	.ph-about__eyebrow {
		justify-content: flex-start;
		gap: 8px;
		margin-bottom: 10px;
		font-size: 15px;
	}

	.ph-about__eyebrow span {
		width: 28px;
	}

	.ph-about__eyebrow span:last-child {
		display: none;
	}

	.ph-about__title {
		margin-inline: 0;
		font-size: clamp(26px, 7vw, 31px);
		line-height: 1.38;
		letter-spacing: 0;
		text-align: right;
	}

	.ph-about__subtitle {
		margin: 11px 0 0;
		font-size: 17px;
		line-height: 1.65;
		text-align: right;
	}

	.ph-about__divider {
		justify-content: flex-start;
		margin: 14px 0;
	}

	.ph-about__divider span {
		width: 38px;
	}

	.ph-about__description {
		margin-inline: 0;
		margin-bottom: 25px;
		font-size: 15px;
		line-height: 1.85;
		text-align: right;
	}

	.ph-about__features {
		grid-template-columns: 1fr;
		gap: 13px;
	}

	.ph-about__feature {
		align-items: center;
		min-height: 0;
		gap: 14px;
		padding: 16px 14px;
		border-radius: 15px;
	}

	.ph-about__feature-icon {
		width: 59px;
		height: 59px;
		flex-basis: 59px;
		border-radius: 15px;
	}

	.ph-about__feature-icon svg {
		width: 32px;
		height: 32px;
	}

	.ph-about__feature h3 {
		font-size: 17px;
		line-height: 1.5;
	}

	.ph-about__feature-line {
		margin-block: 6px;
	}

	.ph-about__feature p {
		font-size: 14px;
		line-height: 1.7;
	}

	.ph-about__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 38px;
		padding: 13px 8px;
		border-radius: 16px;
	}

	.ph-about__stat {
		padding: 13px 6px;
		border-bottom: 1px solid rgba(212, 175, 55, 0.25);
	}

	.ph-about__stat:nth-child(2n) {
		border-inline-end: 0;
	}

	.ph-about__stat:nth-child(n + 4) {
		padding-top: 13px;
	}

	.ph-about__stat:last-child {
		grid-column: 1 / -1;
		border-bottom: 0;
	}

	.ph-about__stat-icon {
		width: 38px;
		height: 38px;
	}

	.ph-about__stat-icon svg {
		width: 32px;
		height: 32px;
	}

	.ph-about__stat strong {
		font-size: 22px;
	}

	.ph-about__stat small {
		font-size: 11px;
	}
}

@media (max-width: 390px) {

	.ph-about__image-frame {
		height: 330px;
	}

	.ph-about__title {
		font-size: 26px;
	}

	.ph-about__subtitle {
		font-size: 16px;
	}

	.ph-about__description {
		font-size: 14px;
	}

	.ph-about__engineering-card {
		width: calc(100% - 20px);
	}

	.ph-about__feature p {
		font-size: 13.5px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ph-about__feature,
	.ph-about__feature-icon {
		transition: none;
	}
}
/* =========================================================
   Final mobile balance — About Section
   ========================================================= */

@media (max-width: 767px) {

	/* تقليل المسافات العامة */
	.ph-about {
		padding: 50px 0 42px;
	}

	.ph-about__layout {
		gap: 38px;
	}

	/* الصورة */
	.ph-about__media {
		padding-bottom: 68px;
	}

	.ph-about__image-frame {
		height: 330px;
		border-radius: 18px;
	}

	.ph-about__image {
		object-position: 67% center;
	}

	/* بطاقة الإشراف الهندسي */
	.ph-about__engineering-card {
		width: calc(100% - 42px);
		padding: 44px 16px 17px;
		border-radius: 16px;
	}

	.ph-about__engineering-icon {
		width: 54px;
		height: 54px;
	}

	.ph-about__engineering-icon svg {
		width: 28px;
		height: 28px;
	}

	.ph-about__engineering-card h3 {
		margin-bottom: 7px;
		font-size: 17px;
		line-height: 1.5;
	}

	.ph-about__engineering-card p {
		max-width: 340px;
		margin-inline: auto;
		font-size: 13px;
		line-height: 1.7;
	}

	.ph-about__engineering-line {
		margin-top: 13px;
	}

	/* كلمة من نحن */
	.ph-about__eyebrow {
		gap: 8px;
		margin-bottom: 9px;
		font-size: 15px;
		line-height: 1.5;
	}

	/* العنوان الرئيسي */
	.ph-about__title {
		max-width: 100%;
		font-size: clamp(25px, 6.8vw, 30px);
		line-height: 1.4;
		letter-spacing: 0;
	}

	/* العنوان الفرعي */
	.ph-about__subtitle {
		margin-top: 10px;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.65;
	}

	.ph-about__divider {
		margin: 12px 0 14px;
	}

	/* وصف الشركة */
	.ph-about__description {
		margin-bottom: 22px;
		font-size: 14px;
		line-height: 1.9;
	}

	/* بطاقات المميزات */
	.ph-about__features {
		gap: 11px;
	}

	.ph-about__feature {
		align-items: center;
		gap: 13px;
		min-height: 0;
		padding: 15px 13px;
		border-radius: 14px;
	}

	.ph-about__feature-icon {
		width: 56px;
		height: 56px;
		flex: 0 0 56px;
		border-radius: 14px;
	}

	.ph-about__feature-icon svg {
		width: 30px;
		height: 30px;
		stroke-width: 1.7;
	}

	.ph-about__feature-content {
		flex: 1;
		min-width: 0;
	}

	.ph-about__feature h3 {
		font-size: 16px;
		line-height: 1.5;
	}

	.ph-about__feature-line {
		width: 29px;
		margin: 6px 0;
	}

	.ph-about__feature p {
		font-size: 13px;
		line-height: 1.72;
	}

	/* شريط الإحصائيات */
	.ph-about__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 32px;
		padding: 10px 8px;
		border-radius: 15px;
	}

	.ph-about__stat {
		justify-content: center;
		min-height: 120px;
		padding: 12px 6px;
	}

	.ph-about__stat:nth-child(n + 4) {
		padding-top: 12px;
	}

	.ph-about__stat-icon {
		width: 42px;
		height: 42px;
		margin-bottom: 5px;
	}

	.ph-about__stat-icon svg {
		width: 31px;
		height: 31px;
		stroke-width: 1.7;
	}

	.ph-about__stat strong {
		font-size: 20px;
		line-height: 1.2;
	}

	.ph-about__stat small {
		margin-top: 4px;
		font-size: 11px;
		line-height: 1.45;
	}

	/* العنصر الأخير في منتصف الصف */
	.ph-about__stat:last-child {
		grid-column: 1 / -1;
		min-height: 105px;
	}

	/* منع أي تمدد أفقي */
	.ph-about__title,
	.ph-about__subtitle,
	.ph-about__description,
	.ph-about__feature p,
	.ph-about__stat small {
		overflow-wrap: anywhere;
	}
}

@media (max-width: 390px) {

	.ph-about__image-frame {
		height: 305px;
	}

	.ph-about__engineering-card {
		width: calc(100% - 24px);
	}

	.ph-about__title {
		font-size: 25px;
	}

	.ph-about__subtitle {
		font-size: 14px;
	}

	.ph-about__description {
		font-size: 13.5px;
	}

	.ph-about__feature-icon {
		width: 52px;
		height: 52px;
		flex-basis: 52px;
	}

	.ph-about__feature-icon svg {
		width: 28px;
		height: 28px;
	}

	.ph-about__feature h3 {
		font-size: 15px;
	}

	.ph-about__feature p {
		font-size: 12.5px;
	}

	.ph-about__stat {
		min-height: 112px;
	}

	.ph-about__stat strong {
		font-size: 19px;
	}

	.ph-about__stat small {
		font-size: 10.5px;
	}
}
/* =========================================================
   Mobile stats separators refinement
   ========================================================= */

@media (max-width: 767px) {

	.ph-about__stats {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 12px 10px;
		gap: 0;
	}

	.ph-about__stat {
		position: relative;
		min-height: 118px;
		padding: 14px 8px;
		border: 0;
	}

	/* الفاصل العمودي بين عناصر كل صف */
	.ph-about__stat:nth-child(odd):not(:last-child)::after {
		position: absolute;
		top: 16px;
		bottom: 16px;
		left: 0;
		width: 1px;
		background: rgba(212, 175, 55, 0.32);
		content: "";
	}

	/* الفاصل الأفقي بين الصف الأول والثاني */
	.ph-about__stat:nth-child(-n + 2)::before {
		position: absolute;
		right: 8px;
		bottom: 0;
		left: 8px;
		height: 1px;
		background: rgba(212, 175, 55, 0.32);
		content: "";
	}

	/* العنصر الخامس */
	.ph-about__stat:last-child {
		grid-column: 1 / -1;
		width: 50%;
		min-height: 105px;
		margin-inline: auto;
		padding-top: 18px;
		border: 0;
	}

	/* خط قصير أعلى العنصر الخامس */
	.ph-about__stat:last-child::before {
		position: absolute;
		top: 0;
		right: 20%;
		left: 20%;
		height: 1px;
		background: rgba(212, 175, 55, 0.32);
		content: "";
	}

	.ph-about__stat-icon {
		width: 44px;
		height: 44px;
		margin-bottom: 6px;
	}

	.ph-about__stat-icon svg {
		width: 32px;
		height: 32px;
	}

	.ph-about__stat strong {
		font-size: 21px;
	}

	.ph-about__stat small {
		font-size: 11px;
	}
}

/* v6.6 Homepage polish */
.ph-about{padding:92px 0;background:linear-gradient(180deg,#fff 0%,#fbf8f4 100%)}
.ph-about__image-frame{border-radius:24px;box-shadow:0 26px 65px rgba(31,19,22,.14)}
.ph-about__engineering-card{border-radius:18px;box-shadow:0 18px 45px rgba(56,25,31,.15)}
.ph-about__feature{border-radius:17px;border-color:rgba(142,59,67,.10);background:rgba(255,255,255,.92);box-shadow:0 12px 30px rgba(21,23,27,.055)}
.ph-about__feature:hover{transform:translateY(-5px);border-color:rgba(212,175,55,.48);box-shadow:0 20px 42px rgba(61,28,34,.11)}
.ph-about__stats{border-radius:22px;background:linear-gradient(135deg,#742f36,#8e3b43);box-shadow:0 24px 55px rgba(116,47,54,.2)}
@media(max-width:767px){.ph-about{padding:62px 0}.ph-about__layout{gap:34px}.ph-about__image-frame{border-radius:19px}.ph-about__engineering-card{position:relative!important;inset:auto!important;margin:-42px 14px 0;z-index:3}.ph-about__stats{border-radius:18px}}
