/**
 * Pattern: .top-bar (blue) hides on scroll; .header gets .sticky (white bar fixed).
 * body.kvc-sticky-header-active — scope + legacy theme reset
 */

/* Disable old theme rule that fixed only .main_menu */
body.kvc-sticky-header-active .header_area.navbar_fixed .main_menu,
body.kvc-sticky-header-active .header_area .main_menu {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  transform: none !important;
  z-index: auto !important;
}

body.kvc-sticky-header-active .header.header_area {
  position: relative;
  width: 100%;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

body.kvc-sticky-header-active .header.header_area.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.kvc-sticky-header-active .header.header_area .top-bar {
  background: var(--kvc-primary-color, #0d6efd);
  color: rgba(255, 255, 255, 0.95);
  transition: opacity 0.3s ease;
}

body.kvc-sticky-header-active .header.header_area .top-bar a {
  color: rgba(255, 255, 255, 0.95);
}

body.kvc-sticky-header-active .header.header_area .top-bar a:hover,
body.kvc-sticky-header-active .header.header_area .top-bar a:focus-visible {
  color: #fff;
}

body.kvc-sticky-header-active .header.header_area .top-bar i {
  color: var(--kvc-accent-color, #f58220);
}

body.kvc-sticky-header-active .header.header_area .main_menu {
  background: var(--kvc-background-white, #fff);
}
