/* ==========================================================================
   Mobile & Responsive — Breakpoints
   ========================================================================== */

/* Desktop: 1400px+ - ensure hamburger and search toggle are hidden */
@media (min-width: 1400px) {
	.eh-nav-toggle,
	.eh-search-toggle {
		display: none !important;
	}

	.eh-navigation {
		display: block !important;
	}
}

/* Tablet and small desktop: 768px – 1399px */
@media (max-width: 1399px) {
	.eh-site-header__inner {
		grid-template-columns: auto auto 1fr auto;
		grid-template-areas: "toggle brand search actions";
		gap: 0.75rem;
	}

	.eh-nav-toggle {
		display: inline-flex;
	}

	.eh-search-toggle {
		display: inline-flex;
	}

	.eh-navigation {
		display: none;
	}

	/* Hide inline search on tablet to prevent overlap */
	.eh-search-inline {
		display: none;
	}
}

/* Small tablet / large phone: hide topbar and inline search */
@media (max-width: 767px) {
	.eh-topbar {
		display: none;
	}

	.eh-site-header__inner {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "toggle brand actions";
		gap: 0.5rem;
		min-height: 5rem;
		padding: 0 0.75rem;
	}

	.eh-search-slot {
		display: none;
	}

	.eh-search-toggle {
		display: inline-flex;
	}

	.eh-brand__logo img,
	.eh-brand__image,
	.eh-brand__mark {
		max-height: 2.5rem;
		width: 7.5rem;
		height: 2.5rem;
	}

	.eh-brand__title {
		font-size: 0.95rem;
	}

	.eh-brand__tagline {
		font-size: 0.72rem;
	}

	.eh-icon-button {
		width: 2.5rem;
		height: 2.5rem;
	}
}

/* ==========================================================================
   Mobile Menu Panel
   ========================================================================== */

.eh-panel__content--mobile-menu {
	position: absolute;
	left: 0 !important;
	right: auto !important;
	top: 0 !important;
	bottom: auto !important;
	width: min(22rem, calc(100vw - 3rem));
	height: 100%;
	margin-left: 0 !important;
	margin-right: auto !important;
	margin-top: 0 !important;
	border-radius: 0 1.25rem 1.25rem 0;
	transform: translateX(-100%) !important;
	transition: transform var(--eh-transition-slow);
}

.eh-panel.is-open .eh-panel__content--mobile-menu {
	transform: translateX(0) !important;
}

.eh-mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--eh-border);
}

.eh-mobile-menu__brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.eh-mobile-menu__brand-name {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--eh-text);
	line-height: 1.2;
}

.eh-mobile-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.eh-mobile-menu__close:hover {
	background: var(--eh-secondary);
}

.eh-mobile-menu__nav {
	padding: 0.5rem 1.25rem 1rem;
	overflow-y: auto;
	flex: 1;
}

.eh-mobile-menu__list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.eh-mobile-menu__sublist {
	padding: 0 0 0 1rem;
	margin: 0;
	list-style: none;
	border-left: 1px solid var(--eh-border);
}

.eh-mobile-menu__item-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5rem;
}

.eh-mobile-menu__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 0;
	color: var(--eh-text);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
}

.eh-mobile-menu__link:hover {
	color: var(--eh-primary);
}

.eh-mobile-menu__item.is-current > .eh-mobile-menu__item-wrap > .eh-mobile-menu__link {
	color: var(--eh-primary);
}

.eh-mobile-menu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: var(--eh-text);
	cursor: pointer;
}

.eh-mobile-menu__toggle:hover {
	background: var(--eh-secondary);
}

.eh-mobile-menu__toggle img {
	transition: transform var(--eh-transition);
}

.eh-mobile-menu__item.is-expanded > .eh-mobile-menu__item-wrap .eh-mobile-menu__toggle img {
	transform: rotate(90deg);
}

.eh-mobile-menu__submenu-wrap {
	padding-bottom: 0.5rem;
}

.eh-mobile-menu__item:not(:last-child) > .eh-mobile-menu__item-wrap {
	border-bottom: 1px solid var(--eh-border);
}

.eh-mobile-menu__sublist .eh-mobile-menu__link {
	padding-top: 0.7rem;
	padding-bottom: 0.7rem;
	font-weight: 400;
}

.eh-mobile-menu__footer {
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--eh-border);
	margin-top: auto;
}

.eh-mobile-menu__footer-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 0;
	color: var(--eh-text);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
}

.eh-mobile-menu__footer-item:hover {
	color: var(--eh-primary);
}
