/* Manassen site helpers: review pop-up */
.rv-modal-open,
.rv-modal-open body {
	overflow: hidden;
}

.rv-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: rgba(53, 56, 71, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rv-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.rv-modal__box {
	position: relative;
	width: 100%;
	max-width: 734px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 70px 70px 64px;
	background-color: var(--salt, #f9f6f2);
	box-shadow: 0 24px 60px rgba(28, 27, 23, 0.18);
	transform: translateY(14px);
	transition: transform 0.35s ease;
	outline: none;
}

.rv-modal.is-open .rv-modal__box {
	transform: none;
}

.rv-modal button.rv-modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: block;
	width: 26px;
	height: 26px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	line-height: 0;
	color: var(--sky, #a7bcc8);
	cursor: pointer;
	transition: color 0.25s ease;
}

.rv-modal button.rv-modal__close:hover,
.rv-modal button.rv-modal__close:focus {
	border: 0;
	background: none;
	color: var(--storm, #353847);
}

.rv-modal button.rv-modal__close:focus-visible {
	outline: 1px solid var(--storm, #353847);
	outline-offset: 3px;
}

.rv-modal__close svg {
	display: block;
}

.rv-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 36px;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--greige, #c7c2ba);
}

.rv-modal__name {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--storm, #353847);
}

.rv-modal__stars {
	display: flex;
	flex: 0 0 auto;
	gap: 3px;
	color: var(--wine, #3d2829);
}

.rv-modal__stars svg {
	display: block;
}

.rv-modal__body p {
	margin: 0 0 1.5em;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.75;
	color: var(--ink, #1c1b17);
}

.rv-modal__body p:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.rv-modal {
		padding: 16px;
	}

	.rv-modal__box {
		max-height: calc(100vh - 32px);
		padding: 56px 24px 32px;
	}

	.rv-modal button.rv-modal__close {
		top: 16px;
		right: 16px;
	}

	.rv-modal__head {
		flex-direction: column;
		gap: 12px;
		padding-bottom: 24px;
		margin-bottom: 28px;
	}

	.rv-modal__stars svg {
		width: 18px;
		height: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rv-modal,
	.rv-modal__box {
		transition: none;
	}
}

/* Tabs (Services) */
.tabs-ready .tab-panel:not(.is-active) {
	display: none;
}

.tabs-ready .tab-panel.is-active {
	animation: mco-tab-in 0.45s ease both;
}

@keyframes mco-tab-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.tab-btn::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background-color: var(--storm, #353847);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.45s ease;
}

.tab-btn.is-active::after {
	transform: scaleX(1);
}

.tab-btn:focus {
	outline: none;
}

.tab-btn:focus-visible {
	outline: 1px solid var(--storm, #353847);
	outline-offset: 4px;
}

@media (max-width: 767px) {
	.tabs-ready .tab-panel:not(.is-active) {
		display: flex;
	}

	.tabs-ready .tab-panel.is-active {
		animation: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tabs-ready .tab-panel.is-active {
		animation: none;
	}

	.tab-btn::after {
		transition: none;
	}
}

/* Tabs that stay as tabs on mobile (Our Areas) */
.tabs-keep .tab-btn::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-inline-end: 0.6rem;
	border-radius: 50%;
	background-color: currentColor;
	vertical-align: middle;
	transform: translateY(-2px) scale(0);
	transition: transform 0.3s ease;
}

.tabs-keep .tab-btn.is-active::before {
	transform: translateY(-2px) scale(1);
}

.tabs-keep .tab-panel a:hover img {
	opacity: 0.88;
}

.tabs-keep .tab-panel a img {
	transition: opacity 0.4s ease;
}

.tabs-keep .tab-panel a:hover > p:last-child {
	color: var(--wine, #3d2829);
}

.tabs-keep .tab-panel a:focus-visible {
	outline: 1px solid var(--storm, #353847);
	outline-offset: 6px;
}

@media (max-width: 767px) {
	.tabs-keep.tabs-ready .tab-panel:not(.is-active) {
		display: none;
	}

	.tabs-keep.tabs-ready .tab-panel.is-active {
		animation: mco-tab-in 0.45s ease both;
	}

	.tabs-keep .tab-btn::after {
		bottom: 0;
	}

	.tabs-keep .tab-btn:focus-visible {
		outline-offset: -2px;
	}
}

/* FAQ accordion */
.faq-list .e-accordion-item-icon-base svg {
	fill: none;
	transition: transform 0.35s ease;
}

.faq-list .e-accordion-item-base[open] > summary .e-accordion-item-icon-base svg {
	transform: rotate(-90deg);
}

.faq-list summary {
	transition: opacity 0.3s ease;
}

.faq-list details:not([open]) > summary {
	opacity: 0.68;
}

.faq-list details > summary:hover {
	opacity: 1;
}

.faq-list summary:focus {
	outline: none;
}

.faq-list summary:focus-visible {
	outline: 1px solid var(--storm, #353847);
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.tabs-keep.tabs-ready .tab-panel.is-active {
		animation: none;
	}

	.tabs-keep .tab-btn::before,
	.faq-list summary,
	.faq-list .e-accordion-item-icon-base svg {
		transition: none;
	}
}
