/* =========================================================
   1) GLOBAL / LAYOUT STABILITY
========================================================= */


html {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}



:root {
  --banner-h: ;
  --topbar-h: 50px;
  --navbar-h: 70px;
  --header-total: calc(var(--banner-h) + var(--topbar-h) + var(--navbar-h));
}

@media (min-width: 1100px) {
  :root {
    --header-h: 50px;
  }
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

body {
  padding-top: var(--header-total) !important;
}

/* Lock page behind mobile nav */
html.nav-open,
body.nav-open {
  overflow: hidden !important;
  height: 110%;
}

body.nav-open {
  width: 100%;
  left: 0;
  right: 0;
}

/* Header hide states */
body.hide-bars .header-wrapper {
  transform: translateY(calc(-1 * var(--hide-offset)));
}

body.hide-bars .top-banner {
  opacity: 0;
  pointer-events: none;
}

body.hide-banner.hide-topbar .header-wrapper {
  transform: translateY(calc(-1 * (var(--banner-h) + var(--topbar-h))));
}

body:not(.hide-banner).hide-topbar .header-wrapper {
  transform: translateY(calc(-1 * var(--topbar-h)));
}

body.hide-bars .top-banner {
  opacity: 0.5;
}


/* =========================================================
   2) HEADER SHELL
========================================================= */

.header {
  min-height: 0px;
}

.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  will-change: transform;
  transition: transform 0.25s ease;
}

.header-top,
.navbar {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* =========================================================
   3) TOP BANNER
========================================================= */

.top-banner {
  color: #fff;
  text-align: center;
  font-weight: 600;
  height: var(--banner-h);
  line-height: var(--banner-h);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-banner a {
  color: #fff;
}

.top-banner.hidden {
  transform: none;
  opacity: 0;
  pointer-events: none;
}


/* =========================================================
   4) TOP BAR
========================================================= */

.header-top {
  background: #f1efef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 180px;
  font-size: 14px;
  transition: transform 0.3s ease-in-out, opacity 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

.top-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-links a {
  text-decoration: none;
  color: #57585a;
  font-size: 14px;
  font-family: Inter, sans-serif;
}

.top-links a:hover {
  color: #0077c8;
}


/* =========================================================
   5) DESKTOP NAVBAR
========================================================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 180px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
  font-family: "Poppins", sans-serif;
  z-index: 1000;
  min-height: 70px;
  transition: transform 0.3s ease-in-out;
}

.nav-left .logo img {
  height: 70px;
  display: block;
  width: auto;
}

.navbar,
.nav-container,
.nav-right,
.nav-links {
  min-width: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 16px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-links > li {
  display: inline-flex;
  align-items: center;
}

.nav-links > li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.15);
  margin-left: 18px;
  vertical-align: middle;
}

.nav-links > li:last-child {
  margin-right: 8px;
}

.nav-links a {
  color: #57585a;
  text-decoration: none;
  padding: 7px 12px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-bottom 0.3s;
  font-family: "Poppins", sans-serif !important;
}

.nav-links a:hover {
  color: #0077c8;
}

.nav-links .nav-label {
  color: #57585a;
  padding: 7px 12px;
  border-bottom: 2px solid transparent;
  font-family: "Poppins", sans-serif;
  cursor: default;        /* no pointer cursor */
  user-select: none;
}

/* Keep the hover on the dropdown itself, just don't highlight the label */
.nav-item.dropdown:hover .nav-label {
  color: #57585a;         /* stays grey — not blue */
}

/* =========================================================
   6) DESKTOP DROPDOWN
========================================================= */

.nav-item.dropdown {
  position: relative;
}

/* Replace the bridge rule with this more specific version */
.nav-item.dropdown > a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.nav-item.dropdown > a {
  position: relative;  /* needed for the ::after to position against */
}

/*.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -25px;
  display: none;
  background: #fff;
  min-width: 280px;
  border-radius: 6px;
  padding: 15px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
} */

.dropdown-menu {
  position: absolute;
  top: 100%;   /* small gap off the nav bar */
  left: 0;                 /* flush with the parent nav item */
  display: none;
  background: #fff;
  min-width: 260px;
  border-radius: 10px;
  padding: 6px 0;          /* vertical breathing room, no horizontal padding */
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.09),
    0 2px 6px rgba(0, 0, 0, 0.06);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid #1d99dd;  /* brand accent anchors it under the nav */
  z-index: 1000;
}

/*
.dropdown-menu li {
  border-top: 1px solid #eee;
} */

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li:first-child {
  border-top: none;
}

.dropdown-menu li:not(:last-child) {
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}


/*
.dropdown-menu li a {
  display: block;
  padding: 14px 24px;
  color: #004f8f;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
} */


.dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  color: #004f8f;
  font-weight: 500;           /* was 500 — lighter reads cleaner in a list */
  font-size: 15px;
  transition: background 0.12s ease, color 0.12s ease;
}



/**********************************************************************************************************/
/**** ITEM BELOW IS FOR THE EXPANSION CARROT EFFECT WHEN HOVERING OVER THE SUB NAV ITEM ********************/
/**********************************************************************************************************/
/*
.dropdown-menu li a::after {
  content: "›";
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  color: #1d99dd;
  font-size: 16px;
  line-height: 1;
  min-width: 16px;        
  text-align: right;      
  margin-left: 12px;     
}
/*
/**********************************************************************************************************/
/**** ITEM ABOVE IF FOR THE EXPANSION CARROT EFFECT WHEN HOVERING OVER THE SUB NAV ITEM ********************/
/**********************************************************************************************************/


.dropdown-menu li a:hover {
  background: #f5fbff;
  color: #0077c8;
}


.dropdown-menu li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}


.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}


/* =========================================================
   7) DESKTOP CTA
========================================================= */

.contact-button a {
  background: #1d99dd;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.contact-button a:hover {
  background: #188ac8;
}


/* =========================================================
   8) HAMBURGER
========================================================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: 0;
  padding-right: 1rem;
}

.hamburger span {
  height: 3px;
  width: 35px;
  background: #0077c8;
}


/* =========================================================
   9) MOBILE NAV PANEL
========================================================= */

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100dvh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.22, .61, .36, 1), box-shadow 0.38s ease;
  will-change: transform;
  z-index: 2000;
  overflow: hidden;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  overscroll-behavior: contain;
}

.mobile-nav.active {
  transform: translateX(0);
  box-shadow: -6px 0 40px rgba(0, 0, 0, 0.18);
}

.mobile-nav-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px 8px;
  background: #fff;
}

.mobile-nav-logo {
  flex: 1;
}

.mobile-nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  float: left;
}


/* =========================================================
   10) MOBILE CLOSE BUTTON
========================================================= */

.close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f4f5;
  border: none;
  cursor: pointer;
  color: #57585a;
  font-size: 0;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: #57585a;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.close-btn::before {
  transform: rotate(45deg);
}

.close-btn::after {
  transform: rotate(-45deg);
}

.close-btn:hover {
  background: #e8e8ea;
  transform: rotate(90deg);
}


/* =========================================================
   11) MOBILE NAV BODY / SCROLL
========================================================= */


html.nav-open,
body.nav-open {
  overflow: hidden !important;
  height: 100%;
}

body.nav-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

.mobile-nav-body {
  flex: 1 1 auto;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;   
  padding: 8px 0 24px;
  min-height: 0;
  max-height: 90%;       
}

.mobile-nav-body::-webkit-scrollbar {
  width: 4px;
}

.mobile-nav-body::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-nav-body::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}


/* =========================================================
   12) MOBILE MENU / LIST RESET
========================================================= */

.mobile-menu,
.mobile-menu ul,
.mobile-menu li,
.submenu,
.submenu ul,
.submenu li {
  list-style: none !important;
  margin: 0;
  padding-left: 0;
}

.mobile-menu li::marker,
.submenu li::marker {
  content: "" !important;
}

.mobile-menu {
  margin: 0;
  padding: 0;
}


/* =========================================================
   13) MOBILE MAIN NAV ITEMS
========================================================= */

.mobile-menu > li > a,
.mobile-menu > li > .mobile-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 22px;
  color: #2d2d2f;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-left-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-fill-color: currentColor;
}

/* Thin top line (first item) */
.mobile-menu > li:first-child > a,
.mobile-menu > li:first-child > .mobile-accordion-trigger {
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Thick lines BETWEEN items */
.mobile-menu > li:not(:last-child) > a,
.mobile-menu > li:not(:last-child) > .mobile-accordion-trigger {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Thin bottom line (last item) */
.mobile-menu > li:last-child > a,
.mobile-menu > li:last-child > .mobile-accordion-trigger {
  border-bottom: 1px solid #eaeaea;
}


.mobile-menu > li > .mobile-accordion-trigger {
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

/* Strip native focus paint */
.mobile-menu > li > a:focus,
.mobile-menu > li > .mobile-accordion-trigger:focus,
.submenu li a:focus,
.mobile-menu .top-nav-mobile a:focus {
  outline: none;
  background: transparent;
}

/* Keyboard accessibility */
.mobile-menu > li > a:focus-visible,
.mobile-menu > li > .mobile-accordion-trigger:focus-visible,
.submenu li a:focus-visible,
.mobile-menu .top-nav-mobile a:focus-visible {
  outline: 2px solid #1d99dd;
  outline-offset: -2px;
}

/* Tapped/current links show blue */
.mobile-menu > li > a:active,
.mobile-menu > li > a.is-tapped,
.mobile-menu > li > a.is-current,
.mobile-menu > li > .mobile-accordion-trigger:active {
  color: #0077c8 !important;
  background: #f7fbff !important;
  border-left-color: #1d99dd !important;
}

/* Open accordion item stays blue */
.mobile-menu li.is-open > .mobile-accordion-trigger {
  background: #f7fbff;
  border-left-color: #1d99dd;
  color: #0077c8 !important;
}


/* =========================================================
   14) MOBILE CHEVRON
========================================================= */

.mobile-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1), background 0.2s ease;
  flex-shrink: 0;
}

.mobile-chevron svg {
  width: 13px;
  height: 13px;
  stroke: #1d99dd;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  transition: stroke 0.2s ease;
}

li.is-open > .mobile-accordion-trigger .mobile-chevron {
  transform: rotate(180deg);
  background: #e0f2fc;
}


/* =========================================================
   15) SUBMENU
========================================================= */

.submenu {
  display: block;
  max-height: 0;
  overflow: hidden;
  background: #f8fafb;
  padding: 0;
  transition: max-height 0.35s cubic-bezier(.4, 0, .2, 1);
}

li.is-open > .submenu {
  max-height: 600px;
}

.submenu li {
  list-style: none !important;
}

.submenu li a {
  display: flex;
  align-items: center;
  padding: 11px 22px 11px 32px;
  color: #004f8f;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  border-left: 3px solid transparent;
    border-bottom: 1px solid #ebebeb;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-left-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-fill-color: currentColor;
}

.submenu li:last-child a {
  border-bottom: none;
}

/* Actual tapped/current submenu item shows blue */
.submenu li a:active,
.submenu li a.is-tapped,
.submenu li a.is-current {
  color: #0077c8 !important;
  background: #f7fbff !important;
  border-left-color: #1d99dd !important;
}


/* =========================================================
   16) MOBILE UTILITY LINKS
========================================================= */

.mobile-menu .top-nav-mobile a {
  color: #1d99dd;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.15s ease, border-left-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-fill-color: currentColor;
}

.mobile-menu .top-nav-mobile a:active,
.mobile-menu .top-nav-mobile a.is-tapped,
.mobile-menu .top-nav-mobile a.is-current {
  color: #0077c8 !important;
  background: #f7fbff !important;
  border-left-color: #1d99dd !important;
}



/* =========================================================
   17) MOBILE CTA BUTTONS
========================================================= */

.mobile-cta-group {
  padding: 20px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-cta-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.mobile-cta-btn.primary {
  background: #1d99dd;
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 153, 221, 0.28);
}

.mobile-cta-btn.primary:hover {
  background: #188ac8;
}

.mobile-cta-btn.secondary {
  background: #f0f0f0;
  color: #2d2d2f;
}

.mobile-cta-btn.secondary:hover {
  background: #e4e4e4;
}

.mobile-cta-btn svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}


/* =========================================================
   18) MOBILE ANIMATION
========================================================= */

@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav.active .mobile-menu > li {
  opacity: 0;
  animation: navItemIn 0.3s ease forwards;
}

.mobile-nav.active .mobile-menu > li:nth-child(1)  { animation-delay: 0.06s; }
.mobile-nav.active .mobile-menu > li:nth-child(2)  { animation-delay: 0.10s; }
.mobile-nav.active .mobile-menu > li:nth-child(3)  { animation-delay: 0.13s; }
.mobile-nav.active .mobile-menu > li:nth-child(4)  { animation-delay: 0.16s; }
.mobile-nav.active .mobile-menu > li:nth-child(5)  { animation-delay: 0.19s; }
.mobile-nav.active .mobile-menu > li:nth-child(6)  { animation-delay: 0.22s; }
.mobile-nav.active .mobile-menu > li:nth-child(7)  { animation-delay: 0.25s; }
.mobile-nav.active .mobile-menu > li:nth-child(8)  { animation-delay: 0.28s; }
.mobile-nav.active .mobile-menu > li:nth-child(9)  { animation-delay: 0.31s; }
.mobile-nav.active .mobile-menu > li:nth-child(10) { animation-delay: 0.34s; }


/* =========================================================
   19) OVERLAY
========================================================= */

.body-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1999;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body.nav-open .body-overlay {
  opacity: 1;
  pointer-events: auto;
}


/* =========================================================
   20) HOVER BEHAVIOR BY INPUT TYPE
========================================================= */

@media (hover: hover) and (pointer: fine) {
  .mobile-menu > li > a:hover,
  .mobile-menu > li > .mobile-accordion-trigger:hover {
    background: #f7fbff;
    border-left-color: #1d99dd;
    color: #0077c8;
  }

  .submenu li a:hover {
    background: #eef7fd;
    color: #0077c8;
    border-left-color: #1d99dd;
  }

  .mobile-menu .top-nav-mobile a:hover {
    background: #f7fbff;
    border-left-color: #1d99dd;
    color: #0077c8;
  }
}

@media (hover: none) and (pointer: coarse) {
  .mobile-menu > li > a:hover,
  .mobile-menu > li > .mobile-accordion-trigger:hover {
    background: none;
    color: #2d2d2f;
    border-left-color: transparent;
  }

  .mobile-menu li.is-open > .mobile-accordion-trigger:hover {
    background: #f7fbff;
    color: #0077c8;
    border-left-color: #1d99dd;
  }

  .submenu li a:hover {
    background: transparent;
    color: #004f8f;
    border-left-color: transparent;
  }

  .mobile-menu .top-nav-mobile a:hover {
    background: transparent;
    color: #1d99dd;
    border-left-color: transparent;
  }
}


/* =========================================================
   21) RESPONSIVE TUNING
========================================================= */

@media (max-width: 1600px) {
  .navbar {
    padding: 0 80px;
  }

  .header-top {
    padding: 10px 120px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-right {
    gap: 22px;
  }

  .nav-links > li:not(:last-child)::after {
    margin-left: 14px;
  }

  .contact-button a {
    padding: 8px 18px;
    font-size: 14px;
  }

  .nav-left .logo img {
    height: 65px;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .navbar {
    padding: 0 30px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-right {
    gap: 18px;
  }

  .nav-links > li:not(:last-child)::after {
    margin-left: 12px;
  }

  .nav-left .logo img {
    height: 68px;
  }
}

@media (max-width: 1100px) {
  .header-top {
    display: none;
  }

  .hamburger {
    display: flex;
      padding-right: 1rem;
  }

  .nav-right {
    display: none !important;
  }

  .navbar {
    padding: 0 0.5rem;
  }

  .nav-left .logo img {
    height: 65px;
  }
}

@media (max-width: 400px) {
  .mobile-nav {
    width: 100vw;
    border-left: none;
  }
}

@media (min-width: 2000px) {
  .header-top,
  .navbar {
    padding: 8px 310px;
  }
}


/* =========================================================
   22) REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav.active .mobile-menu > li,
  .submenu,
  .mobile-chevron,
  .close-btn {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}




/*************** MOBILE AND TABLET NAVIGATION FOR NON-HOVER DEVICES *************************/
/* =========================================================
   MOBILE SUBMENU — First item as parent page link
   Only applies on touch/no-hover devices (mobile + tablet)
   where L1 nav items are not directly clickable
========================================================= */
@media (hover: none) {

  .submenu li:first-child a {
   /* background: #eef5fb; */
    color: #0077c8;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 22px 13px 28px;
      border-bottom: 1px solid rgba(0,0,0,0.08);
    letter-spacing: 0.01em;
  }

  .submenu li:first-child a::before {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d99dd;
    opacity: 0.75;
    margin-bottom: 2px;
    line-height: 1;
  }

  .submenu li:first-child a:hover {
    background: #eef5fb;
    color: #0077c8;
    border-left-color: #1d99dd;
  }
  
  li.is-open > .submenu li:last-child a {
    border-bottom: 1px solid #d0e8f5;
  }

}