/* Header "Contact Us to Order" location dropdown
   Palette from the Elementor kit: gold #E0B158, brown #603E33, taupe #948378,
   text #4E4C48, ink #1C1B1A, mist #F5F5F5, linen #E6DFDD. */

#contact-menu.lvp-has-locations {
	position: relative;
}

/* Toggle caret appended to the button text */
#contact-menu .lvp-caret {
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	margin-left: 0.55em;
	vertical-align: 0.12em;
	transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
#contact-menu .elementor-button[aria-expanded="true"] .lvp-caret {
	transform: rotate(180deg);
}
#contact-menu .elementor-button[aria-expanded="true"] {
	background-color: #d3a34a;
}
#contact-menu .elementor-button:focus-visible {
	outline: 3px solid #1C1B1A;
	outline-offset: -6px;
}

/* Panel */
#contact-menu .lvp-locations {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 1000;
	width: 380px;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 100px);
	max-height: calc(100dvh - 100px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	box-shadow: 0 24px 48px -16px rgba(28, 27, 26, 0.45), 0 2px 6px rgba(28, 27, 26, 0.12);
	text-align: left;
	transform-origin: top right;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 160ms ease-out, transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
#contact-menu .lvp-locations[hidden] {
	display: none;
}
#contact-menu .lvp-locations.is-open {
	opacity: 1;
	transform: none;
}

/* Plank band — echoes the floorboards in the logo, sits flush under the gold button */
#contact-menu .lvp-locations__planks {
	display: flex;
	height: 6px;
}
#contact-menu .lvp-locations__planks span:nth-child(1) { flex: 3.2; background: #603E33; }
#contact-menu .lvp-locations__planks span:nth-child(2) { flex: 1.6; background: #948378; }
#contact-menu .lvp-locations__planks span:nth-child(3) { flex: 2.4; background: #C3C3C3; }
#contact-menu .lvp-locations__planks span:nth-child(4) { flex: 1.2; background: #4E4C48; }
#contact-menu .lvp-locations__planks span:nth-child(5) { flex: 2.6; background: #E0B158; }
#contact-menu .lvp-locations__planks span + span { margin-left: 2px; }

#contact-menu .lvp-locations.is-open .lvp-locations__planks span {
	animation: lvp-plank-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
#contact-menu .lvp-locations.is-open .lvp-locations__planks span:nth-child(2) { animation-delay: 30ms; }
#contact-menu .lvp-locations.is-open .lvp-locations__planks span:nth-child(3) { animation-delay: 60ms; }
#contact-menu .lvp-locations.is-open .lvp-locations__planks span:nth-child(4) { animation-delay: 90ms; }
#contact-menu .lvp-locations.is-open .lvp-locations__planks span:nth-child(5) { animation-delay: 120ms; }
@keyframes lvp-plank-in {
	from { transform: scaleX(0); transform-origin: left; }
	to   { transform: scaleX(1); transform-origin: left; }
}

#contact-menu .lvp-locations__intro {
	margin: 0;
	padding: 20px 24px 6px;
	font-family: "futura-pt", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #1C1B1A;
}

#contact-menu .lvp-locations__group {
	padding: 10px 0 4px;
}
#contact-menu .lvp-locations__group + .lvp-locations__group {
	border-top: 1px solid #E6DFDD;
	margin-top: 6px;
}

#contact-menu .lvp-locations__state {
	margin: 0;
	padding: 6px 24px 4px;
	font-family: "futura-pt", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: #948378;
}

#contact-menu .lvp-locations__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#contact-menu .lvp-locations__link,
#contact-menu .lvp-locations__link:visited {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 24px;
	color: #1C1B1A;
	text-decoration: none;
	transition: background-color 140ms ease-out;
}
#contact-menu .lvp-locations__link::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 4px;
	background: #E0B158;
	transform: scaleY(0);
	transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
#contact-menu .lvp-locations__link:hover,
#contact-menu .lvp-locations__link:focus-visible {
	background: #F5F5F5;
	color: #1C1B1A;
}
#contact-menu .lvp-locations__link:hover::before,
#contact-menu .lvp-locations__link:focus-visible::before,
#contact-menu .lvp-locations__link[aria-current="page"]::before {
	transform: scaleY(1);
}
#contact-menu .lvp-locations__link:focus-visible {
	outline: 2px solid #603E33;
	outline-offset: -2px;
}

#contact-menu .lvp-locations__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
#contact-menu .lvp-locations__region {
	font-family: "futura-pt", sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
}
#contact-menu .lvp-locations__city {
	margin-top: 2px;
	font-family: "Lato", sans-serif;
	font-size: 15px;
	line-height: 1.35;
	color: #4E4C48;
}

#contact-menu .lvp-locations__chevron {
	flex: none;
	width: 16px;
	height: 16px;
	color: #E0B158;
	transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), color 140ms ease-out;
}
#contact-menu .lvp-locations__link:hover .lvp-locations__chevron,
#contact-menu .lvp-locations__link:focus-visible .lvp-locations__chevron {
	transform: translateX(3px);
	color: #603E33;
}

#contact-menu .lvp-locations__all,
#contact-menu .lvp-locations__all:visited {
	display: block;
	margin-top: 8px;
	padding: 16px 24px;
	background: #603E33;
	font-family: "futura-pt", sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	transition: background-color 140ms ease-out;
}
#contact-menu .lvp-locations__all:hover,
#contact-menu .lvp-locations__all:focus-visible {
	background: #4a2f26;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
#contact-menu .lvp-locations__all:focus-visible {
	outline: 3px solid #E0B158;
	outline-offset: -3px;
}

/* Touch screens: no sticky hover tint */
@media (hover: none) {
	#contact-menu .lvp-locations__link:hover { background: transparent; }
	#contact-menu .lvp-locations__link:hover::before { transform: scaleY(0); }
	#contact-menu .lvp-locations__link[aria-current="page"]::before { transform: scaleY(1); }
	#contact-menu .lvp-locations__link:active { background: #F5F5F5; }
}

/* Narrow screens: pin the panel to the viewport so it never runs off the edge */
@media (max-width: 767px) {
	#contact-menu .lvp-locations {
		position: fixed;
		top: var(--lvp-panel-top, 68px);
		left: 12px;
		right: 12px;
		width: auto;
		max-width: none;
		max-height: calc(100dvh - var(--lvp-panel-top, 68px) - 12px);
	}
}

@media (prefers-reduced-motion: reduce) {
	#contact-menu .lvp-locations,
	#contact-menu .lvp-locations__link::before,
	#contact-menu .lvp-locations__chevron,
	#contact-menu .lvp-caret {
		transition: none;
	}
	#contact-menu .lvp-locations { transform: none; }
	#contact-menu .lvp-locations.is-open .lvp-locations__planks span { animation: none; }
}

/* Location pages: when arriving at #contact (from the header dropdown), keep
   the section heading clear of the fixed header and logo. */
#contact {
	scroll-margin-top: 100px;
}
@media (max-width: 1024px) {
	#contact { scroll-margin-top: 40px; }
}
@media (max-width: 767px) {
	#contact { scroll-margin-top: 90px; }
}
