/* Site header (tools/build-nav.mjs): floating glass island, gliding highlight, picture drop-downs, full-screen phone menu. */
.acs-nav, .acs-nav__panel {
  --navy: #071a36; --blue: #1f8fd6; --green: #8dc63f; --muted: #5d6b82; --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.acs-nav *, .acs-nav__panel * { box-sizing: border-box; }
.acs-nav ul, .acs-nav__panel ul { list-style: none; margin: 0; padding: 0; }
.acs-nav a, .acs-nav__panel a { text-decoration: none; }
.acs-nav button, .acs-nav__panel button { font: inherit; letter-spacing: 0; text-transform: none; box-shadow: none; }

/* the island floats over the page; it slides away on scroll down and back on scroll up */
.acs-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 20px 0; pointer-events: none; transition: transform .5s var(--ease); }
.acs-nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.acs-nav .acs-nav__island {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 1240px; height: 70px; margin: 0 auto; padding: 0 10px 0 22px;
  border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .65);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 50px -20px rgba(7, 26, 54, .45), 0 2px 8px -2px rgba(7, 26, 54, .08);
  transition: height .4s var(--ease), background-color .3s, box-shadow .3s;
}
.acs-nav.is-scrolled .acs-nav__island { height: 62px; background: rgba(255, 255, 255, .86); }
.acs-nav .acs-nav__logo { flex: none; display: block; }
.acs-nav .acs-nav__logo img { display: block; width: auto; height: 46px; transition: height .4s var(--ease); }
.acs-nav.is-scrolled .acs-nav__logo img { height: 40px; }

/* menu with the gliding highlight */
.acs-nav .acs-nav__menu { margin: 0 auto; }
.acs-nav .acs-nav__menu > ul { position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(7, 26, 54, .045); }
.acs-nav .acs-nav__glide { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: var(--gw, 0); border-radius: 999px; background: #fff; opacity: 0;
  box-shadow: 0 6px 16px -8px rgba(7, 26, 54, .35), 0 0 0 1px rgba(7, 26, 54, .04); transform: translateX(var(--gx, 0)); transition: transform .45s var(--spring), width .45s var(--spring), opacity .25s; }
.acs-nav .acs-nav__glide.is-on { opacity: 1; }
.acs-nav .acs-nav__item { position: relative; z-index: 1; }
.acs-nav .acs-nav__link { display: inline-flex; align-items: center; gap: 5px; padding: 10px 16px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: 15px; font-weight: 700; line-height: 1.2; color: #2b3b55; white-space: nowrap; transition: color .25s; }
.acs-nav .acs-nav__link:hover, .acs-nav .acs-nav__item.is-open > .acs-nav__link { color: var(--navy); }
.acs-nav .acs-nav__item.is-current > .acs-nav__link { color: var(--blue); }
.acs-nav .acs-nav__item.is-current > .acs-nav__link::before { content: ""; width: 6px; height: 6px; margin-right: 2px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(141, 198, 63, .25); }
.acs-nav .acs-nav__chev { transition: transform .3s var(--ease); opacity: .7; }
.acs-nav .acs-nav__item.is-open .acs-nav__chev { transform: rotate(180deg); }

/* picture drop-downs */
.acs-nav .acs-nav__mega { position: absolute; top: calc(100% + 18px); left: 50%; display: grid; grid-template-columns: 230px 1fr; gap: 10px; width: 600px; padding: 10px;
  border-radius: 26px; background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 40px 80px -30px rgba(7, 26, 54, .5); opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.97); transform-origin: 50% 0; filter: blur(4px);
  transition: opacity .25s, transform .4s var(--ease), filter .3s, visibility 0s .4s; }
.acs-nav .acs-nav__mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.acs-nav .acs-nav__item.is-open .acs-nav__mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); filter: none; transition-delay: 0s; }
.acs-nav .acs-nav__feature { position: relative; display: block; min-height: 250px; overflow: hidden; border-radius: 18px; color: #fff; isolation: isolate; }
.acs-nav .acs-nav__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.acs-nav .acs-nav__feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 26, 54, 0) 25%, rgba(7, 26, 54, .92)); }
.acs-nav .acs-nav__feature:hover img { transform: scale(1.07); }
.acs-nav .acs-nav__feature-text { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 6px; }
.acs-nav .acs-nav__feature-text i { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--green); color: var(--navy); font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.acs-nav .acs-nav__feature-text b { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acs-nav .acs-nav__feature-text span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.acs-nav .acs-nav__links { display: grid; align-content: center; gap: 2px; }
.acs-nav .acs-nav__links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; transition: background-color .2s; }
.acs-nav .acs-nav__links a:hover { background: rgba(31, 143, 214, .08); }
.acs-nav .acs-nav__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--blue); background: linear-gradient(135deg, #eaf4fd, #f1f8e8); transition: transform .35s var(--spring), color .2s, background .2s; }
.acs-nav .acs-nav__links a:hover .acs-nav__ico { transform: scale(1.08) rotate(-4deg); color: #fff; background: linear-gradient(135deg, var(--blue), var(--green)); }
.acs-nav .acs-nav__links b { display: block; font-size: 15px; color: var(--navy); }
.acs-nav .acs-nav__links small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.acs-nav .acs-nav__links a[aria-current] { background: rgba(31, 143, 214, .1); }
.acs-nav .acs-nav__links a[aria-current] b { color: var(--blue); }

/* end: call + Apply now (with a moving shine) + phone menu button */
.acs-nav .acs-nav__end { display: flex; align-items: center; gap: 8px; flex: none; }
.acs-nav .acs-nav__round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--navy); background: rgba(7, 26, 54, .06); transition: background-color .2s, color .2s, transform .3s var(--spring); }
.acs-nav .acs-nav__round:hover { background: var(--navy); color: #fff; transform: rotate(-12deg); }
.acs-nav .acs-nav__cta, .acs-nav__panel .acs-nav__cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px;
  border-radius: 999px; color: #fff; font-size: 15px; font-weight: 800; white-space: nowrap; isolation: isolate;
  background: linear-gradient(120deg, #0b2a55, #1f8fd6 55%, #6fbf3b); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 14px 28px -14px rgba(31, 143, 214, .9); transition: background-position .6s var(--ease), transform .3s var(--spring); }
.acs-nav .acs-nav__cta::after, .acs-nav__panel .acs-nav__cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: acs-nav-shine 4.5s ease-in-out 1.5s infinite; }
@keyframes acs-nav-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.acs-nav .acs-nav__cta:hover { background-position: 100% 0; transform: translateY(-1px); color: #fff; }
.acs-nav .acs-nav__cta svg, .acs-nav__panel .acs-nav__cta svg { transition: transform .3s var(--ease); }
.acs-nav .acs-nav__cta:hover svg { transform: translateX(3px); }
.acs-nav .acs-nav__burger { display: none; position: relative; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: var(--navy); cursor: pointer; }
.acs-nav .acs-nav__burger span { position: absolute; left: 15px; right: 15px; height: 2.4px; border-radius: 2px; background: #fff; transition: transform .45s var(--spring), top .3s var(--ease), width .3s; }
.acs-nav .acs-nav__burger span:first-child { top: 19px; }
.acs-nav .acs-nav__burger span:last-child { top: 28px; right: 21px; }
.acs-nav .acs-nav__burger[aria-expanded="true"] span:first-child { top: 24px; transform: rotate(45deg); }
.acs-nav .acs-nav__burger[aria-expanded="true"] span:last-child { top: 24px; right: 15px; transform: rotate(-45deg); }

/* full-screen phone menu */
.acs-nav__panel { position: fixed; inset: 0; z-index: 999; overflow-y: auto; color: #fff;
  background: radial-gradient(600px 400px at 100% 0%, rgba(31, 143, 214, .45), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(141, 198, 63, .3), transparent 60%), #071a36;
  clip-path: circle(0 at calc(100% - 50px) 50px); transition: clip-path .6s var(--ease); }
.acs-nav__panel[hidden] { display: none; }
.acs-nav__panel.is-open { clip-path: circle(150% at calc(100% - 50px) 50px); }
.acs-nav__panel .acs-nav__panel-inner { display: flex; flex-direction: column; min-height: 100%; padding: 110px 28px 32px; }
.acs-nav__panel .acs-nav__bigs { flex: 1; }
.acs-nav__panel .acs-nav__big, .acs-nav__panel .acs-nav__panel-foot { opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .6s var(--ease); transition-delay: calc(.12s + var(--i) * .05s); }
.acs-nav__panel.is-open .acs-nav__big, .acs-nav__panel.is-open .acs-nav__panel-foot { opacity: 1; transform: none; }
.acs-nav__panel .acs-nav__big { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.acs-nav__panel .acs-nav__big > a { display: block; padding: 6px 0; font-size: clamp(28px, 8vw, 38px); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.acs-nav__panel .acs-nav__big.is-current > a { background: linear-gradient(90deg, #6cc4ff, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acs-nav__panel .acs-nav__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 10px; }
.acs-nav__panel .acs-nav__chips a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.acs-nav__panel .acs-nav__chips a[aria-current] { background: var(--green); border-color: var(--green); color: var(--navy); }
.acs-nav__panel .acs-nav__panel-foot { margin-top: 28px; }
.acs-nav__panel .acs-nav__cta--big { width: 100%; height: 58px; font-size: 17px; }
.acs-nav__panel .acs-nav__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; font-size: 14.5px; font-weight: 600; }
.acs-nav__panel .acs-nav__contact a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .75); }
.acs-nav__panel .acs-nav__contact a:last-child { margin-left: auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
html.acs-nav-locked, html.acs-nav-locked body { overflow: hidden; }
html.acs-nav-locked .acs-nav { transform: none; }
html.acs-nav-locked .acs-nav .acs-nav__island { background: rgba(255, 255, 255, .95); }

@media (max-width: 1200px) {
  .acs-nav .acs-nav__link { padding: 10px 12px; font-size: 14.5px; }
  .acs-nav .acs-nav__round { display: none; }
}
@media (max-width: 1060px) {
  .acs-nav .acs-nav__menu { display: none; }
  .acs-nav .acs-nav__end { margin-left: auto; }
  .acs-nav .acs-nav__burger { display: block; }
  .acs-nav .acs-nav__round { display: grid; }
}
@media (max-width: 560px) {
  .acs-nav { padding: 10px 12px 0; }
  .acs-nav .acs-nav__island, .acs-nav.is-scrolled .acs-nav__island { height: 62px; padding: 0 6px 0 16px; }
  .acs-nav .acs-nav__logo img, .acs-nav.is-scrolled .acs-nav__logo img { height: 38px; }
  .acs-nav .acs-nav__end .acs-nav__cta, .acs-nav .acs-nav__round { display: none; }
  .acs-nav .acs-nav__burger { width: 48px; height: 48px; }
  .acs-nav .acs-nav__burger span:first-child { top: 18px; }
  .acs-nav .acs-nav__burger span:last-child { top: 27px; }
  .acs-nav .acs-nav__burger[aria-expanded="true"] span { top: 23px !important; }
  .acs-nav__panel .acs-nav__panel-inner { padding: 96px 22px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .acs-nav, .acs-nav *, .acs-nav__panel, .acs-nav__panel * { transition: none !important; animation: none !important; }
}

/* room at the top of every page for the island, so it sits above the banner instead of covering it */
:root { --acs-nav-space: 110px; }
body .top_site_main, body .page-title-wrapper { margin-top: 0 !important; }
body { padding-top: var(--acs-nav-space) !important; }
@media (max-width: 560px) { :root { --acs-nav-space: 88px; } }
/* sections reached by a #link stop below the floating bar */
html { scroll-padding-top: calc(var(--acs-nav-space) + 10px); }
