/**
 * VisualSync Displays — site overrides (load after style.css)
 */
.hap-header-section .brand-logo,
.hap-header-section .m-brand-logo,
#hap-header .brand-logo,
#hap-header .m-brand-logo {
  max-width: 360px !important;
  width: auto !important;
  line-height: 0;
  flex-shrink: 0;
}

.hap-header-section .brand-logo a,
.hap-header-section .m-brand-logo a,
#hap-header .brand-logo a,
#hap-header .m-brand-logo a {
  display: inline-flex !important;
  align-items: center;
  line-height: 0;
}

.hap-header-section .brand-logo img,
.hap-header-section .m-brand-logo img,
#hap-header .brand-logo img,
#hap-header .m-brand-logo img {
  height: 75px !important;
  max-height: 75px !important;
  width: auto !important;
  max-width: 360px !important;
  object-fit: contain !important;
  object-position: left center;
  display: block !important;
}

.hap-footer-section .brand-logo img,
#contact .brand-logo img {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 240px !important;
  object-fit: contain !important;
  display: block !important;
}

/* ── Header nav row (white pill) ── */
.hap-header-section .hap-header-menu-navigation {
  padding: 8px 18px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}

.hap-header-section .hap-header-menu-navigation .main-navigation {
  flex: 1 1 auto;
  min-width: 0;
}

/* Bootstrap .navbar-nav defaults to column — force horizontal row */
.hap-header-section .hap-header-menu-navigation .main-navigation .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hap-header-section .hap-header-menu-navigation .main-navigation li {
  margin: 0 8px !important;
  width: auto !important;
}

.hap-header-section .hap-header-menu-navigation .main-navigation li a,
.hap-header-section .hap-header-menu-navigation .main-navigation .nav-link {
  padding: 8px 10px !important;
  padding-bottom: 8px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

/* CTA buttons — align with nav links */
.hap-header-section .hap-header-cta-btn-grp {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hap-header-section .hap-header-cta-btn-grp .vsd-login-link,
.hap-header-section .hap-header-cta-btn-grp .vsd-start-cta-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.hap-header-section .hap-header-cta-btn-grp .vsd-login-link {
  padding: 8px 14px !important;
  font-size: 14px !important;
  color: #111827 !important;
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
}

.hap-header-section .hap-header-cta-btn-grp .vsd-login-link:hover {
  background: #f8fafc !important;
  color: #111827 !important;
}

.hap-header-section .hap-header-cta-btn-grp .vsd-start-cta-inline {
  padding: 8px 14px !important;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

.hap-header-section .hap-header-top-area {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  font-size: 13px !important;
}

@media (max-width: 991px) {
  .hap-header-section .hap-header-menu-navigation .main-navigation li {
    margin: 0 4px !important;
  }

  .hap-header-section .hap-header-menu-navigation .main-navigation li a,
  .hap-header-section .hap-header-menu-navigation .main-navigation .nav-link {
    padding: 6px 8px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 767px) {
  .hap-header-section .brand-logo img,
  .hap-header-section .m-brand-logo img,
  #hap-header .brand-logo img,
  #hap-header .m-brand-logo img {
    height: 56px !important;
    max-height: 56px !important;
    max-width: 240px !important;
  }

  .hap-header-section .hap-header-menu-navigation {
    padding: 6px 12px !important;
  }
}
