/**
 * DenAku consistent text colors v1.0.17.
 * Body: #666666 | Subtitles: #f45116 | Titles: #181818
 * Handles Home and common DenAku Inner page wrappers without disturbing
 * custom-colored CTA backgrounds, gradient buttons, and branded iconography.
 */
:root {
    --denaku-body-color: #666666;
    --denaku-title-color: #181818;
    --denaku-subtitle-color: #f45116;
}

/* Safe site-wide default, including WordPress inner-page content. */
body:not(.wp-admin) { color: var(--denaku-body-color); }
body :is(.denaku-site, .denaku-header, .denaku-footer, .denaku-inner, .denaku-page) {
    color: var(--denaku-body-color);
}

/* Headings: black on regular backgrounds. */
body .denaku-site :is(h1,h2,h3,h4,h5,h6),
body .denaku-footer :is(h1,h2,h3,h4,h5,h6),
body :is(.denaku-inner,.denaku-page) :is(h1,h2,h3,h4,h5,h6),
body .entry-content > :is(h1,h2,h3,h4,h5,h6),
body .wp-block-post-content > :is(h1,h2,h3,h4,h5,h6) {
    color: var(--denaku-title-color);
}
body .denaku-header :is(.denaku-nav a, .denaku-phone strong, .denaku-wordmark strong) {
    color: var(--denaku-title-color);
}

/* Regular copy: override the few former hard-coded gray/black values. */
body .denaku-site :is(
    .denaku-hero-copy > p,
    .denaku-about-copy > p,
    .denaku-product-card p,
    .denaku-trust-grid p,
    .denaku-news-card p,
    .denaku-stats-grid p,
    .denaku-service-card p,
    .denaku-testimonial p,
    .denaku-testimonial blockquote
) { color: var(--denaku-body-color); }
body :is(.denaku-inner,.denaku-page) :is(p,li,blockquote),
body :is(.entry-content,.wp-block-post-content) > :is(p,ul,ol,blockquote) {
    color: var(--denaku-body-color);
}

/* Subtitles, intro labels, and headings' supporting subtitle text. */
body .denaku-site .denaku-eyebrow,
body .denaku-site .denaku-section-heading > p,
body :is(.denaku-inner,.denaku-page) :is(
    .eyebrow,.subtitle,.sub-title,.section-subtitle,.section-eyebrow,
    .section-label,.section-tag,.denaku-eyebrow,.denaku-subtitle
) {
    color: var(--denaku-subtitle-color);
}

/* Contrast exceptions: keep text readable over orange/dark backgrounds. */
body .denaku-site :is(.denaku-why,.denaku-cta) :is(h1,h2,h3,h4,h5,h6,p,li,blockquote),
body :is(.denaku-inner,.denaku-page) :is(.denaku-cta,.denaku-why,.text-white,.has-white-color) :is(h1,h2,h3,h4,h5,h6,p,li,blockquote) {
    color: #ffffff;
}

/* Keep orange emphasis and functional white button labels unchanged. */
body .denaku-site .denaku-hero h1 span,
body .denaku-site .denaku-service-card strong,
body .denaku-site .denaku-news-date,
body .denaku-site .denaku-testimonial strong,
body .denaku-footer .denaku-script-text {
    color: var(--denaku-subtitle-color);
}

/* Screenshot layout has more-specific rules in front.css: win regardless of CSS enqueue order. */
body .denaku-site .denaku-hero-layout-match .denaku-hero-copy h1,
body .denaku-site .denaku-about .denaku-about-copy h2,
body .denaku-site .denaku-section-heading h2 {
    color: var(--denaku-title-color) !important;
}
body .denaku-site .denaku-hero-layout-match .denaku-eyebrow,
body .denaku-site .denaku-about .denaku-about-copy .denaku-eyebrow,
body .denaku-site .denaku-section-heading > p {
    color: var(--denaku-subtitle-color) !important;
}
body .denaku-site .denaku-hero-layout-match .denaku-hero-copy > p,
body .denaku-site .denaku-about .denaku-about-copy > p {
    color: var(--denaku-body-color) !important;
}
