/* 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:#0a1726 !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:#0a1726 !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:#5c6d80 !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:#176bd6 !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:#0d6efd !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:#0d6efd !important;
  border-color:#8cb9ef !important;
  background:#fff !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%,#071d33 58%,#0b2d4a 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(74,169,255,.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:#67bbff !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:#72c4ff !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:#67bbff !important; }
body.dbell-modern main .card.db-dark-band a:not(.btn) { color:#72c4ff !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; }
