html {
	scroll-behavior: smooth;
}

/* Zeus navbar — use with [zeus_nav] in Astra header */

/* Play nicely inside Astra header HTML widgets */
.ast-header-html .zeus-nav,
.ast-builder-html-element .zeus-nav,
.custom-html-widget .zeus-nav,
.widget_text .zeus-nav {
	margin: 0;
}

.ast-header-html p:has(.zeus-nav),
.ast-builder-html-element p:has(.zeus-nav),
.widget_text p:has(.zeus-nav) {
	margin: 0;
}

.zeus-nav {
	--zeus-navy: #113754;
	--zeus-orange: #F0803C;
	--zeus-ink: #262626;
	--zeus-muted: #848FA5;
	--zeus-white: #ffffff;
	--zeus-font: Inter, InterFallback, sans-serif;
	position: relative;
	z-index: 100;
	width: 100%;
	background: var(--zeus-white);
	box-shadow: 0 4px 18px rgba(17, 55, 84, 0.06);
	font-family: var(--zeus-font);
	-webkit-font-smoothing: antialiased;
}

.zeus-nav *,
.zeus-nav *::before,
.zeus-nav *::after {
	box-sizing: border-box;
}

.zeus-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
	padding: 14px 0;
}

.zeus-nav__brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	color: var(--zeus-navy);
	transition: opacity 0.25s ease;
}

.zeus-nav__brand:hover,
.zeus-nav__brand:focus {
	opacity: 0.88;
	color: var(--zeus-navy);
}

.zeus-nav__logo {
	display: block;
	width: auto;
	height: 60px;
	object-fit: contain;
}

.zeus-nav__panel {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 28px;
	flex: 1;
}

.zeus-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zeus-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: #5b6575;
	text-decoration: none;
	transition: color 0.25s ease;
}

.zeus-nav__link::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 2px;
	height: 2px;
	background: var(--zeus-orange);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.zeus-nav__link:hover,
.zeus-nav__link:focus {
	color: var(--zeus-navy);
}

.zeus-nav__link:hover::after,
.zeus-nav__link:focus::after,
.zeus-nav__link.is-active::after {
	transform: scaleX(1);
}

.zeus-nav__link.is-active {
	color: var(--zeus-navy);
	font-weight: 600;
}

.zeus-nav__item--accent {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding-left: 18px;
	border-left: 2px solid var(--zeus-navy);
}

.zeus-nav__link--accent,
.zeus-nav__link--accent:visited {
	color: var(--zeus-orange);
	font-weight: 600;
}

.zeus-nav__link--accent::after {
	background: var(--zeus-orange);
}

.zeus-nav__link--accent:hover,
.zeus-nav__link--accent:focus,
.zeus-nav__link--accent.is-active {
	color: #e06f2c;
}

.zeus-nav__actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.zeus-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 8px;
	border: 1.5px solid transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.zeus-nav__btn--solid,
.zeus-nav__btn--solid:visited {
	background: var(--zeus-orange);
	border-color: var(--zeus-orange
	);
	color: var(--zeus-white);
}

.zeus-nav__btn--solid:hover,
.zeus-nav__btn--solid:focus {
	color: var(--zeus-white);
	box-shadow: 0 10px 22px rgba(240, 128, 60, 0.28);
	transform: translateY(-1px);
	filter: brightness(0.98);
}

.zeus-nav__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
}

.zeus-nav__burger,
.zeus-nav__burger::before,
.zeus-nav__burger::after {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--zeus-navy);
	border-radius: 2px;
	transition: transform 0.28s ease, opacity 0.28s ease;
}

.zeus-nav__burger {
	position: relative;
}

.zeus-nav__burger::before,
.zeus-nav__burger::after {
	content: "";
	position: absolute;
	left: 0;
}

.zeus-nav__burger::before {
	top: -6px;
}

.zeus-nav__burger::after {
	top: 6px;
}

.zeus-nav.is-open .zeus-nav__burger {
	background: transparent;
}

.zeus-nav.is-open .zeus-nav__burger::before {
	top: 0;
	transform: rotate(45deg);
}

.zeus-nav.is-open .zeus-nav__burger::after {
	top: 0;
	transform: rotate(-45deg);
}

.zeus-nav .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 980px) {
	.zeus-nav__inner {
		width: min(1180px, calc(100% - 32px));
		justify-content: flex-start;
		gap: 12px;
		padding: 12px 0;
	}

	.zeus-nav__logo {
		height: 34px;
	}

	/* wpautop empty paragraphs between shortcode tags */
	.zeus-nav__inner > p {
		display: none !important;
	}

	.zeus-nav__toggle {
		display: inline-flex;
		margin-left: auto;
		flex-shrink: 0;
	}

	.zeus-nav__panel {
		position: absolute;
		top: calc(100% - 2px);
		left: 0;
		right: 0;
		flex: none;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 12px 16px 20px;
		background: var(--zeus-white);
		border-bottom: 1px solid rgba(17, 55, 84, 0.08);
		box-shadow: 0 18px 40px rgba(17, 55, 84, 0.1);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		pointer-events: none;
		transition:
			opacity 0.28s ease,
			transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0.28s ease;
	}

	.zeus-nav.is-open .zeus-nav__panel {
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
	}

	.zeus-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.zeus-nav__link {
		padding: 12px 10px;
	}

	.zeus-nav__link::after {
		left: 10px;
		right: auto;
		width: 18px;
		bottom: 10px;
	}

	.zeus-nav__item--accent {
		margin-left: 0;
		margin-top: 8px;
		padding-left: 0;
		padding-top: 10px;
		border-left: 0;
		border-top: 1px solid rgba(17, 55, 84, 0.12);
	}

	.zeus-nav__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.zeus-nav__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.zeus-nav *,
	.zeus-nav *::before,
	.zeus-nav *::after {
		animation: none !important;
		transition: none !important;
	}
}
