/* =========================================================================
   TN Site Footer — structural + visual CSS.
   All values use CSS variables defined in style.css so the brand palette
   is a single source of truth.
   ========================================================================= */

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.tn-site-footer {
	background: #0d0d0d;
	color: #fff;
	font-family: 'Manrope', sans-serif;
}

/* Green → teal accent line at the very top (mirrors the topbar gradient) */
.tn-site-footer::before {
	content: '';
	display: block;
	height: 4px;
	background: linear-gradient(90deg, var(--tn-green, #1aa84c), var(--tn-teal, #16b6c4));
}

/* ── Inner max-width container ──────────────────────────────────────────── */
.tn-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	box-sizing: border-box;
}

/* ── Main footer area ───────────────────────────────────────────────────── */
.tn-footer-main {
	padding: 72px 0 56px;
}

/* 4-column grid — col widths intentionally unequal to match the design */
.tn-footer-columns {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
	gap: 48px;
	align-items: start;
}

/* ── Column headings (QUICK LINKS / OUR PRODUCTS / …) ──────────────────── */
.tn-footer-heading {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 22px;
	line-height: 1;
}

/* ── Unordered link lists ───────────────────────────────────────────────── */
.tn-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tn-footer-links li {
	margin-bottom: 13px;
}

.tn-footer-links li:last-child {
	margin-bottom: 0;
}

/* wp_nav_menu adds .menu-item wrappers — target them the same way */
.tn-footer-links .menu-item {
	margin-bottom: 13px;
}

.tn-footer-links .menu-item:last-child {
	margin-bottom: 0;
}

.tn-site-footer .tn-footer-links a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1;
	transition: color 0.2s ease;
}

.tn-site-footer .tn-footer-links a:hover {
	color: var(--tn-teal, #16b6c4);
}

/* ── Social icons ───────────────────────────────────────────────────────── */
.tn-footer-socials-heading {
	margin-top: 38px;
}

.tn-footer-socials {
	display: flex;
	gap: 10px;
}

.tn-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--tn-teal, #16b6c4);
	color: #fff;
	text-decoration: none;
	transition: background 0.22s ease, transform 0.22s ease;
	flex-shrink: 0;
}

.tn-social-icon:hover {
	background: var(--tn-green, #1aa84c);
	transform: translateY(-3px);
	color: #fff;
}

.tn-social-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	display: block;
}

/* ── Contact info items ─────────────────────────────────────────────────── */
.tn-footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 28px;
}

.tn-footer-contact-item:last-child {
	margin-bottom: 0;
}

.tn-contact-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tn-teal, #16b6c4);
}

.tn-contact-icon svg {
	width: 34px;
	height: 34px;
}

.tn-contact-text strong {
	display: block;
	font-size: 0.925rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 5px;
	line-height: 1;
}

.tn-site-footer .tn-contact-text p {
	margin: 3px 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.55;
}

.tn-site-footer .tn-contact-text a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	transition: color 0.2s ease;
}

.tn-site-footer .tn-contact-text a:hover {
	color: var(--tn-teal, #16b6c4);
}

/* ── Bottom copyright bar ───────────────────────────────────────────────── */
.tn-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 20px 0;
}

.tn-footer-copyright {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.4);
	margin: 0;
	text-align: center;
	line-height: 1.5;
}

.tn-footer-copyright a {
	color: var(--tn-teal, #16b6c4);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.tn-footer-copyright a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.tn-footer-columns {
		grid-template-columns: 1fr 1fr;
		gap: 40px 48px;
	}
}

@media (max-width: 640px) {
	.tn-footer-inner {
		padding: 0 20px;
	}

	.tn-footer-columns {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.tn-footer-main {
		padding: 48px 0 36px;
	}
}

/* ── Scroll-to-top button ───────────────────────────────────────────────── */
.tn-scroll-top {
	position: fixed;
	bottom: 32px;
	right: 32px;
	width: 46px;
	height: 46px;
	background: linear-gradient(135deg, var(--tn-green, #1aa84c), var(--tn-teal, #16b6c4));
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 18px rgba(22, 182, 196, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.3s ease, visibility 0.3s ease,
	            transform 0.3s ease, box-shadow 0.3s ease;
	z-index: 9000;
}

.tn-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tn-scroll-top:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(22, 182, 196, 0.55);
}

.tn-scroll-top:active {
	transform: translateY(0);
}

@media (max-width: 640px) {
	.tn-scroll-top {
		bottom: 20px;
		right: 20px;
		width: 42px;
		height: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tn-scroll-top {
		transition: opacity 0.3s ease, visibility 0.3s ease;
		transform: none !important;
	}
}
