/* WebSourcy Brand Closeout 2026 -- 1.0.0
 * Target: modern WebSourcy EN + ES pages only. No checkout, business-logic,
 * consent, or WordPress admin behavior is changed by this stylesheet.
 */
body.ws-brand-closeout {
  --ws-brand-lime: #a8ff37;
  --ws-brand-lime-hover: #c3ff73;
  --ws-brand-purple: #7229c8;
  --ws-brand-purple-deep: #401b78;
  --ws-brand-night: #090711;
  --ws-brand-white: #faf9ff;
  --ws-brand-focus: #d9ff8c;
}

/* The design language from the approved project-request hero: white heading,
 * lime key phrase, no inherited gradient/italic effect from the old webcy UI. */
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero,.ws-es-contact,.ws-contact-hero) :is(h1,h2) {
  text-wrap: pretty;
}
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero,.ws-es-contact,.ws-contact-hero) :is(h1,h2) :is(em,.ws-brand-accent) {
  color: var(--ws-brand-lime) !important;
  background: none !important;
  -webkit-text-fill-color: var(--ws-brand-lime) !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  font-style: normal !important;
  text-decoration: none !important;
}
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero,.ws-es-contact,.ws-contact-hero) :is(h1,h2) .ws-brand-accent {
  display: inline;
}
body.ws-brand-closeout :is(main,.entry-content,.elementor) :is(h1,h2) .ws-brand-accent,
body.ws-brand-closeout .ws-es-contact #ws-es-contact-title span {
  color: var(--ws-brand-lime) !important;
  -webkit-text-fill-color: var(--ws-brand-lime) !important;
  background-image: none !important;
  font-style: normal !important;
}
/* Preserve correct contrast on dark hero sections; don't recolor white/cream
 * testimonial cards or dark-text feature cards. */
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero) .hero h1,
body.ws-brand-closeout .wsai-hero h1,
body.ws-brand-closeout .ws-contact-hero h1 {
  color: var(--ws-brand-white) !important;
}

/* Primary action: no magenta/pink webcy gradient. Apply to the specific
 * modern-theme action classes, not all anchors or WooCommerce controls. */
body.ws-brand-closeout :is(header,nav,.wsnav,.wsmenu,.wsx-nav,.wsx-links,.ws-contact-nav) a.ws-brand-cta,
body.ws-brand-closeout :is(header,nav,.wsnav,.wsmenu,.wsx-nav,.wsx-links,.ws-contact-nav) a.wsquote,
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero,.ws-es-contact,.ws-contact-hero) a.btn.primary,
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero,.ws-es-contact,.ws-contact-hero) :is(a,button).btn-p,
body.ws-brand-closeout .wsx a.wsx-btn,
body.ws-brand-closeout .wse a.btn,
body.ws-brand-closeout .elementor-widget-button .elementor-button,
body.ws-brand-closeout .wsai-hero a.wsai-btn,
body.ws-brand-closeout .ws-es-contact button[type='submit'],
body.ws-brand-closeout :is(.wse,.wsx,.wsn) button[type='submit'],
body.ws-brand-closeout :is(.wse,.wsx,.wsn) .jet-form-builder__submit,
body.ws-brand-closeout :is(.wse,.wsx,.wsn) .jet-form-builder__next-page {
  background: var(--ws-brand-lime) !important;
  background-image: none !important;
  border: 1px solid var(--ws-brand-lime) !important;
  color: var(--ws-brand-night) !important;
  -webkit-text-fill-color: var(--ws-brand-night) !important;
  box-shadow: 0 8px 26px rgba(168,255,55,.16) !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease !important;
}
body.ws-brand-closeout :is(header,nav,.wsnav,.wsmenu,.wsx-nav,.wsx-links,.ws-contact-nav) a.ws-brand-cta:hover,
body.ws-brand-closeout :is(header,nav,.wsnav,.wsmenu,.wsx-nav,.wsx-links,.ws-contact-nav) a.wsquote:hover,
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero,.ws-es-contact,.ws-contact-hero) a.btn.primary:hover,
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero,.ws-es-contact,.ws-contact-hero) :is(a,button).btn-p:hover,
body.ws-brand-closeout .wsx a.wsx-btn:hover,
body.ws-brand-closeout .wse a.btn:hover,
body.ws-brand-closeout .elementor-widget-button .elementor-button:hover,
body.ws-brand-closeout .wsai-hero a.wsai-btn:hover,
body.ws-brand-closeout :is(.wse,.wsx,.wsn,.ws-es-contact) button[type='submit']:hover,
body.ws-brand-closeout :is(.wse,.wsx,.wsn) .jet-form-builder__next-page:hover:not(:disabled) {
  background: var(--ws-brand-lime-hover) !important;
  border-color: var(--ws-brand-lime-hover) !important;
  color: var(--ws-brand-night) !important;
  -webkit-text-fill-color: var(--ws-brand-night) !important;
  box-shadow: 0 12px 36px rgba(168,255,55,.28) !important;
  transform: translateY(-2px);
}

/* Outline / secondary actions keep the dark neon-violet branding and clear
 * hierarchy instead of inheriting the pink-primary webcy gradient. */
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero) :is(a,button).btn-g,
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero) :is(a,button).btn.white,
body.ws-brand-closeout :is(.wsn,.wsx) a.btn:not(.primary):not(.btn-p),
body.ws-brand-closeout .wsai-actions a.wsai-btn-secondary {
  background: rgba(50,23,93,.34) !important;
  background-image: none !important;
  border: 1px solid rgba(168,255,55,.60) !important;
  color: var(--ws-brand-white) !important;
  -webkit-text-fill-color: var(--ws-brand-white) !important;
  box-shadow: none !important;
  border-radius: 14px !important;
  text-shadow: none !important;
}
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero) :is(a,button).btn-g:hover,
body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero) :is(a,button).btn.white:hover,
body.ws-brand-closeout :is(.wsn,.wsx) a.btn:not(.primary):not(.btn-p):hover {
  background: var(--ws-brand-purple-deep) !important;
  border-color: var(--ws-brand-lime) !important;
  color: var(--ws-brand-lime) !important;
  -webkit-text-fill-color: var(--ws-brand-lime) !important;
}

/* In some pages the old theme uses a generic .btn for both primary actions
 * and navigation. The JS adds .ws-brand-cta only to specific header CTAs. */
body.ws-brand-closeout :is(header,nav,.wsnav,.wsmenu,.wsx-nav,.wsx-links,.ws-contact-nav) .ws-brand-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px !important;
  white-space: nowrap;
}

/* Keyboard accessibility and form safety: leave disabled buttons disabled. */
body.ws-brand-closeout :is(a,button,input,select,textarea):focus-visible {
  outline: 3px solid var(--ws-brand-focus) !important;
  outline-offset: 3px !important;
}
body.ws-brand-closeout .jet-form-builder__next-page:disabled,
body.ws-brand-closeout .jet-form-builder__submit:disabled,
body.ws-brand-closeout button[type='submit']:disabled {
  opacity: .5 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* The old GTranslate float duplicates the hand-built accessible EN / ES
 * navigation; hide only the floating badge, not language-switcher links. */
body.ws-brand-closeout .gt_float_switcher,
body.ws-brand-closeout .gt_switcher_wrapper {
  display: none !important;
}

/* Mobile: headline hierarchy and CTAs stay readable and do not overflow. */
@media(max-width:767px) {
  body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero) .hero h1,
  body.ws-brand-closeout .wsai-hero h1 {
    font-size: clamp(2.3rem, 9vw, 4rem) !important;
    line-height: 1.06 !important;
    overflow-wrap: break-word;
  }
  body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero) :is(a,button).btn.primary,
  body.ws-brand-closeout :is(header,nav,.wsnav,.wsmenu,.wsx-nav,.wsx-links) .ws-brand-cta {
    min-height: 44px;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.ws-brand-closeout :is(a,button).ws-brand-cta,
  body.ws-brand-closeout :is(.wsn,.wse,.wsx,.wsai-hero) :is(a,button).btn {
    transition: none !important;
    transform: none !important;
  }
}

/* QA Maestro generated bilingual header: this is the actual magenta CTA
 * seen in the screenshots. It is outside the individual page content. */
body.ws-brand-closeout #wsqa-hf-header .wsqa-hf-cta,
body.ws-brand-closeout #wsqa-hf-header a.wsqa-hf-cta {
  background: var(--ws-brand-lime) !important;
  background-image: none !important;
  color: var(--ws-brand-night) !important;
  -webkit-text-fill-color: var(--ws-brand-night) !important;
  border: 1px solid var(--ws-brand-lime) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 20px rgba(168,255,55,.20) !important;
  text-shadow: none !important;
  filter: none !important;
  font-weight: 800 !important;
  transition: background-color .2s ease, box-shadow .2s ease !important;
}
body.ws-brand-closeout #wsqa-hf-header .wsqa-hf-cta:hover,
body.ws-brand-closeout #wsqa-hf-header .wsqa-hf-cta:focus-visible {
  background: var(--ws-brand-lime-hover) !important;
  border-color: var(--ws-brand-lime-hover) !important;
  color: var(--ws-brand-night) !important;
  -webkit-text-fill-color: var(--ws-brand-night) !important;
  box-shadow: 0 9px 30px rgba(168,255,55,.32) !important;
  transform: translateY(-1px);
}
/* Never recolor links in the regular navigation and language picker. */
body.ws-brand-closeout #wsqa-hf-header .wsqa-hf-nav-link,
body.ws-brand-closeout #wsqa-hf-header .wsqa-hf-lang-item {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  -webkit-text-fill-color: currentColor !important;
}
