/**
 * A2Z Woo Solutions
 *
 * Navigation styles.
 *
 * @package A2Z_Woo_Solutions
 */

/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
	position: sticky;
	top: 0;

	z-index: 99999;

	width: 100%;
	min-height: 72px;

	background: rgba(255, 255, 255, 0.97);

	border-bottom: 1px solid var(--bp-border);

	box-shadow:
		0 4px 25px rgba(33, 25, 201, 0.06);

	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);

	isolation: isolate;
}

.navbar {
	position: relative;

	width: 100%;
	min-height: 72px;

	overflow: visible;
}

.navbar-container {
	position: relative;

	width: min(1200px, calc(100% - 48px));
	min-height: 72px;

	margin: 0 auto;

	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 40px;

	overflow: visible;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
	width: 100%;
}

.navbar-container {
	position: relative;

	width: min(1200px, calc(100% - 48px));
	min-height: 72px;

	margin: 0 auto;

	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 40px;
}


/* =========================================================
   BRAND WRAPPER
   ========================================================= */

.navbar-brand-wrapper {
	display: flex;
	align-items: center;

	min-width: 0;

	gap: 16px;
}


/* =========================================================
   BRAND
   ========================================================= */

.navbar-brand {
	display: inline-flex;
	align-items: baseline;

	color: var(--bp-text);

	font-size: 21px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.7px;

	text-decoration: none;
	white-space: nowrap;

	transition:
		transform 200ms ease,
		opacity 200ms ease;
}

.navbar-brand-a2z {
	color: var(--bp-blue);
}

.navbar-brand-woo {
	margin-left: 3px;

	color: var(--bp-pink);
}

.navbar-brand-solutions {
	margin-left: 4px;

	color: var(--bp-text);
	font-weight: 700;
}

.navbar-brand:hover {
	transform: translateY(-1px);
	opacity: 0.88;
}


/* =========================================================
   BRAND DIVIDER
   ========================================================= */

.navbar-brand-divider {
	display: block;

	width: 1px;
	height: 28px;

	background: var(--bp-border);
}


/* =========================================================
   BANNER IMAGE
   ========================================================= */

.navbar-banner {
	display: flex;
	align-items: center;

	max-width: 190px;
	max-height: 42px;

	text-decoration: none;

	transition:
		opacity 200ms ease,
		transform 200ms ease;
}

.navbar-banner img {
	display: block;

	width: auto;
	max-width: 190px;
	height: auto;
	max-height: 42px;

	object-fit: contain;
}

.navbar-banner:hover {
	opacity: 0.82;
	transform: translateY(-1px);
}


/* =========================================================
   NAVIGATION WRAPPER
   ========================================================= */

.navbar-menu-wrapper {
	display: flex;
	align-items: center;
}


/* =========================================================
   NAVIGATION MENU
   ========================================================= */

.navbar-menu {
	display: flex;
	align-items: center;
	gap: 5px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.navbar-menu li {
	margin: 0;
	padding: 0;
}

.navbar-menu a {
	position: relative;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 0 15px;

	color: var(--bp-text-muted);

	font-size: 14px;
	font-weight: 600;
	line-height: 1;

	text-decoration: none;

	border-radius: 8px;

	transition:
		color 180ms ease,
		background-color 180ms ease,
		transform 180ms ease;
}

.navbar-menu a:hover {
	color: var(--bp-blue);

	background: var(--bp-blue-soft);

	transform: translateY(-1px);
}


/* =========================================================
   ACTIVE PAGE
   ========================================================= */

.navbar-menu a.active,
.navbar-menu .current-menu-item > a,
.navbar-menu .current_page_item > a {
	color: var(--bp-blue);

	background: var(--bp-blue-pale);
}


/* =========================================================
   NAVIGATION UNDERLINE
   ========================================================= */

.navbar-menu a::after {
	content: "";

	position: absolute;

	left: 15px;
	right: 15px;
	bottom: 5px;

	height: 2px;

	background: linear-gradient(
		90deg,
		var(--bp-blue),
		var(--bp-pink)
	);

	border-radius: 999px;

	transform: scaleX(0);
	transform-origin: center;

	transition: transform 220ms ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after,
.navbar-menu .current-menu-item > a::after,
.navbar-menu .current_page_item > a::after {
	transform: scaleX(1);
}


/* =========================================================
   MOBILE TOGGLE
   ========================================================= */

.navbar-toggle {
	display: none;

	width: 42px;
	height: 42px;

	padding: 0;

	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;

	background: var(--bp-white);

	border: 1px solid var(--bp-border);

	border-radius: 9px;

	cursor: pointer;

	transition:
		background 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.navbar-toggle span {
	display: block;

	width: 19px;
	height: 2px;

	background: var(--bp-text);

	border-radius: 999px;

	transition:
		transform 220ms ease,
		opacity 180ms ease,
		background 180ms ease;
}

.navbar-toggle:hover {
	background: var(--bp-blue-soft);

	border-color: var(--bp-border-blue);

	box-shadow:
		0 5px 15px rgba(33, 25, 201, 0.08);
}


/* =========================================================
   MOBILE TOGGLE — ACTIVE
   ========================================================= */

.navbar-toggle.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.is-active span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.navbar-toggle.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.navbar-toggle.is-active span {
	background: var(--bp-blue);
}


/* =========================================================
   FOCUS STATES
   ========================================================= */

.navbar-brand:focus-visible,
.navbar-banner:focus-visible,
.navbar-menu a:focus-visible,
.navbar-toggle:focus-visible {
	outline: 3px solid var(--bp-pink-light);
	outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

	.navbar-container {
		width: min(100% - 40px, 820px);
		gap: 25px;
	}

	.navbar-brand-wrapper {
		gap: 12px;
	}

	.navbar-brand {
		font-size: 19px;
	}

	.navbar-brand-divider {
		height: 24px;
	}

	.navbar-banner {
		max-width: 150px;
	}

	.navbar-banner img {
		max-width: 150px;
		max-height: 36px;
	}

	.navbar-menu {
		gap: 2px;
	}

	.navbar-menu a {
		padding: 0 11px;
		font-size: 13px;
	}

	.navbar-menu a::after {
		left: 11px;
		right: 11px;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

	.site-header {
		background: rgba(255, 255, 255, 0.98);
	}

	.navbar-container {
		width: calc(100% - 32px);
		min-height: 68px;
	}

	.navbar-brand-wrapper {
		gap: 10px;
	}

	.navbar-brand {
		font-size: 18px;
	}

	.navbar-brand-divider {
		height: 22px;
	}

	.navbar-banner {
		max-width: 120px;
	}

	.navbar-banner img {
		max-width: 120px;
		max-height: 32px;
	}

	.navbar-toggle {
		display: flex;
		flex-shrink: 0;
	}

	.navbar-menu-wrapper {
		position: absolute;

		top: calc(100% + 10px);
		left: 0;
		right: 0;

		display: flex;
		flex-direction: column;
		align-items: stretch;

		padding: 12px;

		background: rgba(255, 255, 255, 0.98);

		border: 1px solid var(--bp-border);

		border-radius: 14px;

		box-shadow:
			0 20px 50px rgba(33, 25, 201, 0.1);

		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);

		opacity: 0;
		visibility: hidden;

		transform:
			translateY(-10px)
			scale(0.98);

		transform-origin: top center;

		pointer-events: none;

		transition:
			opacity 200ms ease,
			transform 200ms ease,
			visibility 200ms ease;
	}

	.navbar-menu-wrapper.is-open {
		opacity: 1;
		visibility: visible;

		transform:
			translateY(0)
			scale(1);

		pointer-events: auto;
	}

	.navbar-menu {
		width: 100%;

		display: flex;
		flex-direction: column;
		align-items: stretch;

		gap: 3px;
	}

	.navbar-menu li {
		width: 100%;
	}

	.navbar-menu a {
		width: 100%;
		min-height: 46px;

		justify-content: flex-start;

		padding: 0 15px;

		font-size: 14px;

		border-radius: 8px;
	}

	.navbar-menu a::after {
		left: 15px;
		right: auto;
		bottom: 7px;

		width: 25px;
	}

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

	.navbar-container {
		width: calc(100% - 24px);
	}

	.navbar-brand {
		font-size: 17px;
	}

	.navbar-brand-solutions {
		display: none;
	}

	.navbar-brand-divider {
		height: 20px;
	}

	.navbar-banner {
		max-width: 105px;
	}

	.navbar-banner img {
		max-width: 105px;
		max-height: 29px;
	}

	.navbar-toggle {
		width: 40px;
		height: 40px;
	}

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 350px) {

	.navbar-brand-wrapper {
		gap: 7px;
	}

	.navbar-brand {
		font-size: 16px;
	}

	.navbar-brand-woo {
		margin-left: 2px;
	}

	.navbar-banner {
		max-width: 90px;
	}

	.navbar-banner img {
		max-width: 90px;
		max-height: 26px;
	}

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.navbar-brand,
	.navbar-banner,
	.navbar-menu a,
	.navbar-menu a::after,
	.navbar-toggle,
	.navbar-toggle span,
	.navbar-menu-wrapper {
		transition: none;
	}

}