/**
 * DinnerlyHub - Footer Layout
 * 3-column footer with brand, explore recipes, and quick links.
 */

/* Scoped reset */
.dh-footer *,
.dh-footer *::before,
.dh-footer *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.dh-footer {
	font-family: var(--dh-font);
}

/* Main footer area */
.dh-footer__main {
	background: #1e3a2f;
	padding: 64px 24px 52px;
}

.dh-footer__inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 48px;
	max-width: var(--dh-max-width);
	margin: 0 auto;
	align-items: start;
}

/* Brand column */
.dh-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dh-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	width: fit-content;
}

.dh-footer__logo:focus-visible {
	outline: 2px solid var(--dh-orange);
	outline-offset: 3px;
	border-radius: 4px;
}

.dh-footer__logo-img {
	height: 40px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.dh-footer__logo-text {
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.2px;
	white-space: nowrap;
}

.dh-footer__tagline {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.58);
	line-height: 1.75;
	max-width: 300px;
}

/* Social icons */
.dh-footer__social {
	display: flex;
	gap: 10px;
	list-style: none;
}

.dh-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	will-change: auto;
	transition: background var(--dh-ease), border-color var(--dh-ease),
	            color var(--dh-ease), transform var(--dh-ease);
}

.dh-footer__social-link:hover {
	background: var(--dh-orange);
	border-color: var(--dh-orange);
	color: #fff;
	transform: translateY(-2px);
}

.dh-footer__social-link:focus-visible {
	outline: 2px solid var(--dh-orange);
	outline-offset: 3px;
}

/* Link columns */
.dh-footer__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 4px;
}

.dh-footer__heading {
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1.8px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.dh-footer__links {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dh-footer__link {
	display: inline-flex;
	align-items: center;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.58);
	text-decoration: none;
	transition: color var(--dh-ease);
}

/* Arrow animation */
.dh-footer__link::before {
	content: '\2192';
	font-size: 0.78rem;
	color: var(--dh-orange);
	opacity: 0;
	display: inline-block;
	width: 0;
	overflow: hidden;
	transform: translateX(-4px);
	transition: opacity var(--dh-ease), transform var(--dh-ease),
	            width var(--dh-ease), margin-right var(--dh-ease);
	margin-right: 0;
}

.dh-footer__link:hover {
	color: #fff;
}

.dh-footer__link:hover::before {
	opacity: 1;
	width: 14px;
	transform: translateX(0);
	margin-right: 6px;
}

.dh-footer__link:focus-visible {
	outline: 2px solid var(--dh-orange);
	outline-offset: 3px;
	border-radius: 3px;
}

/* Bottom bar */
.dh-footer__bottom {
	background: #152a21;
	padding: 16px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dh-footer__bottom-inner {
	max-width: var(--dh-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dh-footer__copy {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.36);
	text-align: center;
}

.dh-footer__copy-link {
	color: rgba(255, 255, 255, 0.52);
	text-decoration: none;
	transition: color var(--dh-ease);
}

.dh-footer__copy-link:hover {
	color: var(--dh-orange);
}

/* Responsive */
@media (max-width: 768px) {
	.dh-footer__main {
		padding: 48px 20px 40px;
	}

	.dh-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
	}

	.dh-footer__brand {
		grid-column: 1 / -1;
	}

	.dh-footer__tagline {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.dh-footer__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.dh-footer__brand {
		grid-column: auto;
	}

	.dh-footer__bottom {
		padding: 14px 20px;
	}
}
