/*
Theme Name: barrett-ic custom
Theme URI: https://staging.barrett-ic.com
Author: FOXCR8
Author URI: https://foxcr8.uk
Description: Lightweight Elementor canvas theme for Barrett Industrial Cooling. No parent theme, no reset CSS — styling lives in Elementor. STAGING ONLY until production rollout.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barrett-ic
Tags: elementor, custom-colors, custom-menu, featured-images, full-width-template
*/

/* Scroll-reveal elements use opacity:0 until JS adds .in — force visible in Elementor editor */
body.elementor-editor-active .reveal,
body.elementor-editor-active .reveal-left,
body.elementor-editor-preview .reveal,
body.elementor-editor-preview .reveal-left {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Theme Builder header — smooth scroll hide/show (overrides SHE jumpiness at top) */
.elementor-location-header .she-header-yes.bic-header-scroll-up,
header.elementor-location-header.bic-header-scroll-up {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.35s ease,
    backdrop-filter 0.35s ease !important;
  will-change: transform;
}

.elementor-location-header .she-header-yes.she-header-transparent-yes {
  position: fixed !important;
  top: 0 !important;
}

.elementor-location-header .she-header-yes.headerup {
  transform: translateY(0) !important;
}

.elementor-location-header .she-header-yes.bic-header-scroll-down,
header.elementor-location-header.bic-header-scroll-up.bic-header-scroll-down {
  transform: translateY(-100%) !important;
}

@media (prefers-reduced-motion: reduce) {
  .elementor-location-header .she-header-yes.bic-header-scroll-up,
  header.elementor-location-header.bic-header-scroll-up {
    transition: none !important;
  }
}
