/* =============================================
   IGS GLOBAL COLOR FIX v2
   ============================================= */

/* --- LIGHT SECTION HEADINGS --- */
/* Only targets sections with light backgrounds */
.elementor-section[data-element_type="section"] 
  .elementor-heading-title {
  color: #1e3a5f;
}

/* --- DARK NAVY SECTION HEADINGS --- */
/* Overrides above for dark navy sections */
/* Background #1e3a5f = rgb(30, 58, 95) */
[style*="background-color: rgb(30, 58, 95)"] 
  .elementor-heading-title,
[style*="background-color:rgb(30, 58, 95)"] 
  .elementor-heading-title,
[style*="background-color: #1e3a5f"] 
  .elementor-heading-title,
[style*="background-color:#1e3a5f"] 
  .elementor-heading-title {
  color: #ffffff !important;
}

/* --- DARKEST SECTION HEADINGS --- */
/* Background #111e2e = rgb(17, 30, 46) */
[style*="background-color: rgb(17, 30, 46)"] 
  .elementor-heading-title,
[style*="background-color:rgb(17, 30, 46)"] 
  .elementor-heading-title,
[style*="background-color: #111e2e"] 
  .elementor-heading-title,
[style*="background-color:#111e2e"] 
  .elementor-heading-title {
  color: #ffffff !important;
}

/* --- HERO SECTION HEADING FIX --- */
/* Light surface hero background #faf7f2 */
[style*="background-color: rgb(250, 247, 242)"] 
  .elementor-heading-title,
[style*="background-color: #faf7f2"] 
  .elementor-heading-title {
  color: #1e3a5f !important;
}

/* --- LIGHT PAGE BACKGROUND HEADINGS --- */
/* Background #f0ede8 = rgb(240, 237, 232) */
[style*="background-color: rgb(240, 237, 232)"] 
  .elementor-heading-title,
[style*="background-color: #f0ede8"] 
  .elementor-heading-title {
  color: #1e3a5f !important;
}

/* --- BODY TEXT ON LIGHT BACKGROUNDS --- */
[style*="background-color: rgb(250, 247, 242)"] p,
[style*="background-color: rgb(240, 237, 232)"] p,
[style*="background-color: #faf7f2"] p,
[style*="background-color: #f0ede8"] p {
  color: #5a5a5a !important;
}

/* --- BODY TEXT ON DARK BACKGROUNDS --- */
[style*="background-color: rgb(30, 58, 95)"] p,
[style*="background-color:#1e3a5f"] p,
[style*="background-color: #1e3a5f"] p {
  color: #9ab0c8 !important;
}

[style*="background-color: rgb(17, 30, 46)"] p,
[style*="background-color:#111e2e"] p,
[style*="background-color: #111e2e"] p {
  color: #6b8fa8 !important;
}

/* --- CTA SECTION ID FIX --- */
#igs-cta-section {
  background-color: #1e3a5f !important;
}

#igs-cta-section .elementor-heading-title {
  color: #ffffff !important;
}

#igs-cta-section p {
  color: #9ab0c8 !important;
}

#igs-cta-section .elementor-button {
  background-color: #E8701A !important;
  color: #ffffff !important;
  border-color: #E8701A !important;
  border-radius: 8px !important;
}

#igs-cta-section .elementor-button:hover {
  background-color: #cf6015 !important;
}

/* --- DARK CARD HEADINGS --- */
/* Fixes Pro AIOS Engine card and other dark cards */
[style*="background: rgb(30, 58, 95)"] 
  .elementor-heading-title,
[style*="background:#1e3a5f"] 
  .elementor-heading-title,
[style*="background: #1e3a5f"] 
  .elementor-heading-title {
  color: #ffffff !important;
}

/* --- ORANGE SECTION LABELS --- */
.elementor-widget-text-editor 
  [style*="color: rgb(232, 112, 26)"],
.elementor-widget-text-editor 
  [style*="color:#E8701A"],
.elementor-widget-text-editor 
  [style*="color: #E8701A"] {
  color: #E8701A !important;
}

/* --- GLOBAL BUTTON FIX --- */
.elementor-button.elementor-size-lg,
.elementor-button.elementor-size-xl,
.elementor-button.elementor-size-md,
.elementor-button.elementor-size-sm {
  background-color: #E8701A !important;
  color: #ffffff !important;
  border-color: #E8701A !important;
}

.elementor-button.elementor-size-lg:hover,
.elementor-button.elementor-size-xl:hover,
.elementor-button.elementor-size-md:hover {
  background-color: #cf6015 !important;
  border-color: #cf6015 !important;
}

/* =============================================
   END IGS GLOBAL COLOR FIX v2
   ============================================= */