/* AJCV Custom - global header */
body header.site-header,
body #masthead,
body .main-header-bar,
body .ast-primary-header-bar,
body .ast-above-header-wrap,
body .ast-below-header-wrap,
body .elementor-location-header,
body .ast-mobile-header-wrap,
body .ast-desktop-header-content,
body .ast-main-header-wrap,
body > #page > header,
body > #page > .site-header,
body > #page > #masthead,
body > #page .site-header,
body > #page #masthead,
body > #page .main-header-bar,
body > #page .ast-primary-header-bar,
body > #page .ast-above-header-wrap,
body > #page .ast-below-header-wrap,
body > #page .ast-mobile-header-wrap,
body > #page .ast-desktop-header-content,
body > #page .ast-main-header-wrap,
body > #page .elementor-location-header {
  display: none !important;
}

body.ajcv-custom-header-active .site-primary-header-wrap,
body.ajcv-custom-header-active .ast-builder-grid-row-container.site-primary-header-wrap,
body.ajcv-custom-header-active [data-section="section-primary-header-builder"],
body.ajcv-custom-header-active #ast-desktop-header,
body.ajcv-custom-header-active #ast-mobile-header,
body.ajcv-custom-header-active .ast-primary-header-bar,
body.ajcv-custom-header-active .ast-main-header-wrap,
body.ajcv-custom-header-active .main-header-bar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ajcv-site-header,
.ajcv-site-header .ajcv-navbar-shell,
.ajcv-site-header .ajcv-header-inner {
  display: block;
}

body.ajcv-custom-header-active .ajcv-site-header,
body.ajcv-custom-header-active .ajcv-navbar-shell,
body.ajcv-custom-header-active .ajcv-header-inner {
  visibility: visible !important;
  opacity: 1 !important;
}

body.ajcv-custom-header-active .ajcv-site-header {
  display: block !important;
}

body.ajcv-custom-header-active .ajcv-header-inner {
  display: flex !important;
}

body .ajcv-site-header,
body .ajcv-site-header .ajcv-navbar-shell {
  display: block !important;
}

.ajcv-site-header .ajcv-header-inner,
body .ajcv-site-header .ajcv-header-inner {
  display: flex !important;
}

.ajcv-site-header {
  position: relative;
  z-index: 50;
  background: #f7f5f2;
  color: #14213d;
  border-bottom: 1px solid rgba(20, 33, 61, .09);
}

.ajcv-site-header,
.ajcv-site-header * {
  box-sizing: border-box;
}

.ajcv-navbar-shell {
  background: rgba(251, 250, 247, .94);
  border-bottom: 1px solid rgba(20, 33, 61, .09);
  box-shadow: 0 10px 26px rgba(20, 33, 61, .045);
}

body.home .ajcv-site-header,
body.front-page .ajcv-site-header {
  background: #f7f5f2;
}

body.home .ajcv-navbar-shell,
body.front-page .ajcv-navbar-shell {
  background: rgba(251, 250, 247, .92);
}

.ajcv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
}

.ajcv-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  overflow: hidden;
  text-decoration: none;
}

.ajcv-logo-img {
  display: block;
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  border-radius: 999px;
}

.ajcv-site-header .ajcv-logo-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
}

.ajcv-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ajcv-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #14213d;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.ajcv-nav a:hover {
  background: #f0ede8;
  color: #e85d04;
}

.ajcv-nav .ajcv-nav-highlight {
  background: linear-gradient(135deg, rgba(232, 93, 4, .11), rgba(232, 93, 4, .05));
  color: #c84c00;
  border: 1px solid rgba(232, 93, 4, .22);
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(232, 93, 4, .10);
}

.ajcv-nav .ajcv-nav-highlight:hover {
  background: linear-gradient(135deg, #e85d04, #c84c00);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(232, 93, 4, .22);
}

.ajcv-header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(232, 93, 4, .25);
  border-radius: 999px;
  background: #e85d04;
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(232, 93, 4, .18);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ajcv-header-cta:hover {
  background: #c84c00;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(200, 76, 0, .24);
}

@media (max-width: 900px) {
  .ajcv-header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .ajcv-logo {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px;
    max-width: 40px !important;
    max-height: 40px !important;
  }

  .ajcv-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .ajcv-header-inner {
    padding-right: 12px;
    padding-left: 12px;
  }

  .ajcv-header-inner {
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .ajcv-nav {
    gap: 6px;
  }

  .ajcv-nav a,
  .ajcv-nav .ajcv-nav-highlight {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 14px;
  }

  .ajcv-header-cta {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .ajcv-logo-img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
  }

  .ajcv-site-header .ajcv-logo-img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  .ajcv-site-header .ajcv-logo {
    width: 36px !important;
    height: 36px !important;
    min-height: 36px;
    max-width: 36px !important;
    max-height: 36px !important;
  }
}
