/* Header v2 — centered primary nav + full-width mega menus */

.header-v2 {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: #fff;
	overflow: visible;
	font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.header-v2__navbar {
	position: relative;
	overflow: visible;
}

.header-v2__offcanvas {
	font-family: inherit;
}

body.admin-bar .header-v2 {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.header-v2__shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
}

.header-v2__brand {
	flex-shrink: 0;
}

.header-v2__logo {
	max-height: 34px;
	width: auto;
}

.header-v2__desktop {
	display: none;
}

.header-v2__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.header-v2__utilities {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	flex-wrap: nowrap;
	flex-shrink: 0;
}

.header-v2__login {
	display: inline-flex !important;
	align-items: center;
	flex-shrink: 0;
	visibility: visible !important;
	opacity: 1 !important;
	color: #111 !important;
	border: 1px solid #9ca3af;
	padding: 0.4rem 0.75rem;
	border-radius: 6px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	background: #fff;
}

.header-v2__login:hover {
	color: #1e40af !important;
	border-color: #93c5fd;
	background: #eff6ff;
}

.header-v2__demo {
	padding: 0.45rem 0.85rem !important;
	font-family: inherit !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	white-space: nowrap;
	flex-shrink: 0;
}

@media (min-width: 992px) {
	.header-v2__shell {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
	}

	.header-v2__brand {
		grid-column: 1;
		justify-self: start;
	}

	.header-v2__toggler {
		display: none;
	}

	.header-v2__desktop {
		display: contents;
	}

	.header-v2__nav {
		grid-column: 2;
		justify-self: center;
	}

	.header-v2__utilities {
		grid-column: 3;
		justify-self: end;
	}
}

.header-v2__item {
	position: static;
	list-style: none;
}

.header-v2__item--mega.is-open {
	z-index: 1031;
}

.header-v2__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.7rem;
	color: rgba(0, 0, 0, 0.85);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.header-v2__link:hover,
.header-v2__item.is-open > .header-v2__link {
	background: transparent;
	color: #2563eb;
}

.header-v2__link-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.header-v2__chevron {
	transition: transform 0.2s ease;
}

.header-v2__item.is-open > .header-v2__link .header-v2__chevron {
	transform: rotate(180deg);
}

.header-v2__sales {
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #0056b3;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
}

.header-v2__sales:hover {
	text-decoration: underline;
}

/* Dropdown (simple + WP menu) */
.header-v2__dropdown {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: calc(100% + 0.1rem);
	min-width: 280px;
	max-width: 360px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
	padding: 0.75rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 1040;
}

.header-v2__item--has-panel:not(.header-v2__item--mega).is-open > .header-v2__dropdown,
.header-v2__item--has-panel:not(.header-v2__item--mega):hover > .header-v2__dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.header-v2__dropdown-inner {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.header-v2__wp-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.header-v2__wp-menu a {
	display: block;
	padding: 0.55rem 0.75rem;
	color: #111;
	text-decoration: none;
	border-radius: 8px;
	font-size: 0.9rem;
}

.header-v2__wp-menu a:hover {
	background: #f3f4f6;
}

/* Link cards (mega + dropdown) */
.header-v2__card {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.75rem;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s ease;
}

.header-v2__card:hover {
	background: #f8fafc;
}

.header-v2__card-icon img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	display: block;
}

.header-v2__card-title {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #111;
	line-height: 1.3;
}

.header-v2__card-subtitle {
	display: block;
	font-size: 0.82rem;
	color: #6b7280;
	line-height: 1.45;
	margin-top: 0.15rem;
}

.header-v2__card--compact {
	padding: 0.5rem;
}

.header-v2__card--compact .header-v2__card-icon img {
	width: 36px;
	height: 36px;
}

/* Mega panel — full container width, spaced below nav */
.header-v2__mega-panels {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 1020;
	pointer-events: none;
	padding-top: 0.625rem;
}

.header-v2__mega-panels.is-active {
	pointer-events: auto;
}

.header-v2__mega-panel {
	position: static;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	pointer-events: none;
}

.header-v2__mega-panel:not([hidden]) {
	pointer-events: auto;
}

.header-v2__mega-container {
	width: 100%;
	max-width: 100%;
	padding-top: 0;
	padding-bottom: 0;
}

.header-v2__mega-card {
	width: 100%;
	background: #fff;
	border: 1px solid #e8eaed;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	padding: 1.35rem 1.5rem 1.5rem;
	box-sizing: border-box;
}

.header-v2__mega-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	align-items: stretch;
	width: 100%;
}

.header-v2__mega-grid--has-promo {
	grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
}

.header-v2__mega-columns {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(var(--header-v2-mega-cols, 3), minmax(0, 1fr));
	gap: 0;
	align-items: start;
}

.header-v2__mega-columns--dividers .header-v2__mega-col + .header-v2__mega-col {
	border-left: 1px solid #e5e7eb;
}

.header-v2__mega-col {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	padding: 0 1.25rem;
	box-sizing: border-box;
}

.header-v2__mega-col-links {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.header-v2__mega-columns .header-v2__mega-col:first-child {
	padding-left: 0;
}

.header-v2__mega-columns:not(.header-v2__mega-columns--dividers) .header-v2__mega-col {
	padding-left: 0;
	padding-right: 0;
}

.header-v2__mega-columns:not(.header-v2__mega-columns--dividers) {
	gap: 1.5rem 2rem;
}

.header-v2__mega-columns--dividers .header-v2__mega-col:last-child {
	padding-right: 0;
}

.header-v2__mega-col-heading {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
	line-height: 1.3;
	flex-shrink: 0;
}

.header-v2__mega-columns--has-headings .header-v2__mega-col-heading {
	min-height: 1.15rem;
}

.header-v2__mega-col-heading--placeholder {
	visibility: hidden;
	user-select: none;
	pointer-events: none;
}

.header-v2__mobile-col-heading {
	margin: 0.85rem 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
}

.header-v2__mega-link {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.65rem 0.5rem;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s ease;
}

.header-v2__mega-link:hover {
	background: #dbeafe;
}

.header-v2__mega-link:hover .header-v2__mega-link-title {
	color: #1e40af;
}

.header-v2__mega-link:hover .header-v2__mega-link-desc {
	color: #1e3a8a;
}

.header-v2__mega-link-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

.header-v2__mega-link-icon--highlight {
	background: #fff8d6;
}

.header-v2__mega-link-icon img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	display: block;
}

.header-v2__mega-link-title {
	display: block;
	font-size: 1rem;
	font-weight: 800;
	color: #111;
	line-height: 1.3;
}

.header-v2__mega-link-desc {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #6b7280;
}

.header-v2__mega-promo {
	background: #fff8d6;
	border-radius: 12px;
	padding: 1.15rem 1.1rem 1.2rem;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 100%;
}

.header-v2__mega-promo-badge {
	display: inline-block;
	width: auto;
	max-width: 100%;
	align-self: flex-start;
	margin-bottom: 0.75rem;
	padding: 0.25rem 0.75rem;
	background: #ffd400;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	color: #111;
	line-height: 1.4;
}

.header-v2__mega-promo-title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.35;
	color: #111;
}

.header-v2__mega-promo-desc {
	margin: 0 0 1rem;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #374151;
}

.header-v2__mega-promo-btn {
	display: inline-flex;
	align-items: center;
	width: auto;
	max-width: 100%;
	align-self: flex-start;
	gap: 0.35rem;
	padding: 0.55rem 0.9rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-v2__mega-promo-btn:hover {
	border-color: #d1d5db;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	color: #111;
}

/* Mobile offcanvas — sliding submenus */
.header-v2__offcanvas {
	width: min(100%, 420px);
	padding: 0;
	border: none;
	border-radius: 16px 0 0 16px;
	overflow: hidden;
}

.header-v2__mobile-viewport {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100dvh;
	overflow: hidden;
	background: #fff;
}

.header-v2__mobile-screen {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
}

.header-v2__mobile-screen--root {
	flex: 1;
}

.header-v2__mobile-screen--sub {
	position: absolute;
	inset: 0;
	z-index: 4;
	background: #fff;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	pointer-events: none;
}

.header-v2__mobile-screen--sub.is-active {
	transform: translateX(0);
	pointer-events: auto;
}

.header-v2__mobile-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-shrink: 0;
	padding: 1rem 1.15rem;
	background: #fff;
	color: #111;
	border-bottom: 1px solid #ececec;
}

.header-v2__mobile-topbar-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.header-v2__mobile-topbar-logo .logo_main {
	max-height: 32px;
	width: auto;
}

.header-v2__mobile-back {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #111;
	font-family: inherit;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
}

.header-v2__mobile-close {
	flex-shrink: 0;
	margin: 0;
	opacity: 1;
}

.header-v2__mobile-scroll {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.header-v2__mobile-nav,
.header-v2__mobile-subnav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.header-v2__mobile-item,
.header-v2__mobile-subitem {
	border-bottom: 1px solid #ececec;
}

.header-v2__mobile-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 1rem 1.15rem;
	color: #111;
	text-decoration: none;
	font-family: inherit;
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.3;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
}

.header-v2__mobile-row-label {
	flex: 1;
	min-width: 0;
}

.header-v2__mobile-row-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	object-fit: contain;
}

.header-v2__mobile-arrow {
	flex-shrink: 0;
	color: #6b7280;
}

.header-v2__mobile-footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: auto;
	padding: 1.25rem 1.15rem 1.5rem;
	border-top: 1px solid #ececec;
}

.header-v2__mobile-sales {
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #0056b3;
	text-decoration: none;
	text-align: center;
}

.header-v2__mobile-login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.65rem 1rem;
	border: 1px solid #9ca3af;
	border-radius: 6px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	background: #fff;
}

.header-v2__mobile-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	padding: 0.95rem 1.15rem;
	border-radius: 8px;
	background: #fad045 !important;
	color: #000 !important;
	font-family: inherit;
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: none;
}

.header-v2__mobile-cta:hover,
.header-v2__mobile-cta:focus {
	background: #000 !important;
	color: #fff !important;
}

@media (max-width: 1199px) {
	.header-v2__mega-columns {
		gap: 1rem 1.25rem;
	}
}

@media (max-width: 991px) {
	.header-v2__mega-grid--has-promo {
		grid-template-columns: 1fr;
	}

	.header-v2__mega-columns {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 991px) {
	.header-v2__shell {
		grid-template-columns: 1fr auto;
	}
}
