/*
 * Header Redesign — Phase 2
 * "Dark Forest / Imperial Gold / Cream"
 * Loaded site-wide, replaces ecome/templates/header/header-style-01.php
 */

:root {
	--eh-forest-900: #0f2a1e;
	--eh-forest-700: #1f4a35;
	--eh-herb-600: #3f8a5e;
	--eh-gold-500: #cda349;
	--eh-gold-400: #e3c878;
	--eh-gold-600: #a9802f;
	--eh-cream-50: #fdfcf7;
	--eh-cream-100: #f7f3e8;
	--eh-cream-200: #efe7d4;
	--eh-ink-500: #4a4a45;
	--eh-line: #e2dccb;
}

/* Announcement bar */
.eh-announce {
	background: var(--eh-forest-900);
	padding: 9px 16px;
}

.eh-announce__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.eh-announce__item {
	color: var(--eh-cream-50);
}

.eh-announce__sep {
	color: var(--eh-gold-500);
	font-size: 0.5rem;
}

/* Main header row */
.eh-header-main {
	position: relative;
	background: var(--eh-cream-50);
	border-bottom: 3px solid var(--eh-forest-900);
}

.eh-header-main__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}

/* Left / right nav */
.eh-header-nav {
	flex: 1 1 0;
	display: flex;
}

.eh-header-nav--left {
	justify-content: flex-start;
}

.eh-header-nav--right {
	justify-content: flex-end;
}

.eh-header-right {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 28px;
}

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

.eh-nav > li {
	position: relative;
}

.eh-nav > li > a {
	display: inline-flex;
	align-items: center;
	font-family: 'Nunito Sans', sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--eh-forest-900);
	transition: color 0.2s ease;
}

.eh-nav > li > a:hover {
	color: var(--eh-gold-600);
}

.eh-nav li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.eh-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 14px;
	min-width: 230px;
	padding: 18px 22px;
	list-style: none;
	background: var(--eh-cream-50);
	border-top: 3px solid var(--eh-gold-500);
	box-shadow: 0 24px 48px rgba(15, 42, 30, 0.18);
	z-index: 999;
}

.eh-header-nav--right .sub-menu {
	left: auto;
	right: 0;
}

.eh-nav li.menu-item-has-children:hover > .sub-menu {
	display: block;
}

.eh-nav .sub-menu li + li {
	margin-top: 10px;
}

.eh-nav .sub-menu a {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: var(--eh-ink-500);
	transition: color 0.2s ease;
}

.eh-nav .sub-menu a:hover {
	color: var(--eh-gold-600);
}

/* Brand / centered logo */
.eh-header-brand {
	flex: 0 0 auto;
	text-align: center;
}

.eh-header-brand__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
}

.eh-header-brand__name {
	font-family: 'Playfair Display', serif;
	font-size: 1.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--eh-forest-900);
}

.eh-header-brand__dot {
	margin-left: 6px;
	font-size: 0.5rem;
	color: var(--eh-gold-500);
	vertical-align: super;
}

.eh-header-brand__tagline {
	margin-top: 4px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--eh-ink-500);
}

/* Account + cart */
.eh-header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.eh-header-actions .block-user > a,
.eh-header-actions .block-minicart > a {
	display: inline-flex;
	align-items: center;
	color: var(--eh-forest-900);
	font-size: 1.15rem;
	transition: color 0.2s ease;
}

.eh-header-actions .block-user > a:hover,
.eh-header-actions .block-minicart > a:hover {
	color: var(--eh-gold-600);
}

/* Mobile menu toggle */
.eh-header-right .eh-mnav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 22px;
}

.eh-header-right .eh-mnav-toggle span {
	display: block;
	height: 2px;
	background: var(--eh-forest-900);
}

/* Shop mega-menu panel */
.eh-shop-mega {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--eh-cream-50);
	border-top: 3px solid var(--eh-gold-500);
	box-shadow: 0 24px 48px rgba(15, 42, 30, 0.18);
	z-index: 999;
}

.eh-shop-mega.is-open {
	display: block;
}

.eh-shop-mega__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.eh-shop-mega__heading {
	font-family: 'Playfair Display', serif;
	color: var(--eh-forest-900);
	font-size: 1rem;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--eh-line);
}

.eh-shop-mega__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.eh-shop-mega__menu a {
	font-family: 'Nunito Sans', sans-serif;
	color: var(--eh-ink-500);
	font-size: 0.9rem;
	transition: color 0.2s ease;
}

.eh-shop-mega__menu a:hover {
	color: var(--eh-gold-600);
}

.eh-shop-mega__featured {
	background: var(--eh-forest-900);
	border-radius: 8px;
	padding: 20px;
	color: var(--eh-cream-100);
}

.eh-shop-mega__featured-label {
	display: inline-block;
	font-family: 'Playfair Display', serif;
	font-style: italic;
	color: var(--eh-gold-400);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
}

.eh-shop-mega__featured h4 {
	font-family: 'Playfair Display', serif;
	color: var(--eh-cream-50);
	margin: 0 0 8px;
	font-size: 1.1rem;
	line-height: 1.3;
}

.eh-shop-mega__featured p {
	color: var(--eh-cream-200);
	font-size: 0.85rem;
	line-height: 1.6;
	margin: 0 0 16px;
}

.eh-shop-mega__btn {
	display: inline-block;
	background: var(--eh-gold-500);
	color: var(--eh-forest-900);
	font-weight: 700;
	font-size: 0.85rem;
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.eh-shop-mega__btn:hover {
	background: var(--eh-gold-400);
}

@media (max-width: 1024px) {
	.eh-shop-mega {
		display: none !important;
	}

	.eh-header-nav--left,
	.eh-header-nav--right {
		display: none;
	}

	.eh-header-main__inner {
		justify-content: space-between;
	}

	.eh-header-brand {
		flex: 1 1 auto;
		text-align: left;
	}

	.eh-header-brand__link {
		align-items: flex-start;
	}

	.eh-header-right {
		flex: 0 0 auto;
		gap: 14px;
	}

	.eh-header-right .eh-mnav-toggle {
		display: flex;
	}
}

/* Logo image */
.eh-header-brand__logo-img {
	height: 58px;
	width: auto;
	display: block;
}

/* ─── Journal mega-menu (Benefits) — mirrors .eh-shop-mega ─── */
.eh-journal-mega {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--eh-cream-50);
	border-top: 3px solid var(--eh-gold-500);
	box-shadow: 0 24px 48px rgba(15, 42, 30, 0.18);
	z-index: 999;
}
.eh-journal-mega.is-open {
	display: block;
}
.eh-journal-mega__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px;
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 40px;
	align-items: start;
}
.eh-journal-mega__heading {
	font-family: 'Playfair Display', serif;
	color: var(--eh-forest-900);
	font-size: 1rem;
	margin: 0 0 18px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--eh-line);
}
.eh-journal-mega__benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px 28px;
}
.eh-journal-mega__benefit a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 8px;
	border-radius: 6px;
	color: var(--eh-ink-500);
	font-family: 'Nunito Sans', sans-serif;
	font-size: 0.92rem;
	line-height: 1.3;
	transition: background 0.2s ease, color 0.2s ease;
}
.eh-journal-mega__benefit a:hover {
	background: var(--eh-cream-100);
	color: var(--eh-gold-600);
}
.eh-journal-mega__icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--eh-gold-500);
	color: var(--eh-gold-600);
}
.eh-journal-mega__icon svg {
	width: 18px;
	height: 18px;
}
.eh-journal-mega__benefit a:hover .eh-journal-mega__icon {
	background: var(--eh-forest-900);
	border-color: var(--eh-forest-900);
	color: var(--eh-gold-400);
}
.eh-journal-mega__featured {
	background: var(--eh-forest-900);
	border-radius: 8px;
	padding: 20px;
	color: var(--eh-cream-100);
}
.eh-journal-mega__featured-label {
	display: inline-block;
	font-family: 'Playfair Display', serif;
	font-style: italic;
	color: var(--eh-gold-400);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 12px;
}
.eh-journal-mega__feature-card {
	display: block;
	text-decoration: none;
}
.eh-journal-mega__feature-media {
	display: block;
	width: 100%;
	height: 130px;
	border-radius: 6px;
	background-size: cover;
	background-position: center;
	margin-bottom: 12px;
}
.eh-journal-mega__feature-title {
	display: block;
	font-family: 'Playfair Display', serif;
	color: var(--eh-cream-50);
	font-size: 1.05rem;
	line-height: 1.3;
	margin-bottom: 8px;
}
.eh-journal-mega__feature-cta {
	display: inline-block;
	color: var(--eh-gold-400);
	font-family: 'Nunito Sans', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
}
.eh-journal-mega__feature-card:hover .eh-journal-mega__feature-cta {
	color: var(--eh-gold-500);
}
.eh-journal-mega__btn {
	display: inline-block;
	background: var(--eh-gold-500);
	color: var(--eh-forest-900);
	font-weight: 700;
	font-size: 0.85rem;
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
}
@media (max-width: 1024px) {
	.eh-journal-mega {
		display: none !important;
	}
}

/* ─── Mobile nav drawer (.eh-mnav) — custom off-canvas, replaces the
 * parent theme's clone menu. Opened by .eh-mnav-toggle (mobile only),
 * Shop/Journal expand as accordions mirroring the desktop mega-menus. */
.ecome-menu-clone-wrap { display: none !important; } /* never show parent clone */

.eh-mnav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(7, 18, 12, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	z-index: 99998;
}
.eh-mnav-overlay.is-open { opacity: 1; visibility: visible; }

.eh-mnav {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: min(87vw, 360px);
	background: var(--eh-forest-900);
	color: var(--eh-cream-50);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	font-family: 'Nunito Sans', sans-serif;
}
.eh-mnav.is-open { transform: translateX(0); }
.eh-mnav, .eh-mnav * { -webkit-tap-highlight-color: transparent; }

/* Force-clear the parent theme's gradient button background */
.eh-mnav button.eh-mnav__link,
.eh-mnav .eh-mnav__close {
	background-image: none !important;
	background-color: transparent !important;
}

.eh-mnav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid rgba(231, 215, 180, 0.16);
}
.eh-mnav__brand {
	font-family: 'Playfair Display', serif;
	font-size: 1.18rem;
	letter-spacing: 0.04em;
	color: var(--eh-cream-50);
}
.eh-mnav__brand i {
	color: var(--eh-gold-500);
	font-size: 0.42rem;
	font-style: normal;
	vertical-align: super;
	margin-left: 3px;
}
.eh-mnav__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(231, 215, 180, 0.35);
	color: var(--eh-gold-400);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.eh-mnav__close:hover { background: rgba(231, 215, 180, 0.12) !important; border-color: var(--eh-gold-400); }

.eh-mnav__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.eh-mnav__list { list-style: none; margin: 0; padding: 8px 0; }
.eh-mnav__item { border-bottom: 1px solid rgba(231, 215, 180, 0.08); }

.eh-mnav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	box-sizing: border-box;
	padding: 17px 22px;
	border: 0;
	cursor: pointer;
	font-family: 'Nunito Sans', sans-serif;
	font-weight: 700;
	font-size: 0.96rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--eh-cream-50);
	text-align: left;
	transition: color 0.2s ease, background 0.2s ease;
}
a.eh-mnav__link { text-decoration: none; }
.eh-mnav__link:hover { color: var(--eh-gold-400); }
.eh-mnav__acc:focus { outline: none; }
.eh-mnav__acc:focus-visible { outline: 2px solid var(--eh-gold-400); outline-offset: -3px; }
.eh-mnav__item.is-current > .eh-mnav__link { color: var(--eh-gold-400); box-shadow: inset 3px 0 0 var(--eh-gold-500); }
.eh-mnav__caret { color: var(--eh-gold-500); flex: 0 0 auto; transition: transform 0.28s ease; }
.eh-mnav__acc[aria-expanded="true"] { color: var(--eh-gold-400); }
.eh-mnav__acc[aria-expanded="true"] .eh-mnav__caret { transform: rotate(180deg); }

.eh-mnav__sub { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; background: rgba(0, 0, 0, 0.22); }
.eh-mnav__group { padding: 6px 0; }
.eh-mnav__group + .eh-mnav__group { border-top: 1px solid rgba(231, 215, 180, 0.07); }
.eh-mnav__grouphead {
	margin: 0;
	padding: 14px 22px 6px;
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--eh-gold-500);
}
.eh-mnav__sublist { list-style: none; margin: 0; padding: 0 0 8px; }
.eh-mnav__sublist a {
	display: block;
	padding: 10px 22px 10px 26px;
	color: var(--eh-cream-200);
	font-size: 0.9rem;
	text-decoration: none;
	transition: color 0.2s ease, padding 0.2s ease;
}
.eh-mnav__sublist a:hover { color: var(--eh-gold-400); padding-left: 30px; }

.eh-mnav__benefits a { display: flex; align-items: center; gap: 12px; padding-left: 22px; }
.eh-mnav__bicon {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(231, 215, 180, 0.4);
	color: var(--eh-gold-400);
}
.eh-mnav__bicon svg { width: 15px; height: 15px; }
.eh-mnav__readall { display: inline-block; margin: 6px 22px 16px; color: var(--eh-gold-400); font-weight: 700; font-size: 0.82rem; text-decoration: none; }

.eh-mnav__foot { flex: 0 0 auto; display: flex; border-top: 1px solid rgba(231, 215, 180, 0.16); }
.eh-mnav__footlink {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 18px 10px;
	color: var(--eh-cream-50);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: color 0.2s ease, background 0.2s ease;
}
.eh-mnav__footlink:first-child { border-right: 1px solid rgba(231, 215, 180, 0.16); }
.eh-mnav__footlink:hover { color: var(--eh-gold-400); background: rgba(0, 0, 0, 0.2); }
.eh-mnav__footlink svg { color: var(--eh-gold-500); }

/* Desktop keeps the full header nav; hide the mobile drawer entirely */
@media (min-width: 1025px) {
	.eh-mnav, .eh-mnav-overlay { display: none !important; }
}
