.hc-header-new {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 67, 191, 0.12);
  border-radius: 10px;
}

.hc-header-new__container {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.hc-header-new__logo img {
  height: 65px;
  width: 210px;
  display: block;
}

.hc-header-new__nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  position: relative;
  /*width: 1200px;*/
}

.hc-header-new__nav a {
  color: #1f2b4a;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.hc-header-new__services {
  position: relative;
}

.hc-header-new__services-toggle {
  border: 0;
  background: transparent;
  color: #1f2b4a;
  font-weight: 500;
  font-size: 14px;
  padding: 0 0 4px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hc-header-new__services-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.hc-header-new__services.is-open .hc-header-new__services-arrow {
  transform: rotate(180deg);
}
.hc-header-new__nav a{
    text-align: center;
}




.hc-header-new__nav a.is-active,
.hc-header-new__nav a:hover,
.hc-header-new__services-toggle:hover,
.hc-header-new__services.is-open .hc-header-new__services-toggle {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

.hc-header-new__services-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(26, 67, 191, 0.12);
  box-shadow: 0 18px 36px rgba(15, 27, 61, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  transform-origin: top;
  z-index: 10;
}

.hc-header-new__services-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.hc-header-new__services-panel[hidden] {
  display: none !important;
}


.hc-header-new__services.is-open .hc-header-new__services-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Horizontal services bar (legacy)
.hc-header-new__services-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.hc-header-new__services-item {
  font-size: 13px;
  font-weight: 600;
  color: #1f2b4a;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(26, 67, 191, 0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hc-header-new__services-item:hover {
  background: rgba(26, 67, 191, 0.16);
  color: var(--brand-blue);
  transform: translateY(-1px);
}
*/

/* Vertical services dropdown */
.hc-header-new__services-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  width: 250px;
  margin: 0 auto;
  padding: 4px 6px 8px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
}

.hc-header-new__services-item {
  font-size: 14px;
  font-weight: 600;
  color: #1f2b4a;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(26, 67, 191, 0.06);
  border: 1px solid rgba(26, 67, 191, 0.12);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hc-header-new__services-item:hover {
  background: rgba(26, 67, 191, 0.12);
  color: var(--brand-blue);
  border-color: rgba(26, 67, 191, 0.2);
  transform: translateY(-1px);
}

.hc-header-new__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hc-header-new__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  min-height: 42px;
  background: var(--brand-orange);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(255, 121, 24, 0.25);
  letter-spacing: 0.2px;
}

.hc-header-new__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 42px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: #1f2b4a;
  background: #f4f6fb;
  border: 1px solid rgba(26, 67, 191, 0.14);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.hc-header-new__phone-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-blue);
}

.hc-header-new__phone:hover {
  background: #e9eefb;
  border-color: rgba(26, 67, 191, 0.24);
  transform: translateY(-1px);
}

.hc-header-new__phone:focus-visible,
.hc-header-new__cta:focus-visible {
  outline: 2px solid rgba(26, 67, 191, 0.45);
  outline-offset: 2px;
}

.hc-header-new__menu-toggle {
  display: none;
  border: 0;
  background-color: rgba(26, 67, 191, 0.08);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  color: var(--brand-blue);
}

.hc-header-new__menu-icon {
  width: 22px;
  height: 22px;
  color: var(--brand-blue, #1a43bf);
  fill: currentColor;
  display: block;
  opacity: 1;
  pointer-events: none;
  min-width: 22px;
  min-height: 22px;
  flex-shrink: 0;
}

.hc-header-new__menu-icon path {
  fill: currentColor;
}

.hc-header-new__menu-bar {
  display: none;
}

.hc-header-new__menu-toggle:hover {
  background: rgba(26, 67, 191, 0.16);
  transform: translateY(-1px);
}

.hc-header-new.is-nav-open .hc-header-new__menu-icon {
  transform: rotate(90deg);
}

.hc-header-new.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 27, 61, 0.12);
}

@media (max-width: 1024px) {
  .hc-header-new__container {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 0 16px;
  }

  .hc-header-new__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    order: 3;
    padding: 0;
    margin-top: 10px;
    border-top: 1px solid rgba(26, 67, 191, 0.08);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 27, 61, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .hc-header-new.is-nav-open .hc-header-new__nav {
    max-height: calc(100vh - 140px);
    opacity: 1;
    transform: translateY(0);
    padding: 12px 0 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .hc-header-new__nav > a,
  .hc-header-new__nav > .hc-header-new__services {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .hc-header-new__nav a,
  .hc-header-new__services-toggle {
    padding: 12px 12px;
    border-bottom: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f7f9fd;
    border-radius: 12px;
  }

  .hc-header-new__nav {
    gap: 10px;
  }

  .hc-header-new__actions {
    order: 2;
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .hc-header-new__menu-toggle {
    display: inline-flex;
  }

  .hc-header-new__services {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
  }

  .hc-header-new__services-panel {
    position: static;
    width: min(100%, 520px);
    max-width: 520px;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: 1px solid rgba(26, 67, 191, 0.12);
    padding: 8px 12px 12px;
    background: rgba(26, 67, 191, 0.04);
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    align-self: center;
    box-sizing: border-box;
  }

  .hc-header-new__services-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 0 8px;
    align-self: center;
    text-align: center;
    box-sizing: border-box;
    pointer-events: auto;
  }

  .hc-header-new__services-item {
    background: rgba(26, 67, 191, 0.08);
    width: 100%;
    max-width: 100%;
    text-align: center;
  }


  .hc-header-new__services-toggle {
    width: 100%;
    justify-content: center;
    position: relative;
    padding-right: 42px;
    padding-left: 42px;
    text-align: center;
  }

  .hc-header-new__services-arrow {
    position: absolute;
    right: 14px;
  }
}

@media (max-width: 640px) {
  .hc-header-new__services {
    width: 100%;
    align-items: center;
    align-self: center;
  }
  .hc-header-new__container {
    flex-direction: column;
    align-items: stretch;
  }

  .hc-header-new__logo {
    display: flex;
    justify-content: center;
  }

  .hc-header-new__nav {
    margin-top: 12px;
  }

  .hc-header-new__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .hc-header-new__phone {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 13px;
  }

  .hc-header-new__cta {
    width: 143px;
    /*max-width: none;*/
    /*flex: 1;*/
    justify-content: center;
  }
  .hc-header-new__cta:hover{
      background-color: var(--brand-blue);
  }    
  .hc-header-new__services-panel {
    padding: 8px 12px 12px;
    display: block;
    margin-bottom: 16px;
    background: rgba(26, 67, 191, 0.04);
    border: 1px solid rgba(26, 67, 191, 0.12);
    border-radius: 16px;
    width: min(100%, 520px);
    max-width: 520px;
    text-align: center;
    box-sizing: border-box;
    align-self: center;
  }

  .hc-header-new__menu-toggle {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(26, 67, 191, 0.16), rgba(255, 121, 24, 0.14));
  }

  .hc-header-new__nav > a,
  .hc-header-new__nav > .hc-header-new__services {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .hc-header-new__nav a,
  .hc-header-new__services-toggle {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 12px;
    background: #f7f9fd;
    border-radius: 12px;
    color: #1f2b4a;
    text-align: center;
  }

  .hc-header-new__nav a.is-active {
    background: rgba(26, 67, 191, 0.12);
  }

  .hc-header-new__services-toggle {
    border: 1px solid rgba(26, 67, 191, 0.12);
    position: relative;
    padding-right: 42px;
    padding-left: 42px;
    justify-content: center;
  }

  .hc-header-new__services-arrow {
    position: absolute;
    right: 14px;
  }

  .hc-header-new__services-list {
    padding-left: 0;
    padding-right: 0;
    width: min(100%, 520px);
    max-width: 100%;
    margin: 0 auto;
    align-items: stretch;
    display: grid;
    justify-items: stretch;
    justify-content: center;
    row-gap: 8px;
    text-align: center;
    box-sizing: border-box;
    padding-bottom: 8px;
    pointer-events: auto;
  }

  .hc-header-new__services-item {
    width: 100%;
    background: #f7f9fd;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    justify-self: stretch;
  }
}

/* Ensure centered services list in stacked nav */
.hc-header-new.is-mobile-nav .hc-header-new__services-panel {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  align-self: center !important;
  display: block !important;
  padding: 8px 12px 12px !important;
  background: rgba(26, 67, 191, 0.04) !important;
  border: 1px solid rgba(26, 67, 191, 0.12) !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}

.hc-header-new.is-mobile-nav .hc-header-new__services-list {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.hc-header-new.is-mobile-nav .hc-header-new__services-item {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.hc-header-new.is-mobile-nav .hc-header-new__services:not(.is-open) .hc-header-new__services-panel {
  display: none !important;
}
