/* ==========================================================================
   ESG Pro Mega Menu — header styles
   Every colour/size is a CSS variable so the Elementor widget (Style tab)
   or a child theme can override it.
   ========================================================================== */

.epmm {
	--epmm-max: 1240px;
	--epmm-gutter: 24px;
	--epmm-h: 92px;
	--epmm-logo-w: 190px;
	--epmm-radius: 10px;
	--epmm-transform: uppercase;

	--epmm-bg: #0f1c28;          /* ESG PRO dark navy */
	--epmm-topbar-bg: #0a141d;
	--epmm-topbar-fg: #cfd8e0;
	--epmm-link: #ffffff;
	--epmm-accent: #7cc142;      /* ESG PRO lime green */
	--epmm-accent-dark: #3d7f1f;
	--epmm-cta-bg: #f26a21;      /* ESG PRO orange CTA */
	--epmm-cta-fg: #ffffff;
	--epmm-cta-hover: #d9581a;

	--epmm-panel-bg: #ffffff;
	--epmm-panel-side: #f2f5f3;
	--epmm-heading: #0f1c28;
	--epmm-text: #4a5865;
	--epmm-card-default: #f1f3f5;

	position: relative;
	z-index: 999;
	font-family: inherit;
	line-height: 1.4;
}

.epmm *, .epmm *::before, .epmm *::after { box-sizing: border-box; }
.epmm ul { list-style: none; margin: 0; padding: 0; }
.epmm p { margin: 0; }
.epmm a { text-decoration: none; }
.epmm img { max-width: 100%; height: auto; }
.epmm .epmm-ico { display: block; flex: 0 0 auto; }
.epmm .epmm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.epmm .epmm-overlay[hidden], .epmm .epmm-search[hidden] { display: none; }

/* Reset theme / Elementor-kit button styles for our buttons */
.epmm .epmm-trigger,
.epmm .epmm-icon-btn,
.epmm .epmm-search__submit {
	font: inherit; color: inherit; background: transparent; border: 0; border-radius: 0;
	padding: 0; margin: 0; min-height: 0; box-shadow: none; cursor: pointer;
	letter-spacing: inherit; line-height: inherit; text-transform: none; text-decoration: none;
}
.epmm .epmm-trigger:hover, .epmm .epmm-trigger:focus,
.epmm .epmm-icon-btn:hover, .epmm .epmm-icon-btn:focus { background: transparent; box-shadow: none; }

.epmm a:focus-visible, .epmm button:focus-visible, .epmm input:focus-visible {
	outline: 2px solid var(--epmm-accent); outline-offset: 2px;
}

.epmm .epmm-wrap { width: 100%; max-width: var(--epmm-max); margin: 0 auto; padding: 0 var(--epmm-gutter); }

/* ---------- Top bar ---------- */
.epmm .epmm-topbar { background: var(--epmm-topbar-bg); color: var(--epmm-topbar-fg); font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.epmm .epmm-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.epmm .epmm-topbar__left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.epmm .epmm-topbar__text { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.epmm .epmm-contacts { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.epmm .epmm-contacts a { color: inherit; transition: color .2s; }
.epmm .epmm-contacts a:hover { color: var(--epmm-accent); }
.epmm .epmm-pipe { opacity: .45; font-weight: 400; }
.epmm .epmm-socials { display: flex; align-items: center; gap: 6px; }
.epmm .epmm-socials a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--epmm-topbar-fg); transition: color .2s, background .2s; }
.epmm .epmm-socials a:hover { color: var(--epmm-accent); background: rgba(255,255,255,.07); }

/* ---------- Main bar ---------- */
.epmm .epmm-main { position: relative; background: var(--epmm-bg); }
.epmm .epmm-main__inner { position: relative; display: flex; align-items: center; gap: 28px; min-height: var(--epmm-h); }
.epmm .epmm-logo { display: flex; align-items: center; flex: 0 0 auto; color: var(--epmm-link); font-size: 22px; font-weight: 800; }
.epmm .epmm-logo img { display: block; width: var(--epmm-logo-w); }

.epmm .epmm-nav { flex: 1 1 auto; display: flex; align-self: stretch; min-width: 0; }
.epmm .epmm-nav__head, .epmm .epmm-nav__extra { display: none; }
.epmm .epmm-menu { display: flex; align-items: stretch; justify-content: center; gap: 6px; width: 100%; }
.epmm .epmm-item--top { display: flex; align-items: center; }
.epmm .epmm-has-simple { position: relative; }

.epmm .epmm-link {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 10px;
	color: var(--epmm-link); font-size: 15px; font-weight: 700; letter-spacing: .02em;
	text-transform: var(--epmm-transform); white-space: nowrap; transition: color .2s;
}
.epmm .epmm-caret { display: inline-grid; place-items: center; width: 24px; height: 34px; margin-left: -8px; color: var(--epmm-link); transition: color .2s; }
.epmm .epmm-ico--chevron { transition: transform .25s ease; }
.epmm .epmm-item--top.is-open > .epmm-trigger .epmm-ico--chevron { transform: rotate(180deg); }

.epmm .epmm-item--top:hover > .epmm-link,
.epmm .epmm-item--top:hover > .epmm-caret,
.epmm .epmm-item--top.is-open > .epmm-link,
.epmm .epmm-item--top.is-open > .epmm-caret,
.epmm .epmm-item--top.is-current > .epmm-link,
.epmm .epmm-item--top.is-current > .epmm-caret { color: var(--epmm-accent); }

/* ---------- Actions ---------- */
.epmm .epmm-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.epmm .epmm-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: var(--epmm-link); transition: color .2s, background .2s; }
.epmm .epmm-icon-btn:hover, .epmm .epmm-icon-btn[aria-expanded="true"] { color: var(--epmm-accent); background: rgba(255,255,255,.07); }
.epmm .epmm-vsep { width: 2px; height: 20px; background: var(--epmm-link); opacity: .7; }
.epmm .epmm-lang { display: flex; align-items: center; }
.epmm .epmm-burger { display: none; }

.epmm .epmm-cta {
	display: inline-flex; align-items: center; justify-content: center; padding: 16px 26px; border-radius: 6px;
	background: var(--epmm-cta-bg); color: var(--epmm-cta-fg); font-size: 15px; font-weight: 700; letter-spacing: .02em;
	text-transform: var(--epmm-transform); white-space: nowrap; transition: background .2s, transform .2s;
}
.epmm .epmm-cta:hover, .epmm .epmm-cta:focus { background: var(--epmm-cta-hover); color: var(--epmm-cta-fg); transform: translateY(-1px); }

/* ---------- Search ---------- */
.epmm .epmm-search { position: absolute; left: 0; right: 0; top: 100%; z-index: 25; padding: 18px 0; background: var(--epmm-panel-bg); box-shadow: 0 18px 40px rgba(5,15,25,.25); }
.epmm .epmm-search__form { display: flex; gap: 10px; }
.epmm .epmm-search__form input[type="search"] {
	flex: 1; height: 52px; margin: 0; padding: 0 16px; border: 1px solid #d3dae0; border-radius: 6px;
	background: #fff; color: var(--epmm-heading); font: inherit; font-size: 16px; box-shadow: none;
}
.epmm .epmm-search__form .epmm-search__submit { height: 52px; padding: 0 28px; border-radius: 6px; background: var(--epmm-heading); color: #fff; font-weight: 700; transition: background .2s, color .2s; }
.epmm .epmm-search__form .epmm-search__submit:hover { background: var(--epmm-accent); color: var(--epmm-heading); }

/* ---------- Mega + dropdown content (shared) ---------- */
.epmm .epmm-col__title,
.epmm .epmm-subhead {
	padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--epmm-heading);
	color: var(--epmm-heading); font-size: 16px; font-weight: 700; letter-spacing: .02em; text-transform: var(--epmm-transform);
}
.epmm .epmm-subhead { margin-top: 18px; margin-bottom: 4px; }
.epmm .epmm-col__title a { color: inherit; }
.epmm .epmm-col__title a:hover { color: var(--epmm-accent-dark); }

.epmm .epmm-mega { display: grid; grid-template-columns: repeat(var(--epmm-cols, 3), minmax(0, 1fr)); background: var(--epmm-panel-bg); border-radius: var(--epmm-radius); overflow: hidden; box-shadow: 0 28px 70px rgba(4,12,20,.38); }
.epmm .epmm-col { padding: 36px 34px 38px; }
.epmm .epmm-col--panel { background: var(--epmm-panel-side); }
.epmm .epmm-cards { display: flex; flex-direction: column; gap: 12px; }

.epmm .epmm-card {
	display: block; padding: 16px 18px; border-radius: 6px;
	background: var(--epmm-card-bg, var(--epmm-card-default)); color: var(--epmm-heading);
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.epmm .epmm-card:hover, .epmm .epmm-card:focus-visible, .epmm .epmm-card.is-current {
	color: var(--epmm-heading); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,28,40,.12); filter: brightness(.97) saturate(1.1);
}
.epmm .epmm-card.epmm-on-dark, .epmm .epmm-card.epmm-on-dark:hover { color: #fff; }
.epmm .epmm-card.epmm-on-dark:hover { filter: brightness(1.1); }
.epmm .epmm-card__badge { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; color: var(--epmm-accent-dark); }
.epmm .epmm-card__title { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: .01em; text-transform: var(--epmm-transform); }
.epmm .epmm-card__desc { display: block; margin-top: 5px; font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--epmm-text); }
.epmm .epmm-on-dark .epmm-card__desc { color: rgba(255,255,255,.86); }
.epmm .epmm-on-dark .epmm-card__badge { color: #b8e58c; }

.epmm .epmm-dd { padding: 30px 34px 34px; background: var(--epmm-panel-bg); border-radius: var(--epmm-radius); box-shadow: 0 28px 70px rgba(4,12,20,.38); }
.epmm .epmm-dd__list { display: flex; flex-direction: column; gap: 10px; }
.epmm .epmm-dd__link {
	display: block; padding: 13px 16px; border-radius: 6px; background: var(--epmm-card-default); color: var(--epmm-heading);
	font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: var(--epmm-transform);
	box-shadow: inset 0 0 0 0 var(--epmm-accent); transition: box-shadow .2s, background .2s, color .2s;
}
.epmm .epmm-dd__link:hover, .epmm .epmm-dd__link:focus-visible, .epmm .epmm-dd__link.is-current {
	color: var(--epmm-heading); background: #e9f4df; box-shadow: inset 4px 0 0 var(--epmm-accent);
}
.epmm .epmm-dd__list--sub { margin: 8px 0 4px 14px; gap: 6px; }
.epmm .epmm-dd__list--sub .epmm-dd__link { padding: 9px 14px; font-size: 14px; font-weight: 600; text-transform: none; }

/* ==========================================================================
   Desktop (≥1101px): hover/click panels
   ========================================================================== */
@media (min-width: 1101px) {
	.epmm .epmm-panel {
		position: absolute; top: 100%; z-index: 20; padding-top: 12px;
		opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px);
		transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
	}
	.epmm .epmm-item--top.is-open > .epmm-panel,
	.epmm:not(.epmm--js) .epmm-item--top:hover > .epmm-panel,
	.epmm:not(.epmm--js) .epmm-item--top:focus-within > .epmm-panel {
		opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s;
	}
	/* Mega spans the content width (logo → button), like the reference */
	.epmm .epmm-panel--mega { left: var(--epmm-gutter); right: var(--epmm-gutter); }
	/* Simple dropdown centred under its item */
	.epmm .epmm-panel--simple { left: 50%; width: 540px; margin-left: -270px; }
	.epmm .epmm-overlay { display: none; }
}

/* Mid-size desktops: tighten spacing */
@media (min-width: 1101px) and (max-width: 1320px) {
	.epmm .epmm-main__inner { gap: 18px; }
	.epmm .epmm-menu { gap: 0; }
	.epmm .epmm-link { font-size: 14px; padding: 10px 8px; }
	.epmm .epmm-cta { padding: 14px 18px; font-size: 14px; }
	.epmm .epmm-actions { gap: 10px; }
	.epmm .epmm-logo img { width: min(var(--epmm-logo-w), 160px); }
	.epmm .epmm-col { padding: 30px 26px 32px; }
}

/* ==========================================================================
   Mobile / tablet (≤1100px): off-canvas drawer + accordion
   ========================================================================== */
@media (max-width: 1100px) {
	.epmm { --epmm-h: 72px; }
	.epmm .epmm-topbar { display: none; }
	.epmm .epmm-main__inner { gap: 12px; }
	.epmm .epmm-logo img { width: min(var(--epmm-logo-w), 150px); }
	.epmm .epmm-actions { margin-left: auto; gap: 6px; }
	.epmm .epmm-vsep { display: none; }
	.epmm .epmm-burger { display: inline-grid; }
	.epmm .epmm-actions .epmm-cta { padding: 12px 16px; font-size: 13px; margin-left: 4px; }

	.epmm .epmm-nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 100001; width: min(420px, 90vw);
		flex-direction: column; align-self: auto; padding: 16px 22px 32px;
		background: var(--epmm-bg); overflow-y: auto; overscroll-behavior: contain;
		transform: translateX(100%); visibility: hidden;
		transition: transform .3s ease, visibility 0s linear .3s;
	}
	.epmm.is-nav-open .epmm-nav { transform: none; visibility: visible; transition-delay: 0s; box-shadow: -20px 0 60px rgba(0,0,0,.35); }
	.epmm .epmm-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(3,10,16,.6); }

	.epmm .epmm-nav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
	.epmm .epmm-nav__head .epmm-logo img { width: 140px; }

	.epmm .epmm-menu { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
	.epmm .epmm-item--top { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.08); }
	.epmm .epmm-item--top > .epmm-link { flex: 1 1 auto; padding: 16px 0; font-size: 16px; white-space: normal; }
	.epmm .epmm-item--top > .epmm-link.epmm-trigger { justify-content: space-between; text-align: left; }
	.epmm .epmm-caret { width: 44px; height: 44px; margin: 0; }

	.epmm .epmm-panel { display: none; flex: 0 0 100%; width: 100%; padding: 0 0 18px; }
	.epmm .epmm-item--top.is-open > .epmm-panel { display: block; }

	.epmm .epmm-mega { display: flex; flex-direction: column; gap: 22px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
	.epmm .epmm-col, .epmm .epmm-col--panel { padding: 0; background: none; }
	.epmm .epmm-col__title, .epmm .epmm-subhead { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.15); font-size: 12px; padding-bottom: 8px; margin-bottom: 10px; }
	.epmm .epmm-subhead { margin-top: 12px; }
	.epmm .epmm-col__title a:hover { color: var(--epmm-accent); }
	.epmm .epmm-cards { gap: 8px; }
	.epmm .epmm-card { padding: 12px 14px; }
	.epmm .epmm-card:hover { transform: none; }
	.epmm .epmm-card__title { font-size: 14px; }
	.epmm .epmm-card__desc { font-size: 13px; }

	.epmm .epmm-dd { padding: 0; background: none; box-shadow: none; border-radius: 0; }
	.epmm .epmm-panel--simple .epmm-dd > .epmm-col__title { display: none; }
	.epmm .epmm-dd__list { gap: 6px; }
	.epmm .epmm-dd__link { padding: 12px 14px; background: rgba(255,255,255,.06); color: #fff; font-size: 14px; }
	.epmm .epmm-dd__link:hover, .epmm .epmm-dd__link.is-current { background: rgba(124,193,66,.14); color: #fff; }

	.epmm .epmm-nav__extra { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 26px; color: var(--epmm-topbar-fg); }
	.epmm .epmm-nav__extra .epmm-cta { width: 100%; }
	.epmm .epmm-nav__extra .epmm-contacts { flex-direction: column; align-items: flex-start; gap: 6px; font-weight: 600; }
	.epmm .epmm-nav__extra .epmm-pipe { display: none; }
	.epmm .epmm-nav__extra .epmm-socials a { color: var(--epmm-topbar-fg); }
}

@media (max-width: 600px) {
	.epmm .epmm-actions .epmm-cta { display: none; }
	.epmm .epmm-search__form .epmm-search__submit { padding: 0 18px; }
}

html.epmm-lock, html.epmm-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.epmm *, .epmm *::before, .epmm *::after { transition-duration: .01ms !important; }
}
