/* ============================================================
   ElkoLocal Mega Menu
   ============================================================ */
.emm-bar {
	--emm-navy: #1B2A4A;
	--emm-navy-2: #14213C;
	--emm-orange: #E87722;
	--emm-orange-d: #C2600F;
	--emm-gold: #D9A404;
	--emm-cream: #F8F3E7;
	--emm-line: rgba(246, 239, 225, .16);
	--emm-accent: var(--emm-gold);
	--emm-h: 68px;
	position: relative;
	z-index: 9000;
	background: linear-gradient(180deg, #22345C 0%, var(--emm-navy) 55%, var(--emm-navy-2) 100%);
	border-bottom: 3px solid var(--emm-orange);
	box-shadow: 0 2px 4px rgba(20, 33, 60, .18), 0 10px 30px rgba(20, 33, 60, .10);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.emm-bar.is-sticky { position: sticky; top: 0; }
.emm-inner {
	max-width: 1240px; margin: 0 auto; padding: 0 1.2rem;
	display: flex; align-items: center; gap: 1.2rem; min-height: var(--emm-h);
}

/* Brand */
.emm-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: 0 0 auto; }
.emm-brand img { max-height: 46px; max-width: 230px; width: auto; height: auto; display: block; }
@media (max-width: 560px) { .emm-brand img { max-height: 36px; max-width: 150px; } }
.emm-brand-mark {
	width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem;
	background: linear-gradient(180deg, #E5B93B, #B8860B); color: #14213C;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.emm-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.emm-brand-text b { font-family: "Bitter", Georgia, serif; color: #fff; font-size: 1.06rem; letter-spacing: .01em; }
.emm-brand-text i { font-style: normal; font-size: .68rem; color: #9BA6C0; text-transform: uppercase; letter-spacing: .1em; }

/* Top level */
.emm-nav { display: flex; align-items: center; gap: .1rem; margin: 0 auto 0 .6rem; padding: 0; list-style: none; }
.emm-item { position: static; }
.emm-top {
	display: flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 10px;
	color: #E8EDF7 !important; text-decoration: none; font-weight: 700; font-size: .93rem; white-space: nowrap;
	transition: background .16s ease, color .16s ease;
}
.emm-top-icon { font-size: 1rem; }
.emm-top:hover, .emm-item.is-open > .emm-top { background: rgba(246, 239, 225, .1); color: #fff !important; }
.emm-item.is-open > .emm-top { box-shadow: inset 0 -3px 0 var(--emm-accent); }
.emm-caret {
	width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .65; transition: transform .2s ease;
}
.emm-item.is-open .emm-caret { transform: rotate(-135deg) translateY(-2px); opacity: 1; }

/* Tools */
.emm-tools { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.emm-search { position: relative; display: flex; }
.emm-search input {
	width: 180px; padding: .48rem .8rem; padding-right: 2rem; border-radius: 999px; font-size: .84rem;
	border: 1px solid var(--emm-line); background: rgba(0, 0, 0, .22); color: #fff; -webkit-appearance: none;
	transition: width .22s ease, background .18s ease, border-color .18s ease;
}
.emm-search input::placeholder { color: #8E99B4; }
.emm-search input:focus { outline: none; width: 230px; background: rgba(0, 0, 0, .35); border-color: var(--emm-orange); }
.emm-search button { position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: .82rem; opacity: .8; }
.emm-cta {
	padding: .55rem 1.15rem; border-radius: 999px; font-weight: 800; font-size: .86rem; white-space: nowrap;
	background: linear-gradient(180deg, #F2853A, var(--emm-orange-d)); color: #fff !important; text-decoration: none;
	box-shadow: 0 3px 10px rgba(232, 119, 34, .38); transition: transform .14s ease, filter .14s ease;
}
.emm-cta:hover { transform: translateY(-1px); filter: brightness(1.07); }

/* ---------- Panel ---------- */
.emm-panel {
	position: absolute; left: 0; right: 0; top: 100%;
	background: linear-gradient(180deg, #FFFDF7 0%, var(--emm-cream) 100%);
	border-bottom: 3px solid var(--emm-accent);
	box-shadow: 0 20px 40px rgba(20, 33, 60, .22);
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	pointer-events: none;
}
.emm-item.is-open > .emm-panel { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.emm-panel-inner {
	max-width: 1240px; margin: 0 auto; padding: 1.6rem 1.2rem 1.7rem;
	display: grid; grid-template-columns: 1fr; gap: 1.6rem;
}
.emm-panel-inner.has-feature { grid-template-columns: minmax(0, 1fr) 300px; }
.emm-cols { display: grid; grid-template-columns: repeat(var(--emm-cols, 2), minmax(0, 1fr)); gap: 1.4rem 2rem; }
.emm-col-head {
	margin: 0 0 .6rem; font-family: "Bitter", Georgia, serif; font-size: .74rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: .1em; color: var(--emm-accent);
	padding-bottom: .4rem; border-bottom: 1px solid rgba(27, 42, 74, .12);
}
.emm-col-head.is-empty { border-bottom-color: transparent; min-height: 1.2em; }
.emm-cols { align-items: start; }
.emm-links { list-style: none; margin: 0; padding: 0; }
.emm-links li { margin: 0 0 .15rem; }
.emm-links a {
	display: flex; gap: .7rem; align-items: flex-start; padding: .5rem .6rem; border-radius: 10px;
	text-decoration: none; transition: background .14s ease, transform .14s ease;
}
.emm-links a:hover { background: rgba(27, 42, 74, .055); transform: translateX(2px); }
.emm-icon {
	flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem;
	background: #fff; border: 1px solid rgba(27, 42, 74, .1); box-shadow: 0 1px 2px rgba(20, 33, 60, .06);
}
.emm-thumb { flex: 0 0 auto; width: 46px; height: 34px; border-radius: 8px; overflow: hidden; background: #EDE6D6; }
.emm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emm-link-text { display: flex; flex-direction: column; min-width: 0; }
.emm-link-text b { color: var(--emm-navy); font-size: .92rem; font-weight: 700; line-height: 1.3; }
.emm-desc { font-style: normal; font-size: .78rem; color: #6B7387; line-height: 1.35; margin-top: .1rem; }
.emm-badge {
	font-style: normal; font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
	background: var(--emm-orange); color: #fff; padding: .1rem .42rem; border-radius: 999px; vertical-align: middle;
}

/* Feature card */
.emm-feature {
	display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; text-decoration: none;
	background: linear-gradient(170deg, #22345C, var(--emm-navy-2));
	box-shadow: 0 6px 18px rgba(20, 33, 60, .18); transition: transform .16s ease, box-shadow .16s ease;
}
.emm-feature:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 33, 60, .26); }
.emm-feature-img {
	display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
	object-fit: cover; object-position: center;
	background: rgba(255, 255, 255, .04);
}
/* Image with no caption: the picture is the card, so let it fill the frame. */
.emm-feature.is-image-only { padding: 0; }
.emm-feature.is-image-only .emm-feature-img { aspect-ratio: 4 / 3; border-radius: 14px; }
.emm-feature.is-text-only { min-height: 0; }
/* Artwork with its own background reads better without the navy showing through. */
.emm-feature { background: linear-gradient(170deg, #22345C, var(--emm-navy-2)); }
.emm-feature-body { padding: .9rem 1.05rem 1.05rem; display: flex; flex-direction: column; gap: .3rem; }
.emm-feature-body b { font-family: "Bitter", Georgia, serif; color: #fff; font-size: 1rem; }
.emm-feature-body i { font-style: normal; font-size: .82rem; color: #C9D2E4; line-height: 1.45; }
.emm-feature-btn { margin-top: .35rem; font-size: .8rem; font-weight: 800; color: #F2B04A; }

/* ---------- Mobile ---------- */
.emm-burger { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; margin-left: auto; }
.emm-burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.emm-bar.is-drawer .emm-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.emm-bar.is-drawer .emm-burger span:nth-child(2) { opacity: 0; }
.emm-bar.is-drawer .emm-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.emm-scrim { position: fixed; inset: var(--emm-h) 0 0; background: rgba(10, 16, 30, .5); z-index: -1; }

@media (max-width: 980px) {
	.emm-inner { flex-wrap: wrap; gap: .6rem; }
	.emm-burger { display: block; }
	.emm-nav {
		display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
		max-height: calc(100vh - var(--emm-h) - 20px); overflow-y: auto; padding-bottom: .8rem;
	}
	.emm-bar.is-drawer .emm-nav { display: flex; }
	.emm-top { padding: .85rem .6rem; border-bottom: 1px solid var(--emm-line); border-radius: 0; font-size: 1rem; }
	.emm-caret { margin-left: auto; }
	.emm-panel {
		position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
		display: none; box-shadow: none; border-bottom: 0; border-radius: 0;
		background: rgba(246, 239, 225, .97);
	}
	.emm-item.is-open > .emm-panel { display: block; }
	.emm-panel-inner, .emm-panel-inner.has-feature { grid-template-columns: 1fr; padding: 1rem .6rem 1.2rem; gap: 1rem; }
	.emm-cols { grid-template-columns: 1fr; gap: 1rem; }
	.emm-col-head.is-empty { display: none; }
	.emm-tools { order: 2; margin-left: auto; }
	.emm-search input { width: 130px; }
	.emm-search input:focus { width: 150px; }
	.emm-scrim { display: none; }
}
@media (max-width: 560px) {
	.emm-search { display: none; }
	.emm-brand-text b { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
	.emm-panel, .emm-links a, .emm-feature, .emm-cta, .emm-caret { transition: none; }
}
