/* ==========================================================================
   ARSpneu — Footer
   8. Fázis: Lábléc szekciók, copyright, back-to-top
   ========================================================================== */

/* --------------------------------------------------------------------------
   Footer Main
   -------------------------------------------------------------------------- */
.dt-footer {
	background-color: var(--dt-color-secondary);
	color: rgba(255, 255, 255, 0.75);
	font-family: var(--dt-font-body);
	font-size: var(--dt-font-size-sm);
	line-height: var(--dt-line-height-relaxed);
}

.dt-footer__main {
	padding: var(--dt-space-3xl) var(--dt-space-xl) var(--dt-space-2xl);
}

.dt-footer__inner {
	max-width: var(--dt-container-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: var(--dt-space-2xl);
}

/* --------------------------------------------------------------------------
   Footer Columns
   -------------------------------------------------------------------------- */

/* Column 1: About / Logo */
.dt-footer__logo {
	margin-bottom: var(--dt-space-md);
}

.dt-footer__logo img {
	max-height: 48px;
	width: auto;
}

.dt-footer__site-name {
	font-family: var(--dt-font-heading);
	font-size: var(--dt-font-size-xl);
	font-weight: 800;
	color: var(--dt-color-primary);
	text-decoration: none;
}

.dt-footer__site-name:hover {
	color: var(--dt-color-accent);
}

.dt-footer__desc {
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	max-width: 300px;
}

/* Column headings */
.dt-footer__heading {
	font-family: var(--dt-font-heading);
	font-size: var(--dt-font-size-base);
	font-weight: 700;
	color: var(--dt-color-accent);
	margin: 0 0 var(--dt-space-lg);
	text-transform: uppercase;
	letter-spacing: var(--dt-letter-spacing-wide);
	position: relative;
	padding-bottom: var(--dt-space-sm);
}

.dt-footer__heading::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 32px;
	height: 3px;
	background-color: var(--dt-color-primary);
	border-radius: 2px;
}

/* Column 2: Service links */
.dt-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dt-footer__links li {
	margin-bottom: var(--dt-space-xs);
}

.dt-footer__links a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color var(--dt-transition-fast), transform var(--dt-transition-fast);
	display: inline-block;
}

.dt-footer__links a:hover {
	color: var(--dt-color-primary);
	transform: translateX(4px);
}

/* Column 3: Contact */
.dt-footer__contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dt-footer__contact-list li {
	display: flex;
	align-items: flex-start;
	gap: var(--dt-space-sm);
	margin-bottom: var(--dt-space-sm);
}

.dt-footer__contact-list a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color var(--dt-transition-fast);
}

.dt-footer__contact-list a:hover {
	color: var(--dt-color-primary);
}

.dt-footer__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--dt-color-primary);
	margin-top: 2px;
}

.dt-footer__icon svg {
	width: 100%;
	height: 100%;
}

/* Column 4: Social */
.dt-footer__social-icons {
	display: flex;
	gap: var(--dt-space-sm);
	margin-bottom: var(--dt-space-md);
}

.dt-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--dt-color-accent);
	text-decoration: none;
	transition: background-color var(--dt-transition-fast), transform var(--dt-transition-fast);
}

.dt-footer__social-link svg {
	width: 20px;
	height: 20px;
}

.dt-footer__social-link:hover {
	background-color: var(--dt-color-primary);
	color: #000;
	transform: translateY(-3px);
}

.dt-footer__social-text {
	color: rgba(255, 255, 255, 0.5);
	font-size: var(--dt-font-size-xs);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Footer Bottom / Copyright
   -------------------------------------------------------------------------- */
.dt-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: var(--dt-space-lg) var(--dt-space-xl);
}

.dt-footer__bottom-inner {
	max-width: var(--dt-container-max);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--dt-space-sm);
}

.dt-footer__copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: var(--dt-font-size-xs);
}

.dt-footer__legal {
	display: flex;
	align-items: center;
	gap: var(--dt-space-xs);
}

.dt-footer__legal a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	font-size: var(--dt-font-size-xs);
	transition: color var(--dt-transition-fast);
}

.dt-footer__legal a:hover {
	color: var(--dt-color-primary);
}

.dt-footer__legal-sep {
	color: rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   Back to Top Button
   -------------------------------------------------------------------------- */
.dt-back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--dt-color-primary);
	color: #000;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--dt-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color var(--dt-transition-fast);
	z-index: 999;
}

.dt-back-to-top svg {
	width: 22px;
	height: 22px;
}

.dt-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dt-back-to-top:hover {
	background-color: var(--dt-color-secondary);
	transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.dt-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: var(--dt-space-xl);
	}

	.dt-footer__desc {
		max-width: 100%;
	}
}

@media (max-width: 767px) {
	.dt-footer__main {
		padding: var(--dt-space-2xl) var(--dt-space-md) var(--dt-space-xl);
	}

	.dt-footer__inner {
		grid-template-columns: 1fr;
		gap: var(--dt-space-xl);
	}

	.dt-footer__heading {
		margin-bottom: var(--dt-space-md);
	}

	.dt-footer__bottom {
		padding: var(--dt-space-md);
	}

	.dt-footer__bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.dt-footer__legal {
		justify-content: center;
	}

	.dt-back-to-top {
		bottom: 20px;
		right: 20px;
		width: 42px;
		height: 42px;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.dt-footer__social-icons {
		justify-content: center;
	}

	.dt-footer__about {
		text-align: center;
	}

	.dt-footer__logo {
		display: flex;
		justify-content: center;
	}

	.dt-footer__desc {
		margin-left: auto;
		margin-right: auto;
	}
}
