/* EMIRMAK V7 — final contrast and integrity guard */
:root{--em-ink:#111820;--em-muted:#46515c;--em-yellow:#f1cb00}

/* White/light surfaces must always use dark readable text. */
.header,.menu,.service_section,.service_container,.service_section .container,
.about_section,.contact_section,.product_section,.products-section,
.em-model-showcase,.em-model-card,.em-business-card,.em-ba-section,
.em-carbon-hero .container,.em-carbon-grid,.em-carbon-copy,
.content-area,.main-content,.detail-box,.box,.card,.product-card,
section[style*="background: white"],section[style*="background:#fff"],section[style*="background: #fff"]{
  color:var(--em-ink)!important;
}
.header h1,.header h2,.header h3,.header p,
.menu,.menu a,
.service_section h1,.service_section h2,.service_section h3,.service_section h4,.service_section h5,.service_section h6,.service_section p,
.about_section h1,.about_section h2,.about_section h3,.about_section p,
.contact_section h1,.contact_section h2,.contact_section h3,.contact_section p,
.product_section h1,.product_section h2,.product_section h3,.product_section p,
.products-section h1,.products-section h2,.products-section h3,.products-section p,
.em-model-showcase h1,.em-model-showcase h2,.em-model-showcase h3,.em-model-showcase p,
.em-model-card h1,.em-model-card h2,.em-model-card h3,.em-model-card p,
.em-business-card h1,.em-business-card h2,.em-business-card h3,.em-business-card p,
.em-ba-section h1,.em-ba-section h2,.em-ba-section h3,.em-ba-section p,
.em-carbon-hero .em-carbon-copy h1,.em-carbon-hero .em-carbon-copy h2,.em-carbon-hero .em-carbon-copy h3,.em-carbon-hero .em-carbon-copy p,
.em-carbon-hero .em-carbon-copy li,.em-carbon-hero .em-carbon-copy strong,
.content-area h1,.content-area h2,.content-area h3,.content-area p,.content-area li,
.main-content h1,.main-content h2,.main-content h3,.main-content p,.main-content li,
.detail-box h1,.detail-box h2,.detail-box h3,.detail-box h4,.detail-box h5,.detail-box h6,.detail-box p,
.box h1,.box h2,.box h3,.box h4,.box h5,.box h6,.box p,
.card h1,.card h2,.card h3,.card p,.product-card h1,.product-card h2,.product-card h3,.product-card p{
  color:var(--em-ink)!important;
  text-shadow:none!important;
  opacity:1!important;
}

/* Carbon Buster hero shown on a white card in the current design. */
.em-carbon-hero .container,.em-carbon-hero .em-carbon-grid{background:#fff!important}
.em-carbon-hero .em-carbon-copy{background:transparent!important}
.em-carbon-hero .em-carbon-copy h1{color:#0b0f14!important}
.em-carbon-hero .em-carbon-copy p{color:#3f4a54!important}
.em-carbon-hero .em-btn-secondary{background:#fff!important;color:#111820!important;border-color:#68737e!important}
.em-carbon-hero .em-btn-primary{color:#111820!important}
.em-carbon-kicker,.em-feature-ribbon,.em-model-label{color:#111820!important}

/* Keep genuinely dark areas light — these rules intentionally come after light-surface guards. */
footer,footer h1,footer h2,footer h3,footer h4,footer h5,footer h6,footer p,footer li,footer a,
.footer,.footer h1,.footer h2,.footer h3,.footer p,.footer a,
.em-direct-maker,.em-direct-maker h1,.em-direct-maker h2,.em-direct-maker h3,.em-direct-maker p,
.em-business-profit,.em-business-profit>.em-business-wrap>.em-business-heading h2,
.em-business-profit>.em-business-wrap>.em-business-heading p{
  color:#f7f8fa!important;
}

/* Prevent invisible text caused by inherited opacity / animation states. */
body.loaded main h1,body.loaded main h2,body.loaded main h3,body.loaded main p,
body.loaded section h1,body.loaded section h2,body.loaded section h3,body.loaded section p{
  visibility:visible!important;
}

@media(max-width:768px){
 .em-carbon-hero .container,.em-carbon-hero .em-carbon-grid{background:#fff!important}
 .em-carbon-hero .em-carbon-copy h1{color:#0b0f14!important}
 .em-carbon-hero .em-carbon-copy p{color:#3f4a54!important}
}
