/* TITAN XTRM v54.15.6: semantic contrast for mixed legacy surfaces.
   Loaded AFTER the existing styles. Limited to TITAN marketing pages; client demos,
   Admin, CD Studio and OBS are intentionally excluded. */

/* Ready Website Designs: legacy white cards were retaining text from dark themes. */
body.tx-public-theme .process-section .process article,
body.tx-public-theme .faq-section .faq details {
  background: var(--tx-panel);
  color: var(--tx-text);
  border: 1px solid var(--tx-hair);
}
body.tx-public-theme .process-section .process article h3,
body.tx-public-theme .faq-section .faq details summary {
  color: var(--tx-text);
}
body.tx-public-theme .process-section .process article p,
body.tx-public-theme .faq-section .faq details p {
  color: var(--tx-muted);
}
body.tx-public-theme .process-section .process article > span {
  color: var(--tx-accent);
}
body.tx-public-theme .faq-section .faq details summary::after {
  color: var(--tx-accent);
}
body.tx-public-theme .faq-section .faq details[open] {
  border-color: color-mix(in srgb, var(--tx-accent) 42%, var(--tx-hair));
}
body.tx-public-theme .faq-section .faq details summary:focus-visible {
  outline: 2px solid var(--tx-accent);
  outline-offset: 2px;
  border-radius: 5px;
}
/* Ready Designs uses a separate FAQ to the primary /faq/ page. */
body.titan-premium .faq-list details {
  background: var(--tx-panel);
  color: var(--tx-text);
  border-color: var(--tx-hair);
}
body.titan-premium .faq-list details summary { color: var(--tx-text); }
body.titan-premium .faq-list details p { color: var(--tx-muted); }

/* Pricing: standard plans intentionally have light cards; the Custom plan
   intentionally has a dark header. Do not apply dark text to that dark header. */
body.titan-premium .web-plan.custom-plan .plan-head {
  background: linear-gradient(130deg,
    color-mix(in srgb, var(--tx-accent) 16%, #07192e),
    #07192e 75%);
  color: #fff;
  border-bottom-color: #38506d;
}
body.titan-premium .web-plan.custom-plan .plan-head > span,
body.titan-premium .web-plan.custom-plan .plan-head > small {
  color: #f3f7fc;
}
body.titan-premium .web-plan.custom-plan .plan-head > strong.plan-offer-price {
  color: color-mix(in srgb, var(--tx-accent) 40%, #fff 60%);
}
body.titan-premium .web-plan.custom-plan .plan-head > del.plan-regular-price {
  color: #c4cfdf;
}
body.titan-premium .web-plan.custom-plan .plan-head > em.plan-offer-note {
  color: color-mix(in srgb, var(--tx-accent) 38%, #fff 62%) !important;
  background: rgba(255,255,255,.13);
}

/* Contact: old white-only phone number/button rules disappeared in light themes. */
body.titan-premium .contact-direct .contact-combined {
  background: var(--tx-panel);
  border-color: var(--tx-hair);
}
body.titan-premium .contact-direct .primary-contact {
  border-color: color-mix(in srgb, var(--tx-accent) 38%, var(--tx-hair));
}
body.titan-premium .contact-direct .contact-combined-copy b,
body.titan-premium .contact-direct .contact-combined-copy > span {
  color: var(--tx-text);
}
body.titan-premium .contact-direct .number-badge {
  background: var(--tx-accent);
  color: var(--tx-on-accent);
}
body.titan-premium .contact-direct .contact-action {
  background: var(--tx-accent);
  color: var(--tx-on-accent);
  border-color: var(--tx-accent);
}
body.titan-premium .contact-direct .whatsapp-action {
  background: color-mix(in srgb, var(--tx-accent) 15%, var(--tx-panel));
  color: var(--tx-text);
  border-color: var(--tx-accent);
}
body.titan-premium .contact-direct .contact-action:is(:hover,:focus-visible) {
  background: var(--tx-accent);
  color: var(--tx-on-accent);
  border-color: var(--tx-accent);
  filter: brightness(1.05);
}
body.titan-premium .contact-direct .whatsapp-action:is(:hover,:focus-visible) {
  background: color-mix(in srgb, var(--tx-accent) 25%, var(--tx-panel));
  color: var(--tx-text);
}
@media (prefers-reduced-motion: reduce) {
  body.titan-premium .contact-direct .contact-action { transition: none; }
}

/* Light palette refinement: body-sized muted text stays above 4.5:1. */
html[data-tx-theme-mode="light"] body.tx-public-theme .process-section .process article p,
html[data-tx-theme-mode="light"] body.tx-public-theme .faq-section .faq details p,
html[data-tx-theme-mode="light"] body.titan-premium .faq-list details p {
  color: color-mix(in srgb, var(--tx-muted) 80%, var(--tx-text) 20%);
}
html[data-tx-theme-mode="light"] body.tx-public-theme .process-section .process article > span {
  color: color-mix(in srgb, var(--tx-accent) 82%, var(--tx-text) 18%);
}
/* Custom package's action also follows the active theme rather than legacy gold. */
body.titan-premium .web-plan.custom-plan .plan-btn {
  background: var(--tx-accent);
  color: var(--tx-on-accent);
  border-color: var(--tx-accent);
}

/* Ivory/gold theme needs a slightly deeper control surface for small white CTA text. */
html[data-tx-theme-mode="light"] body.titan-premium .contact-direct .contact-action:not(.whatsapp-action),
html[data-tx-theme-mode="light"] body.titan-premium .web-plan.custom-plan .plan-btn {
  background: color-mix(in srgb, var(--tx-accent) 83%, var(--tx-text) 17%);
  border-color: color-mix(in srgb, var(--tx-accent) 83%, var(--tx-text) 17%);
  color: #fff;
}
html[data-tx-theme-mode="light"] body.titan-premium .contact-direct .contact-action:not(.whatsapp-action):is(:hover,:focus-visible) {
  background: color-mix(in srgb, var(--tx-accent) 78%, var(--tx-text) 22%);
  border-color: color-mix(in srgb, var(--tx-accent) 78%, var(--tx-text) 22%);
  color: #fff;
}
