/* ==========================================================================
   Palmgro Header — structural CSS. Colors/typography/spacing come from
   Elementor's Style tab per instance.
   ========================================================================== */

.pgw-hdr {
	position: relative;
	width: 100%;
	border-bottom: 1px solid transparent;
	z-index: 999;
	transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}
.pgw-hdr[data-sticky="1"] {
	position: sticky;
	top: 0;
}
.pgw-hdr--transparent-top {
	background-color: transparent !important;
	border-bottom-color: transparent !important;
	box-shadow: none !important;
}
.pgw-hdr--transparent-top.is-scrolled {
	background-color: var(--pgw-hdr-scrolled-bg, #ffffff) !important;
}
.pgw-hdr.is-hidden {
	transform: translateY(-100%);
}

.pgw-hdr-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 40px;
}

.pgw-hdr-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}
.pgw-hdr-logo-text {
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
}
.pgw-hdr-logo-tagline {
	display: block;
	font-size: 8px;
	letter-spacing: 0.15em;
	opacity: 0.5;
	margin-top: 2px;
}
.pgw-hdr-logo-img {
	height: 36px;
	width: auto;
	display: block;
}

.pgw-hdr-menu {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	flex-wrap: wrap;
	justify-content: center;
	flex: 1;
}
.pgw-hdr-menu a {
	position: relative;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
	padding-bottom: 4px;
	transition: color 0.2s ease;
}
.pgw-hdr-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background-color: currentColor;
	transition: right 0.25s ease;
}
.pgw-hdr-menu a:hover::after,
.pgw-hdr-menu a.is-active::after {
	right: 0;
}

.pgw-hdr-right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}
.pgw-hdr-cta {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.pgw-hdr-cta:hover {
	transform: translateY(-1px);
}

/* Hamburger */
.pgw-hdr-burger {
	display: none !important;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 34px;
	height: 34px;
	padding: 0;
	margin: 0;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none !important;
	cursor: pointer;
	flex-shrink: 0;
}
.pgw-hdr-burger:focus,
.pgw-hdr-burger:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
.pgw-hdr-burger span {
	display: block !important;
	width: 22px !important;
	height: 2px !important;
	background-color: #111111;
	border-radius: 2px;
	border: none !important;
	transition: transform 0.3s ease, opacity 0.2s ease;
}
.pgw-hdr-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.pgw-hdr-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.pgw-hdr-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay + panel (hidden on desktop) */
.pgw-hdr-mobile-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0,0,0,0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 1000;
}
.pgw-hdr-mobile-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.pgw-hdr-mobile-panel {
	display: none;
}

@media (max-width: 900px) {
	.pgw-hdr-menu {
		display: none !important;
	}
	.pgw-hdr-burger {
		display: flex !important;
	}
	.pgw-hdr-right .pgw-hdr-cta {
		display: none;
	}

	.pgw-hdr-mobile-panel {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 24px;
		padding: 40px;
		background-color: #ffffff;
		z-index: 1001;
	}
	.pgw-hdr-mobile-menu {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}
	.pgw-hdr-mobile-menu a,
	.pgw-hdr-mobile-cta {
		opacity: 0;
		transform: translateY(10px);
		transition: opacity 0.3s ease, transform 0.3s ease;
	}
	.pgw-hdr-mobile-panel a {
		text-decoration: none;
		font-size: 20px;
		font-weight: 600;
	}
	.pgw-hdr-mobile-cta {
		align-self: flex-start;
		margin-top: 10px;
		padding: 12px 24px;
		border-radius: 24px;
	}

	/* Slide in from right — a slightly springy ease for a smoother, less
	   mechanical open, plus a quick staggered fade-up on the links once the
	   panel has started sliding in. */
	.pgw-hdr-mobile-panel--slide-right {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(320px, 85vw);
		transform: translateX(100%);
		transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
		box-shadow: -10px 0 30px rgba(0,0,0,0.15);
	}
	.pgw-hdr-mobile-panel--slide-right.is-open {
		transform: translateX(0);
	}
	.pgw-hdr-mobile-panel--slide-right.is-open .pgw-hdr-mobile-menu a,
	.pgw-hdr-mobile-panel--slide-right.is-open .pgw-hdr-mobile-cta {
		opacity: 1;
		transform: translateY(0);
	}
	.pgw-hdr-mobile-panel--slide-right .pgw-hdr-mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
	.pgw-hdr-mobile-panel--slide-right .pgw-hdr-mobile-menu a:nth-child(2) { transition-delay: 0.12s; }
	.pgw-hdr-mobile-panel--slide-right .pgw-hdr-mobile-menu a:nth-child(3) { transition-delay: 0.16s; }
	.pgw-hdr-mobile-panel--slide-right .pgw-hdr-mobile-menu a:nth-child(4) { transition-delay: 0.2s; }
	.pgw-hdr-mobile-panel--slide-right .pgw-hdr-mobile-menu a:nth-child(5) { transition-delay: 0.24s; }
	.pgw-hdr-mobile-panel--slide-right .pgw-hdr-mobile-menu a:nth-child(6) { transition-delay: 0.28s; }
	.pgw-hdr-mobile-panel--slide-right .pgw-hdr-mobile-cta { transition-delay: 0.32s; }

	/* Dropdown below header */
	.pgw-hdr-mobile-panel--dropdown {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: 0;
		overflow: hidden;
		padding-top: 0;
		padding-bottom: 0;
		transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
		box-shadow: 0 20px 30px rgba(0,0,0,0.1);
	}
	.pgw-hdr-mobile-panel--dropdown.is-open {
		max-height: 80vh;
		padding: 32px 40px;
		overflow-y: auto;
	}
	.pgw-hdr-mobile-panel--dropdown.is-open .pgw-hdr-mobile-menu a,
	.pgw-hdr-mobile-panel--dropdown.is-open .pgw-hdr-mobile-cta {
		opacity: 1;
		transform: translateY(0);
		transition-delay: 0.15s;
	}
}

@media (max-width: 600px) {
	.pgw-hdr-bar {
		padding: 14px 20px;
	}
	.pgw-hdr-mobile-panel {
		padding: 32px 24px;
	}
}
