/* WLA Premium Header — staging */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
	--wla-cream: #fdfbf7;
	--wla-cream-2: #f7f3ec;
	--wla-green: #4a7c59;
	--wla-green-dark: #2c5f4a;
	--wla-charcoal: #2c3e50;
	--wla-muted: #7a8b7e;
	--wla-topbar-h: 36px;
}

/* ── Top bar ── */
.wla-top-bar {
	background: var(--wla-cream-2);
	border-bottom: 1px solid rgba(44, 62, 80, 0.06);
	font-family: 'Jost', sans-serif;
	font-size: 11.5px;
	font-weight: 400;
	color: var(--wla-muted);
	letter-spacing: 0.02em;
}

.wla-top-bar__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.wla-top-bar__left,
.wla-top-bar__right {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	line-height: 1.3;
}

.wla-top-bar__right {
	color: #5f7164;
}

@media (max-width: 921px) {
	.wla-top-bar__right {
		display: none;
	}

	.wla-top-bar__inner {
		justify-content: center;
		text-align: center;
		font-size: 10.5px;
		padding: 7px 16px;
	}
}

@media (max-width: 544px) {
	.wla-top-bar__left span,
	.wla-top-bar__left {
		font-size: 10px;
	}
}

/* ── Masthead base ── */
#masthead,
.site-header {
	font-family: 'Jost', sans-serif;
	background: rgba(253, 251, 247, 0.98) !important;
	box-shadow: 0 1px 0 rgba(44, 62, 80, 0.05) !important;
	transition: background 0.35s ease, box-shadow 0.35s ease;
}

body.home #masthead:not(.wla-scrolled),
body.home #masthead:not(.wla-scrolled) .main-header-bar {
	background: transparent !important;
	box-shadow: none !important;
}

#masthead {
	position: sticky !important;
	top: 0;
	z-index: 1000000 !important;
	isolation: isolate;
}

/* Prevent header wrappers from clipping the mega menu trigger area */
#masthead .ast-primary-header-bar,
#masthead .ast-main-header-wrap,
#masthead .ast-builder-grid-row,
#masthead .site-primary-header-wrap,
#masthead .main-header-bar-wrap,
#masthead .ast-builder-menu-1,
#masthead .main-header-bar-navigation {
	overflow: visible !important;
}

/* Apply frosted effect to inner bar only — avoids trapping fixed descendants */
#masthead.wla-scrolled .main-header-bar,
#masthead.wla-scrolled .ast-primary-header-bar {
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

#masthead.wla-scrolled,
#masthead.wla-scrolled .main-header-bar {
	background: rgba(253, 251, 247, 0.97) !important;
	box-shadow: 0 4px 24px rgba(44, 62, 80, 0.08) !important;
}

/* Hide legacy above-header search row */
.ast-above-header-bar,
[data-section="section-header-search"] {
	display: none !important;
}

/* ── Logo ── */
.ast-site-identity .site-logo-img img,
.ast-site-identity .custom-logo-link img,
.ast-site-identity .transparent-custom-logo img,
.ast-site-identity .custom-logo-link .custom-logo {
	max-height: 72px !important;
	width: auto !important;
	height: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	filter: none !important;
}

body.home #masthead:not(.wla-scrolled) .site-logo-img .transparent-custom-logo-link,
body.home #masthead:not(.wla-scrolled) .site-logo-img .custom-mobile-logo-link {
	display: none !important;
}

body.home #masthead:not(.wla-scrolled) .site-logo-img .custom-logo-link:not(.transparent-custom-logo-link) {
	display: inline-block !important;
}

body.home.ast-theme-transparent-header #masthead .site-logo-img .transparent-custom-logo img {
	max-width: 280px !important;
	width: 280px !important;
}

@media (max-width: 921px) {
	.ast-site-identity .site-logo-img img,
	.ast-site-identity .custom-logo-link img {
		max-height: 52px !important;
	}
}

/* ── Primary bar layout ── */
.ast-primary-header-bar .ast-builder-grid-row {
	align-items: center !important;
	min-height: 76px;
	padding-left: 20px !important;
	padding-right: 20px !important;
}

.ast-primary-header-bar .site-header-primary-section-right {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 10px !important;
}

.ast-header-html-1 {
	margin: 0 !important;
	padding: 0 !important;
}

/* ── Nav links ── */
.main-header-menu > .menu-item > .menu-link {
	font-family: 'Jost', sans-serif !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: var(--wla-charcoal) !important;
	padding: 10px 14px !important;
	transition: color 0.2s ease;
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .menu-item.current-menu-item > .menu-link,
.main-header-menu > .menu-item.wla-topics-open > .menu-link {
	color: var(--wla-green) !important;
}

body.home #masthead:not(.wla-scrolled) .main-header-menu > .menu-item > .menu-link {
	color: var(--wla-charcoal) !important;
}

body.home #masthead:not(.wla-scrolled) .main-header-menu > .menu-item > .menu-link:hover,
body.home #masthead:not(.wla-scrolled) .main-header-menu > .menu-item.wla-topics-open > .menu-link {
	color: var(--wla-green) !important;
}

/* Remove old NURA pill styling */
.main-header-menu .menu-item.nura-nav-cta > .menu-link {
	background: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 10px 14px !important;
	margin: 0 !important;
	color: var(--wla-charcoal) !important;
}

/* Topics chevron */
.main-header-menu > .menu-item.wla-topics-nav > .menu-link::after {
	content: ' \25BE';
	font-size: 10px;
	opacity: 0.55;
	margin-left: 2px;
}

.main-header-menu > .menu-item.wla-topics-nav > .menu-link .dropdown-menu-toggle,
.main-header-menu > .menu-item.wla-topics-nav > .ast-menu-toggle {
	display: none !important;
}

/* Override legacy post-449 header spacing conflicts */
body.home #page,
body.home .hfeed {
	padding-top: 0 !important;
}

#page,
.hfeed {
	padding-top: 0 !important;
}

.ast-primary-header-bar .main-header-menu {
	justify-content: center;
}

/* ── Instagram (subtle) ── */
[data-section="section-hb-social-icons-1"] .ast-builder-social-element {
	transform: scale(0.88);
	opacity: 0.72;
	transition: opacity 0.2s ease;
}

[data-section="section-hb-social-icons-1"] .ast-builder-social-element:hover {
	opacity: 1;
}

[data-section="section-hb-social-icons-1"] .social-item-label,
[data-section="section-hb-social-icons-1"] .ast-social-color-type-custom svg + span {
	font-size: 11px !important;
	font-weight: 400 !important;
	color: var(--wla-muted) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

/* ── Start Free CTA ── */
.wla-start-free-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wla-green-dark) !important;
	color: #fff !important;
	font-family: 'Jost', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	padding: 11px 22px;
	border-radius: 999px;
	text-decoration: none !important;
	box-shadow: 0 4px 16px rgba(44, 95, 74, 0.28);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.wla-start-free-btn:hover,
.wla-start-free-btn:focus {
	background: var(--wla-charcoal) !important;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(44, 62, 80, 0.22);
	transform: translateY(-1px);
}

/* ── Hide native Topics dropdown on desktop ── */
@media (min-width: 922px) {
	.main-header-menu > .menu-item.wla-topics-nav {
		position: static !important;
	}

	.main-header-menu > .menu-item.wla-topics-nav > .sub-menu {
		display: none !important;
	}

	.main-header-menu > .menu-item.wla-topics-nav > .ast-menu-toggle {
		display: none !important;
	}
}

/* ── Mega menu panel (portaled to body via JS) ── */
.wla-mega-panel {
	display: none;
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	top: var(--wla-mega-top, 110px);
	width: min(1120px, calc(100vw - 40px));
	z-index: 1000001 !important;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
	overflow: visible;
	max-height: none;
}

.wla-mega-panel.is-open {
	display: block;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.wla-mega-panel__inner {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 0;
	background: #fff;
	border: 1px solid rgba(44, 62, 80, 0.07);
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(44, 62, 80, 0.12);
	overflow: hidden;
}

.wla-mega-panel__sidebar {
	background: linear-gradient(165deg, #f8f4ed 0%, #f2ece2 100%);
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wla-mega-panel__title {
	font-family: 'Playfair Display', serif;
	font-size: 1.45rem;
	font-weight: 600;
	color: var(--wla-charcoal);
	margin: 0 0 10px;
	line-height: 1.25;
}

.wla-mega-panel__desc {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--wla-muted);
	margin: 0 0 18px;
}

.wla-mega-panel__cta-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--wla-green-dark);
	color: #fff !important;
	font-size: 12.5px;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 999px;
	text-decoration: none !important;
	width: fit-content;
	transition: background 0.2s ease;
}

.wla-mega-panel__cta-link:hover {
	background: var(--wla-charcoal);
	color: #fff !important;
}

.wla-mega-panel__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	padding: 18px;
	overflow: visible;
}

.wla-mega-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 14px;
	border-radius: 12px;
	text-decoration: none !important;
	color: inherit;
	transition: background 0.18s ease;
	overflow: visible;
}

.wla-mega-card:hover {
	background: rgba(74, 124, 89, 0.06);
}

.wla-mega-card__icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(74, 124, 89, 0.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wla-mega-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.wla-mega-card__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--wla-charcoal);
	line-height: 1.3;
}

.wla-mega-card__desc {
	font-size: 12px;
	line-height: 1.45;
	color: var(--wla-muted);
}

.wla-mega-card__link {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--wla-green);
	margin-top: 2px;
}

@media (min-width: 922px) {
	.wla-mobile-start-free {
		display: none !important;
	}
}

/* ── Mobile menu ── */
@media (max-width: 921px) {
	.wla-mega-panel {
		display: none !important;
	}

	.ast-mobile-popup-content .main-header-menu > .menu-item.wla-topics-nav > .sub-menu,
	.ast-mobile-header-content .main-header-menu > .menu-item.wla-topics-nav > .sub-menu {
		position: static !important;
		width: 100% !important;
		max-height: none !important;
		overflow: visible !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		padding: 0 0 8px 12px !important;
		background: transparent !important;
	}

	.ast-mobile-popup-content .main-header-menu > .menu-item.wla-topics-nav > .sub-menu .menu-link,
	.ast-mobile-header-content .main-header-menu > .menu-item.wla-topics-nav > .sub-menu .menu-link {
		text-transform: none !important;
		font-size: 14px !important;
		letter-spacing: 0 !important;
		padding: 8px 12px !important;
	}

	.wla-mobile-start-free {
		margin-top: 12px !important;
		padding-top: 12px !important;
		border-top: 1px solid rgba(44, 62, 80, 0.08);
		text-align: center !important;
		list-style: none;
	}

	.wla-start-free-btn--mobile {
		display: inline-flex !important;
		min-width: 220px;
	}

	.ast-header-html-1 {
		display: none !important;
	}

	[data-section="section-hb-social-icons-1"] {
		display: none !important;
	}
}

@media (max-width: 1024px) and (min-width: 922px) {
	.wla-mega-panel__inner {
		grid-template-columns: 200px 1fr;
	}

	.wla-mega-panel__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
