/* Light foregrounds on the theme's navy footer. */
#site-footer #footer-inner h3.wp-block-heading,
#site-footer #footer-inner .wp-block-paragraph strong,
#site-footer #footer-inner .phone-box a {
  color: #bfd4ff;
}

/* The child theme marks its generic .button-link foreground important. */
#site-footer #footer-inner a.button-link {
  color: #bfd4ff !important;
}

#site-footer #footer-inner :is(a.button-link, .phone-box a):is(:hover, :focus-visible) {
  color: #fff !important;
  text-decoration: underline;
}

/* The light page header places this utility link on a white background. */
.has-light-page-header #top-menu-wrap .wp-block-navigation-item__content {
  color: #425269;
  opacity: 1;
}

/* Editorial links share light content backgrounds. Keep colored card buttons independent. */
.entry-meta a,
.sidebar :is(.wp-block-archives-list, .wp-block-categories-list, .wp-block-latest-posts) a,
.entry-content > a:not(.button, .wp-element-button, .has-text-color),
.entry-content > :is(ol, ul):not(.has-background, .has-text-color) li a:not(.button, .wp-element-button, .has-text-color),
.entry-content > p:not(.has-background, .has-text-color) a:not(.button, .wp-element-button, .has-text-color),
.entry-content > .wp-block-group:not(.has-background) p.wp-block-paragraph a:not(.button, .wp-element-button, .has-text-color, .has-background a, .wp-block-cover a),
#service-quote-form.is-light p.wp-block-paragraph a[href^="tel:"],
.ct-ai-service p a:not(.button, .wp-element-button),
.error404 .entry-content p a {
  color: #0757a0;
  text-decoration: underline;
  text-underline-offset: .15em;
}

/* Retain the product's orange accent with a readable label. */
.cto-qb-page a.cto-btn-primary,
.cto-qb-page a.cto-btn-primary:is(:hover, :focus-visible) {
  color: #171c33;
}

.cto-qb-page :is(.cto-how-head, .cto-mig-left) .cto-eyebrow {
  color: #98420d;
}

/* Contact cards set their accent backgrounds and label color directly on the elements. */
.contact-page main :is(a,button):is([style*="#10b981"], [style*="#06b6d4"], [style*="#f59e0b"]) {
  color: #17243a !important;
}

/* Override the site's universal important outline reset for keyboard focus. */
.site-container :is(a, button, input, textarea, select, summary, [tabindex="0"]):focus-visible {
  outline: 3px solid #123b64 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}

/* The theme uses white !important over the orange booking-button gradient. */
.site-header :is(#nav-header-right, .mobile-menu) .menu-item.sec-button > a.menu-item-link {
  color: #070b24 !important;
}

/* The utility links retain their theme colors at full opacity in each state. */
.before-header #top-menu-wrap nav .wp-block-navigation-item > a.wp-block-navigation-item__content {
  opacity: 1;
}
