/* ===== STICKY HEADER ===== */
header.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
  will-change: transform;
}

/* Keep below the WP admin bar for logged-in users */
.admin-bar header.elementor-location-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar header.elementor-location-header {
    top: 46px;
  }
}

/* ===== DESIGNED STICKY STATE (light, blurred, still visible) ===== */
header.elementor-location-header.is-sticky {
  background-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

/* ===== LOGO SWAP (classes are on the <a> now) ===== */
/* Default: show WHITE, hide BLUE */
header.elementor-location-header a.logo-hover {
  display: none;
}
header.elementor-location-header a.logo-default {
  display: block;
}

/* Sticky: hide WHITE, show BLUE */
header.elementor-location-header.is-sticky a.logo-default {
  display: none;
}
header.elementor-location-header.is-sticky a.logo-hover {
  display: block;
}

/* ===== MENU LINKS TURN BLUE WHEN STICKY ===== */
header.elementor-location-header.is-sticky .elementor-item {
  color: #0f2243 !important;
}
header.elementor-location-header.is-sticky .elementor-item:hover {
  color: #1f8fff !important;
}

/* ===== HIDE ON SCROLL DOWN / REVEAL ON SCROLL UP ===== */
header.elementor-location-header.is-hidden {
  transform: translateY(-100%);
}
.admin-bar header.elementor-location-header.is-hidden {
  transform: translateY(calc(-100% - 32px));
}
header.elementor-location-header.is-visible {
  transform: translateY(0);
}

/* ===== CONTENT HEADER (single posts) ===== */
/* Keep this header variant blue with white branding in every scroll state. */
.content-header {
  background-color: #0f2243 !important;
}

/* Always use the white logo; never swap to the blue sticky logo. */
.content-header a.logo-default,
.is-sticky .content-header a.logo-default {
  display: block !important;
}

.content-header a.logo-hover,
.is-sticky .content-header a.logo-hover {
  display: none !important;
}

/* Keep desktop top-level navigation white, including sticky and active states. */
.content-header .elementor-nav-menu--main .elementor-nav-menu > li > a.elementor-item,
.content-header .elementor-nav-menu--main .elementor-nav-menu > li > a.elementor-item:hover,
.content-header .elementor-nav-menu--main .elementor-nav-menu > li > a.elementor-item:focus,
.content-header .elementor-nav-menu--main .elementor-nav-menu > li > a.elementor-item.highlighted,
.content-header
  .elementor-nav-menu--main
  .elementor-nav-menu
  > li.current-menu-item
  > a.elementor-item,
.content-header
  .elementor-nav-menu--main
  .elementor-nav-menu
  > li.current-menu-parent
  > a.elementor-item {
  color: #ffffff !important;
}

/* Keep the language pill and mobile menu control legible on blue. */
.content-header .pll-parent-menu-item > a.elementor-item {
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.content-header .elementor-menu-toggle,
.content-header .elementor-menu-toggle svg {
  color: #ffffff !important;
  fill: currentColor !important;
}
