/* PT Pro Navbar — scoped styles, won't leak into or clash with theme/plugin CSS */

.ptpn-wrapper {
	--ptpn-accent: #3E84DC;
	--ptpn-topbar-bg: #3E84DC;
	--ptpn-topbar-text: #ffffff;
	font-family: inherit;
	position: relative;
	z-index: 999;
	width: 100%;
}

/* ---------- Top contact bar ---------- */
.ptpn-topbar {
	background: var(--ptpn-topbar-bg);
	color: var(--ptpn-topbar-text);
	font-size: 14px;
	transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}

.ptpn-topbar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.ptpn-topbar-left {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.ptpn-topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	opacity: 0.95;
}

.ptpn-topbar-item a {
	color: var(--ptpn-topbar-text);
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.ptpn-topbar-item a:hover {
	opacity: 0.75;
}

.ptpn-topbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ptpn-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ptpn-topbar-text);
	opacity: 0.9;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.ptpn-social:hover {
	transform: translateY(-2px) scale(1.1);
	opacity: 1;
}

.ptpn-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/* ---------- Main bar ---------- */
.ptpn-mainbar {
	background: #ffffff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.ptpn-mainbar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.ptpn-logo a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.ptpn-logo img {
	max-height: 44px;
	width: auto;
	display: block;
	transition: transform 0.3s ease;
}

.ptpn-logo-text {
	font-size: 24px;
	font-weight: 700;
	color: #111;
	letter-spacing: -0.02em;
	transition: color 0.3s ease;
}

.ptpn-logo a:hover .ptpn-logo-text {
	color: var(--ptpn-accent);
}

.ptpn-logo a:hover img {
	transform: scale(1.04);
}

/* ---------- Nav menu ---------- */
.ptpn-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.ptpn-menu {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ptpn-menu li {
	position: relative;
}

.ptpn-menu li > a {
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	padding: 8px 2px;
	position: relative;
	display: inline-block;
	transition: color 0.3s ease;
}

.ptpn-menu li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--ptpn-accent);
	transition: width 0.3s ease;
}

.ptpn-menu li > a:hover,
.ptpn-menu li.current-menu-item > a {
	color: var(--ptpn-accent);
}

.ptpn-menu li > a:hover::after,
.ptpn-menu li.current-menu-item > a::after {
	width: 100%;
}

/* Submenus, if the connected WP menu has children */
.ptpn-menu ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 200px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 8px;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.25s ease;
	z-index: 10;
}

.ptpn-menu li:hover > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ptpn-menu ul.sub-menu li a {
	display: block;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
}

.ptpn-menu ul.sub-menu li a:hover {
	background: rgba(62, 132, 220, 0.08);
}

/* ---------- CTA button ---------- */
.ptpn-cta-btn {
	display: inline-block;
	background: var(--ptpn-accent);
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 26px;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(62, 132, 220, 0.35);
	transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
	white-space: nowrap;
}

.ptpn-cta-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(62, 132, 220, 0.45);
	filter: brightness(1.05);
	color: #ffffff;
}

/* ---------- Sticky behavior ---------- */
.ptpn-sticky {
	transition: all 0.3s ease;
}

.ptpn-sticky.ptpn-is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	animation: ptpnSlideDown 0.35s ease;
}

.ptpn-sticky.ptpn-is-stuck .ptpn-topbar {
	max-height: 0;
	padding: 0;
	opacity: 0;
	overflow: hidden;
}

.ptpn-sticky.ptpn-is-stuck .ptpn-mainbar {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ptpn-sticky.ptpn-is-stuck .ptpn-mainbar-inner {
	padding: 10px 24px;
}

@keyframes ptpnSlideDown {
	from {
		transform: translateY(-100%);
	}
	to {
		transform: translateY(0);
	}
}

/* placeholder to prevent layout jump when fixed positioning kicks in */
.ptpn-sticky-placeholder {
	display: none;
}

.ptpn-sticky.ptpn-is-stuck + .ptpn-sticky-placeholder {
	display: block;
}

/* ---------- Mobile burger ---------- */
.ptpn-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 38px;
	height: 38px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

.ptpn-burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: #1a1a1a;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.ptpn-burger.ptpn-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.ptpn-burger.ptpn-active span:nth-child(2) {
	opacity: 0;
}

.ptpn-burger.ptpn-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.ptpn-topbar-left {
		gap: 14px;
	}

	.ptpn-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
		transition: max-height 0.4s ease, opacity 0.3s ease;
	}

	.ptpn-nav.ptpn-nav-open {
		max-height: 70vh;
		opacity: 1;
		overflow-y: auto;
	}

	.ptpn-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
		padding: 12px 24px;
	}

	.ptpn-menu li {
		width: 100%;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	}

	.ptpn-menu li > a {
		display: block;
		padding: 14px 4px;
	}

	.ptpn-menu ul.sub-menu {
		position: static;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
		padding-left: 14px;
	}

	.ptpn-menu li.ptpn-submenu-open > ul.sub-menu {
		display: block;
	}

	.ptpn-burger {
		display: flex;
	}

	.ptpn-cta {
		display: none;
	}
}

@media (max-width: 600px) {
	.ptpn-topbar-item span:not(.ptpn-icon) {
		display: none;
	}

	.ptpn-topbar-right {
		display: none;
	}

	.ptpn-logo-text {
		font-size: 20px;
	}
}
