/* ================================================================
   WEVAL TITLES ACCENT v3 — D815 polish + BUTTON CONTRAST FIXES
   ================================================================ */

/* === EMPHASIS MARKUP — strong/em inside titles → WEVAL indigo === */
h1 strong, h1 em,
h2 strong, h2 em,
h3 strong, h3 em,
.hero h1 strong, .hero h1 em,
.hero h2 strong, .hero h2 em,
.section h2 strong, .section h2 em,
.section-head h2 strong, .section-head h2 em,
.phero h3 strong, .phero h3 em {
  color: #3730A3 !important;
  -webkit-text-fill-color: #3730A3 !important;
  font-weight: 500;
  font-style: normal;
}

/* === SECTION EYEBROWS (small-caps labels) → WEVAL indigo === */
h2.partners-title,
h3.services-title,
h3.use-cases-title,
.section-eyebrow,
.eyebrow,
.phero-tag,
.ticker-label,
[class*="-eyebrow"]:not([class*="text-"]),
[class*="small-caps"] {
  color: #3730A3 !important;
  -webkit-text-fill-color: #3730A3 !important;
  font-weight: 600 !important;
}

/* === BUTTONS — ALL solid-bg buttons MUST have white text === */
/* Contact button: gradient indigo bg → MUST have white text */
.contact-button,
button.contact-button,
a.contact-button {
  background: linear-gradient(135deg, #3730A3, #6366F1) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
}
.contact-button:hover {
  background: linear-gradient(135deg, #1e1b6e, #4f46e5) !important;
}

/* CTA primary buttons across the page (solid indigo bg) */
.btn-primary, button.btn-primary, a.btn-primary,
.cta-primary, .wr-cta-primary, button.wr-cta-primary,
.service-button.primary, .primary-cta,
[class*="btn"][class*="primary"]:not([class*="outline"]):not([class*="ghost"]),
[class*="cta"][class*="primary"]:not([class*="outline"]) {
  background: #3730A3 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #3730A3 !important;
  font-weight: 600 !important;
}
[class*="btn"][class*="primary"]:not([class*="outline"]):not([class*="ghost"]):hover {
  background: #1e1b6e !important;
}

/* "Nos Services" button + similar "discover" CTAs: ensure solid + white text */
button[class*="service"][class*="button"]:not([class*="outline"]):not([class*="ghost"]),
a[class*="service"][class*="button"]:not([class*="outline"]):not([class*="ghost"]),
button.hero-cta, a.hero-cta,
.discover-btn, .nos-services-btn {
  background: linear-gradient(135deg, #3730A3, #6366F1) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
}

/* Buttons with gradient bg — force white text */
button[style*="gradient"],
a[style*="gradient"],
[class*="gradient"][class*="btn"],
[class*="gradient"][class*="button"],
[class*="gradient"][class*="cta"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* === NAV LINKS — keep dark gray (not indigo) for readability === */
.nav-link, button.nav-link, a.nav-link {
  color: #1B1B1B !important;
  -webkit-text-fill-color: #1B1B1B !important;
  font-weight: 500;
}
.nav-link:hover {
  color: #3730A3 !important;
  -webkit-text-fill-color: #3730A3 !important;
}

/* === ::selection brand === */
::selection {
  background: rgba(99, 102, 241, 0.15);
  color: #1B1B1B;
}


/* D815-WHITE-CTA-GUARANTEE */
/* GUARANTEE: All WEVAL primary CTAs MUST have white text on gradient/indigo bg.
   This is the LAST defense — overrides any contrast-runtime or theme script. */
button.services-button,
button.service-button,
a.service-button,
button.contact-button,
a.contact-button,
button.cta-primary,
a.cta-primary,
button.btn-primary,
a.btn-primary,
button.wr-cta-btn,
button.wr-cta-primary,
.wcc-btn-primary,
button.marketplace-button,
a.marketplace-button,
button[class*="cta-btn"],
a[class*="cta-btn"],
button[class*="-primary"],
a[class*="-primary"],
.wv-gartner-banner-cta {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}

button.services-button > *,
button.service-button > *,
a.service-button > *,
button.contact-button > *,
a.contact-button > *,
button.cta-primary > *,
a.cta-primary > *,
button.btn-primary > *,
a.btn-primary > *,
button.wr-cta-btn > *,
button.wr-cta-primary > *,
.wcc-btn-primary > *,
button.marketplace-button > *,
a.marketplace-button > *,
button[class*="cta-btn"] > *,
a[class*="cta-btn"] > * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Generic: anything with indigo gradient inline-style gets white text */
button[style*="linear-gradient"][style*="48, 163"],
a[style*="linear-gradient"][style*="48, 163"],
button[style*="linear-gradient"][style*="#3730A3"],
a[style*="linear-gradient"][style*="#3730A3"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* The "Logout" admin button (design-system pages) — visible WEVAL indigo */
.we-nav-r a[href*="logout" i],
.we-nav-r a[href*="signout" i],
nav a[href*="logout" i],
nav a[href*="signout" i] {
  background: #3730A3 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
/* End D815-WHITE-CTA-GUARANTEE */
