/**
 * TactNexa — Premium Site Footer
 *
 * Theme: TactNexa Child / Blocksy
 * File: assets/css/footer.css
 *
 * Presentation only. No checkout or payment logic.
 */

/* =========================================================
   Footer Foundation
   ========================================================= */

.tnx-site-footer {
	--tnx-footer-navy: #061a36;
	--tnx-footer-blue: #1677ff;
	--tnx-footer-muted: #536982;
	--tnx-footer-line: #dce8f5;

	position: relative;
	isolation: isolate;
	width: 100%;
	margin: 0;
	color: var(--tnx-footer-navy);
	background:
		radial-gradient(
			ellipse at 90% 4%,
			rgba(22, 119, 255, 0.085),
			transparent 38%
		),
		linear-gradient(
			180deg,
			#f9fcff 0%,
			#eef5fe 100%
		);
	border-top: 1px solid var(--tnx-footer-line);
}

.tnx-site-footer::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(
		90deg,
		#061a36 0%,
		#1677ff 47%,
		#52d7ff 100%
	);
	pointer-events: none;
}

.tnx-site-footer,
.tnx-site-footer * {
	box-sizing: border-box;
}

.tnx-site-footer__container {
	width: min(1240px, calc(100% - 64px));
	margin-inline: auto;
}

.tnx-site-footer__main {
	padding: clamp(56px, 6vw, 84px) 0 clamp(54px, 5vw, 72px);
}

/* =========================================================
   Four-Column Layout
   ========================================================= */

.tnx-site-footer__grid {
	display: grid;
	grid-template-columns:
		minmax(0, 1.4fr)
		minmax(0, 0.9fr)
		minmax(0, 1.12fr)
		minmax(0, 1.17fr);
	gap: clamp(24px, 3vw, 52px);
	align-items: start;
}

.tnx-site-footer__grid > * {
	min-width: 0;
}

/* =========================================================
   Brand and Logo
   ========================================================= */

.tnx-site-footer__logo {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	margin-bottom: 20px;
	text-decoration: none;
	color: var(--tnx-footer-navy);
	font-size: 1.6rem;
	font-weight: 850;
	line-height: 1.2;
}

.tnx-site-footer__logo img {
	display: block;
	width: min(205px, 100%);
	height: auto;
	object-fit: contain;
}

.tnx-site-footer__brand > p {
	max-width: 300px;
	margin: 0 0 17px;
	color: var(--tnx-footer-muted);
	font-size: 0.93rem;
	line-height: 1.8;
}

.tnx-site-footer__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #075fd7;
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.15em;
	line-height: 1.5;
	text-transform: uppercase;
}

.tnx-site-footer__eyebrow::before {
	content: "";
	width: 17px;
	height: 2px;
	background: #1677ff;
	border-radius: 999px;
}

/* =========================================================
   Footer Navigation
   ========================================================= */

.tnx-site-footer__column h2,
.tnx-site-footer__note h2 {
	margin: 4px 0 23px;
	color: var(--tnx-footer-navy);
	font-size: 1.06rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.tnx-site-footer__column ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tnx-site-footer__column li {
	margin: 0 0 13px;
	padding: 0;
}

.tnx-site-footer__column a {
	display: inline-block;
	max-width: 100%;
	color: var(--tnx-footer-muted);
	font-size: 0.91rem;
	font-weight: 550;
	line-height: 1.65;
	text-decoration: none;
	text-underline-offset: 4px;
	transition:
		color 160ms ease,
		transform 160ms ease;
}

.tnx-site-footer__column a:hover {
	color: #075fd7;
	transform: translateX(3px);
}

/* =========================================================
   Shopping Information
   ========================================================= */

.tnx-site-footer__note p {
	margin: 0 0 14px;
	color: var(--tnx-footer-muted);
	font-size: 0.91rem;
	line-height: 1.8;
}

.tnx-site-footer__shop-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 43px;
	max-width: 100%;
	margin-top: 9px;
	padding: 10px 15px;
	border: 1px solid rgba(22, 119, 255, 0.18);
	border-radius: 10px;
	background: #e7f2ff;
	color: #075fd7;
	font-size: 0.83rem;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(22, 119, 255, 0.065);
	transition:
		background-color 160ms ease,
		transform 160ms ease;
}

.tnx-site-footer__shop-link:hover {
	background: #d8eaff;
	color: #034da8;
	transform: translateY(-2px);
}

/* =========================================================
   Bottom Copyright Bar
   ========================================================= */

.tnx-site-footer__bottom {
	background:
		linear-gradient(
			110deg,
			#031126,
			#09264b
		);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tnx-site-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	min-height: 72px;
	padding-block: 19px;
}

.tnx-site-footer__bottom small {
	color: #c0d1e7;
	font-size: 0.79rem;
	font-weight: 500;
	line-height: 1.6;
}

/* =========================================================
   Keyboard Focus
   ========================================================= */

.tnx-site-footer a:focus-visible {
	outline: 3px solid #1677ff;
	outline-offset: 4px;
	border-radius: 4px;
}

.tnx-site-footer__bottom a:focus-visible {
	outline-color: #52d7ff;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1024px) {

	.tnx-site-footer__grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
		gap: 42px 34px;
	}

	.tnx-site-footer__container {
		width: min(1240px, calc(100% - 44px));
	}
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

	.tnx-site-footer__container {
		width: calc(100% - 36px);
	}

	.tnx-site-footer__main {
		padding: 46px 0 48px;
	}

	.tnx-site-footer__grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
		gap: 34px 20px;
	}

	.tnx-site-footer__brand,
	.tnx-site-footer__note {
		grid-column: 1 / -1;
	}

	.tnx-site-footer__brand > p {
		max-width: 420px;
	}

	.tnx-site-footer__column h2,
	.tnx-site-footer__note h2 {
		margin-bottom: 16px;
	}

	.tnx-site-footer__bottom-inner {
		align-items: flex-start;
		flex-direction: column;
		min-height: 0;
		gap: 7px;
	}
}

/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 380px) {

	.tnx-site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tnx-site-footer__brand,
	.tnx-site-footer__note {
		grid-column: auto;
	}
}

/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.tnx-site-footer__column a,
	.tnx-site-footer__shop-link {
		transition: none;
	}

	.tnx-site-footer__column a:hover,
	.tnx-site-footer__shop-link:hover {
		transform: none;
	}
}