/* Generated by tools/dark-theme/convert_pages.py from /css/contrast-fixes.css — edit the source and re-run. */
/* DBell Creations — sitewide contrast protection */

/* LIGHT SURFACES
   Generic cards and form panels are white across the site. Keep their text dark even
   when a parent section carries Bootstrap text-white / muted utility classes. */
body.dbell-modern main :is(.card,.service-item,.contact-form,.article-card,.project-card,.portfolio-card,.db-feature-card,.service-box):not(.db-dark-band):not(.bg-dark) {
  color:#6ccbf5 !important;
}
body.dbell-modern main :is(.card,.service-item,.contact-form,.article-card,.project-card,.portfolio-card,.db-feature-card,.service-box):not(.db-dark-band):not(.bg-dark) :is(h1,h2,h3,h4,h5,h6,strong,label,.form-label) {
  color:#6ccbf5 !important;
}
body.dbell-modern main :is(.card,.service-item,.contact-form,.article-card,.project-card,.portfolio-card,.db-feature-card,.service-box):not(.db-dark-band):not(.bg-dark) :is(p,li,small,.small,.text-muted,.text-secondary,span) {
  color:#a3b1bf !important;
}
body.dbell-modern main :is(.card,.service-item,.contact-form,.article-card,.project-card,.portfolio-card,.db-feature-card,.service-box):not(.db-dark-band):not(.bg-dark) :is(.section-title,.eyebrow,.text-info) {
  color:#6ccbf5 !important;
}
body.dbell-modern main :is(.card,.service-item,.contact-form,.article-card,.project-card,.portfolio-card,.db-feature-card,.service-box):not(.db-dark-band):not(.bg-dark) a:not(.btn) {
  color:#6ccbf5 !important;
}
body.dbell-modern main :is(.card,.service-item,.contact-form,.article-card,.project-card,.portfolio-card,.db-feature-card,.service-box):not(.db-dark-band):not(.bg-dark) .btn-primary {
  color:#fff !important;
}
body.dbell-modern main :is(.card,.service-item,.contact-form,.article-card,.project-card,.portfolio-card,.db-feature-card,.service-box):not(.db-dark-band):not(.bg-dark) .btn-outline-light {
  color:#6ccbf5 !important;
  border-color:#38b6f0 !important;
  background:#121821 !important;
}

/* DARK SURFACES
   Keep explicitly dark containers dark even when generic card rules try to make them white. */
body.dbell-modern main .card.db-dark-band,
body.dbell-modern main .db-dark-band.card,
body.dbell-modern main section .card.db-dark-band {
  background:linear-gradient(135deg,#04111f 0%,#0f1d29 58%,#0f1d29 100%) !important;
  border-color:rgba(255,255,255,.12) !important;
  color:#fff !important;
  box-shadow:0 18px 45px rgba(4,18,32,.16) !important;
}
body.dbell-modern main .card.db-dark-band:hover,
body.dbell-modern main .db-dark-band.card:hover {
  transform:none !important;
  border-color:rgba(56,182,240,0.35) !important;
}

body.dbell-modern main :is(.db-dark-band,.software-band,.work-band,.trust-band,.final-cta,.page-hero,.article-hero,.hero-header,.dbell-auto-hero,.home-hero,section.bg-dark,section.text-white),
body.dbell-modern main .card[style*="#071827"],
body.dbell-modern main .card[style*="#04111f"],
body.dbell-modern main .card[style*="#0b2a42"],
body.dbell-modern main .card[style*="#0b2e47"],
body.dbell-modern main .card[style*="#071d33"] {
  color:#fff !important;
}

body.dbell-modern main :is(.db-dark-band,.software-band,.work-band,.trust-band,.final-cta,.page-hero,.article-hero,.hero-header,.dbell-auto-hero,.home-hero,section.bg-dark,section.text-white) :is(h1,h2,h3,h4,h5,h6,strong),
body.dbell-modern main .card[style*="#071827"] :is(h1,h2,h3,h4,h5,h6,strong),
body.dbell-modern main .card[style*="#04111f"] :is(h1,h2,h3,h4,h5,h6,strong),
body.dbell-modern main .card[style*="#0b2a42"] :is(h1,h2,h3,h4,h5,h6,strong),
body.dbell-modern main .card[style*="#0b2e47"] :is(h1,h2,h3,h4,h5,h6,strong),
body.dbell-modern main .card[style*="#071d33"] :is(h1,h2,h3,h4,h5,h6,strong) {
  color:#fff !important;
}

body.dbell-modern main :is(.db-dark-band,.software-band,.work-band,.trust-band,.final-cta,.page-hero,.article-hero,.hero-header,.dbell-auto-hero,.home-hero,section.bg-dark,section.text-white) :is(p,li,small,.small,.text-muted,.text-secondary,span),
body.dbell-modern main .card[style*="#071827"] :is(p,li,small,.small,.text-muted,.text-secondary,span),
body.dbell-modern main .card[style*="#04111f"] :is(p,li,small,.small,.text-muted,.text-secondary,span),
body.dbell-modern main .card[style*="#0b2a42"] :is(p,li,small,.small,.text-muted,.text-secondary,span),
body.dbell-modern main .card[style*="#0b2e47"] :is(p,li,small,.small,.text-muted,.text-secondary,span),
body.dbell-modern main .card[style*="#071d33"] :is(p,li,small,.small,.text-muted,.text-secondary,span) {
  color:#c5d4e2 !important;
}

body.dbell-modern main :is(.db-dark-band,.software-band,.work-band,.trust-band,.final-cta,.page-hero,.article-hero,.hero-header,.dbell-auto-hero,.home-hero,section.bg-dark,section.text-white) :is(.section-title,.eyebrow,.text-info) {
  color:#6ccbf5 !important;
}
body.dbell-modern main :is(.db-dark-band,.software-band,.work-band,.trust-band,.final-cta,.page-hero,.article-hero,.hero-header,.dbell-auto-hero,.home-hero,section.bg-dark,section.text-white) a:not(.btn) {
  color:#6ccbf5 !important;
}
body.dbell-modern main :is(.db-dark-band,.software-band,.work-band,.trust-band,.final-cta,.page-hero,.article-hero,.hero-header,.dbell-auto-hero,.home-hero,section.bg-dark,section.text-white) .btn-primary {
  color:#fff !important;
}
body.dbell-modern main :is(.db-dark-band,.software-band,.work-band,.trust-band,.final-cta,.page-hero,.article-hero,.hero-header,.dbell-auto-hero,.home-hero,section.bg-dark,section.text-white) .btn-outline-light {
  color:#fff !important;
  border-color:rgba(255,255,255,.42) !important;
  background:transparent !important;
}

/* The dark-card rules intentionally come last so a .db-dark-band card inside a light page
   cannot be recolored by the generic white-card protection above. */
body.dbell-modern main .card.db-dark-band :is(h1,h2,h3,h4,h5,h6,strong) { color:#fff !important; }
body.dbell-modern main .card.db-dark-band :is(p,li,small,.small,.text-muted,.text-secondary,span) { color:#c5d4e2 !important; }
body.dbell-modern main .card.db-dark-band :is(.section-title,.eyebrow,.text-info) { color:#6ccbf5 !important; }
body.dbell-modern main .card.db-dark-band a:not(.btn) { color:#6ccbf5 !important; }
body.dbell-modern main .card.db-dark-band .btn-primary { color:#fff !important; }
body.dbell-modern main .card.db-dark-band .btn-outline-light { color:#fff !important;border-color:rgba(255,255,255,.42) !important;background:transparent !important; }

/* SEO scanner hero contrast — explicit because generic heading rules otherwise override the dark hero. */
body.dbell-modern main .audit-hero,
body.dbell-modern main .audit-hero .container {
  color:#fff !important;
}
body.dbell-modern main .audit-hero h1 {
  color:#fff !important;
  text-shadow:0 2px 18px rgba(0,0,0,.18);
}
body.dbell-modern main .audit-hero .hero-copy,
body.dbell-modern main .audit-hero .lead {
  color:#d8e7ef !important;
}
body.dbell-modern main .audit-hero .section-title {
  color:#6ccbf5 !important;
}
body.dbell-modern main .audit-hero .trust-pill {
  color:#f5fbff !important;
  border-color:rgba(255,255,255,.24) !important;
  background:rgba(255,255,255,.08) !important;
}
