/**
 * Toplifikacija 1.2.0 — targeted Woodmart header & WPBakery hero contrast.
 * No JS or content mutation. Only applied to body classes for allowed page IDs.
 */
@media screen and (min-width: 1025px) {
  body.thk-header-contrast .whb-header.whb-overcontent:not(.whb-sticked) > .whb-main-header:not(.whb-sticked) {
    background-image: linear-gradient(
      180deg,
      var(--thk-gradient-top, rgba(21,43,65,.70)) 0%,
      var(--thk-gradient-mid, rgba(21,43,65,.56)) 68%,
      var(--thk-gradient-end, rgba(21,43,65,.025)) 100%
    ) !important;
    background-repeat: no-repeat !important;
  }

  /* Only first-level main navigation; exclude dropdown & mega-menu content. */
  body.thk-header-contrast .whb-header.whb-overcontent:not(.whb-sticked) > .whb-main-header:not(.whb-sticked)
    .whb-general-header .wd-header-main-nav .wd-nav-main > li.item-level-0 > a.woodmart-nav-link {
    color: #fff !important;
    opacity: 1 !important;
    text-shadow: var(--thk-shadow, 0 1px 2px rgba(0,0,0,.56), 0 2px 10px rgba(0,0,0,.32));
  }
  body.thk-header-contrast .whb-header.whb-overcontent:not(.whb-sticked) > .whb-main-header:not(.whb-sticked)
    .whb-general-header .wd-header-main-nav .wd-nav-main > li.item-level-0 > a.woodmart-nav-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
  }
  body.thk-header-contrast.thk-header-topbar .whb-header.whb-overcontent:not(.whb-sticked) > .whb-main-header:not(.whb-sticked)
    .whb-top-bar .wd-header-text,
  body.thk-header-contrast.thk-header-topbar .whb-header.whb-overcontent:not(.whb-sticked) > .whb-main-header:not(.whb-sticked)
    .whb-top-bar .wd-header-text > a {
    color: #fff !important;
    opacity: 1 !important;
    text-shadow: var(--thk-shadow, 0 1px 2px rgba(0,0,0,.56), 0 2px 10px rgba(0,0,0,.32));
  }
}

/*
 * Only the first immediate, image-backed WPBakery row in page content.
 * The supplied HTML confirms this is the large hero row containing the H1.
 * This is not the global Woodmart site header or subsequent page content.
 */
body.thk-hero-contrast .entry-content .wpb-content-wrapper > .vc_row:first-child.vc_row-has-fill {
  position: relative;
  isolation: isolate;
}

/* An independent, non-interactive overlay; the original photo and Woodmart's
 * white bottom-fade remain present, without replacing the background-image. */
body.thk-hero-contrast .entry-content .wpb-content-wrapper > .vc_row:first-child.vc_row-has-fill::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 63% 50% at var(--thk-hero-pos-x,50%) var(--thk-hero-pos-y,50%),
    var(--thk-hero-core, rgba(21,43,65,.56)) 0%,
    var(--thk-hero-mid, rgba(21,43,65,.20)) 59%,
    var(--thk-hero-edge, rgba(21,43,65,0)) 100%
  );
}
body.thk-hero-contrast.thk-hero-wide .entry-content .wpb-content-wrapper > .vc_row:first-child.vc_row-has-fill::after {
  background: radial-gradient(
    ellipse 94% 69% at var(--thk-hero-pos-x,50%) var(--thk-hero-pos-y,50%),
    var(--thk-hero-core, rgba(21,43,65,.56)) 0%,
    var(--thk-hero-mid, rgba(21,43,65,.20)) 71%,
    var(--thk-hero-edge, rgba(21,43,65,0)) 100%
  );
}

/* Layer headings above the overlay, without changing typography or spacing. */
body.thk-hero-contrast .entry-content .wpb-content-wrapper > .vc_row:first-child.vc_row-has-fill > .wpb_column {
  position: relative;
  z-index: 2;
}
body.thk-hero-contrast .entry-content .wpb-content-wrapper > .vc_row:first-child.vc_row-has-fill .vc_custom_heading {
  text-shadow: var(--thk-hero-shadow, 0 2px 3px rgba(0,0,0,.71), 0 4px 18px rgba(0,0,0,.52)) !important;
}
