/* Design System Theme Overrides */

/* Prevent unwanted backgrounds on spans */
.hero-badge span,
.btn-primary span,
.btn-secondary span,
.floating-card span,
.gradient-text span,
button span {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: inherit !important;
  background-clip: initial !important;
}

/* Ensure icons are visible */
.floating-card i,
.hero-badge i,
i.fas,
i.far,
i.fab {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: inherit !important;
  background-clip: initial !important;
}

/* ── GLOBAL: icons inside any gradient icon box must always be white ──
   Covers every page's icon containers: bs-, me-, qe-, fe-, xp-, etc.
   Pattern: any element whose class ends in -icon that has a gradient bg */
[class$="-icon"] i.fas,
[class$="-icon"] i.far,
[class$="-icon"] i.fab,
[class*="-icon "] i.fas,
[class*="-icon "] i.far,
[class*="-icon "] i.fab {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* Service section icons - always white */
.service-icon i {
  color: white !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: white !important;
  background-clip: initial !important;
}

/* Experience Engineering eco icons - always white on gradient bg */
.xp-eco-icon i,
.xp-eco-icon i.fas {
  color: white !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: white !important;
  background-clip: initial !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* Philosophy section icons - always white */
.philosophy-icon i {
  color: white !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: white !important;
  background-clip: initial !important;
  display: block !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

/* Services showcase section in light theme */
body.light-theme .services-showcase {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%) !important;
}

body.light-theme .services-showcase .section-label {
  color: var(--original-orange) !important;
}

body.light-theme .services-showcase h2 {
  color: #1a1f3a !important;
}

body.light-theme .services-showcase p {
  color: rgba(26, 31, 58, 0.8) !important;
}

body.light-theme .service-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .service-card:hover {
  border-color: rgba(255, 123, 0, 0.3) !important;
  box-shadow: 0 12px 40px rgba(255, 123, 0, 0.15) !important;
}

body.light-theme .service-icon {
  background: var(--original-orange) !important;
}

body.light-theme .service-icon i {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

body.light-theme .service-content h3 {
  color: #1a1f3a !important;
}

body.light-theme .service-content p {
  color: rgba(26, 31, 58, 0.8) !important;
}

body.light-theme .sub-service-chip {
  background: rgba(255, 123, 0, 0.1) !important;
  border: 1px solid rgba(255, 123, 0, 0.2) !important;
  color: #1a1f3a !important;
}

body.light-theme .sub-service-chip:hover {
  background: rgba(255, 123, 0, 0.2) !important;
  border-color: rgba(255, 123, 0, 0.5) !important;
  color: var(--original-orange) !important;
  box-shadow: 0 4px 12px rgba(255, 123, 0, 0.3) !important;
}

body.light-theme .learn-more-btn {
  background: var(--original-orange) !important;
  color: white !important;
}

body.light-theme .learn-more-btn:hover {
  background: var(--original-orange-hover) !important;
}

/* Contact Button - Matching Design System */
.contact-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%) !important;
  color: white !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.5) !important;
  background: linear-gradient(135deg, #0A4AFF 0%, #00D4FF 100%) !important;
}
