/* Contrast lock: leftover Elementor/page CSS cannot restore dark text on
   dark backgrounds, or paint the body nearly black under light sections. */

/* Elementor still attaches body.elementor-page-20 and sets
   background-color:#111013 — more specific than our body rule. */
html,
html body,
html body.elementor-default,
html body.elementor-page,
html body.elementor-kit-6,
html body[class*="elementor-page"],
html body.home,
html body.page {
  background-color: #ffffff !important;
  color: #0c0c0c !important;
  color-scheme: light;
}

html body .section,
html body .section:not(.section-black):not(.section-yellow) {
  background-color: #ffffff !important;
  color: #0c0c0c !important;
}

html body .section-off,
html body .section.section-off {
  background-color: #f4f3ef !important;
  color: #0c0c0c !important;
}

html body .section-yellow,
html body .section.section-yellow {
  background-color: #ffcd00 !important;
  color: #0c0c0c !important;
}

html body .section-black,
html body .section.section-black,
html body .hero,
html body .site-header,
html body .site-footer,
html body .mobile-bar {
  background-color: #0c0c0c !important;
}

/* Light text on every dark surface (white), with yellow for kickers/links */
html body .site-header,
html body .site-header a:not(.btn-yellow),
html body .site-nav a,
html body .hero,
html body .hero h1,
html body .hero h2,
html body .hero h3,
html body .hero h4,
html body .hero p,
html body .hero li,
html body .hero .lede,
html body .hero a:not(.btn-yellow),
html body .section-black,
html body .section-black h1,
html body .section-black h2,
html body .section-black h3,
html body .section-black h4,
html body .section-black p,
html body .section-black li,
html body .section-black a:not(.btn-yellow),
html body .section-black .section-head p,
html body .why-item,
html body .why-item h3,
html body .why-item p,
html body .step,
html body .step h3,
html body .step p,
html body .site-footer,
html body .site-footer p,
html body .site-footer li,
html body .site-footer a:not(.btn-yellow),
html body .footer-legal,
html body .mobile-bar,
html body .mobile-bar a:not(.btn-yellow),
html body .btn-outline,
html body .hero .btn-outline,
html body .site-header .btn-outline,
html body .mobile-bar .btn-outline {
  color: #ffffff !important;
}

html body .hero .eyebrow,
html body .section-black .kicker,
html body .site-nav a:hover,
html body .site-nav a:focus-visible,
html body .site-footer a,
html body .footer-meta a,
html body .estimate-card > h2,
html body .form-panel > h2,
html body .btn-black,
html body .step .num,
html body .nav-toggle {
  color: #ffcd00 !important;
}

/* Yellow buttons stay black-on-yellow even on a dark section */
html body .btn-yellow,
html body .hero .btn-yellow,
html body .site-header .btn-yellow,
html body .site-footer .btn-yellow,
html body .mobile-bar .btn-yellow,
html body .section-black .btn-yellow,
html body .section-yellow .btn-yellow {
  color: #0c0c0c !important;
}

html body .why-item .mark {
  color: #0c0c0c !important;
}

/* Form cards and yellow/white bands stay dark-on-light */
html body .estimate-card,
html body .estimate-card p,
html body .estimate-card label,
html body .estimate-card .form-intro,
html body .estimate-card .form-note,
html body .estimate-card .check,
html body .form-panel,
html body .form-panel p,
html body .form-panel label,
html body .form-panel .form-intro,
html body .form-panel .check,
html body .section-yellow,
html body .section-yellow h1,
html body .section-yellow h2,
html body .section-yellow h3,
html body .section-yellow p,
html body .section-yellow li,
html body .section-yellow a:not(.btn-yellow):not(.btn-black),
html body .section-yellow .kicker,
html body .cta-copy .phone-xl,
html body .section:not(.section-black):not(.section-yellow) h1,
html body .section:not(.section-black):not(.section-yellow) h2,
html body .section:not(.section-black):not(.section-yellow) h3,
html body .section:not(.section-black):not(.section-yellow) p,
html body .section:not(.section-black):not(.section-yellow) li,
html body .section-off,
html body .section-off h1,
html body .section-off h2,
html body .section-off h3,
html body .section-off p,
html body .section-off .kicker,
html body .section .kicker,
html body .style-block .kicker {
  color: #0c0c0c !important;
}

html body .estimate-card .fld,
html body .form-panel .fld,
html body .estimate-card label.fld,
html body .form-panel label.fld {
  color: #0c0c0c !important;
}

html body .section-yellow a.btn-black,
html body .form-panel .btn-black,
html body .estimate-card .btn-black {
  color: #ffcd00 !important;
}

/* Style / review kickers on light sections stay the designed gold */
html body .section:not(.section-black) .kicker,
html body .section-off .kicker {
  color: #8a7600 !important;
}
html body .section-yellow .kicker {
  color: #0c0c0c !important;
}

/* Process step cards live inside a light .section (#curbing). The earlier
   rule that forces black text on light sections was more specific than
   html body .step h3/p and painted black text on these dark cards. */
html body #process .step,
html body #process article.step,
html body .section .process .step,
html body .section:not(.section-black):not(.section-yellow) .step,
html body .section:not(.section-black):not(.section-yellow) .process .step {
  background-color: #161616 !important;
  color: #ffffff !important;
}
html body #process .step h3,
html body #process article.step h3,
html body .section .process .step h3,
html body .section:not(.section-black):not(.section-yellow) .step h3,
html body .section:not(.section-black):not(.section-yellow) .process .step h3 {
  color: #ffffff !important;
}
html body #process .step p,
html body #process article.step p,
html body .section .process .step p,
html body .section:not(.section-black):not(.section-yellow) .step p,
html body .section:not(.section-black):not(.section-yellow) .process .step p {
  color: #d2d2d2 !important;
}
html body #process .step .num,
html body #process article.step .num,
html body .section .process .step .num,
html body .section:not(.section-black):not(.section-yellow) .step .num {
  color: #ffcd00 !important;
}
