/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


#subheader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

#scrolling-header {
    position: fixed;
    top: -1000px; /* Large initial off-screen value as fallback */
    left: 0;
    width: 100%;
    background: #fff;
    transition: top 0.3s ease-in-out;
    z-index: 1000;
    opacity: 0; /* Hide visually until initialized */
}

#scrolling-header.initialized {
    opacity: 1; /* Fade in once positioned */
    top: calc(-1 * var(--scrolling-header-height, 0px)); /* Hidden position */
}

#scrolling-header.visible {
    top: var(--subheader-height, 0px); /* Below subheader */
}

