/**
 * Zucali header burger + Sidr sidebar navigation
 */

/* ------------------------------------------------------------------
   Header: burger visible on all breakpoints, left of logo
   ------------------------------------------------------------------ */
#site-header-inner {
	display: grid !important;
	grid-template-columns: auto auto minmax(0, 1fr);
	align-items: stretch;
	column-gap: 1.25em;
	position: relative;
	height: 100%;
}
#site-header-inner .oceanwp-mobile-menu-icon {
	display: inline-flex !important;
	align-items: center;
	align-self: center;
	order: unset !important;
	flex: unset;
	float: none !important;
	margin-right: 0;
	grid-column: 1;
	height: 64px;
}

#site-header-inner .oceanwp-mobile-menu-icon a,
#site-header-inner .oceanwp-mobile-menu-icon .mobile-menu,
#site-header-inner .oceanwp-mobile-menu-icon button.mobile-menu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 0;
	padding: 0 0.5em;
	line-height: 1 !important;
	height: 64px !important;
	box-sizing: border-box;
	color: #777676;
	border-radius: 2px;
	transition: background-color 0.2s ease;
}

body.sidr-open #site-header-inner .oceanwp-mobile-menu-icon a {
	background-color: #d4d4d4;
}

#site-header-inner .oceanwp-mobile-menu-icon .oceanwp-text,
#site-header-inner .oceanwp-mobile-menu-icon .oceanwp-close-text,
#site-header-inner .oceanwp-mobile-menu-icon .search-icon-overlay {
	display: none !important;
}

/* Four guitar strings, CSS-only so the old font burger never flashes */
#site-header-inner .oceanwp-mobile-menu-icon .icon-menu {
	display: inline-block;
	width: 1.4rem;
	height: 1.4rem;
	box-sizing: border-box;
	font-size: 0 !important;
	line-height: 0 !important;
	background-image:
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor),
		linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-size:
		100% 1px,
		calc(100% - 4px) 1px,
		100% 1px,
		calc(100% - 4px) 1px;
	background-position:
		0 3px,
		4px 8px,
		0 13px,
		4px 18px;
}

#site-header-inner .oceanwp-mobile-menu-icon .icon-menu::before,
#site-header-inner .oceanwp-mobile-menu-icon .icon-menu::after {
	content: none !important;
	display: none !important;
}

#site-header-inner .oceanwp-mobile-menu-icon .zucali-string {
	display: none !important;
}

#site-header-inner .oceanwp-mobile-menu-icon button.mobile-menu:hover .icon-menu,
#site-header-inner .oceanwp-mobile-menu-icon a:hover .icon-menu {
	animation: zucali-string-pluck 0.62s ease-in-out both;
}

#site-header-inner .oceanwp-mobile-menu-icon button.mobile-menu:active .icon-menu,
#site-header-inner .oceanwp-mobile-menu-icon a:active .icon-menu,
#site-header-inner .oceanwp-mobile-menu-icon button.mobile-menu:hover .icon-menu.is-strumming,
#site-header-inner .oceanwp-mobile-menu-icon a:hover .icon-menu.is-strumming,
#site-header-inner .oceanwp-mobile-menu-icon .icon-menu.is-strumming {
	animation: zucali-string-strum 0.48s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes zucali-string-pluck {
	0%,
	100% {
		background-position: 0 3px, 4px 8px, 0 13px, 4px 18px;
	}
	16% {
		background-position: 0 1px, 4px 8px, 0 13px, 4px 18px;
	}
	32% {
		background-position: 0 4px, 4px 6px, 0 13px, 4px 18px;
	}
	48% {
		background-position: 0 3px, 4px 9px, 0 11px, 4px 18px;
	}
	64% {
		background-position: 0 3px, 4px 8px, 0 14px, 4px 16px;
	}
	80% {
		background-position: 0 3px, 4px 8px, 0 13px, 4px 19px;
	}
}

@keyframes zucali-string-strum {
	0%,
	100% {
		background-position: 0 3px, 4px 8px, 0 13px, 4px 18px;
	}
	12% {
		background-position: 0 0px, 4px 8px, 0 13px, 4px 18px;
	}
	24% {
		background-position: 0 5px, 4px 5px, 0 13px, 4px 18px;
	}
	36% {
		background-position: 0 3px, 4px 11px, 0 10px, 4px 18px;
	}
	52% {
		background-position: 0 3px, 4px 8px, 0 16px, 4px 15px;
	}
	68% {
		background-position: 0 3px, 4px 8px, 0 13px, 4px 21px;
	}
	84% {
		background-position: 0 3px, 4px 8px, 0 13px, 4px 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#site-header-inner .oceanwp-mobile-menu-icon .icon-menu {
		animation: none !important;
	}
}

#site-header-inner #site-logo {
	grid-column: 2;
	flex: unset;
	display: flex;
	align-items: center;
	float: none !important;
	position: static !important;
	left: auto !important;
	transform: none !important;
	width: auto !important;
	margin: 0;
	padding: 0;
}

#site-header-inner #site-logo #site-logo-inner {
	display: flex;
	align-items: center;
	height: auto !important;
	line-height: normal;
}

#site-navigation-wrap {
	grid-column: 3;
	flex: unset;
	float: none !important;
	right: auto !important;
	position: relative !important;
	margin-left: 0;
	min-width: 0;
	display: flex;
	align-self: stretch;
	height: 100%;
}

@media only screen and (min-width: 960px) {
	#site-navigation-wrap {
		display: flex !important;
	}

	#site-navigation-wrap #site-navigation,
	#site-navigation-wrap .navigation {
		width: 100%;
		height: 100%;
		display: flex;
	}

	#site-navigation-wrap .dropdown-menu {
		display: flex;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-end;
		width: 100%;
		float: none;
		margin: 0;
		height: 100%;
		min-height: 64px;
		padding-left: 3.5rem;
		column-gap: 0.35rem;
	}

	#site-navigation-wrap .dropdown-menu > li {
		float: none;
		display: flex;
		align-items: center;
		height: 100%;
	}

	#site-navigation-wrap .dropdown-menu > li:not(.lang-item):not(:has(+ li.lang-item)) {
		flex: 0 0 auto;
		min-width: max-content;
		text-align: center;
	}

	#site-navigation-wrap .dropdown-menu > li:not(.lang-item):not(:has(+ li.lang-item)) > a {
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		height: 100%;
		white-space: nowrap;
		line-height: 1.2 !important;
		padding-left: 0.95em;
		padding-right: 0.95em;
	}

	#site-navigation-wrap .dropdown-menu > li:not(.lang-item):not(:has(+ li.lang-item)) > a .text-wrap {
		white-space: nowrap;
		line-height: 1.2;
	}

	#site-navigation-wrap .dropdown-menu > li:not(.lang-item):has(+ li.lang-item),
	#site-navigation-wrap .dropdown-menu > li.lang-item {
		flex: 0 0 auto;
	}

	#site-header-inner > .oceanwp-social-menu {
		display: none;
	}

	#site-navigation-wrap .dropdown-menu > .oceanwp-social-menu {
		display: flex !important;
		align-items: center;
		align-self: center;
		flex: 0 0 auto;
		position: static !important;
		right: auto !important;
		float: none;
		z-index: auto;
		height: auto;
		margin: 0 0.15em 0 0.85em;
	}

	#site-navigation-wrap .dropdown-menu > .oceanwp-social-menu .social-menu-inner {
		display: flex;
		align-items: center;
		height: auto;
	}

	#site-navigation-wrap .dropdown-menu > .oceanwp-social-menu ul {
		display: flex;
		align-items: center;
		gap: 0.15em;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	#site-navigation-wrap .dropdown-menu > .oceanwp-social-menu ul li {
		float: none;
		display: flex;
		align-items: center;
		margin: 0;
	}

	#site-navigation-wrap .dropdown-menu > .oceanwp-social-menu ul li a {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 0.28em;
		color: #231f1d;
		font-size: 16px;
		line-height: 1;
	}

	#site-navigation-wrap .dropdown-menu > .oceanwp-social-menu ul li a:hover {
		color: #a5a4a4;
	}

	#site-navigation-wrap .dropdown-menu > li:not(.lang-item):has(+ li.lang-item) {
		margin-left: 0.85em;
		align-self: stretch;
		align-items: stretch;
		padding: 0;
		margin-right: 0.35em;
		min-width: 0;
	}

	#site-navigation-wrap .dropdown-menu > li:not(.lang-item):has(+ li.lang-item) + li.lang-item {
		margin-left: 0;
	}

	#site-navigation-wrap .dropdown-menu > li.lang-item > a {
		padding-left: 0.65em;
		padding-right: 0.65em;
		display: flex;
		align-items: center;
		height: 100%;
		font-size: inherit;
		line-height: 1.2 !important;
		color: inherit;
		width: auto;
		background-color: transparent;
		overflow: visible;
		white-space: nowrap;
	}

	#site-navigation-wrap .dropdown-menu > li:not(.lang-item):has(+ li.lang-item) > a {
		display: block;
		width: 1px;
		min-width: 1px;
		padding: 0 !important;
		margin: 0;
		font-size: 0 !important;
		line-height: 0 !important;
		color: transparent !important;
		background-color: #ffffff;
		height: auto;
		align-self: stretch;
		overflow: hidden;
		white-space: normal;
	}
}

@media only screen and (min-width: 960px) and (max-width: 1280px) {
	#site-navigation-wrap .dropdown-menu > li:not(.lang-item):not(:has(+ li.lang-item)) > a {
		padding-left: 0.7em;
		padding-right: 0.7em;
		font-size: 14px !important;
	}

	#site-navigation-wrap .dropdown-menu > li.lang-item > a {
		padding-left: 0.45em;
		padding-right: 0.45em;
	}
}

@media only screen and (min-width: 960px) and (max-width: 1100px) {
	#site-navigation-wrap .dropdown-menu > li:not(.lang-item):not(:has(+ li.lang-item)) > a {
		padding-left: 0.45em;
		padding-right: 0.45em;
		font-size: 13px !important;
	}
}

@media only screen and (max-width: 959px) {
	#site-navigation-wrap {
		display: none !important;
	}

	#site-header.center-logo #site-logo,
	body.default-breakpoint .center-logo #site-logo {
		position: static !important;
		left: auto !important;
		transform: none !important;
		float: none !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
	}
}

#site-navigation .nav-arrow,
#site-navigation .dropdown-toggle,
#mobile-dropdown .nav-arrow,
#mobile-dropdown .dropdown-toggle::before {
	display: none !important;
}

/* ------------------------------------------------------------------
   Sidr panel — full-height left sidebar below header
   ------------------------------------------------------------------ */
:root {
	--zucali-header-bottom: 64px;
}

#sidr {
	top: var(--zucali-header-bottom, 64px) !important;
	height: calc(100vh - var(--zucali-header-bottom, 64px)) !important;
	width: 100% !important;
	max-width: 480px !important;
	background-color: #e7e7e7 !important;
	color: #231f1d !important;
	box-shadow: 10px 0 24px rgba(119, 118, 118, 0.35);
	font-family: EngelLight, sans-serif;
}

#sidr.sidr.left {
	left: -480px;
	right: auto;
}

.admin-bar #sidr {
	top: var(--zucali-header-bottom, 64px) !important;
	height: calc(100vh - var(--zucali-header-bottom, 64px)) !important;
}

@media screen and (max-width: 782px) {
	.admin-bar #sidr {
		top: var(--zucali-header-bottom, 64px) !important;
		height: calc(100vh - var(--zucali-header-bottom, 64px)) !important;
	}
}

#sidr a {
	color: #231f1d;
}

#sidr a:hover,
#sidr .sidr-class-menu-item-has-children.active > a {
	color: #777676;
}

.sidr-class-dropdown-menu > li,
.sidr-class-dropdown-menu li {
	border-bottom: 1px solid rgba(119, 118, 118, 0.25);
}

#sidr .sidr-class-dropdown-menu li a,
#sidr .sidr-class-dropdown-menu > li > a,
#sidr .sidr-class-dropdown-menu ul li a {
	display: block;
	position: relative;
	font-family: EngelLight, sans-serif !important;
	font-size: 18px !important;
	line-height: 1.5;
	padding: 14px 24px;
}

#sidr .sidr-class-dropdown-menu ul li a {
	padding-left: 36px;
}

#sidr .sidr-class-dropdown-menu ul ul li a {
	padding-left: 52px;
}

/* Remove arrow prefixes on nested items */
.sidr-class-dropdown-menu ul a::before,
.sidr-class-menu-item a::before {
	display: none !important;
	content: none !important;
}

/* Hide separate toggle control — whole row is clickable */
.sidr-class-dropdown-toggle {
	display: none !important;
}

.sidr-class-menu-item-has-children > a {
	padding-right: 48px !important;
}

/* Plus / minus indicator on parent items */
.sidr-class-menu-item-has-children > a::after {
	content: "+";
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	font-family: EngelLight, sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1;
	color: #777676;
	pointer-events: none;
}

.sidr-class-menu-item-has-children.active > a::after {
	content: "-";
}

.sidr-class-sub-menu,
.sidr-class-dropdown-menu ul {
	background-color: rgba(0, 0, 0, 0.08) !important;
	border-top: none;
}

.sidr-class-toggle-sidr-close {
	display: none !important;
}

#sidr #mobile-menu-search,
#sidr .sidr-class-mobile-searchform {
	display: none !important;
}

.oceanwp-sidr-overlay {
	top: var(--zucali-header-bottom, 64px) !important;
	height: calc(100vh - var(--zucali-header-bottom, 64px)) !important;
}

/* Guitar page sidebar nav (zucali/navigation-block) */
.nav-component {
	--nav-header-offset: 89px;
	--nav-bottom-offset: 24px;
	top: var(--nav-header-offset) !important;
	transform: none !important;
	width: 250px;
	height: min(720px, calc(100vh - var(--nav-header-offset) - var(--nav-bottom-offset)));
	max-height: calc(100vh - var(--nav-header-offset) - var(--nav-bottom-offset)) !important;
	overflow: visible !important;
}

.nav-component__links {
	position: relative;
	z-index: 1001;
	width: 100%;
	height: 100%;
	max-height: 100% !important;
	min-height: 0 !important;
	margin-top: 1em;
	padding-left: 1.25em !important;
	padding-right: 1.35em;
	padding-top: 3em !important;
	box-sizing: border-box;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
}

.nav-component a {
	width: 100%;
}

.nav-component__current {
	display: none;
}

.nav-component a:hover,
.nav-component a.active {
	width: calc(100% + 1.25em);
	margin-left: -1.25em;
}

.nav-component__strings {
	position: absolute;
	top: 0;
	right: 0.15em;
	bottom: 0;
	width: 4.1em;
	height: 100%;
	z-index: 1000;
	background-image:
		linear-gradient(#777676, #777676),
		linear-gradient(#777676, #777676),
		linear-gradient(#777676, #777676),
		linear-gradient(#777676, #777676),
		linear-gradient(#777676, #777676),
		linear-gradient(#777676, #777676) !important;
	background-size: 1px 100% !important;
	background-repeat: no-repeat !important;
	background-position: 0 0, 20% 0, 40% 0, 60% 0, 80% 0, calc(100% - 1px) 0 !important;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4.5em, #000 calc(100% - 4.5em), transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 4.5em, #000 calc(100% - 4.5em), transparent 100%);
}

.nav-component__links::-webkit-scrollbar {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}

@media only screen and (min-width: 992px) {
	body:has(.nav-component) {
		--nav-sidebar-gutter: 220px;
		--nav-content-top-gutter: 32px;
	}

	body:has(.nav-component) .section-content,
	body:has(.nav-component) .section-quote,
	body:has(.nav-component) .content-block,
	body:has(.nav-component) .section-guitar-carousel,
	body:has(.nav-component) .quote-container,
	body:has(.nav-component) .wp-block-zucali-quote-container,
	body:has(.nav-component) .wp-block-zucali-content-block .content-block {
		margin-right: var(--nav-sidebar-gutter) !important;
		padding-top: calc(3em + var(--nav-content-top-gutter)) !important;
		max-width: calc(100% - var(--nav-sidebar-gutter) - 2rem) !important;
		box-sizing: border-box;
	}

	body:has(.nav-component) .section-content,
	body:has(.nav-component) .section-quote,
	body:has(.nav-component) .quote-container,
	body:has(.nav-component) .wp-block-zucali-quote-container {
		max-width: calc(50% - (var(--nav-sidebar-gutter) / 2)) !important;
	}

	body:has(.nav-component) .guitar-block,
	body:has(.nav-component) .wp-block-zucali-guitar-block .guitar-block {
		width: min(860px, calc(100% - var(--nav-sidebar-gutter) - 3rem));
		max-width: min(860px, calc(100% - var(--nav-sidebar-gutter) - 3rem)) !important;
		margin-left: auto;
		margin-right: calc(var(--nav-sidebar-gutter) + 1.25rem) !important;
		padding-top: 2em !important;
		box-sizing: border-box;
	}

	body:has(.nav-component) .quote-container,
	body:has(.nav-component) .wp-block-zucali-quote-container .quote-container {
		padding-top: calc(36px + var(--nav-content-top-gutter)) !important;
		margin-left: auto !important;
	}

	body:has(.nav-component) .z-template-content .content-block,
	body:has(.nav-component) .z-template-content .quote-container,
	body:has(.nav-component) .z-template-content .wp-block-zucali-quote-container,
	body:has(.nav-component) .z-template-content .wp-block-zucali-content-block .content-block {
		margin-right: 0 !important;
		margin-left: 0 !important;
		max-width: none !important;
	}

	body:has(.nav-component) .z-template-content .content-block {
		padding-top: 48px !important;
	}

	.nav-component__current {
		display: none !important;
	}
}

/* Current-section bar: replaces the guitar sidebar below 992px */
@media only screen and (max-width: 991px) {
	.wp-block-zucali-navigation-block {
		display: block !important;
	}

	body:has(.nav-component) {
		--nav-mobile-bar: 4rem;
	}

	body:has(.nav-component) #main {
		padding-top: var(--nav-mobile-bar);
	}

	body:has(.nav-component) #main [id] {
		scroll-margin-top: calc(var(--zucali-header-bottom, 64px) + var(--nav-mobile-bar) + 0.75rem);
	}

	.nav-component {
		top: var(--zucali-header-bottom, 64px) !important;
		right: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		z-index: 90 !important;
		padding: 0.45rem 0.75rem 0.55rem;
		box-sizing: border-box;
		background-color: #e7e7e7;
		box-shadow: 0 8px 18px rgba(119, 118, 118, 0.28);
	}

	.nav-component__strings {
		display: none !important;
	}

	.nav-component__current {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		width: 100%;
		min-height: 35px;
		margin: 0;
		padding: 0.35rem 1rem;
		border: 1px solid #777676;
		border-radius: 20px;
		background: #777676;
		color: #ffffff;
		font-family: "Cobassi", serif;
		font-size: 14px;
		line-height: 1.2;
		text-align: left;
		cursor: pointer;
		box-sizing: border-box;
		appearance: none;
	}

	.nav-component__current:focus-visible {
		outline: 2px solid #231f1d;
		outline-offset: 2px;
	}

	.nav-component__current-label {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.nav-component__current-chevron {
		flex: 0 0 auto;
		width: 0.5rem;
		height: 0.5rem;
		margin-right: 0.2rem;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-0.15rem) rotate(45deg);
	}

	.nav-component.is-open .nav-component__current-chevron {
		transform: translateY(0.15rem) rotate(-135deg);
	}

	.nav-component__links {
		display: none !important;
		height: auto !important;
		max-height: 60vh !important;
		margin-top: 0.65rem !important;
		padding: 0.15rem 0.15rem 0.25rem !important;
	}

	.nav-component.is-open .nav-component__links {
		display: block !important;
	}

	.nav-component a,
	.nav-component a:hover,
	.nav-component a.active {
		width: 100% !important;
		margin-left: 0 !important;
	}
}
