/**
 * Footer — zarnegar-style
 */

.bg-site-footer {
	margin-top: 60px;
	padding-top: 30px;
	overflow-x: hidden;
}

.bg-site-footer .zarnegar-custom-heading__title {
	display: flex;
	flex-direction: column;
	margin: 0;
	text-align: right;
}

.bg-site-footer .zarnegar-custom-heading__title1 > span {
	position: relative;
	z-index: 0;
}

.bg-site-footer .zarnegar-custom-heading__title1 > span::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 7px;
	right: 0;
	bottom: 20%;
	z-index: -1;
}

.bg-site-footer-inner {
	position: relative;
}

.bg-footer-body {
	position: relative;
	background: #243c40;
	min-height: 300px;
	padding: 10px 0 0;
}

/* Triangle wave top */
.bg-footer-shape-top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	line-height: 0;
	transform: translateY(-99%);
	pointer-events: none;
	z-index: 2;
}

.bg-footer-shape-top svg {
	display: block;
	width: 100%;
	height: 75px;
}

.bg-footer-shape-fill {
	fill: #f0eeea;
}

/* Licenses white card */
.bg-footer-licenses-wrap {
	position: relative;
	z-index: 3;
	margin: -20px auto 0;
	max-width: 870px;
}

.bg-footer-licenses-card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 20px 24px;
	box-shadow: 0 6px 66px rgba(0, 0, 0, 0.08);
}

.bg-footer-licenses-row {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 16px;
}

.bg-footer-licenses-icon {
	flex: 0 0 80px;
	width: 80px;
	max-width: 80px;
	padding: 40px 15px 30px;
	background: linear-gradient(180deg, rgba(36, 60, 64, 0.05) 0%, rgba(36, 60, 64, 0) 100%);
	border-radius: 8px;
	text-align: center;
}

.bg-footer-licenses-text {
	flex: 0 1 auto;
	min-width: 0;
	align-self: center;
}

.bg-footer-licenses-text p {
	margin: 0;
	color: rgba(36, 60, 64, 0.7);
	font-size: 14px;
}

.bg-footer-heading-dark {
	font-size: 24px;
	font-weight: 900;
	color: #243c40;
	margin: 0 0 8px;
}

.bg-footer-heading-dark .zarnegar-custom-heading__title1 > span:before,
.bg-footer-heading-light .zarnegar-custom-heading__title1 > span:before {
	background-color: #bba57e;
}

.bg-footer-licenses-logos {
	flex: 1 1 auto;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	min-width: 0;
}

.bg-footer-license-logo {
	flex: 1 1 125px;
	max-width: 125px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: linear-gradient(180deg, rgba(36, 60, 64, 0.05) 0%, rgba(36, 60, 64, 0) 100%);
	border-radius: 12px;
	box-sizing: border-box;
}

.bg-footer-license-logo--1 {
	padding: 23px;
}

.bg-footer-license-logo--2 {
	padding: 32px;
}

.bg-footer-license-logo--3 {
	padding: 27px;
}

.bg-footer-license-logo img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	object-fit: contain;
	flex-shrink: 0;
}

.bg-footer-license-logo--1 img {
	width: 74px;
	max-width: 74px;
}

.bg-footer-license-logo--2 img {
	width: 83px;
	max-width: 83px;
}

.bg-footer-license-logo--3 img {
	width: 80px;
	max-width: 80px;
}

.bg-footer-deco--licenses {
	position: absolute;
	top: -15%;
	left: 47%;
	transform: translateX(-50%);
	width: 40px;
	pointer-events: none;
}

/* Main footer columns */
.bg-footer-main {
	position: relative;
	padding: 0 0 40px;
}

.bg-footer-main-inner {
	position: relative;
	max-width: 1122px;
}

.bg-footer-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 10px 0 35px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-footer-col {
	padding: 10px 20px 0;
}

.bg-footer-col--about {
	flex: 0 0 37%;
	padding-left: 60px;
	padding-right: 0;
}

.bg-footer-col--links {
	flex: 0 0 16%;
	padding-right: 30px;
}

.bg-footer-col--contact {
	flex: 0 0 26%;
	border-right: 1px solid rgba(255, 255, 255, 0.16);
	padding-left: 30px;
	padding-right: 20px;
}

.bg-footer-col--social {
	flex: 0 0 21%;
	padding-left: 10px;
}

.bg-footer-heading-light {
	font-size: 16px;
	font-weight: 900;
	color: #fff;
	margin: 0 0 16px;
}

.bg-footer-about-text {
	color: #fff;
	font-size: 14px;
	line-height: 1.9;
	text-align: justify;
	margin: 0;
}

/* Footer nav */
.bg-footer-nav-wrap {
	display: block;
}

.bg-footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bg-footer-nav a {
	color: #fff;
	font-family: var(--bg-font-heading);
	font-size: 14px;
	font-weight: 500;
	padding: 2px 0;
	display: inline-block;
	transition: color 0.2s;
}

.bg-footer-nav a:hover,
.bg-footer-nav .current-menu-item > a {
	color: #ccc;
}

/* Contact list */
.bg-footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bg-footer-contact-item {
	display: flex;
	align-items: center;
	gap: 15px;
}

.bg-footer-contact-item p {
	margin: 0;
	color: #fff;
	font-size: 14px;
}

.bg-footer-contact-item a {
	color: #fff;
}

.bg-footer-contact-item a:hover {
	color: #bba57e;
}

.bg-footer-contact-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Social */
.bg-footer-social-grid {
	display: grid;
	grid-template-columns: repeat(2, 83px);
	gap: 10px;
	margin-top: 10px;
}

.bg-footer-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(240, 238, 234, 0.05);
	border-radius: 12px;
	padding: 28px 0 20px;
	color: #fff;
	transition: background 0.3s;
}

.bg-footer-social-link:hover {
	background: rgba(240, 238, 234, 0.12);
	color: #fff;
}

/* Copyright row */
.bg-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 10px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 0;
}

.bg-footer-copyright {
	padding: 10px 0;
	text-align: center;
	flex: 1;
}

.bg-footer-copyright p {
	margin: 0;
	color: #fff;
	font-family: var(--bg-font-heading);
	font-size: 14px;
	opacity: 0.85;
}

/* Decorative images */
.bg-footer-deco--gold {
	position: absolute;
	bottom: 0;
	right: -34px;
	width: min(295px, 40vw);
	pointer-events: none;
	opacity: 0.9;
}

.bg-footer-deco--left {
	position: absolute;
	top: 50%;
	left: -20px;
	transform: translateY(-50%);
	width: 40px;
	pointer-events: none;
}

.bg-footer-deco--right {
	position: absolute;
	top: 50%;
	right: -20px;
	transform: translateY(-50%);
	width: 40px;
	pointer-events: none;
}

.bg-footer-bottom {
	position: relative;
}

/* Responsive */
@media (max-width: 991px) {
	.bg-footer-licenses-wrap {
		margin-top: 15px;
	}

	.bg-footer-licenses-row {
		flex-wrap: nowrap;
		gap: 10px;
	}

	.bg-footer-licenses-icon {
		flex: 0 0 50px;
		width: 50px;
		max-width: 50px;
		padding: 25px 10px;
	}

	.bg-footer-licenses-text {
		flex: 1 1 auto;
	}

	.bg-footer-licenses-logos {
		flex: 0 0 auto;
		justify-content: center;
		flex-wrap: nowrap;
	}

	.bg-footer-license-logo {
		flex: 0 0 auto;
		max-width: none;
		width: auto;
	}

	.bg-footer-license-logo--1 {
		padding: 16px 18px;
	}

	.bg-footer-license-logo--2 {
		padding: 20px 22px;
	}

	.bg-footer-license-logo--3 {
		padding: 18px 20px;
	}

	.bg-footer-license-logo--1 img {
		width: 50px;
		max-width: 50px;
	}

	.bg-footer-license-logo--2 img {
		width: 55px;
		max-width: 55px;
	}

	.bg-footer-license-logo--3 img {
		width: 53px;
		max-width: 53px;
	}

	.bg-footer-columns {
		border-bottom: none;
		padding-bottom: 0;
	}

	.bg-footer-col--about,
	.bg-footer-col--links,
	.bg-footer-col--contact,
	.bg-footer-col--social {
		flex: 0 0 100%;
		padding: 20px 0;
		border: none;
	}

	.bg-footer-col--about {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		padding-bottom: 25px;
	}

	.bg-footer-col--contact {
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		margin-top: 20px;
		padding-top: 25px;
		padding-bottom: 25px;
	}

	.bg-footer-col--links {
		flex: 0 0 43%;
		padding-right: 0;
	}

	.bg-footer-col--social {
		flex: 0 0 50%;
		padding-left: 0;
	}

	.bg-footer-contact-list {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 8px;
	}

	.bg-footer-deco--licenses {
		top: -13px;
		width: 25px;
	}

	.bg-footer-deco--left,
	.bg-footer-deco--right {
		top: auto;
		bottom: -16px;
		transform: none;
		width: 30px;
	}

	.bg-footer-deco--left {
		left: -35px;
	}

	.bg-footer-deco--right {
		right: -35px;
	}

	.bg-footer-deco--gold {
		right: 55%;
		width: 180px;
	}

	.bg-footer-bottom {
		flex-wrap: wrap;
		border-top: none;
	}

	.bg-footer-copyright {
		text-align: right;
		width: 45%;
		flex: 0 0 45%;
	}
}

@media (max-width: 576px) {
	.bg-footer-body {
		padding-left: 20px;
		padding-right: 20px;
	}

	.bg-footer-licenses-card {
		padding: 16px;
	}

	.bg-footer-social-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bg-footer-contact-list {
		flex-direction: column;
	}

	.bg-footer-col--social,
	.bg-footer-copyright {
		width: 100%;
	}
}
