/* navbar: optional utility bar + sticky header. Centred menu with an underline that grows on hover, a primary CTA,
   a soft shadow once the page scrolls, and a burger menu under 1024px (and on portrait tablets) whose panel carries the CTAs.
   From Vista Builder v2 (2026-10). */
.hc-nav{
 --nav-bg:rgba(255,255,255,.96);
 --nav-ink:var(--hc-ink,#16181D);
 --nav-line:var(--hc-line,#DADFE5);
 --nav-accent:var(--hc-accent,#2F5BD3);
 --nav-util-bg:var(--hc-dark,#121826);
 --nav-util-ink:var(--hc-on-dark,#C9D2DD);
 --nav-font:var(--hc-font-display,system-ui,sans-serif);
 --nav-height:76px;
 --nav-height-phone:64px;
 --nav-pad:var(--hc-pad,clamp(20px,6vw,120px));
 --nav-max:var(--hc-max,1440px);
 --nav-ease:var(--hc-ease-out,cubic-bezier(0.23,1,0.32,1));
 --nav-collapse:1023px; /* documentation only: the media query below uses this value. Was 1365px for 7 links
   (fix-1280, 2026-10-12); the 2026-11-03 menu (Services drop-down + 4 links) needs ~880px */
 font-family:var(--nav-font);
}
.hc-nav__wrap{max-width:var(--nav-max);margin:0 auto;padding:0 var(--nav-pad)}

/* utility bar */
.hc-nav__util{background:var(--nav-util-bg);color:var(--nav-util-ink);font-size:13px;font-weight:500}
.hc-nav__util .hc-nav__wrap{display:flex;justify-content:space-between;align-items:center;min-height:36px;gap:16px}
.hc-nav__util a{color:#fff;font-weight:600;text-decoration:none}
.hc-nav__sep{display:inline-block;width:1px;height:12px;background:rgba(255,255,255,.3);margin:0 14px;vertical-align:middle}

/* header */
.hc-nav__bar{position:sticky;top:0;z-index:50;background:var(--nav-bg);backdrop-filter:saturate(1.4) blur(8px);-webkit-backdrop-filter:saturate(1.4) blur(8px);
 border-bottom:1px solid var(--nav-line);transition:box-shadow 200ms ease}
.hc-nav__bar.is-scrolled{box-shadow:0 6px 24px -12px rgba(14,34,53,.25)}
.hc-nav__in{display:flex;align-items:center;gap:24px;min-height:var(--nav-height)}
.hc-nav__brand{display:inline-flex;align-items:center;color:var(--nav-ink);text-decoration:none;font-weight:700;font-size:20px;letter-spacing:-.01em}
.hc-nav__brand img{height:40px;width:auto}
.hc-nav nav{flex:1}
.hc-nav__menu{list-style:none;margin:0;padding:0;display:flex;gap:22px;justify-content:center;font-size:14px;font-weight:500;color:var(--nav-ink);white-space:nowrap}
.hc-nav__menu a{display:inline-block;padding:6px 0;position:relative;color:inherit;text-decoration:none}
.hc-nav__menu a:not(.hc-nav__btn):after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--nav-accent);
 transform:scaleX(0);transform-origin:left;transition:transform 200ms var(--nav-ease)}
.hc-nav__menu a[aria-current]:after{transform:scaleX(1)}
@media (hover:hover) and (pointer:fine){.hc-nav__menu a:not(.hc-nav__btn):hover:after{transform:scaleX(1)}}
.hc-nav__menu-cta{display:none}

/* drop-down (a menu item with links under it): opens on hover, click/tap and keyboard; navbar.js keeps aria-expanded true */
.hc-nav__has-sub{position:relative}
.hc-nav__sub-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;padding:6px 0;position:relative;cursor:pointer;color:inherit;font:inherit}
.hc-nav__sub-btn:focus-visible{outline:2px solid var(--nav-accent);outline-offset:4px}
.hc-nav__sub-btn:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--nav-accent);transform:scaleX(0);transform-origin:left;transition:transform 200ms var(--nav-ease)}
.hc-nav__sub-btn.is-current:after,.hc-nav__sub-btn[aria-expanded=true]:after{transform:scaleX(1)}
.hc-nav__chev{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform 200ms var(--nav-ease)}
.hc-nav__sub-btn[aria-expanded=true] .hc-nav__chev{transform:rotate(180deg)}
.hc-nav__sub{list-style:none;margin:0;padding:8px 0;position:absolute;left:-18px;top:calc(100% + 14px);min-width:250px;background:#fff;border:1px solid var(--nav-line);
 box-shadow:0 18px 30px -20px rgba(14,34,53,.35);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity 160ms ease,transform 200ms var(--nav-ease),visibility 0s linear 200ms;z-index:2}
.hc-nav__sub:before{content:"";position:absolute;left:0;right:0;top:-15px;height:15px} /* hover bridge from the button */
.hc-nav__sub-btn[aria-expanded=true]+.hc-nav__sub{opacity:1;visibility:visible;transform:none;transition:opacity 160ms ease,transform 200ms var(--nav-ease),visibility 0s}
.hc-nav__menu .hc-nav__sub a{display:block;padding:10px 18px}
.hc-nav__menu .hc-nav__sub a:after{display:none}
.hc-nav__sub a[aria-current]{color:var(--nav-accent)}
@media (hover:hover) and (pointer:fine){.hc-nav__sub a:hover{background:#F2F5F9}}
.hc-nav__sub a:focus-visible{outline:2px solid var(--nav-accent);outline-offset:-2px}

/* buttons */
.hc-nav__btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;font:600 14px var(--nav-font);border-radius:var(--hc-radius,2px);
 border:1.5px solid transparent;white-space:nowrap;text-decoration:none;cursor:pointer;transition:background-color 160ms ease,color 160ms ease,transform 120ms var(--nav-ease)}
.hc-nav__btn:active{transform:scale(.97)}
.hc-nav__btn--p{background:var(--nav-accent);color:var(--hc-on-accent,#fff)}
.hc-nav__btn--s{border-color:var(--nav-ink);color:var(--nav-ink)}
@media (hover:hover) and (pointer:fine){.hc-nav__btn--p:hover{filter:brightness(.9)}.hc-nav__btn--s:hover{background:var(--nav-ink);color:#fff}}
.hc-nav__burger{display:none}
.hc-nav__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* collapsed: burger + dropdown panel */
@media (max-width:1023.98px), (orientation:portrait) and (max-width:1100px){ /* 5 items + Services drop-down (2026-11-03): the full menu fits from 1024 (measured: 92 px clear each side; .98 covers zoomed widths like 1023.5); portrait tablets keep the burger, which carries the CTAs */
 .hc-nav__menu{display:none}
 .hc-nav__burger{display:inline-flex;flex-direction:column;justify-content:center;gap:6px;width:46px;height:46px;border:1px solid var(--nav-line);background:#fff;cursor:pointer;padding:0 12px}
 .hc-nav__burger i{display:block;height:2px;background:var(--nav-ink);transition:transform 200ms var(--nav-ease)}
 .hc-nav__burger[aria-expanded=true] i:first-of-type{transform:translateY(4px) rotate(45deg)}
 .hc-nav__burger[aria-expanded=true] i:last-of-type{transform:translateY(-4px) rotate(-45deg)}
 .hc-nav nav{flex:0}
 .hc-nav__brand{margin-right:auto}
 .hc-nav__menu.is-open{display:flex;position:absolute;left:0;right:0;top:100%;flex-direction:column;gap:0;background:#fff;border-bottom:1px solid var(--nav-line);
  padding:8px var(--nav-pad) 20px;font-size:16px;box-shadow:0 18px 30px -20px rgba(14,34,53,.3);animation:hc-nav-in 200ms var(--nav-ease)}
 .hc-nav__menu.is-open li a:not(.hc-nav__btn){padding:13px 0;display:block;border-bottom:1px solid #EDF1F6}
 .hc-nav__menu.is-open li a:not(.hc-nav__btn):after{display:none}
 .hc-nav__menu.is-open .hc-nav__sub-btn{display:flex;width:100%;justify-content:space-between;padding:13px 0;border-bottom:1px solid #EDF1F6}
 .hc-nav__menu.is-open .hc-nav__sub-btn:after{display:none}
 .hc-nav__menu.is-open .hc-nav__chev{width:14px;height:14px}
 .hc-nav__menu.is-open .hc-nav__sub{position:static;display:none;min-width:0;padding:0 0 6px;border:0;box-shadow:none;opacity:1;visibility:visible;transform:none;transition:none}
 .hc-nav__menu.is-open .hc-nav__sub:before{display:none}
 .hc-nav__menu.is-open .hc-nav__sub-btn[aria-expanded=true]+.hc-nav__sub{display:block}
 .hc-nav__menu.is-open .hc-nav__sub a{padding:12px 0 12px 16px;font-size:15px}
 .hc-nav__menu.is-open .hc-nav__menu-cta{display:block;margin-top:12px}
 .hc-nav__menu.is-open .hc-nav__menu-cta .hc-nav__btn{display:flex;width:100%;min-height:48px;padding:0 18px} /* beats '.hc-nav__menu a' (inline-block, 6px 0), which left the labels top-left */
}
@keyframes hc-nav-in{from{opacity:0;transform:translateY(-6px)}}
@media (max-width:760px), (orientation:portrait) and (max-width:1100px){
 .hc-nav__in{min-height:var(--nav-height-phone);gap:12px}
 .hc-nav__brand img{height:32px}
 .hc-nav__cta{display:none}
 .hc-nav__util-left{display:none}
 .hc-nav__util .hc-nav__wrap{justify-content:center}
}
@media (prefers-reduced-motion:reduce){
 .hc-nav *,.hc-nav *:after{transition-duration:120ms!important;animation:none!important}
 .hc-nav__btn:active{transform:none}
}
