/**
 * Walker Header – scroll blur/desaturate hero
 */

.walker-header {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.walker-header__inner {
  position: relative;
  width: 100%;
  height: var(--walker-header-height, 420px);
}

/* Responsive heights via CSS vars set inline */
@media (max-width: 1024px) {
  .walker-header__inner {
    height: var(--walker-header-height-tablet, var(--walker-header-height, 420px));
  }
}
@media (max-width: 768px) {
  .walker-header__inner {
    height: var(--walker-header-height-mobile,
                var(--walker-header-height-tablet,
                    var(--walker-header-height, 420px)));
  }
}

/* Background layer with scroll-driven FX (driven by --p) */
.walker-header__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  /* Fixed background for parallax-like effect */
  background-attachment: fixed;

  /* scroll progress 0–1, driven by JS */
  --p: 0;
  --blur-max: 8px;
  --desaturate-max: 0.7;

  will-change: filter;
  filter:
    blur( calc( var(--p) * var(--blur-max) ) )
    saturate( calc( 1 - (var(--p) * var(--desaturate-max)) ) )
    grayscale( calc( var(--p) * var(--desaturate-max) ) );
}

/* Overlay layer (dark/light/custom) */
.walker-header__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.walker-header__overlay--dark {
  background: radial-gradient(circle at center, rgba(0,0,0,0.35), rgba(0,0,0,0.7));
}

.walker-header__overlay--light {
  background: radial-gradient(circle at center, rgba(0,0,0,0.2), rgba(0,0,0,0.45));
}

/* Content layer (title + optional inner content) */
.walker-header__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

/* Vertical alignment modifiers */
.walker-header__content--top {
  justify-content: flex-start;
  padding-top: var(--walker-header-title-offset, 0);
}
.walker-header__content--center {
  justify-content: center;
}
.walker-header__content--bottom {
  justify-content: flex-end;
  padding-bottom: var(--walker-header-title-offset, 0);
}

.walker-header__content-inner {
  margin-top: 0.75rem;
}

/* Title styles */
.walker-header__title {
  margin: 0;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Legacy size modifiers (still exist, but inline font-size now wins) */
.walker-header__title--small {
  font-size: 18px;
}
.walker-header__title--medium {
  font-size: 24px;
}
.walker-header__title--large {
  font-size: 32px;
}

@media (max-width: 768px) {
  .walker-header__title--large {
    font-size: 26px;
  }
  .walker-header__title--medium {
    font-size: 20px;
  }
  .walker-header__title--small {
    font-size: 16px;
  }
}
