/**
 * Site footer — modern 4-column RTL layout (desktop reference-aligned).
 */

.pish-footer {
	background: transparent;
	color: var(--color-text);
	font-family: var(--font-family-base);
	font-size: 14px;
	line-height: 1.6;
	border-block-start: 0;
	margin-block-start: 0;
}

/* Match homepage .p24-home-v2__container / .pish-container width */
.pish-footer .pish-container {
	box-sizing: border-box;
	width: min(100%, var(--container-max));
	max-width: var(--container-max);
	padding-inline: 16px;
	margin-inline: auto;
}

@media (min-width: 768px) {
	.pish-footer .pish-container {
		width: calc(100% - 80px);
		padding-inline: 0;
	}
}

.pish-footer__outer {
	background: #f7f7f7;
	padding-block: 20px 24px;
}

.pish-footer__card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	box-shadow: 0 6px 24px rgb(0 0 0 / 0.07);
	overflow: hidden;
}

.pish-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.05fr);
	column-gap: 32px;
	row-gap: 22px;
	padding: 32px 28px 24px;
	align-items: start;
}

/* ── Column: brand & contact ── */

.pish-footer__col--brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.pish-footer__logo {
	margin-block-end: 16px;
	align-self: flex-start;
	width: 100%;
	max-width: 200px;
}

.pish-footer__logo-image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	object-position: inline-start center;
}

.pish-footer__desc {
	width: 100%;
	margin: 0 0 16px;
	color: #6b6b6b;
	line-height: 1.75;
	font-size: 14px;
	text-align: start;
}

.pish-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.pish-footer__contact-item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	min-height: 52px;
	padding-block: 10px;
	border-block-end: 1px solid #ededed;
}

.pish-footer__contact-item:last-child {
	border-block-end: 0;
}

.pish-footer__contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-block-start: 2px;
	color: #ed1c24;
}

.pish-footer__contact-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.pish-footer__contact-body {
	display: grid;
	gap: 4px;
	min-width: 0;
	flex: 1;
	text-align: start;
}

.pish-footer__label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	color: #111;
	line-height: 1.45;
}

.pish-footer__value,
.pish-footer__value a,
.pish-footer__contact a {
	color: #666;
	text-decoration: none;
	line-height: 1.65;
	font-size: 13px;
	font-weight: 400;
	word-wrap: break-word;
}

.pish-footer__contact a:hover,
.pish-footer__contact a:focus-visible {
	color: var(--color-primary);
}

/* ── Column headings ── */

.pish-footer__heading {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 700;
	color: #111;
	line-height: 1.35;
}

.pish-footer__heading::after {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	margin-block-start: 10px;
	border-radius: 10px;
	background: #ed1c24;
}

/* ── Menu columns ── */

.pish-footer__menu-group {
	width: 100%;
}

.pish-footer__col--quick,
.pish-footer__col--about {
	min-width: 0;
}

.pish-menu--footer {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pish-menu--footer > li {
	position: relative;
	margin: 0;
	padding: 0;
	border-block-end: 1px solid #ededed;
}

.pish-menu--footer > li > a {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	min-height: 44px;
	padding-block: 8px;
	padding-inline: 0;
	color: #222;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
	transition: color 0.15s ease;
}

/* RTL: chevron sits on the right (inline-start), next to the label */
.pish-menu--footer > li > a::before {
	content: "‹";
	flex-shrink: 0;
	order: -1;
	width: auto;
	height: auto;
	border: 0;
	transform: none;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	color: #ed1c24;
	opacity: 1;
}

.pish-menu--footer > li > a::after {
	content: none;
	display: none;
}

.pish-menu--footer > li > a:hover,
.pish-menu--footer > li > a:focus-visible {
	color: var(--color-primary);
}

.pish-footer .pish-menu--footer .desc,
.pish-footer .pish-menu--footer .sub-menu {
	display: none;
}

/* ── Trust & social column ── */

.pish-footer__col--trust {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	text-align: start;
	min-width: 0;
}

.pish-footer__col--trust .pish-footer__heading {
	width: 100%;
}

.pish-footer__trust-badges,
.pish-footer__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
}

.pish-footer__trust-badges a,
.pish-footer__trust a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgb(0 0 0 / 0.04);
	padding: 10px 12px;
	transition: box-shadow 0.15s ease;
}

.pish-footer__trust-badges a:hover,
.pish-footer__trust-badges a:focus-visible,
.pish-footer__trust a:hover,
.pish-footer__trust a:focus-visible {
	box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
}

.pish-footer__trust img {
	display: block;
	width: auto;
	height: auto;
	object-fit: contain;
	background: transparent;
}

.pish-footer__trust-img--ecunion {
	max-width: 48px;
	max-height: 72px;
}

.pish-footer__trust-img--enamad {
	max-width: 54px;
	max-height: 38px;
}

.pish-footer__trust-img--samandehi {
	max-width: 44px;
	max-height: 44px;
}

.pish-footer__aparat {
	display: block;
	width: 100%;
	max-width: 260px;
	line-height: 0;
	border-radius: 0;
	overflow: visible;
	transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.pish-footer__aparat:hover,
.pish-footer__aparat:focus-visible {
	opacity: 0.95;
	box-shadow: 0 6px 20px rgb(0 0 0 / 0.1);
}

.pish-footer__aparat-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	border-radius: 0;
}

.pish-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	max-width: 260px;
}

.pish-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: transparent;
	border: 0;
	padding: 0;
	color: inherit;
	text-decoration: none;
	box-shadow: none;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pish-footer__social-link--decorative {
	cursor: default;
}

.pish-footer__social-link:hover,
.pish-footer__social-link:focus-visible {
	box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
}

.pish-footer__social-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pish-footer__social-icon {
	display: inline-flex;
	line-height: 0;
}

.pish-footer__social-icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* ── Copyright bar ── */

.pish-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border-block-start: 1px solid #eee;
	padding: 0 28px;
	text-align: center;
	color: #888;
	font-size: 13px;
	line-height: 1.5;
	background: #fff;
}

.pish-footer__copy {
	margin: 0;
}

.pish-footer__copy p {
	margin: 0;
}

/* ── Back to top ── */

.pish-back-to-top {
	position: fixed;
	inset-block-end: 1.25rem;
	inset-inline-end: 1.25rem;
	z-index: 800;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
	font-size: 1.1rem;
	line-height: 1;
}

.pish-back-to-top:hover,
.pish-back-to-top:focus-visible {
	filter: brightness(0.95);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Tablet: 2×2 grid (768px – 1199px) ── */

@media (max-width: 1199px) {
	.pish-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
		row-gap: 22px;
		padding: 28px 24px 22px;
	}

	.pish-footer__col--brand {
		grid-column: 1 / -1;
		align-items: flex-start;
	}

	.pish-footer__logo {
		align-self: flex-start;
	}

	.pish-footer__logo-image {
		object-position: inline-start center;
	}

	.pish-footer__bottom {
		padding-inline: 40px;
	}

	.pish-footer__heading {
		font-size: 17px;
		margin-block-end: 16px;
	}

	.pish-menu--footer > li > a {
		min-height: 42px;
		font-size: 13px;
	}

	.pish-menu--footer > li > a::before {
		font-size: 16px;
	}

	.pish-footer__trust-img--ecunion {
		max-width: 44px;
		max-height: 66px;
	}

	.pish-footer__trust-img--enamad {
		max-width: 50px;
		max-height: 36px;
	}

	.pish-footer__trust-img--samandehi {
		max-width: 40px;
		max-height: 40px;
	}
}

/* ── Mobile: single column (< 768px) ── */

@media (max-width: 767px) {
	.pish-footer .pish-container {
		width: min(100%, var(--container-max));
		padding-inline: 16px;
	}

	.pish-footer__outer {
		padding-block: 16px 20px;
	}

	.pish-footer__card {
		border-radius: 12px;
	}

	.pish-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
		row-gap: 24px;
		padding: 20px 16px;
	}

	.pish-footer__col--brand {
		grid-column: 1 / -1;
	}

	.pish-footer__col--quick,
	.pish-footer__col--about {
		min-width: 0;
	}

	.pish-footer__col--trust {
		grid-column: 1 / -1;
		align-items: center;
		text-align: center;
	}

	.pish-footer__col--trust .pish-footer__heading {
		text-align: center;
	}

	.pish-footer__col--trust .pish-footer__heading::after {
		margin-inline: auto;
	}

	.pish-footer__col--trust .pish-footer__trust-badges,
	.pish-footer__col--trust .pish-footer__trust {
		justify-content: center;
	}

	.pish-footer__col--trust .pish-footer__aparat {
		margin-inline: auto;
	}

	.pish-footer__col--trust .pish-footer__social {
		justify-content: center;
	}

	.pish-footer__logo {
		max-width: 180px;
	}

	.pish-footer__desc {
		font-size: 13px;
		line-height: 1.7;
		margin-block-end: 14px;
	}

	.pish-footer__heading {
		font-size: 16px;
		margin-block-end: 14px;
	}

	.pish-footer__heading::after {
		margin-block-start: 8px;
	}

	.pish-footer__label {
		font-size: 13px;
	}

	.pish-footer__value,
	.pish-footer__value a,
	.pish-footer__contact a {
		font-size: 12px;
	}

	.pish-footer__contact-item {
		min-height: 48px;
		padding-block: 8px;
		gap: 10px;
	}

	.pish-menu--footer > li > a {
		min-height: 40px;
		padding-block: 8px;
		font-size: 13px;
	}

	.pish-menu--footer > li > a::before {
		font-size: 15px;
	}

	.pish-footer__aparat,
	.pish-footer__social {
		max-width: 100%;
	}

	.pish-footer__bottom {
		min-height: 48px;
		padding: 12px 16px;
		font-size: 12px;
	}

	.pish-footer__social-link {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 390px) {
	.pish-footer__outer {
		padding-block: 16px 20px;
	}

	.pish-footer__grid {
		padding: 20px 16px;
		gap: 28px;
	}

	.pish-footer__bottom {
		padding-inline: 16px;
	}

	.pish-footer__trust-badges,
	.pish-footer__trust {
		gap: 8px;
	}

	.pish-footer__social {
		gap: 10px;
	}

	.pish-footer__social-link {
		width: 38px;
		height: 38px;
	}
}
