/* Desktop-only enhancement for the existing OUR BRANCHES submenu. */
:root {
	--silvio-arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 13 3M6 3h7v7' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--silvio-mobile-contact-button-size: 52px;
	--silvio-mobile-contact-button-gap: 12px;
	--silvio-mobile-contact-safe-bottom: env(safe-area-inset-bottom, 0px);
	--silvio-mobile-contact-bottom-offset: calc(20px + var(--silvio-mobile-contact-safe-bottom));
	--silvio-mobile-contact-stack-height: calc((var(--silvio-mobile-contact-button-size) * 2) + var(--silvio-mobile-contact-button-gap));
	--silvio-mobile-move-up-gap: 14px;
}

/* Lightweight global contact actions. */
#silvio-floating-contact {
	position: fixed;
	right: 24px;
	bottom: 92px;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#silvio-floating-contact .silvio-floating-contact__action {
	display: inline-flex;
	width: 54px;
	height: 54px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	background: #050505;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
	color: #fff;
	text-decoration: none;
	transition: transform .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

#silvio-floating-contact .silvio-floating-contact__action--whatsapp {
	background: #25d366;
	border-color: #25d366;
}

#silvio-floating-contact .silvio-floating-contact__action:hover,
#silvio-floating-contact .silvio-floating-contact__action:focus-visible {
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
	color: #050505;
	transform: translateY(-3px);
}

#silvio-floating-contact .silvio-floating-contact__action--whatsapp:hover,
#silvio-floating-contact .silvio-floating-contact__action--whatsapp:focus-visible {
	background: #fff;
	color: #128c4a;
}

#silvio-floating-contact .silvio-floating-contact__action:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

#silvio-floating-contact .silvio-floating-contact__icon {
	display: block;
	width: 23px;
	height: 23px;
}

#silvio-floating-contact .silvio-floating-contact__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.silvio-mobile-menu-open #silvio-floating-contact {
	opacity: 0;
	pointer-events: none;
	transform: translateY(16px);
	visibility: hidden;
}

@media (max-width: 680px) {
	body.silvio-contact-bar-present {
		padding-bottom: 0;
	}

	#silvio-floating-contact {
		right: 16px;
		bottom: var(--silvio-mobile-contact-bottom-offset);
		left: auto;
		display: flex;
		flex-direction: column;
		gap: var(--silvio-mobile-contact-button-gap);
		height: auto;
		min-height: 0;
		padding: 0;
		background: transparent;
		box-sizing: border-box;
	}

	#silvio-floating-contact .silvio-floating-contact__action {
		width: var(--silvio-mobile-contact-button-size);
		height: var(--silvio-mobile-contact-button-size);
		min-height: var(--silvio-mobile-contact-button-size);
		flex: 0 0 var(--silvio-mobile-contact-button-size);
		gap: 0;
		border: 1px solid rgba(255, 255, 255, .55);
		border-radius: 50%;
		background: #050505;
		box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
	}

	#silvio-floating-contact .silvio-floating-contact__action--whatsapp {
		background: #25d366;
		color: #fff;
	}

	#silvio-floating-contact .silvio-floating-contact__action:hover,
	#silvio-floating-contact .silvio-floating-contact__action:focus-visible,
	#silvio-floating-contact .silvio-floating-contact__action--whatsapp:hover,
	#silvio-floating-contact .silvio-floating-contact__action--whatsapp:focus-visible {
		background: #fff;
		color: #050505;
		transform: none;
	}

	#silvio-floating-contact .silvio-floating-contact__icon {
		width: 23px;
		height: 23px;
	}

	#qodef-back-to-top {
		bottom: calc(var(--silvio-mobile-contact-bottom-offset) + var(--silvio-mobile-contact-stack-height) + var(--silvio-mobile-move-up-gap));
	}
}

@media (prefers-reduced-motion: reduce) {
	#silvio-floating-contact .silvio-floating-contact__action {
		transition: none;
	}
}

/* Use one lightweight vector arrow for all Elementor CTA buttons. */
#qodef-page-content .elementor-widget-button .elementor-button::after {
	content: '';
	display: inline-block;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-left: 11px;
	background: currentColor;
	-webkit-mask: var(--silvio-arrow-mask) center / contain no-repeat;
	mask: var(--silvio-arrow-mask) center / contain no-repeat;
	font-size: 0;
	transition: transform .25s ease;
}

#qodef-page-content .elementor-widget-button .elementor-button:hover::after,
#qodef-page-content .elementor-widget-button .elementor-button:focus-visible::after {
	transform: translate(3px, -3px);
}

body .silvio-location-page .silvio-card-arrow {
	display: inline-block;
	width: 16px;
	height: 16px;
	font-size: 0;
	line-height: 1;
	background: currentColor;
	-webkit-mask: var(--silvio-arrow-mask) center / contain no-repeat;
	mask: var(--silvio-arrow-mask) center / contain no-repeat;
	transition: transform .25s ease;
}

body .silvio-location-page .service-card:hover .silvio-card-arrow {
	transform: translate(3px, -3px);
}

@media (prefers-reduced-motion: reduce) {
	#qodef-page-content .elementor-widget-button .elementor-button::after,
	body .silvio-location-page .silvio-card-arrow {
		transition: none;
	}
}

@media (min-width: 1025px) {
	#qodef-page-header .qodef-header-navigation li.menu-item-5271 > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu {
		top: 100%;
		left: 50%;
		width: 320px;
		padding: 20px !important;
		background: #111111;
		border: 1px solid rgba(255, 255, 255, .16);
		border-radius: 3px;
		box-shadow: 0 22px 48px rgba(0, 0, 0, .24), 0 2px 0 rgba(255, 255, 255, .06) inset;
		opacity: 0;
		visibility: hidden;
		transform: translate(-50%, 9px);
		transition: opacity .28s ease, transform .28s cubic-bezier(.2, .65, .25, 1), visibility 0s linear .28s;
		z-index: 9999;
	}

	#qodef-page-header .qodef-header-navigation li.menu-item-5271:hover > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu,
	#qodef-page-header .qodef-header-navigation li.menu-item-5271:focus-within > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu,
	#qodef-page-header .qodef-header-navigation li.menu-item-5271.qodef--hover > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0);
		transition-delay: 0s;
	}

	#qodef-page-header .qodef-header-navigation li.menu-item-5271 > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu::before {
		display: block;
		margin: 0 12px 10px;
		padding-bottom: 11px;
		border-bottom: 1px solid rgba(255, 255, 255, .16);
		color: #aaa69f;
		content: 'OUR LOCATIONS';
		font-family: Kanit, sans-serif;
		font-size: 11px;
		font-weight: 500;
		letter-spacing: .18em;
		line-height: 1.3;
	}

	#qodef-page-header .qodef-header-navigation li.menu-item-5271 > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu > li {
		margin: 0;
		padding: 0 !important;
	}

	#qodef-page-header .qodef-header-navigation li.menu-item-5271 > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu > li > a {
		position: relative;
		display: flex;
		align-items: center;
		min-height: 43px;
		margin: 2px 0 !important;
		padding: 10px 35px 10px 12px !important;
		border-left: 1px solid transparent;
		color: #f5f4f1;
		font-size: 15px;
		transition: color .24s ease, background-color .24s ease, border-color .24s ease, padding-left .24s ease;
	}

	#qodef-page-header .qodef-header-navigation li.menu-item-5271 > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu > li > a::after {
		position: absolute;
		right: 13px;
		top: 50%;
		width: 15px;
		height: 15px;
		background: currentColor;
		-webkit-mask: var(--silvio-arrow-mask) center / contain no-repeat;
		mask: var(--silvio-arrow-mask) center / contain no-repeat;
		color: #aaa69f;
		content: '';
		font-size: 0;
		opacity: 0;
		transform: translate(-5px, -50%);
		transition: opacity .24s ease, transform .24s ease;
	}

	#qodef-page-header .qodef-header-navigation li.menu-item-5271 > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu > li:hover > a,
	#qodef-page-header .qodef-header-navigation li.menu-item-5271 > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu > li:focus-within > a {
		padding-left: 18px !important;
		border-left-color: #aaa69f;
		background: rgba(255, 255, 255, .08);
		color: #ffffff;
	}

	#qodef-page-header .qodef-header-navigation li.menu-item-5271 > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu > li:hover > a::after,
	#qodef-page-header .qodef-header-navigation li.menu-item-5271 > .qodef-drop-down-second > .qodef-drop-down-second-inner > ul.sub-menu > li:focus-within > a::after {
		opacity: 1;
		transform: translate(0, -50%);
	}
}

/* Complete, scrollable PaulHair mobile menu. */
@media (max-width: 1024px) {
	body.silvio-mobile-menu-open {
		overflow: hidden;
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation {
		z-index: 100001;
		max-height: calc(100dvh - 80px);
		padding: 0;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		box-shadow: 0 18px 35px rgba(0, 0, 0, .22);
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation > ul {
		width: 100%;
		padding: 28px 7% calc(28px + env(safe-area-inset-bottom));
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation > ul > li {
		margin: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .16);
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation > ul > li > a {
		display: flex;
		align-items: center;
		min-height: 56px;
		padding: 15px 34px 15px 0;
		color: #f7f7f5;
		font-size: 15px;
		letter-spacing: .12em;
		line-height: 1.35;
		transition: color .2s ease, padding-left .2s ease;
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation > ul > li > a:hover,
	#qodef-page-mobile-header .qodef-mobile-header-navigation > ul > li > a:focus-visible {
		padding-left: 8px;
		color: #fff;
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation > ul > li > .qodef-menu-item-arrow {
		top: 50%;
		right: 2px;
		width: 8px;
		height: 13px;
		transform: translateY(-50%);
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation > ul > li.qodef--opened > .qodef-menu-item-arrow {
		transform: translateY(-50%) rotate(90deg);
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation ul.sub-menu {
		margin: 0 0 10px 13px;
		padding: 0 0 0 14px;
		border-left: 1px solid rgba(255, 255, 255, .26);
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation ul.sub-menu > li {
		margin: 0;
		padding: 0;
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation ul.sub-menu > li > a {
		min-height: 44px;
		padding: 11px 0;
		color: #c9c8c4;
		font-size: 14px;
		letter-spacing: .08em;
		line-height: 1.4;
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation ul.sub-menu > li > a:hover,
	#qodef-page-mobile-header .qodef-mobile-header-navigation ul.sub-menu > li > a:focus-visible {
		color: #fff;
	}

	#qodef-page-mobile-header .qodef-mobile-header-opener:focus-visible {
		outline: 2px solid currentColor;
		outline-offset: 5px;
	}
}

@media (max-width: 680px) {
	#qodef-page-mobile-header .qodef-mobile-header-navigation {
		max-height: calc(100dvh - 70px);
	}

	#qodef-page-mobile-header .qodef-mobile-header-navigation > ul {
		padding-top: 20px;
		padding-bottom: calc(20px + env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	#qodef-page-mobile-header .qodef-mobile-header-navigation > ul > li > a {
		transition: none;
	}
}
