/* CliviXo v5.4.3 — site-wide text visibility / contrast hardening
   Purpose: repair legacy !important cascade collisions and guarantee readable copy
   on dark, gradient, light and white-button surfaces without flattening the design. */
:root{
  --v543-ink:#15142b;
  --v543-body:#474d62;
  --v543-body-strong:#3f455a;
  --v543-on-dark:#f8f7ff;
  --v543-on-dark-muted:#e7e3f2;
  --v543-on-dark-soft:#d7d2e7;
  --v543-accent-light:#c9bdff;
}

/* Baseline: never let inherited legacy opacity wash real content out. */
main :where(h1,h2,h3,h4,h5,h6,p,li,label,small,strong,b,a,button){text-shadow:none}
main :where(p,li,label,small){opacity:1}

/* Stronger body copy on recurring light surfaces. */
:where(.hero-standard-v54,.hero-standard-home-v54,.section,.v4-section,.inner-hero,.service-hero,.industry-hero,.city-detail-hero,.article-head-v47,.city-article-v54,.contact-form,.sitemap-v47,.city-guides-v54) :where(p,li){color:var(--v543-body)!important;opacity:1!important}
:where(.hero-standard-v54,.hero-standard-home-v54,.article-head-v47,.city-article-head-v54) :where(h1,h2,h3,h4){color:var(--v543-ink)!important}

/* HOME — Domains & Cloud flagship experience: dark copy panel only. */
.work-stage-v4 .work-copy-v4 :where(h2,h3,strong,b){color:#fff!important}
.work-stage-v4 .work-copy-v4 p{color:var(--v543-on-dark-muted)!important;opacity:1!important}
.work-stage-v4 .work-copy-v4 .v4-kicker{color:var(--v543-accent-light)!important;opacity:1!important}
.work-stage-v4 .work-copy-v4 .v4-text-link{color:#fff!important}
/* Keep the nested product preview intentionally light. */
.work-stage-v4 .domain-product-card{color:#251c3e!important}
.work-stage-v4 .domain-product-card :where(p,small){color:#746d82!important}
.work-stage-v4 .domain-product-card :where(strong,b){color:#251c3e!important}
.work-stage-v4 .domain-product-card .domain-search-preview strong span{color:#7752ff!important}
.work-stage-v4 .domain-product-card .domain-preview-search-v46{color:#fff!important}

/* HOME — Search Gravity: copy is on a genuinely dark gradient. */
.seo-panel-v4 .seo-copy-v4 :where(h2,h3,strong,b){color:#fff!important}
.seo-panel-v4 .seo-copy-v4 p{color:var(--v543-on-dark-muted)!important;opacity:1!important}
.seo-panel-v4 .seo-copy-v4 .v4-kicker{color:#c9bdff!important;opacity:1!important}
.seo-panel-v4 .seo-copy-v4 .v4-button.light{background:#fff!important;color:#20183c!important}
.seo-panel-v4 .seo-node-v4{color:#fff!important}

/* HOME — final CTA is LIGHT. v5.4 accidentally classified it as dark. */
.final-cta-v45 .final-cta-copy-v45 :where(h2,h3,strong,b){color:var(--v543-ink)!important}
.final-cta-v45 .final-cta-copy-v45 p{color:var(--v543-body-strong)!important;opacity:1!important;text-shadow:none!important}
.final-cta-v45 .final-cta-copy-v45 .v4-kicker{color:#5e45cf!important;opacity:1!important}
.final-cta-v45 .final-cta-copy-v45 .v4-button.dark{background:#1e1733!important;color:#fff!important}

/* ABOUT — promise panel is a dark saturated gradient. */
.client-promise-panel-v43 :where(h2,h3,h4,strong,b){color:#fff!important}
.client-promise-panel-v43 p{color:#f7f5ff!important;opacity:1!important;text-shadow:0 1px 14px rgba(14,7,42,.20)!important}
.client-promise-panel-v43 .eyebrow{color:#fff!important;border-color:rgba(255,255,255,.28)!important;background:rgba(255,255,255,.10)!important}
.client-promise-panel-v43 .client-promise-pills-v43 span{color:#fff!important;opacity:1!important}

/* INSIGHTS — feature card uses a dark-violet-to-cyan background. */
.insight-feature-v47>a .copy :where(h2,h3,strong,b){color:#fff!important}
.insight-feature-v47>a .copy>span{color:#f1efff!important;opacity:1!important}
.insight-feature-v47>a .copy p{color:#f5f3ff!important;opacity:1!important;text-shadow:0 1px 12px rgba(16,9,46,.16)!important}

/* WORK — first product card is dark; legacy generic card rules made its copy dark. */
.work-card-v4.domain :where(h1,h2,h3,h4,strong,b,span){color:#fff!important}
.work-card-v4.domain p{color:#eeeafb!important;opacity:1!important}
.work-card-v4.domain>b{color:#fff!important}

/* PRICING — selected/recommended tier and older featured ladder are dark. */
.pricing-card.recommended :where(h1,h2,h3,h4,strong,b,span,li,p,small){color:#fff!important;opacity:1!important}
.pricing-card.recommended .recommended-label{color:#fff!important}
.pricing-card.recommended .renewal{background:rgba(255,255,255,.13)!important}
.pricing-card.recommended .button-primary{color:#fff!important}
.price-ladder-v4 .featured :where(h1,h2,h3,h4,strong,b,span,li,p,small){color:#fff!important;opacity:1!important}

/* Common saturated/dark commercial surfaces nested inside .section/.v4-section.
   Target copy containers or direct text so light child cards are not recolored. */
.proof-panel :where(h1,h2,h3,h4,p,li,strong,b){color:#fff!important;opacity:1!important}
.city-offer-card :where(h1,h2,h3,h4,p,li,strong,b){color:#fff!important;opacity:1!important}
.city-desk-panel-v42 :where(h1,h2,h3,h4,p,li,strong,b,span){color:#f8f6ff!important;opacity:1!important}
.city-desk-panel-v42>span{color:#ded7ff!important}
.estimate-result :where(h1,h2,h3,h4,p,li,strong,b,span){color:#fff!important;opacity:1!important}
.clivixo-demo-bridge :where(h1,h2,h3,h4,p,li,strong,b,span){color:#fff!important;opacity:1!important}
.pricing-cloud-art-v4 :where(h1,h2,h3,h4,p,li,strong,b,span){color:#f8f6ff!important;opacity:1!important}
.technology-detail-v41 :where(h1,h2,h3,h4,p,li,strong,b,span,small){color:#f7f5ff!important;opacity:1!important}
.architect-result-v41 :where(h1,h2,h3,h4,p,li,strong,b,span,small){color:#f8f6ff!important;opacity:1!important}
.journey-card-v41 :where(h1,h2,h3,h4,p,li,strong,b,span,small){color:#fff!important;opacity:1!important}
.grade-story-v41 :where(h1,h2,h3,h4,p,li,strong,b,span,small){color:#fff!important;opacity:1!important}
.move-planner-v41 :where(h1,h2,h3,h4,p,li,strong,b,span,small,label){color:#f7f5ff!important;opacity:1!important}
.work-lab-v41.domains> :where(h1,h2,h3,h4,p,span,strong,b){color:#f8f6ff!important;opacity:1!important}

/* Keep white/light controls readable when they sit inside dark parents. */
:where(.article-cta-v47,.city-desk-panel-v42,.proof-panel,.client-promise-panel-v43) :where(.button-light,.v4-button.light){background:#fff!important;color:#211a3d!important}
.article-cta-v47>a{background:#fff!important;color:#241b50!important}
.article-cta-v47>a *{color:#241b50!important}

/* FOOTER — dark surface, except its white CTA button. */
.universal-footer-v49 .footer-brand-v49 :where(h2,h3,strong,b){color:#fff!important}
.universal-footer-v49 .footer-brand-v49 p{color:#e8e5f2!important;opacity:1!important}
.universal-footer-v49 .footer-group-v49 h3{color:#f1a58f!important}
.universal-footer-v49 .footer-group-v49 a{color:#dce2ef!important;opacity:1!important}
.universal-footer-v49 .footer-group-v49 a:hover{color:#fff!important}
.universal-footer-v49 .footer-cta-v49>span{color:#f3b09d!important;opacity:1!important}
.universal-footer-v49 .footer-cta-v49 h3{color:#fff!important}
.universal-footer-v49 .footer-cta-v49>a,
.universal-footer-v49 .footer-cta-v49>a :where(span,b,strong,small){background:#fff!important;color:#17132f!important;text-shadow:none!important;opacity:1!important}
.universal-footer-v49 .footer-bottom-v49>span{color:#d7ddeb!important}
.universal-footer-v49 .technorgan-credit :where(strong,b,small){color:#fff!important}

/* Contact/form readability and placeholders. */
.contact-form :where(label,legend,strong,b,h2,h3){color:#24213b!important}
.contact-form :where(p,small){color:#50566b!important;opacity:1!important}
.contact-form :where(input,textarea,select){color:#1f1d33!important;background:#fff!important}
.contact-form :where(input,textarea)::placeholder{color:#73788b!important;opacity:1!important}

/* Buttons/links: explicit foreground so parent color rules can never erase labels. */
.button-primary,.v4-button.primary,.primary-cta-v45,.flagship-cta{color:#fff!important}
.button-dark,.v4-button.dark{color:#fff!important}
.button-light,.v4-button.light,.button-outline{color:#211d38!important}

/* Accessibility focus visibility is part of content visibility. */
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #21b8dd!important;outline-offset:3px!important}

/* Reduced motion keeps the same contrast. */
@media(prefers-reduced-motion:reduce){.insight-feature-v47 .art::before,.insight-feature-v47 .art::after{animation:none!important}}

/* Darken mixed gradients where copy sits close to the brightest stop; visual character is preserved. */
.client-promise-panel-v43{background:radial-gradient(circle at 86% 12%,rgba(48,215,201,.22),transparent 28%),linear-gradient(135deg,#211346,#5634c9 58%,#bd3678)!important}
.insight-feature-v47>a{background:linear-gradient(130deg,#251b5b 0%,#5f42d7 62%,#15768a 100%)!important}
