/* ==========================================================================
   Header: top bar, sticky navigation, mobile drawer
   ========================================================================== */

.pr-header {
	position: sticky;
	top: 0;
	z-index: 120;
	background: var(--pr-black);
	color: var(--pr-white);
}

body.admin-bar .pr-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .pr-header {
		top: 46px;
	}
}

.pr-pulse {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pr-green-bright);
	flex: none;
}

.pr-pulse::after {
	content: "";
	position: absolute;
	inset: -4px;
	border: 1px solid var(--pr-green-bright);
	border-radius: 50%;
	opacity: 0;
	animation: pr-pulse 2.4s ease-out infinite;
}

@keyframes pr-pulse {
	0% {
		opacity: 0.7;
		transform: scale(0.6);
	}
	70%,
	100% {
		opacity: 0;
		transform: scale(1.5);
	}
}

.pr-header__bar {
	position: relative;
	z-index: 126;
	background: linear-gradient(180deg, rgba(11, 18, 14, 0.98), rgba(7, 11, 9, 0.96));
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	transition: box-shadow 0.3s ease, background 0.3s ease;
}

.pr-header__bar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(28, 198, 115, 0.5), transparent);
	pointer-events: none;
}

.pr-header.is-scrolled .pr-header__bar {
	background: rgba(6, 10, 8, 0.98);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.pr-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	width: min(1360px, calc(100% - var(--pr-gutter) * 2));
	min-height: var(--pr-header-height);
}

/* Brand ------------------------------------------------------------------- */

.pr-brand {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	padding: 4px;
	margin: -4px;
	border-radius: 18px;
	color: var(--pr-white);
	text-decoration: none;
	flex: none;
	transition: transform 0.25s ease;
}

.pr-brand:hover {
	color: var(--pr-white);
}

.pr-brand:focus-visible {
	outline: 2px solid var(--pr-green-bright);
	outline-offset: 4px;
}

.pr-brand__mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 16px;
	overflow: hidden;
	isolation: isolate;
	background: radial-gradient(120% 120% at 22% 0%, #35e08a 0%, var(--pr-green) 46%, var(--pr-green-dark) 100%);
	color: #04150c;
	box-shadow:
		0 10px 24px rgba(18, 161, 91, 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.45),
		inset 0 -3px 8px rgba(3, 40, 22, 0.32);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pr-brand__mark::after {
	content: "";
	position: absolute;
	inset: 5px;
	border: 1px solid rgba(4, 21, 12, 0.16);
	border-radius: 11px;
	pointer-events: none;
	z-index: 1;
}

.pr-brand__mark-glow {
	position: absolute;
	top: -45%;
	right: -35%;
	width: 80%;
	height: 80%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 68%);
	z-index: 0;
}

.pr-brand:hover .pr-brand__mark {
	transform: translateY(-2px) rotate(-3deg);
	box-shadow:
		0 15px 32px rgba(28, 198, 115, 0.44),
		inset 0 1px 0 rgba(255, 255, 255, 0.45),
		inset 0 -3px 8px rgba(3, 40, 22, 0.32);
}

.pr-brand__mark .pr-icon {
	position: relative;
	z-index: 2;
	width: 27px;
	height: 27px;
	stroke-width: 3.4;
}

.pr-brand__logo {
	display: block;
	max-width: 210px;
}

.pr-brand__logo img {
	max-height: 52px;
	width: auto;
}

.pr-brand__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1;
}

.pr-brand__name {
	color: var(--pr-white);
	font-size: 1.16rem;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
	white-space: nowrap;
}

.pr-brand__sub {
	margin-top: 5px;
	color: var(--pr-green-bright);
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Navigation -------------------------------------------------------------- */

.pr-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.pr-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pr-nav__item {
	position: relative;
}

.pr-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 10px 13px;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, background 0.2s ease;
}

.pr-nav__link::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 5px;
	height: 2px;
	border-radius: 2px;
	background: var(--pr-green-bright);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.pr-nav__link:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--pr-white);
}

.pr-nav__item.is-current > .pr-nav__link,
.pr-nav__item.current-menu-item > .pr-nav__link {
	color: var(--pr-white);
}

.pr-nav__item.is-current > .pr-nav__link::after,
.pr-nav__item.current-menu-item > .pr-nav__link::after {
	transform: scaleX(1);
}

.pr-nav__item.has-sub > .pr-nav__link {
	padding-right: 26px;
}

.pr-nav__item.has-sub > .pr-nav__link::before {
	content: "";
	position: absolute;
	right: 13px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.65;
}

.pr-nav__sub {
	position: absolute;
	left: 0;
	top: calc(100% + 10px);
	min-width: 210px;
	margin: 0;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background: #0c1511;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.pr-nav__item.has-sub:hover > .pr-nav__sub,
.pr-nav__item.has-sub:focus-within > .pr-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pr-nav__sub .pr-nav__item {
	width: 100%;
}

.pr-nav__sub .pr-nav__link {
	display: block;
	width: 100%;
	border-radius: 9px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.84rem;
	white-space: normal;
}

.pr-nav__sub .pr-nav__link:hover {
	background: rgba(18, 161, 91, 0.14);
	color: var(--pr-green-bright);
}

.pr-nav__sub .pr-nav__link::after {
	display: none;
}

.pr-nav__mobile-cta,
.pr-nav__head,
.pr-sub-toggle {
	display: none;
}

/* Header actions ---------------------------------------------------------- */

.pr-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}

.pr-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--pr-white);
	text-decoration: none;
}

.pr-header__phone:hover {
	color: var(--pr-white);
}

.pr-header__phone-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(18, 161, 91, 0.4);
	border-radius: 50%;
	background: rgba(18, 161, 91, 0.12);
	color: var(--pr-green-bright);
}

.pr-header__phone-icon .pr-icon {
	width: 17px;
	height: 17px;
}

.pr-header__phone-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.pr-header__phone-text small {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pr-header__phone-text strong {
	font-size: 0.85rem;
	font-weight: 700;
}

.pr-header__phone-text--user small {
	max-width: 132px;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.7rem;
	letter-spacing: 0;
	text-overflow: ellipsis;
	text-transform: none;
	white-space: nowrap;
}

.pr-header__cta {
	padding: 12px 22px;
	font-size: 0.84rem;
	box-shadow: 0 12px 28px rgba(18, 161, 91, 0.3);
}

.pr-header__portal {
	display: none;
	align-items: center;
	flex: none;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid rgba(28, 198, 115, 0.4);
	border-radius: 12px;
	background: rgba(28, 198, 115, 0.12);
	color: var(--pr-white);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.pr-header__portal:hover {
	border-color: rgba(28, 198, 115, 0.7);
	background: rgba(28, 198, 115, 0.2);
	color: var(--pr-white);
}

.pr-header__portal-icon {
	display: grid;
	place-items: center;
}

.pr-header__portal-icon .pr-icon {
	width: 17px;
	height: 17px;
	color: var(--pr-green-bright);
}

/* Compact header on narrower viewports ------------------------------------ */

@media (max-width: 1439px) {
	.pr-header__inner {
		gap: 20px;
	}

	.pr-header__phone-text {
		display: none;
	}

	.pr-nav__link {
		padding: 9px 8px;
		font-size: 0.85rem;
	}

	.pr-nav__link::after {
		left: 8px;
		right: 8px;
	}

	.pr-nav__item.has-sub > .pr-nav__link {
		padding-right: 20px;
	}

	.pr-nav__item.has-sub > .pr-nav__link::before {
		right: 8px;
	}

	.pr-header__cta {
		padding: 11px 18px;
	}
}

/* Mobile toggle ----------------------------------------------------------- */

.pr-nav-toggle {
	display: none;
	position: relative;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--pr-white);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.pr-nav-toggle:hover {
	border-color: rgba(28, 198, 115, 0.5);
	background: rgba(28, 198, 115, 0.12);
}

.pr-nav-toggle__bar {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	width: 20px;
	height: 2px;
	margin: 0;
	border-radius: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.pr-nav-toggle__bar:nth-child(1) {
	transform: translate(-50%, -7px);
}

.pr-nav-toggle__bar:nth-child(3) {
	transform: translate(-50%, 7px);
}

body.pr-nav-locked {
	overflow: hidden;
}

.pr-nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 125;
	border: 0;
	background:
		radial-gradient(120% 100% at 100% 0%, rgba(18, 161, 91, 0.2), transparent 55%),
		rgba(4, 10, 7, 0.72);
	backdrop-filter: blur(6px) saturate(120%);
	-webkit-backdrop-filter: blur(6px) saturate(120%);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* Mobile drawer ----------------------------------------------------------- */

@media (max-width: 1199px) {
	.pr-nav-toggle {
		display: grid;
	}

	.pr-header__phone,
	.pr-header__cta {
		display: none;
	}

	.pr-header__portal {
		display: inline-flex;
	}

	.pr-nav {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 130;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		width: min(392px, 90vw);
		height: 100dvh;
		margin: 0;
		padding: 82px 24px 28px;
		border-left: 1px solid rgba(28, 198, 115, 0.16);
		border-radius: 26px 0 0 26px;
		background:
			radial-gradient(120% 55% at 100% 0%, rgba(28, 198, 115, 0.2), transparent 62%),
			radial-gradient(90% 45% at 0% 100%, rgba(18, 161, 91, 0.12), transparent 68%),
			linear-gradient(180deg, #0b1310 0%, #070c0a 100%);
		box-shadow:
			-40px 0 90px rgba(0, 0, 0, 0.55),
			inset 1px 0 0 rgba(255, 255, 255, 0.06);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: rgba(28, 198, 115, 0.35) transparent;
		transform: translateX(105%);
		transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
	}

	.pr-nav__head {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 7px;
		margin-bottom: 14px;
		padding: 0 52px 14px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	}

	.pr-nav__eyebrow {
		color: rgba(255, 255, 255, 0.42);
		font-size: 0.66rem;
		font-weight: 700;
		letter-spacing: 0.24em;
		text-transform: uppercase;
	}

	.pr-nav__head-note {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		color: rgba(255, 255, 255, 0.55);
		font-size: 0.72rem;
		text-align: right;
	}

	.pr-header.is-nav-open .pr-nav {
		transform: translateX(0);
	}

	.pr-header.is-nav-open .pr-nav-backdrop {
		opacity: 1;
		visibility: visible;
	}

	.pr-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.pr-nav__item {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.pr-nav__link,
	.pr-nav__sub .pr-nav__link {
		position: relative;
		display: flex;
		align-items: center;
		width: 100%;
		padding: 14px 16px;
		border-radius: 12px;
		color: rgba(255, 255, 255, 0.82);
		font-size: 0.95rem;
		font-weight: 600;
		white-space: normal;
		transition: background 0.2s ease, color 0.2s ease;
	}

	.pr-nav__link:active {
		background: rgba(28, 198, 115, 0.12);
		color: var(--pr-white);
	}

	.pr-nav__link::after {
		display: none;
	}

	.pr-nav__item.is-current > .pr-nav__link,
	.pr-nav__item.current-menu-item > .pr-nav__link {
		background: linear-gradient(90deg, rgba(28, 198, 115, 0.16), transparent 85%);
		color: var(--pr-white);
		box-shadow: inset 2px 0 0 var(--pr-green-bright);
	}

	.pr-nav__item.has-sub > .pr-nav__link {
		padding-right: 60px;
	}

	.pr-nav__item.has-sub > .pr-nav__link::before {
		display: none;
	}

	.pr-sub-toggle {
		position: absolute;
		top: 50%;
		right: 8px;
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.04);
		color: rgba(255, 255, 255, 0.72);
		cursor: pointer;
		transform: translateY(-50%);
		transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
	}

	.pr-sub-toggle__icon {
		display: block;
		width: 8px;
		height: 8px;
		margin-top: -3px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.25s ease, margin 0.25s ease;
	}

	.pr-nav__item.is-sub-open > .pr-sub-toggle {
		border-color: rgba(28, 198, 115, 0.45);
		background: rgba(28, 198, 115, 0.14);
		color: var(--pr-green-bright);
	}

	.pr-nav__item.is-sub-open > .pr-sub-toggle .pr-sub-toggle__icon {
		margin-top: 3px;
		transform: rotate(-135deg);
	}

	.pr-nav__sub {
		position: static;
		min-width: 0;
		max-height: 0;
		margin: 0;
		padding: 0 0 0 16px;
		border: 0;
		border-left: 1px solid rgba(28, 198, 115, 0.35);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		list-style: none;
		opacity: 0;
		visibility: visible;
		overflow: hidden;
		transform: none;
		transition: max-height 0.34s ease, opacity 0.24s ease;
	}

	.pr-nav__item.is-sub-open > .pr-nav__sub {
		max-height: 520px;
		opacity: 1;
	}

	.pr-nav__sub .pr-nav__item {
		border-bottom: 0;
	}

	.pr-nav__sub .pr-nav__link {
		padding: 11px 14px;
		border-radius: 9px;
		color: rgba(255, 255, 255, 0.66);
		font-size: 0.88rem;
		font-weight: 500;
	}

	.pr-nav__sub .pr-nav__link:hover {
		background: rgba(255, 255, 255, 0.05);
		color: var(--pr-white);
	}

	.pr-nav__mobile-cta {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin-top: auto;
		padding-top: 24px;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.pr-nav__mobile-cta .pr-btn {
		justify-content: center;
		width: 100%;
		padding: 14px 20px;
	}

	.pr-nav__mobile-link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 12px 18px;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.03);
		color: rgba(255, 255, 255, 0.76);
		font-size: 0.88rem;
		font-weight: 600;
		text-decoration: none;
		transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
	}

	.pr-nav__mobile-link:hover {
		border-color: rgba(28, 198, 115, 0.4);
		background: rgba(28, 198, 115, 0.1);
		color: var(--pr-white);
	}

	.pr-nav__mobile-link .pr-icon {
		width: 17px;
		height: 17px;
		color: var(--pr-green-bright);
	}

	.pr-header.is-nav-open .pr-nav-toggle__bar:nth-child(1) {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	.pr-header.is-nav-open .pr-nav-toggle__bar:nth-child(2) {
		opacity: 0;
	}

	.pr-header.is-nav-open .pr-nav-toggle__bar:nth-child(3) {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	.pr-header.is-nav-open .pr-nav-toggle {
		position: relative;
		z-index: 135;
		border-color: rgba(18, 161, 91, 0.5);
	}
}

@media (max-width: 640px) {
	.pr-brand {
		gap: 10px;
	}

	.pr-header__actions {
		gap: 10px;
	}

	.pr-header__portal {
		gap: 6px;
		padding: 9px 11px;
		font-size: 0.76rem;
	}

	.pr-header__portal-icon .pr-icon {
		width: 16px;
		height: 16px;
	}

	.pr-brand__name {
		font-size: 1rem;
	}

	.pr-brand__sub {
		margin-top: 4px;
		font-size: 0.56rem;
		letter-spacing: 0.26em;
	}

	.pr-brand__mark {
		width: 42px;
		height: 42px;
		border-radius: 14px;
	}

	.pr-brand__mark .pr-icon {
		width: 23px;
		height: 23px;
	}
}

@media (max-width: 380px) {
	.pr-header__portal {
		padding: 11px;
	}

	.pr-header__portal-text {
		display: none;
	}
}
