/* ==========================================================================
   Footer Styles
   ========================================================================== */

.footer {
	background: var(--text-dark);
	color: var(--white);
	padding: 6rem 0 2rem;
}

.footer-content {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 4rem;
	margin-bottom: 4rem;
}

.footer-logo img {
	height: 4rem;
	width: auto;
	margin-bottom: 2rem;
}

.footer-description {
	color: #bdc3c7;
	line-height: 1.6;
}

.footer-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 3rem;
}

.footer-section h4 {
	margin-bottom: 2rem;
	color: var(--white);
}

.footer-section ul {
	list-style: none;
}

.footer-section ul li {
	margin-bottom: 0.5rem;
}

.footer-section ul li a {
	color: #bdc3c7;
	transition: color 0.3s ease;
}

.footer-section ul li a:hover {
	color: var(--primary-color);
}

.footer-bottom {
	border-top: 1px solid #34495e;
	padding-top: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 2rem;
}

.footer-legal {
	display: flex;
	gap: 2rem;
}

.footer-legal a {
	color: #bdc3c7;
	font-size: 1.4rem;
	transition: color 0.3s ease;
}

.footer-legal a:hover {
	color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
	position: fixed;
	bottom: 3rem;
	right: 3rem;
	width: 5rem;
	height: 5rem;
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	color: var(--white);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 2rem;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
}

@media screen and (max-width: 768px) {
	.footer-content {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}

	.footer-legal {
		flex-direction: column;
		gap: 1rem;
	}

	.back-to-top {
		bottom: 2rem;
		right: 2rem;
		width: 4.5rem;
		height: 4.5rem;
		font-size: 1.8rem;
	}
}

@media screen and (max-width: 480px) {
	.footer {
		padding: 4rem 0 2rem;
	}

	.footer-section h4 {
		font-size: 1.6rem;
	}

	.footer-legal a {
		font-size: 1.3rem;
	}
}
