/*
 * Single-floorplan header overrides.
 * Works WITH Astra's own sticky / transparent header rather than fighting it.
 * The background color and text color are set via inline CSS variables from PHP
 * so this file only needs structural / transition rules.
 */

/* Apply the plugin color to Astra's primary header bar */
body.single-floorplan .ast-primary-header-bar {
    background-color: var(--fpt-header-bg) !important;
    background-image: none !important;
    transition: background-color 0.2s ease;
}

/* Ensure all top-level text / links in the header respect the computed contrast color */
body.single-floorplan .ast-primary-header-bar,
body.single-floorplan .ast-primary-header-bar .ast-builder-menu-mobile .main-header-menu,
body.single-floorplan .ast-primary-header-bar .main-header-menu,
body.single-floorplan .ast-primary-header-bar .ast-header-search .astra-search-icon,
body.single-floorplan .ast-primary-header-bar .ast-button-wrap .ast-custom-button {
    color: var(--fpt-header-text) !important;
}

body.single-floorplan .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link {
    color: var(--fpt-header-text) !important;
}

body.single-floorplan .ast-primary-header-bar .main-header-menu > .menu-item:hover > .menu-link,
body.single-floorplan .ast-primary-header-bar .main-header-menu > .menu-item.current-menu-item > .menu-link {
    color: var(--fpt-header-text) !important;
    opacity: 0.85;
}

/* Site title / logo text */
body.single-floorplan .ast-primary-header-bar .site-title a,
body.single-floorplan .ast-primary-header-bar .ast-site-identity .site-title a {
    color: var(--fpt-header-text) !important;
}

/* Hamburger / mobile toggle inherits text color */
body.single-floorplan .ast-primary-header-bar .ast-mobile-menu-trigger-minimal,
body.single-floorplan .ast-primary-header-bar .ast-button-wrap .menu-toggle {
    color: var(--fpt-header-text) !important;
}
