/*
Theme Name: HealthSpire Child
Theme URI: https://healthspire.org
Description: Custom child theme for HealthSpire with modern UI, animations, and SEO optimizations
Author: HealthSpire
Author URI: https://healthspire.org
Template: hello-elementor
Version: 1.0.0
License: GPL v2 or later
Text Domain: healthspire-child
*/

/* Child theme styles are loaded via functions.php */

/* ===== FIX: WordPress Admin Bar Responsiveness ===== */
/* Ensure admin bar doesn't break custom page layouts */
html { margin-top: 0 !important; }
body.admin-bar { margin-top: 0 !important; }

/* When admin bar is present, offset our hero section so it doesn't hide behind the bar */
body.admin-bar .hs-p .hero { padding-top: 160px; }
body.admin-bar .hs-p .sec:first-of-type { padding-top: 120px; }

/* Admin bar responsive fixes */
@media screen and (max-width: 782px) {
    html { margin-top: 0 !important; }
    body.admin-bar .hs-p .hero { padding-top: 140px; }
    #wpadminbar { position: fixed !important; }
}

@media screen and (max-width: 600px) {
    body.admin-bar .hs-p .hero { padding-top: 130px; }
    #wpadminbar { position: fixed !important; top: 0; left: 0; width: 100%; }
}

/* Ensure our custom page wrapper doesn't interfere with admin bar */
.hs-p { position: relative; z-index: 1; }
#wpadminbar { z-index: 999999 !important; }

/* Fix sticky header offset when admin bar is visible */
body.admin-bar .site-header,
body.admin-bar .elementor-location-header,
body.admin-bar header.elementor-section { top: 32px !important; }

@media screen and (max-width: 782px) {
    body.admin-bar .site-header,
    body.admin-bar .elementor-location-header,
    body.admin-bar header.elementor-section { top: 46px !important; }
}

/* Prevent our CSS reset from affecting admin bar */
#wpadminbar * { margin: revert !important; padding: revert !important; box-sizing: content-box !important; }
#wpadminbar .ab-item, #wpadminbar .ab-icon { all: revert !important; }
