/*
  FSE Header Pro
  Safe, theme-agnostic behaviors via classes:
  - .is-shrunk
  - .is-hidden
  - .is-logo-hidden
*/

body.fse-header-pro header.wp-block-template-part,
body.fse-header-pro .wp-site-blocks header,
body.fse-header-pro header {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: transform .25s ease, padding .25s ease, background-color .25s ease, box-shadow .25s ease;
}

/* Shrink effect */
body.fse-header-pro header.is-shrunk {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Hide header on scroll-down */
body.fse-header-pro header.is-hidden {
  transform: translateY(-110%);
}

/* Logo hide on scroll (only when enabled via JS/body class) */
body.fse-header-pro.fsehp-logo-hide header.is-logo-hidden .wp-block-site-logo,
body.fse-header-pro.fsehp-logo-hide header.is-logo-hidden .wp-block-site-logo a,
body.fse-header-pro.fsehp-logo-hide header.is-logo-hidden .wp-block-site-logo img {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: opacity .2s ease;
}

/* Keep navigation pinned to top (only when enabled via body class) */
body.fse-header-pro.fsehp-nav-sticky header .wp-block-navigation,
body.fse-header-pro.fsehp-nav-sticky header .wp-block-navigation__responsive-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: inherit;
}

/* Active anchor highlight (optional) */
body.fse-header-pro a.is-active {
  text-decoration: underline;
  text-underline-offset: 6px;
}
