/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	position: relative;
	background: var(--lm-footer-bg, #1d1a17);
	color: var(--lm-footer-text, #f3eee7);
	font-size: 0.9rem;
	line-height: 1.65;
}

.site-footer a {
	color: var(--lm-footer-link, #ffb59f);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--lm-footer-text, #f3eee7);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer .lm-logo__word {
	color: inherit;
}

.site-footer .lm-logo__mark {
	color: var(--lm-footer-link, #ffb59f);
}

.footer-top {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
	align-items: start;
	gap: clamp(28px, 5vw, 64px);
	padding-block: clamp(44px, 6vw, 68px);
	border-bottom: 1px solid color-mix(in srgb, var(--lm-footer-text) 14%, transparent);
}

.footer-brand p {
	max-width: 46ch;
	margin: 14px 0 18px;
	color: var(--lm-footer-muted, #b9b0a4);
	font-size: 0.86rem;
}

.footer-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-footer .lm-logo__text {
	font-size: 1.5rem;
}

.footer-nav {
	min-width: 0;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu--inline {
	gap: 10px 24px;
}

.footer-menu li {
	font-size: 0.85rem;
}

.footer-menu a {
	color: var(--lm-footer-muted, #b9b0a4);
}

.footer-menu a:hover {
	color: var(--lm-footer-text);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 28px;
	padding-block: 22px;
	font-size: 0.74rem;
	color: var(--lm-footer-muted, #b9b0a4);
}

.site-footer__copyright {
	margin: 0;
}

.site-footer__copyright a {
	color: inherit;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-legal a {
	color: var(--lm-footer-muted, #b9b0a4);
}

/* --------------------------------------------------------------------------
   Widget columns
   -------------------------------------------------------------------------- */

.footer-columns {
	display: grid;
	gap: clamp(28px, 4vw, 48px);
	padding-block: clamp(44px, 6vw, 68px);
	border-bottom: 1px solid color-mix(in srgb, var(--lm-footer-text) 14%, transparent);
}

.footer-columns--1 {
	grid-template-columns: minmax(0, 1fr);
}

.footer-columns--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-columns--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-columns--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-column {
	min-width: 0;
}

.footer-column .footer-brand p {
	margin-block: 12px 16px;
}

.site-footer .footer-heading,
.site-footer .widget__title {
	margin: 0 0 14px;
	font-family: var(--lm-font-body);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--lm-footer-text);
}

.site-footer .widget {
	margin: 0;
	padding: 0;
	border: 0;
}

.site-footer .widget li {
	border-color: color-mix(in srgb, var(--lm-footer-text) 12%, transparent);
	font-size: 0.84rem;
}

.site-footer .widget li a {
	color: var(--lm-footer-muted, #b9b0a4);
}

.site-footer .widget li a:hover {
	color: var(--lm-footer-text);
}

.site-footer .widget-note p,
.site-footer .footer-note {
	margin: 0;
	font-size: 0.82rem;
	color: var(--lm-footer-muted, #b9b0a4);
}

.site-footer .widget-search .lm-search-form__field {
	background: color-mix(in srgb, var(--lm-footer-text) 8%, transparent);
	border-color: color-mix(in srgb, var(--lm-footer-text) 18%, transparent);
}

.site-footer .widget-search input[type="search"] {
	color: var(--lm-footer-text);
}

.site-footer .widget-search input::placeholder {
	color: var(--lm-footer-muted);
}

.site-footer .widget-search .lm-icon {
	color: var(--lm-footer-muted);
}

/* --------------------------------------------------------------------------
   Centered footer
   -------------------------------------------------------------------------- */

.lm-footer--centered {
	text-align: center;
}

.lm-footer--centered .lm-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-block: clamp(44px, 6vw, 68px) 28px;
}

.lm-footer--centered .footer-about {
	max-width: 54ch;
	margin: 14px auto 20px;
	font-size: 0.88rem;
	color: var(--lm-footer-muted, #b9b0a4);
}

.lm-footer--centered .footer-nav {
	margin-block-end: 18px;
}

.lm-footer--centered .footer-menu {
	justify-content: center;
}

.lm-footer--centered .social-links {
	justify-content: center;
	margin-block-end: 22px;
}

.lm-footer--centered .site-footer__copyright {
	margin: 0;
	padding-block-start: 18px;
	border-top: 1px solid color-mix(in srgb, var(--lm-footer-text) 14%, transparent);
	width: min(680px, 100%);
	font-size: 0.74rem;
	color: var(--lm-footer-muted, #b9b0a4);
}

/* --------------------------------------------------------------------------
   Default footer
   -------------------------------------------------------------------------- */

.lm-footer--default .footer-top {
	border-bottom: 0;
}

@media (max-width: 900px) {
	.footer-top {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	.footer-columns--3,
	.footer-columns--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-columns--2,
	.footer-columns--3,
	.footer-columns--4 {
		grid-template-columns: minmax(0, 1fr);
	}
}
