/* HMI Groundwater header and footer, drawn by the child theme while Elementor Pro is off. */
:root {
	--hmi-navy: #16163f;
	--hmi-blue: #2a4291;
	--hmi-ink: #0e0e0e;
	--hmi-heading: #1c244b;
	--hmi-text: #324a6d;
	--hmi-line: #e4e7ee;
	--hmi-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
.hmi-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top contact bar */
.hmi-topbar { background: var(--hmi-navy); color: #fff; font: 500 13px/1.2 var(--hmi-font); }
.hmi-topbar__inner { display: flex; gap: 24px; justify-content: flex-end; align-items: center; min-height: 38px; flex-wrap: wrap; }
.hmi-topbar__item { color: #fff; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.hmi-topbar__item:hover, .hmi-topbar__item:focus-visible { color: #cfd8ff; }

/* Logo and menu bar */
.hmi-mainbar { background: #fff; border-bottom: 1px solid var(--hmi-line); position: relative; z-index: 50; }
.hmi-mainbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.hmi-logo { display: block; flex: 0 0 auto; line-height: 0; }
.hmi-logo__img { height: 64px; width: auto; max-width: 220px; object-fit: contain; }
.hmi-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.hmi-nav__list > li { position: relative; }
.hmi-nav__list a { display: block; padding: 12px 14px; color: var(--hmi-ink); text-decoration: none; font: 500 15px/1.2 var(--hmi-font); white-space: nowrap; }
.hmi-nav__list a:hover, .hmi-nav__list a:focus-visible, .hmi-nav__list .current-menu-item > a, .hmi-nav__list .current-menu-ancestor > a { color: var(--hmi-blue); }
.hmi-nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: middle; }
.hmi-nav__list .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--hmi-line); box-shadow: 0 10px 30px rgba(22, 22, 63, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.hmi-nav__list li:hover > .sub-menu, .hmi-nav__list li:focus-within > .sub-menu, .hmi-nav__list li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hmi-nav__list .sub-menu a { padding: 10px 18px; font-weight: 400; }
.hmi-menu-toggle { display: none; }

/* Phones and small tablets */
@media (max-width: 1024px) {
	.hmi-topbar__inner { justify-content: center; gap: 16px; }
	.hmi-mainbar__inner { min-height: 76px; }
	.hmi-logo__img { height: 50px; }
	.hmi-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: transparent; border: 1px solid var(--hmi-line); border-radius: 4px; cursor: pointer; color: var(--hmi-ink); }
	.hmi-menu-toggle__bars, .hmi-menu-toggle__bars::before, .hmi-menu-toggle__bars::after { content: ""; display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
	.hmi-menu-toggle__bars::before { position: absolute; top: -7px; }
	.hmi-menu-toggle__bars::after { position: absolute; top: 7px; }
	.hmi-menu-toggle[aria-expanded="true"] .hmi-menu-toggle__bars { background: transparent; }
	.hmi-menu-toggle[aria-expanded="true"] .hmi-menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.hmi-menu-toggle[aria-expanded="true"] .hmi-menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
	.hmi-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--hmi-line); box-shadow: 0 12px 30px rgba(22, 22, 63, .12); max-height: calc(100vh - 120px); overflow-y: auto; }
	.hmi-nav.is-open { display: block; }
	.hmi-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
	.hmi-nav__list a { padding: 14px 20px; border-top: 1px solid var(--hmi-line); white-space: normal; }
	.hmi-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; min-width: 0; }
	.hmi-nav__list .sub-menu a { padding-left: 36px; }
}

/* Footer */
.hmi-footer { background: #fff; border-top: 1px solid var(--hmi-line); font-family: var(--hmi-font); color: var(--hmi-text); }
.hmi-footer__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.hmi-footer__logo { height: 70px; width: auto; max-width: 240px; }
.hmi-footer__title { margin: 0 0 16px; color: var(--hmi-heading); font: 600 20px/1.2 var(--hmi-font); }
.hmi-footer__links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.hmi-footer__links li { break-inside: avoid; }
.hmi-footer__links a, .hmi-footer__text a { color: var(--hmi-text); text-decoration: none; }
.hmi-footer__links a { display: inline-block; padding: 5px 0; font-size: 15px; }
.hmi-footer__links a:hover, .hmi-footer__text a:hover, .hmi-footer__links a:focus-visible, .hmi-footer__text a:focus-visible { color: var(--hmi-blue); text-decoration: underline; }
.hmi-footer__text { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.hmi-footer__bar { background: var(--hmi-navy); color: #fff; font-size: 14px; padding: 16px 0; }
@media (max-width: 767px) {
	.hmi-footer__cols { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
	.hmi-footer__links { columns: 1; }
}

/* Beat Elementor's global kit colors (.elementor-kit-N a, button) inside the header and footer. */
.hmi-header .hmi-topbar a.hmi-topbar__item { color: #fff; }
.hmi-header .hmi-topbar a.hmi-topbar__item:hover, .hmi-header .hmi-topbar a.hmi-topbar__item:focus-visible { color: #cfd8ff; }
.hmi-header .hmi-nav__list a { color: var(--hmi-ink); }
.hmi-header .hmi-nav__list a:hover, .hmi-header .hmi-nav__list a:focus-visible, .hmi-header .hmi-nav__list .current-menu-item > a, .hmi-header .hmi-nav__list .current-menu-ancestor > a { color: var(--hmi-blue); }
.hmi-header button.hmi-menu-toggle, .hmi-header button.hmi-menu-toggle:hover, .hmi-header button.hmi-menu-toggle:focus { background: #fff; color: var(--hmi-ink); border-color: var(--hmi-line); }
.hmi-header button.hmi-menu-toggle:focus-visible { outline: 2px solid var(--hmi-blue); outline-offset: 2px; }
/* The last top level dropdown opens to the left, so it never runs past the right edge. */
.hmi-nav__list > li:last-child > .sub-menu { left: auto; right: 0; }
