/* =========================================================
   FARNIKWEB — FOOTER
   Final Polished Version
   ========================================================= */

.fw-footer {
	position: relative;
	overflow: hidden;
	direction: rtl;

	background:
		radial-gradient(
			circle at 88% 8%,
			rgba(50, 94, 220, 0.10),
			transparent 28%
		),
		radial-gradient(
			circle at 8% 92%,
			rgba(47, 91, 215, 0.055),
			transparent 25%
		),
		#0d213e;

	color: #ffffff;

	padding: 68px 0 0;
}


/* =========================================================
   DECORATIVE BACKGROUND
   ========================================================= */

.fw-footer::before,
.fw-footer::after {
	content: "";
	position: absolute;
	pointer-events: none;
	border-radius: 50%;
	border: 1px solid rgba(116, 151, 224, 0.075);
}

.fw-footer::before {
	width: 410px;
	height: 410px;

	right: -270px;
	bottom: -275px;
}

.fw-footer::after {
	width: 330px;
	height: 330px;

	left: -220px;
	bottom: -225px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.fw-footer .fw-container {
	position: relative;
	z-index: 2;

	width: min(100% - 64px, 1320px);
	margin-inline: auto;
}


/* =========================================================
   MAIN GRID
   ========================================================= */

.fw-footer__grid {
	display: grid;

	grid-template-columns:
		minmax(300px, 1.55fr)
		minmax(145px, 0.68fr)
		minmax(190px, 0.88fr)
		minmax(210px, 1fr);

	gap: clamp(46px, 5vw, 86px);

	align-items: start;
}


/* =========================================================
   BRAND
   ========================================================= */

.fw-footer__brand {
	max-width: 380px;
}

.fw-footer__logo {
	display: inline-flex;
	align-items: center;

	margin: 0 0 27px;

	text-decoration: none;
}

.fw-footer__logo img {
	display: block;

	width: auto;
	height: auto;

	max-width: 215px;
	max-height: 105px;

	object-fit: contain;

	transition:
		transform 0.3s ease,
		opacity 0.3s ease;
}

.fw-footer__logo:hover img {
	transform: translateY(-2px);
	opacity: 0.94;
}


/* =========================================================
   BRAND DESCRIPTION
   ========================================================= */

.fw-footer__intro {
	margin: 0;

	max-width: 365px;

	color: rgba(226, 234, 247, 0.73);

	font-size: 14px;
	font-weight: 400;
	line-height: 2.15;
}


/* =========================================================
   COLUMNS
   ========================================================= */

.fw-footer__column {
	min-width: 0;
}

.fw-footer__heading {
	position: relative;

	margin: 0 0 29px;
	padding: 0 0 14px;

	color: rgba(255, 255, 255, 0.96);

	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}

.fw-footer__heading::after {
	content: "";

	position: absolute;

	right: 0;
	bottom: 0;

	width: 27px;
	height: 2px;

	border-radius: 100px;

	background: rgba(80, 121, 242, 0.90);
}


/* =========================================================
   NORMAL LINKS
   ========================================================= */

.fw-footer__links {
	list-style: none;

	display: flex;
	flex-direction: column;

	gap: 17px;

	margin: 0;
	padding: 0;
}

.fw-footer__links li {
	margin: 0;
	padding: 0;
}

.fw-footer__links a {
	display: inline-block;

	color: rgba(224, 232, 245, 0.69);

	font-size: 14px;
	font-weight: 400;
	line-height: 1.75;

	text-decoration: none;

	transition:
		color 0.22s ease,
		transform 0.22s ease;
}

.fw-footer__links a:hover,
.fw-footer__links a:focus-visible {
	color: #ffffff;

	transform: translateX(-2px);
}


/* =========================================================
   ACCOUNT — signed-in and signed-out states
   ========================================================= */

.fw-footer__account-copy {
	max-width: 260px;
	margin: 0 0 18px;
	color: rgba(224, 232, 245, 0.64);
	font-size: 13px;
	line-height: 2;
}

.fw-footer__account-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	color: rgba(232, 240, 250, 0.82);
	font-size: 12px;
	font-weight: 600;
}

.fw-footer__account-status > span {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 50%;
	background: #47b881;
	box-shadow: 0 0 0 4px rgba(71, 184, 129, 0.12);
}

.fw-footer__login-link,
.fw-footer__panel-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 42px;
	padding: 8px 13px;
	color: #ffffff !important;
	background: rgba(80, 121, 242, 0.14);
	border: 1px solid rgba(116, 153, 236, 0.3);
	border-radius: 9px;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-decoration: none;
}

.fw-footer__login-link:hover,
.fw-footer__login-link:focus-visible,
.fw-footer__panel-link:hover,
.fw-footer__panel-link:focus-visible {
	background: rgba(80, 121, 242, 0.24);
	border-color: rgba(135, 167, 240, 0.55);
	transform: translateY(-1px) !important;
}

.fw-footer__account-links {
	gap: 9px;
}

.fw-footer__account-links li,
.fw-footer__account-links a {
	width: 100%;
}

.fw-footer__logout-link {
	display: inline-flex !important;
	align-items: center;
	min-height: 40px;
	padding: 8px 13px;
	color: #efb8c4 !important;
	background: rgba(127, 29, 50, 0.12);
	border: 1px solid rgba(190, 78, 102, 0.22);
	border-radius: 9px;
	font-weight: 700 !important;
}

.fw-footer__logout-link:hover,
.fw-footer__logout-link:focus-visible {
	color: #ffffff !important;
	background: rgba(127, 29, 50, 0.3);
	border-color: rgba(220, 113, 136, 0.42);
}


/* =========================================================
   STANDALONE ABOUT LINK
   ========================================================= */

.fw-footer__about-link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;

	margin-top: 24px;
	padding: 9px 13px;

	color: rgba(255, 255, 255, 0.91);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.7;
	text-decoration: none;

	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(120, 153, 212, 0.25);
	border-radius: 8px;

	transition:
		color 0.22s ease,
		background-color 0.22s ease,
		border-color 0.22s ease,
		transform 0.22s ease;
}

.fw-footer__about-link > span:last-child {
	color: #7899d4;
	font-size: 16px;
	transition: transform 0.22s ease;
}

.fw-footer__about-link:hover,
.fw-footer__about-link:focus-visible {
	color: #ffffff;
	background: rgba(120, 153, 212, 0.1);
	border-color: rgba(120, 153, 212, 0.48);
	transform: translateY(-1px);
}

.fw-footer__about-link:hover > span:last-child,
.fw-footer__about-link:focus-visible > span:last-child {
	transform: translateX(-3px);
}


/* =========================================================
   BOTTOM AREA
   ========================================================= */

.fw-footer__bottom {
	position: relative;

	display: grid;

	grid-template-columns: 1fr auto 1fr;

	align-items: center;

	gap: 30px;

	margin-top: 62px;

	padding: 23px 0 25px;

	border-top: 1px solid rgba(255, 255, 255, 0.085);
}


/* small blue detail */

.fw-footer__bottom::before {
	content: "";

	position: absolute;

	top: -1px;
	right: 0;

	width: 48px;
	height: 1px;

	background: linear-gradient(
		90deg,
		rgba(70, 113, 239, 0),
		rgba(70, 113, 239, 0.75)
	);
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.fw-footer__copyright {
	margin: 0;

	justify-self: start;

	color: rgba(214, 224, 240, 0.49);

	font-size: 12px;
	font-weight: 400;
	line-height: 1.8;
}


/* =========================================================
   LEGAL LINKS
   ========================================================= */

.fw-footer__legal {
	display: flex;
	align-items: center;
	justify-content: center;

	gap: 13px;
}

.fw-footer__legal a {
	color: rgba(214, 224, 240, 0.54);

	font-size: 12px;
	font-weight: 400;
	line-height: 1.8;

	text-decoration: none;

	transition: color 0.22s ease;
}

.fw-footer__legal a:hover,
.fw-footer__legal a:focus-visible {
	color: rgba(255, 255, 255, 0.94);
}

.fw-footer__legal span {
	display: block;

	width: 3px;
	height: 3px;

	flex: 0 0 3px;

	border-radius: 50%;

	background: rgba(255, 255, 255, 0.23);
}


/* =========================================================
   TAGLINE
   ========================================================= */

.fw-footer__tagline {
	margin: 0;

	justify-self: end;

	color: rgba(214, 224, 240, 0.45);

	font-size: 12px;
	font-weight: 400;
	line-height: 1.8;
}


/* =========================================================
   FOCUS / ACCESSIBILITY
   ========================================================= */

.fw-footer a:focus-visible {
	outline: 2px solid rgba(116, 151, 255, 0.9);
	outline-offset: 5px;
	border-radius: 3px;
}


/* =========================================================
   LARGE TABLET
   ========================================================= */

@media (max-width: 1100px) {

	.fw-footer {
		padding-top: 62px;
	}

	.fw-footer__grid {
		grid-template-columns:
			minmax(0, 1fr)
			minmax(0, 1fr);

		gap: 48px 44px;
	}

	.fw-footer__brand {
		grid-column: 1 / -1;

		max-width: 540px;

		padding-bottom: 6px;
	}

	.fw-footer__intro {
		max-width: 510px;
	}

	.fw-footer__logo img {
		max-width: 205px;
	}

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 820px) {

	.fw-footer .fw-container {
		width: min(100% - 40px, 1320px);
	}

	.fw-footer {
		padding-top: 58px;
	}

	.fw-footer__grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		gap: 48px 42px;
	}

	.fw-footer__brand {
		grid-column: 1 / -1;

		max-width: 100%;
	}

	.fw-footer__intro {
		max-width: 520px;
	}

	.fw-footer__bottom {
		grid-template-columns: 1fr 1fr;

		gap: 17px 28px;

		margin-top: 54px;
	}

	.fw-footer__copyright {
		justify-self: start;
	}

	.fw-footer__legal {
		justify-self: end;
	}

	.fw-footer__tagline {
		grid-column: 1 / -1;

		justify-self: start;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 580px) {

	.fw-footer {
		padding-top: 50px;
	}

	.fw-footer .fw-container {
		width: min(100% - 32px, 1320px);
	}

	.fw-footer__grid {
		display: flex;
		flex-direction: column;

		gap: 42px;
	}

	.fw-footer__brand,
	.fw-footer__column {
		width: 100%;
		max-width: none;
	}

	.fw-footer__logo {
		margin-bottom: 22px;
	}

	.fw-footer__logo img {
		max-width: 185px;
		max-height: 90px;
	}

	.fw-footer__intro {
		max-width: 100%;

		font-size: 13.5px;
		line-height: 2.1;
	}

	.fw-footer__heading {
		margin-bottom: 23px;
	}

	.fw-footer__links {
		gap: 14px;
	}

	.fw-footer__links a,
	.fw-footer__about-link {
		font-size: 13.5px;
	}

	.fw-footer__bottom {
		display: flex;
		flex-direction: column;
		align-items: flex-start;

		gap: 13px;

		margin-top: 48px;

		padding: 21px 0 24px;
	}

	.fw-footer__copyright,
	.fw-footer__legal,
	.fw-footer__tagline {
		justify-self: auto;
	}

	.fw-footer__legal {
		order: 2;
	}

	.fw-footer__tagline {
		order: 3;
	}

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

	.fw-footer .fw-container {
		width: calc(100% - 28px);
	}

	.fw-footer {
		padding-top: 46px;
	}

	.fw-footer__grid {
		gap: 38px;
	}

	.fw-footer__logo img {
		max-width: 170px;
	}

	.fw-footer__legal {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

	.fw-footer *,
	.fw-footer *::before,
	.fw-footer *::after {
		transition: none !important;
	}

}


/* =========================================================
   FINAL MOBILE FOOTER — centered, compact and balanced
   ========================================================= */

@media (max-width: 580px) {
	.fw-footer {
		padding-top: 42px;
	}

	.fw-footer .fw-container {
		width: min(100% - 28px, 1320px);
	}

	.fw-footer__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 34px 18px;
	}

	.fw-footer__brand {
		grid-column: 1 / -1;
		display: flex;
		flex-direction: column;
		align-items: center;
		max-width: 100%;
		text-align: center;
	}

	.fw-footer__logo {
		justify-content: center;
		width: 100%;
		margin: 0 0 18px;
	}

	.fw-footer__logo img {
		width: min(68vw, 210px);
		max-width: 210px;
		max-height: 96px;
		margin-inline: auto;
	}

	.fw-footer__intro {
		max-width: 420px;
		margin-inline: auto;
		font-size: 12.5px;
		line-height: 2;
		text-align: center;
	}

	.fw-footer__about-link {
		justify-content: center;
		width: min(100%, 310px);
		margin: 20px auto 0;
	}

	.fw-footer__column {
		width: 100%;
		text-align: center;
	}

	.fw-footer__account {
		grid-column: 1 / -1;
		max-width: 390px;
		margin-inline: auto;
	}

	.fw-footer__heading {
		margin-bottom: 18px;
		padding-bottom: 11px;
		font-size: 14px;
		text-align: center;
	}

	.fw-footer__heading::after {
		right: 50%;
		transform: translateX(50%);
	}

	.fw-footer__links {
		align-items: center;
		gap: 11px;
	}

	.fw-footer__links li,
	.fw-footer__links a {
		text-align: center;
	}

	.fw-footer__account-copy,
	.fw-footer__account-status {
		justify-content: center;
		text-align: center;
	}

	.fw-footer__login-link,
	.fw-footer__panel-link,
	.fw-footer__logout-link {
		justify-content: center;
		width: min(100%, 310px);
		margin-inline: auto;
	}

	.fw-footer__bottom {
		align-items: center;
		gap: 12px;
		margin-top: 38px;
		padding: 19px 0 22px;
		text-align: center;
	}

	.fw-footer__copyright,
	.fw-footer__legal,
	.fw-footer__tagline {
		justify-content: center;
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 360px) {
	.fw-footer__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.fw-footer__brand,
	.fw-footer__account {
		grid-column: auto;
	}
}
