/* Service strip, footer and mobile bottom navigation. */

.lv-service {
	width: 100%;
	border-top: 1px solid var(--livhy-border);
	background: var(--livhy-cream);
}

.lv-service__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--livhy-space-5) var(--livhy-space-4);
	margin-inline: auto !important;
	margin-block: 0 !important;
	padding-block: var(--livhy-space-6);
	list-style: none;
	justify-content: center;
}

.lv-service__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--livhy-space-3);
	min-width: 0;
	text-align: left;
}

.lv-service__icon {
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	color: var(--livhy-primary);
}

.lv-service__text {
	display: grid;
	min-width: 0;
}

.lv-service__title {
	font-size: var(--livhy-fs-small);
	font-weight: var(--livhy-fw-semibold);
	line-height: 1.3;
}

.lv-service__desc {
	color: var(--livhy-muted);
	font-size: var(--livhy-fs-caption);
	line-height: 1.4;
}

@media (min-width: 768px) {
	.lv-service__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		justify-items: center;
		align-items: center;
	}
}

@media (min-width: 1024px) {
	.lv-service__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		justify-items: center;
		align-items: center;
	}
}

/* Footer */
.lv-footer {
	padding-top: var(--livhy-section-space);
	border-top: 1px solid var(--livhy-border);
	background: var(--livhy-background);
	font-size: var(--livhy-fs-small);
}

.lv-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--livhy-space-8) var(--livhy-space-6);
}

.lv-footer__brand,
.lv-footer__newsletter {
	grid-column: 1 / -1;
}

.lv-footer__tagline {
	max-width: 22rem;
	margin: var(--livhy-space-3) 0;
	color: var(--livhy-muted);
}

.lv-footer__social {
	margin-left: calc(var(--livhy-space-3) * -1);
}

.lv-footer__title {
	margin: 0 0 var(--livhy-space-3);
	font-size: var(--livhy-fs-small);
	font-weight: var(--livhy-fw-semibold);
}

.lv-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lv-footer__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	color: var(--livhy-muted);
	text-decoration: none;
}

.lv-footer__menu a:hover {
	color: var(--livhy-primary);
}

.lv-footer__text {
	margin: 0 0 var(--livhy-space-3);
	color: var(--livhy-muted);
}

/* Newsletter forms rendered by a form plugin shortcode. */
.lv-footer__form form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--livhy-space-2);
	margin: 0;
}

.lv-footer__form p {
	margin: 0;
}

.lv-footer__form input[type="email"],
.lv-footer__form input[type="text"] {
	flex: 1 1 12rem;
	min-height: var(--livhy-tap);
}

.lv-footer__form input[type="submit"],
.lv-footer__form button[type="submit"] {
	min-height: var(--livhy-tap);
	padding: 0 var(--livhy-space-5);
	border: 0;
	border-radius: var(--livhy-radius-md);
	background: var(--livhy-primary);
	color: #fff;
	font-weight: var(--livhy-fw-semibold);
}

.lv-footer__form input[type="submit"]:hover,
.lv-footer__form button[type="submit"]:hover {
	background: var(--livhy-primary-dark);
}

.lv-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--livhy-space-2) var(--livhy-space-6);
	margin-top: var(--livhy-space-10);
	padding-block: var(--livhy-space-5);
	border-top: 1px solid var(--livhy-border);
	color: var(--livhy-muted);
	font-size: var(--livhy-fs-caption);
}

.lv-footer__copyright {
	margin: 0;
}

.lv-footer__legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--livhy-space-1) var(--livhy-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lv-footer__legal-menu a {
	color: var(--livhy-muted);
	text-decoration: none;
}

.lv-footer__legal-menu a:hover {
	color: var(--livhy-primary);
}

@media (min-width: 768px) {
	.lv-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	/* Empty tracks collapse, so the layout stays balanced however many menus are assigned. */
	.lv-footer__grid {
		grid-template-columns: minmax(16rem, 1.5fr) repeat(auto-fit, minmax(9rem, 1fr));
	}

	.lv-footer__brand,
	.lv-footer__newsletter {
		grid-column: auto;
	}
}

/* Bottom navigation (mobile and tablet) */
.lv-bottom-nav {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: var(--livhy-z-bottom-nav);
	padding-bottom: var(--livhy-safe-bottom);
	border-top: 1px solid var(--livhy-border);
	background: var(--livhy-surface);
	box-shadow: 0 -4px 16px rgb(23 23 23 / 0.05);
}

.lv-bottom-nav__list {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	max-width: 40rem;
	height: var(--livhy-bottom-nav-h);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.lv-bottom-nav__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.125rem;
	height: 100%;
	color: var(--livhy-muted);
	font-size: 0.6875rem;
	font-weight: var(--livhy-fw-medium);
	text-decoration: none;
}

.lv-bottom-nav__link .lv-icon {
	width: 1.375rem;
	height: 1.375rem;
}

.lv-bottom-nav__link[aria-current="page"],
.lv-bottom-nav__link:hover {
	color: var(--livhy-primary);
}

.lv-bottom-nav__link[aria-current="page"] {
	font-weight: var(--livhy-fw-semibold);
}

@media (min-width: 1024px) {
	.lv-bottom-nav {
		display: none;
	}
}
