/* Ascend Contracting Group global Astra header correction */
:root {
  --acg-navy: #0B1320;
  --acg-gold: #C6A15B;
  --acg-white: #FFFFFF;
}

/* Prevent Astra's transparent header from exposing a dark/black background. */
body.ast-theme-transparent-header #masthead,
body.ast-theme-transparent-header .site-header,
body.ast-theme-transparent-header .ast-primary-header-bar,
body #masthead,
body .site-header,
body .ast-primary-header-bar,
body .site-primary-header-wrap,
body .main-header-bar {
  background: var(--acg-white) !important;
  background-image: none !important;
}

body.ast-theme-transparent-header #masthead {
  position: relative !important;
  inset: auto !important;
}

/* Keep the selected logo visible and proportional. */
body #masthead .site-logo-img img,
body #masthead .custom-logo-link img,
body #masthead img.custom-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 92px;
  object-fit: contain;
  background: transparent !important;
}

/* Approved menu colors. */
body #masthead .main-header-menu > .menu-item > .menu-link,
body #masthead .ast-builder-menu-1 .menu-item > .menu-link,
body #masthead .ast-builder-menu-mobile .menu-item > .menu-link {
  color: var(--acg-navy) !important;
}

body #masthead .main-header-menu > .menu-item:hover > .menu-link,
body #masthead .main-header-menu > .current-menu-item > .menu-link,
body #masthead .main-header-menu > .current-menu-ancestor > .menu-link,
body #masthead .ast-builder-menu-1 .menu-item:hover > .menu-link,
body #masthead .ast-builder-menu-1 .current-menu-item > .menu-link {
  color: var(--acg-gold) !important;
}

/* Dropdown styling. */
body #masthead .sub-menu {
  background: var(--acg-white) !important;
  border-top: 3px solid var(--acg-gold) !important;
}
body #masthead .sub-menu .menu-link {
  color: var(--acg-navy) !important;
}
body #masthead .sub-menu .menu-item:hover > .menu-link {
  color: var(--acg-gold) !important;
}

/* Astra header button / CTA. */
body #masthead .ast-custom-button,
body #masthead .ast-header-button-1 .ast-custom-button,
body #masthead .ast-builder-button-wrap .ast-custom-button-link .ast-custom-button {
  background: var(--acg-gold) !important;
  border-color: var(--acg-gold) !important;
  color: var(--acg-navy) !important;
}

/* Mobile menu trigger: remove starter red and use metallic gold. */
body #masthead .menu-toggle,
body #masthead .ast-button-wrap .menu-toggle,
body #masthead button.ast-menu-toggle {
  background: var(--acg-gold) !important;
  border-color: var(--acg-gold) !important;
  color: var(--acg-navy) !important;
}

/* Ensure mobile drawer also follows the approved palette. */
body .ast-mobile-popup-drawer .ast-mobile-popup-inner,
body .ast-mobile-popup-drawer .ast-mobile-popup-content,
body .ast-mobile-popup-drawer .ast-builder-menu-mobile {
  background: var(--acg-white) !important;
}

@media (max-width: 921px) {
  body #masthead .site-logo-img img,
  body #masthead .custom-logo-link img,
  body #masthead img.custom-logo {
    max-width: 170px;
    max-height: 76px;
  }
}
