:root {
  --es-header-height: 86px;
}

body.es-mobile-menu-open {
  overflow: hidden;
}

.es-header,
.es-header * {
  box-sizing: border-box;
}

.es-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--es-border, #E2E8F0);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.es-header.is-scrolled {
  box-shadow: none;
}

body.admin-bar .es-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .es-header {
    top: 46px;
  }
}

.es-header-inner {
  min-height: var(--es-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.es-header-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.es-header-brand-logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
}

.es-logo-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
}

.es-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: right;
}

.es-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.es-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.es-nav-link {
  border: 0;
  background: transparent;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--es-ink, #0F172A);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.es-nav-link:hover,
.es-nav-item.is-current > .es-nav-link,
.es-nav-item.is-open > .es-nav-link {
  color: var(--es-accent, #0961A6);
  text-decoration: none;
}

.es-nav-trigger {
  appearance: none;
}

.es-nav-arrow,
.es-m-arrow {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  transition: transform 0.2s ease;
}

.es-nav-arrow svg,
.es-m-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.es-has-dropdown.is-open > .es-nav-trigger .es-nav-arrow,
.es-m-item.is-open > .es-m-link .es-m-arrow {
  transform: rotate(180deg);
}

.es-has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.es-header-cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.es-btn-pill,
.es-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 50px;
  background: var(--es-accent, #0961A6);
  color: #FFFFFF;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0em;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.es-btn-pill:hover,
.es-mobile-cta:hover {
  background: var(--es-accent-hover, #0B6EC0);
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}

.es-dropdown--simple,
.es-dropdown--mega {
  position: absolute;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 20;
  border-radius: 0;
  box-shadow: none;
}

.es-dropdown--simple {
  left: 0;
  min-width: 250px;
  padding: 10px;
  background: #FFFFFF;
  border-left: 5px solid #0B6EC0;
}

.es-has-dropdown.is-open > .es-dropdown--simple {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.es-simple-link {
  display: block;
  padding: 12px 14px;
  border-radius: 0;
  color: var(--es-body, #334155);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.es-simple-link:hover {
  background: rgba(9, 97, 166, 0.06);
  color: var(--es-accent, #0961A6);
  text-decoration: none;
}

.es-dropdown--mega {
  left: 50%;
  width: min(980px, calc(100vw - 40px));
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--es-border, #E2E8F0);
  transform: translateX(-50%);
  overflow: hidden;
}

.es-dropdown--mega::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--es-accent, #0961A6), var(--es-accent-hover, #0B6EC0));
}

.es-has-dropdown.is-open > .es-dropdown--mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.es-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.es-mega-col {
  min-width: 0;
  padding: 18px 18px 16px;
  border-left: 1px solid var(--es-border, #E2E8F0);
}

.es-mega-col:first-child {
  border-left: 0;
}

.es-mega-title {
  margin: 0 0 10px;
  color: var(--es-muted, #64748B);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.es-mega-link {
  display: block;
  padding: 8px 0;
  color: var(--es-body, #334155);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.es-mega-link:hover {
  color: var(--es-accent, #0961A6);
  text-decoration: none;
}

.es-mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0;
border: 1px solid transparent;
  background: #FFFFFF;
  color: var(--es-ink, #0F172A);
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.es-mobile-toggle:hover {
  color: var(--es-accent, #0961A6);
  
}

.es-mobile-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.es-icon-close {
  display: none;
}

.es-mobile-toggle.is-open .es-icon-hamburger {
  display: none;
}

.es-mobile-toggle.is-open .es-icon-close {
  display: inline-flex;
}

.es-mobile-menu {
  display: none;
}

@media (max-width: 1180px) {
  .es-nav-list {
    gap: 22px;
  }

  .es-nav-link {
    font-size: 14px;
  }

  .es-header-inner {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  :root {
    --es-header-height: 80px;
  }

  .es-nav,
  .es-header-cta {
    display: none;
  }

  .es-mobile-toggle {
    display: inline-flex;
  }

  .es-header-brand-logo {
    height: 40px;
  }

  .es-mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: max-height 0.35s ease, border-color 0.2s ease;
  }

  .es-mobile-menu.is-open {
    max-height: calc(100svh - var(--es-header-height));
    border-bottom-color: var(--es-border, #E2E8F0);
  }

  .es-mobile-inner {
    padding: 12px 20px 22px;
    overflow-x: hidden;
  }

  .es-mobile-nav {
    max-height: calc(100svh - 180px);
    overflow: auto;
    overflow-x: hidden;
  }

  .es-m-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .es-m-item {
    border-bottom: 1px solid var(--es-border, #E2E8F0);
  }

  .es-m-link {
    width: 100%;
    padding: 18px 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: var(--es-ink, #0F172A);
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .es-m-item.is-open > .es-m-link,
  .es-m-link:hover {
    color: var(--es-accent, #0961A6);
    text-decoration: none;
  }

  .es-m-sub {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .es-m-item.is-open > .es-m-sub {
    opacity: 1;
  }

  .es-m-sub a {
    display: block;
    padding: 0 0 14px;
    color: var(--es-body, #334155);
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    transition: color 0.2s ease;
  }

  .es-m-sub a:hover {
    color: var(--es-accent, #0961A6);
    text-decoration: none;
  }

  .es-mobile-cta {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    padding: 14px 16px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .es-header-inner {
    gap: 14px;
  }

  .es-header-brand {
    min-width: 0;
  }

  .es-header-brand-logo {
    height: 36px;
  }

  .es-logo-img {
    max-width: min(220px, 100%);
  }

  .es-mobile-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .es-header,
  .es-nav-arrow,
  .es-m-arrow,
  .es-btn-pill,
  .es-mobile-cta,
  .es-dropdown--simple,
  .es-dropdown--mega,
  .es-mobile-menu,
  .es-m-sub {
    transition: none !important;
  }
}