/* ZenixPower shared UI foundation. */
:root {
  --zpx-green: #2f8f46;
  --zpx-green-dark: #247238;
  --zpx-orange: #f58220;
  --zpx-orange-dark: #d96a0a;
  --zpx-ink: #1f2933;
  --zpx-muted: #66727c;
  --zpx-line: #dfe4e7;
  --zpx-surface: #f5f7f8;
  --zpx-white: #fff;
  --zpx-radius: 5px;
  --zpx-shadow: 0 8px 24px rgba(31, 41, 51, .12);
}

html { overflow-x: hidden; }
body {
  color: var(--zpx-ink);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

body button,
body input,
body select,
body textarea { font: inherit; letter-spacing: 0; }

body button:not(.menu-toggle):not(.zpx-close),
body .button,
body input[type="button"],
body input[type="submit"],
body .elementor-button,
body .zpx-prod-btn,
body .zpx-cta-btn {
  min-height: 44px;
  border-radius: var(--zpx-radius);
  font-weight: 700;
}

body button:focus-visible,
body a:focus-visible,
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible {
  outline: 3px solid rgba(245, 130, 32, .45);
  outline-offset: 2px;
}

/* Header and brand */
#masthead {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--zpx-line);
  background: var(--zpx-white);
  box-shadow: 0 2px 12px rgba(31, 41, 51, .06);
}

#ast-desktop-header,
#ast-desktop-header .ast-main-header-wrap,
#ast-desktop-header .main-header-bar-wrap,
#ast-desktop-header .ast-primary-header-bar,
#ast-desktop-header .site-primary-header-wrap,
#ast-desktop-header .ast-builder-grid-row,
#ast-desktop-header .site-header-section {
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
}

#ast-desktop-header .ast-primary-header-bar { padding: 0; }
#ast-desktop-header .site-primary-header-wrap .ast-builder-grid-row {
  width: 100%;
  max-width: 1400px;
  padding-right: 20px;
  padding-left: 20px;
}
#ast-desktop-header .site-header-primary-section-left {
  width: auto !important;
  min-width: 150px;
  flex: 0 0 auto;
}
#ast-desktop-header .site-header-primary-section-right {
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
#ast-desktop-header .site-branding { width: auto !important; padding: 0; }

#ast-desktop-header .ast-header-button-1 {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: auto !important;
  height: 74px !important;
  min-height: 74px !important;
  padding-left: 10px;
}
#ast-desktop-header .ast-header-button-1 .ast-builder-button-wrap,
#ast-desktop-header .ast-header-button-1 .ast-custom-button-link,
#ast-desktop-header .ast-header-button-1 .ast-custom-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  min-height: 44px;
  white-space: nowrap;
}

.zpx-wordmark-link {
  display: inline-flex;
  align-items: center;
  color: var(--zpx-ink);
  text-decoration: none;
  white-space: nowrap;
}
.zpx-wordmark { display: flex; flex-direction: column; line-height: 1; }
.zpx-wordmark-name { font-size: 24px; font-weight: 800; }
.zpx-wordmark-name span { color: var(--zpx-green); }
.zpx-wordmark-tagline {
  margin-top: 5px;
  color: var(--zpx-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#primary-site-navigation-desktop .main-header-menu {
  align-items: stretch;
  flex-wrap: nowrap;
}
#primary-site-navigation-desktop .main-header-menu > .menu-item:first-child { display: none; }
#primary-site-navigation-desktop .main-header-menu > .menu-item > .menu-link {
  min-height: 74px;
  padding: 0 8px;
  color: var(--zpx-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}
#primary-site-navigation-desktop .main-header-menu > .menu-item:hover > .menu-link,
#primary-site-navigation-desktop .main-header-menu > .current-menu-item > .menu-link,
#primary-site-navigation-desktop .main-header-menu > .current-menu-ancestor > .menu-link { color: var(--zpx-green); }
#primary-site-navigation-desktop .sub-menu {
  border-top: 3px solid var(--zpx-orange);
  box-shadow: var(--zpx-shadow);
}
#primary-site-navigation-desktop .sub-menu .menu-link {
  padding: 11px 16px;
  color: var(--zpx-ink);
  font-size: 14px;
}

/* Footer */
#colophon {
  background: #202a32;
  color: #d9e0e4;
  font-size: 15px;
}
#colophon a { color: #eef3f5; }
#colophon a:hover { color: #ffab63; }
#colophon .site-primary-footer-wrap {
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
  background: #202a32;
}
#colophon .site-primary-footer-wrap .ast-builder-grid-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 1fr) !important;
  gap: 64px;
  padding-top: 40px;
  padding-bottom: 36px;
}
#colophon .site-footer-primary-section-3 { display: none; }
#colophon .site-footer-section { min-width: 0; }
#colophon .widget { margin-bottom: 0; }
#colophon .widget-title {
  margin: 0 0 12px;
  color: var(--zpx-white);
  font-size: 16px;
}
#colophon .menu a { padding: 5px 0; line-height: 1.4; }

.zpx-footer-intro { max-width: 610px; }
.zpx-footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--zpx-white) !important;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}
.zpx-footer-brand span { color: #63c779; }
.zpx-footer-intro p { max-width: 560px; margin: 0 0 16px; color: #c4cdd2; }
.zpx-footer-points { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #eef3f5; font-size: 14px; }
.zpx-footer-points span { position: relative; padding-left: 14px; }
.zpx-footer-points span::before {
  position: absolute;
  top: .58em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zpx-orange);
  content: "";
}

#colophon .site-below-footer-wrap {
  min-height: 64px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: #182128;
}
#colophon .site-below-footer-wrap .ast-builder-grid-row { min-height: 64px; padding-top: 0; padding-bottom: 0; }
#colophon .ast-footer-copyright p { margin: 0; color: #aeb9c0; font-size: 14px; }

@media (max-width: 1250px) and (min-width: 922px) {
  #ast-desktop-header .site-header-primary-section-left { min-width: 135px; }
  .zpx-wordmark-name { font-size: 21px; }
  #primary-site-navigation-desktop .main-header-menu > .menu-item:nth-last-child(-n+2) { display: none; }
  #primary-site-navigation-desktop .main-header-menu > .menu-item > .menu-link {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }
  #ast-desktop-header .ast-header-button-1 { padding-left: 8px; }
  #ast-desktop-header .ast-header-button-1 .ast-custom-button {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 12px;
  }
}

@media (max-width: 921px) {
  #ast-desktop-header { display: none !important; }
  #ast-mobile-header { display: block !important; }
  #ast-mobile-header .ast-mobile-header-content { display: block !important; }
  #ast-mobile-header .main-header-bar-navigation:not(.toggle-on) { display: none !important; }
  #ast-mobile-header .main-header-bar-navigation.toggle-on { display: block !important; }
  #ast-mobile-header .ast-primary-header-bar,
  #ast-mobile-header .ast-builder-grid-row,
  #ast-mobile-header .site-header-section { min-height: 64px !important; }
  #ast-mobile-header .ast-primary-header-bar { padding: 0; }
  #ast-mobile-header .ast-builder-grid-row { grid-template-columns: minmax(0, 1fr) auto; }
  #ast-mobile-header .site-header-primary-section-left { width: auto !important; }
  #ast-mobile-header .site-header-primary-section-right { width: auto !important; justify-content: flex-end; }
  #ast-mobile-header .site-branding { width: auto !important; padding: 0; }
  #ast-mobile-header .zpx-wordmark-name { font-size: 21px; }
  #ast-mobile-header .zpx-wordmark-tagline { margin-top: 4px; font-size: 12px; }

  #ast-mobile-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--zpx-line);
    border-radius: var(--zpx-radius);
    color: var(--zpx-ink);
    background: var(--zpx-white);
  }
  #ast-mobile-header .ast-mobile-header-content {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    border-top: 1px solid var(--zpx-line);
    background: var(--zpx-white);
    box-shadow: var(--zpx-shadow);
  }
  #ast-mobile-site-navigation .main-header-menu { padding: 8px 0 14px; }
  #ast-mobile-site-navigation .main-header-menu .menu-link {
    min-height: 44px;
    padding: 11px 24px;
    color: var(--zpx-ink);
    font-size: 15px;
    line-height: 1.45;
  }
  #ast-mobile-site-navigation .main-header-menu .sub-menu .menu-link { padding-left: 38px; background: var(--zpx-surface); }

  #colophon .site-primary-footer-wrap .ast-builder-grid-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr) !important;
    gap: 36px;
    padding: 34px 32px 30px;
  }

  .zpx-float { right: 16px; bottom: 16px; height: 54px; }
  .zpx-float > .zpx-float-btn:not(.zpx-wa) { display: none !important; }
  .zpx-float .zpx-wa { width: 54px; height: 54px; box-shadow: 0 6px 18px rgba(31, 41, 51, .22); }
}

@media (max-width: 544px) {
  #ast-mobile-header .ast-builder-grid-row { padding-right: 20px; padding-left: 20px; }
  #ast-mobile-site-navigation .main-header-menu .menu-link { padding-right: 20px; padding-left: 20px; overflow-wrap: anywhere; }
  #ast-mobile-site-navigation .main-header-menu .sub-menu .menu-link { padding-left: 34px; }

  #colophon .site-primary-footer-wrap .ast-builder-grid-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px;
    padding: 32px 20px 28px;
  }
  #colophon .site-footer-primary-section-2 { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
  #colophon .site-below-footer-wrap .ast-builder-grid-row { min-height: 72px; padding: 14px 20px; }
  #colophon .ast-footer-copyright p { line-height: 1.5; }
  .zpx-footer-points { display: flex; gap: 6px 16px; }
}
