/* ==========================================================================
   HOME INVERTER PAGE SPECIFIC STYLES
   ========================================================================== */

.ng-single-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.ng-hero-static-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ng-hero-overlay-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 7, 4, 0.15) 0%,
    rgba(11, 7, 4, 0.55) 55%,
    rgba(11, 7, 4, 0.92) 100%
  );
  z-index: 1;
}

.ng-hero-center-container {
  z-index: 3;
  justify-content: flex-end !important;
  gap: 0.5rem !important;
  padding: 1.5rem !important;
}

.ng-hero-center-text {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.15rem !important;
}

/* Compulsory white text for the complete inverter line */
.ng-hero-sub-pop {
  color: #ffffff !important;
  animation: none !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  font-size: clamp(0.8rem, 1.5vw, 1rem) !important;
  letter-spacing: 0.05em !important;
}

.ng-hero-main-title {
  font-size: clamp(1.2rem, 2.1vw, 1.75rem) !important;
  font-weight: 700 !important;
  margin: 0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.ng-hero-action-group {
  margin-top: 0.25rem !important;
}

/* Make WhatsApp button responsive and strictly single-line */
.ng-btn-electric {
  white-space: nowrap !important;
  font-size: clamp(0.72rem, 1.3vw, 0.85rem) !important;
  padding: 0.5rem 1.1rem !important;
  max-width: 100%;
}

.ng-hero-text-dark .ng-hero-subtitle-dark {
  margin: 0 auto;
}

@media (max-width: 900px) {
  .ng-hero-center-text {
    display: none !important;
  }

  .ng-mobile-sub-text {
    display: block !important;
    font-size: 0.82rem !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    /*color: #ffffff !important;*/
    line-height: 1.35;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  }

  .ng-btn-electric {
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 0.5rem 0.9rem !important;
  }
}

/* ==========================================================================
   TIGHTEN DESKTOP TEXT SPACING & MOBILE WHITE TEXT OVERRIDES
   ========================================================================== */

.ng-invertor-desc-block {
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

.ng-invertor-desc-block .ng-hero-title-dark {
  margin-bottom: 0.5rem !important;
  letter-spacing: -0.04em;
}

.ng-invertor-desc-block .ng-caption-dark {
  margin-bottom: 0.2rem !important;
}

@media (max-width: 900px) {
  .ng-invertor-desc-block .ng-caption-dark {
    color: #ffffff !important;
  }
  
  .ng-invertor-desc-block .ng-hero-title-dark {
    /*color: #ffffff !important;*/
  }
  
  .ng-invertor-desc-block .ng-highlight-dark {
    /*color: #FEAC97 !important;*/
  }

  .ng-invertor-desc-block .ng-hero-subtitle-dark {
    color: rgba(255, 255, 255, 0.9) !important;
  }
}

@media (max-width: 900px) {
  .ng-invertor-desc-block .ng-caption-dark {
    color: var(--ng-coral, #f04b22) !important;
  }

  .ng-invertor-desc-block .ng-hero-title-dark {
    color: var(--ng-black, #151515) !important;
  }

  .ng-invertor-desc-block .ng-highlight-dark {
    color: var(--ng-coral, #e05a36) !important;
  }

  .ng-invertor-desc-block .ng-hero-subtitle-dark {
    color: var(--ng-charcoal, #292929) !important;
  }
}