/**
 * Technosevin footer — layout aligned with romakcompany.com,
 * tokens aligned with the Technosevin mega-nav shell.
 */

.ts-footer {
	--ts-ft-ink: #1a2b48;
	--ts-ft-white: #ffffff;
	--ts-ft-muted: rgba(255, 255, 255, 0.72);
	--ts-ft-quiet: rgba(255, 255, 255, 0.5);
	--ts-ft-line: rgba(255, 255, 255, 0.1);
	--ts-ft-gold: #ffc03d;
	--ts-ft-gold-line: rgba(255, 192, 61, 0.32);
	--ts-ft-ff: 'Vazirmatn', Tahoma, Arial, sans-serif;
	--ts-ft-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ts-ft-gutter: clamp(1.5rem, 5vw, 4rem);
	--ts-ft-max: 1560px;
	background: var(--ts-ft-ink) !important;
	color: var(--ts-ft-muted) !important;
	margin: 0 !important;
	padding: 5rem 0 2rem !important;
	border-top: 1px solid var(--ts-ft-gold-line);
	font-family: var(--ts-ft-ff);
	direction: rtl;
	text-align: right;
}

.ts-footer .ts-footer__wrap {
	width: min(var(--ts-ft-max), calc(100% - var(--ts-ft-gutter) * 2));
	margin-inline: auto;
}

.ts-footer__top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 3rem;
	padding-bottom: 4rem;
	border-bottom: 1px solid var(--ts-ft-line);
}

.ts-footer__brand {
	margin-bottom: 1rem;
}

.ts-footer__brand a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--ts-ft-white) !important;
}

.ts-footer__brand img {
	height: 40px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
	display: block;
	filter: brightness(0) invert(1);
}

.ts-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ts-footer .menu-item::before,
.ts-footer .menu-item::after {
	content: none !important;
	display: none !important;
}

.ts-footer__wordmark {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--ts-ft-white) !important;
}

.ts-footer__desc,
.ts-footer__address,
.ts-footer__address a,
.ts-footer p.ts-footer__desc,
.ts-footer p.ts-footer__address {
	font-size: 0.85rem !important;
	line-height: 1.9;
	max-width: 32ch;
	margin: 0;
	color: var(--ts-ft-muted) !important;
	text-align: right !important;
}

.ts-footer__address {
	margin-top: 0.85rem;
}

.ts-footer__address a {
	color: var(--ts-ft-muted) !important;
	text-decoration: none;
	transition: color 0.3s var(--ts-ft-ease);
}

.ts-footer__address a:hover,
.ts-footer__address a:focus-visible {
	color: var(--ts-ft-gold) !important;
	opacity: 1;
}

.ts-footer__col-label,
.ts-footer p.ts-footer__col-label {
	margin: 0 0 1.5rem !important;
	font-size: 0.72rem !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--ts-ft-gold) !important;
	text-align: right !important;
}

.ts-footer__col-links,
.ts-footer ul.ts-footer__col-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ts-footer__col-links li,
.ts-footer__col-links .menu-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ts-footer__col-links a,
.ts-footer__col-links span,
.ts-footer a.ts-footer__link {
	font-size: 0.85rem !important;
	line-height: 1.6;
	color: var(--ts-ft-muted) !important;
	text-decoration: none;
	transition: color 0.3s var(--ts-ft-ease);
	opacity: 1;
}

.ts-footer__col-links a:hover,
.ts-footer__col-links a:focus,
.ts-footer__col-links a:focus-visible,
.ts-footer .menu-item a:hover,
.ts-footer .menu-item a:focus {
	color: var(--ts-ft-gold) !important;
	opacity: 1;
}

.ts-footer__col-links a:focus-visible,
.ts-footer__social a:focus-visible,
.ts-footer__brand a:focus-visible,
.ts-footer__address a:focus-visible {
	outline: 2px solid var(--ts-ft-gold);
	outline-offset: 3px;
	border-radius: 2px;
}

.ts-footer__col-links a[href^='tel:'],
.ts-footer__col-links a[dir='ltr'] {
	direction: ltr !important;
	unicode-bidi: embed;
	text-align: right !important;
}

.ts-footer__bottom {
	padding-top: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: var(--ts-ft-quiet) !important;
}

.ts-footer__bottom span {
	color: var(--ts-ft-quiet) !important;
	text-align: inherit !important;
}

.ts-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.ts-footer__social a {
	font-size: 0.62rem !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ts-ft-quiet) !important;
	text-decoration: none;
	transition: color 0.3s var(--ts-ft-ease);
}

.ts-footer__social a:hover,
.ts-footer__social a:focus {
	color: var(--ts-ft-gold) !important;
	opacity: 1;
}

@media (max-width: 1100px) {
	.ts-footer__top {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.ts-footer {
		padding: 3.5rem 0 2rem !important;
	}

	.ts-footer__top {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		padding-bottom: 2.5rem;
	}

	.ts-footer__top > :first-child,
	.ts-footer__top > :last-child {
		grid-column: 1 / -1;
	}

	.ts-footer__desc,
	.ts-footer__address {
		max-width: none;
	}

	.ts-footer__bottom {
		flex-direction: column;
		text-align: center !important;
		gap: 1.5rem;
	}

	.ts-footer__bottom span,
	.ts-footer__social,
	.ts-footer__social a {
		text-align: center !important;
	}

	.ts-footer__social {
		justify-content: center;
		gap: 1.5rem;
	}
}

@media print {
	.ts-footer {
		background: #fff !important;
		color: #111 !important;
		border-top: 1px solid #ddd;
		padding-top: 1.5rem;
	}

	.ts-footer__brand img {
		filter: none;
	}

	.ts-footer__social {
		display: none;
	}
}
