/*
Theme Name: Premium Collision Center Child
Theme URI: https://premiumpasadena.com/
Description: Hello Elementor child theme for Premium Collision Center in Pasadena. Custom single blog post template, with blog-only dark navy header support; retains existing site footer and other pages.
Author: Premium Collision Center
Template: hello-elementor
Version: 1.0.0
Text Domain: premium-collision-center-child
*/

/* Blog-post header only: use a navy backdrop where the site header is transparent.
   Never style the site's footer or normal Elementor pages. */
body.single-post {
  --premium-header-bg: #1C374E;
  --premium-header-link: #FFFFFF;
  --premium-header-hover: #F77A84;
}

body.single-post :is(
  .elementor-location-header,
  .elementskit-template-content-header,
  .ekit-template-content-header,
  .hfe-site-header,
  #site-header,
  header.site-header
) {
  background-color: var(--premium-header-bg) !important;
}

/* Keep the existing transparent/sticky header opaque while scrolling on blog posts. */
body.single-post :is(
  .elementor-location-header,
  .elementskit-template-content-header,
  .ekit-template-content-header,
  .hfe-site-header,
  #site-header,
  header.site-header
) :is(.elementor-sticky--active, .elementor-sticky--effects, .ekit-sticky--active) {
  background-color: var(--premium-header-bg) !important;
}

/* Header navigation text only, not CTA button text or the blog itself. */
body.single-post :is(
  .elementor-location-header,
  .elementskit-template-content-header,
  .ekit-template-content-header,
  .hfe-site-header,
  #site-header,
  header.site-header
) :is(.elementor-item, .ekit-menu-nav-link, .elementskit-navbar-nav > li > a, .elementor-nav-menu > li > a) {
  color: var(--premium-header-link) !important;
  -webkit-text-fill-color: var(--premium-header-link) !important;
}
body.single-post :is(
  .elementor-location-header,
  .elementskit-template-content-header,
  .ekit-template-content-header,
  .hfe-site-header,
  #site-header,
  header.site-header
) :is(.elementor-item, .ekit-menu-nav-link, .elementskit-navbar-nav > li > a, .elementor-nav-menu > li > a):is(:hover, :focus-visible) {
  color: var(--premium-header-hover) !important;
  -webkit-text-fill-color: var(--premium-header-hover) !important;
}

@media (max-width: 1024px) {
  body.single-post :is(.elementor-location-header, .elementskit-template-content-header,
    .ekit-template-content-header, .hfe-site-header, #site-header, header.site-header)
    :is(.elementskit-menu-container, .elementor-nav-menu--dropdown,
      .elementskit-dropdown, .elementskit-submenu-panel) {
    background-color: var(--premium-header-bg) !important;
  }
  body.single-post :is(.elementor-location-header, .elementskit-template-content-header,
    .ekit-template-content-header, .hfe-site-header, #site-header, header.site-header)
    :is(.elementor-sub-item, .elementskit-dropdown a, .elementskit-submenu-panel a) {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
  }
  body.single-post :is(.elementor-location-header, .elementskit-template-content-header,
    .ekit-template-content-header, .hfe-site-header, #site-header, header.site-header)
    :is(.elementor-sub-item, .elementskit-dropdown a, .elementskit-submenu-panel a):is(:hover,:focus-visible) {
    color: #F77A84 !important;
    -webkit-text-fill-color: #F77A84 !important;
  }
  body.single-post :is(.elementor-location-header, .elementskit-template-content-header,
    .ekit-template-content-header, .hfe-site-header, #site-header, header.site-header)
    :is(.elementor-menu-toggle, .elementskit-menu-hamburger, .elementskit-menu-close) {
    color: #FFFFFF !important;
    border-color: rgba(255,255,255,.35) !important;
  }
}
