/**
 * v2 footer.
 * Markup: footer-v2.php
 */
@layer sections {
	.lb-v2-footer {
		padding-block: var(--lb-v2-space-7) var(--lb-v2-space-9); /* 40px 64px; 60px 100px on desktop */
		background: var(--lb-v2-color-white);
	}

	.lb-v2-footer__top {
		display: grid;
		gap: var(--lb-v2-space-8);
	}

	.lb-v2-footer__logo img {
		width: 12.75rem; /* 204px */
	}

	.lb-v2-footer__menus {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 8.75rem)); /* 140px columns */
		gap: var(--lb-v2-space-7) var(--lb-v2-space-4);
	}

	.lb-v2-footer__title {
		margin-bottom: var(--lb-v2-space-4);
		color: var(--lb-v2-color-accent);
		font-size: var(--lb-v2-text-label-size); /* 16px */
		line-height: var(--lb-v2-text-small-leading);
		font-weight: 500;
		letter-spacing: 0.125em; /* 2px */
		text-transform: uppercase;
	}

	.lb-v2-footer__menu {
		display: grid;
		gap: 0.625rem; /* 36px from one link to the next */
		font-weight: 500;
	}

	.lb-v2-footer__menu a:hover {
		color: var(--lb-v2-color-accent);
	}

	.lb-v2-footer__bottom {
		display: grid;
		gap: var(--lb-v2-space-6);
		margin-top: var(--lb-v2-space-8);
		color: var(--lb-v2-color-slate);
		font-size: var(--lb-v2-text-small-size);
		line-height: var(--lb-v2-text-small-leading);
	}

	.lb-v2-footer__hq-label {
		margin-bottom: var(--lb-v2-space-2);
		text-transform: uppercase;
	}

	.lb-v2-footer__hq address {
		font-style: normal;
	}

	/* HQ phone from Theme Settings — looks like text; dialable on mobile only. */
	.lb-v2-footer__hq a.lb-footer-tel {
		color: inherit;
		text-decoration: none;
		pointer-events: none;
		cursor: inherit;
	}

	@media (max-width: 47.99rem) {
		.lb-v2-footer__hq a.lb-footer-tel {
			pointer-events: auto;
			cursor: pointer;
		}
	}

	.lb-v2-footer__aside {
		display: grid;
		gap: var(--lb-v2-space-5);
	}

	.lb-v2-footer__social {
		display: flex;
		gap: var(--lb-v2-space-4); /* 16px */
	}

	.lb-v2-footer__social a {
		display: grid;
		place-items: center;
		width: 2.75rem; /* 44px */
		height: 2.75rem;
		border-radius: var(--lb-v2-radius-pill);
		background: var(--lb-v2-color-accent);
		color: var(--lb-v2-color-white);
		transition: background-color var(--lb-v2-duration) var(--lb-v2-ease);
	}

	.lb-v2-footer__social a:hover {
		background: var(--lb-v2-color-navy);
	}

	.lb-v2-footer__social svg {
		width: 1.25rem;
		height: 1.25rem;
	}

	.lb-v2-footer__legal {
		display: flex;
		flex-wrap: wrap;
		gap: var(--lb-v2-space-5); /* 24px */
	}

	.lb-v2-footer__legal a:hover {
		color: var(--lb-v2-color-ink);
	}

	.lb-v2-footer__copyright {
		margin-top: var(--lb-v2-space-7);
		color: var(--lb-v2-color-slate);
		font-size: var(--lb-v2-text-small-size);
		text-align: center;
	}

	/* Figma mobile: menus, social/legal, address + copyright, then logo last; 31px from the edge. */
	@media (max-width: 47.99rem) {
		.lb-v2-footer > .lb-v2-container {
			display: flex;
			flex-direction: column;
			padding-inline: 0.6875rem;
		}

		.lb-v2-footer__top,
		.lb-v2-footer__bottom {
			display: contents;
		}

		.lb-v2-footer__menus {
			order: 1;
			margin-bottom: var(--lb-v2-space-5);
		}

		.lb-v2-footer__aside {
			order: 2;
			margin-bottom: var(--lb-v2-space-8);
		}

		.lb-v2-footer__hq {
			order: 3;
		}

		.lb-v2-footer__copyright {
			order: 4;
			margin-top: var(--lb-v2-space-5);
			margin-bottom: var(--lb-v2-space-5);
			text-align: start;
		}

		.lb-v2-footer__logo {
			order: 5;
		}
	}

	@media (min-width: 48rem) {
		.lb-v2-footer__menus {
			grid-template-columns: repeat(4, minmax(0, 8.75rem));
			column-gap: var(--lb-v2-space-5); /* 24px; 60px on desktop */
		}

		.lb-v2-footer__bottom {
			grid-template-columns: 1fr auto;
			align-items: end;
		}

		.lb-v2-footer__aside {
			justify-items: end;
		}
	}

	@media (min-width: 80rem) {
		.lb-v2-footer {
			padding-block: 3.75rem var(--lb-v2-section-space); /* 60px 100px */
		}

		.lb-v2-footer__logo img {
			width: 14.875rem; /* 238px */
		}

		/* Figma: four 140px columns 200px apart, the last one ending 18px inside the container. */
		.lb-v2-footer__top {
			grid-template-columns: 1fr auto;
		}

		.lb-v2-footer__menus {
			column-gap: 3.75rem;
			padding-inline-end: 1.125rem;
		}
	}
}
