/*
 * P1-05 — buttons and text links.
 * One blue CTA component; lime CTAs retired.
 */

/* Shared CTA surface */
.sc_button,
.sc_button.sc_button_default,
a.sc_button,
.elementor-button,
.elementor-button .elementor-button-content-wrapper,
a.rev-btn,
.rs-layer.rev-btn,
.wpcf7-submit,
input.wpcf7-submit,
button.wpcf7-submit {
  --ms2-btn-bg: var(--c-blue);
  --ms2-btn-fg: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  margin: 0;
  padding: 0.85rem 1.5rem !important; /* fight ThemeREX / RevSlider padding */
  border: 1px solid var(--c-blue) !important;
  border-radius: 6px !important;
  background-color: var(--c-blue) !important; /* fight lime RevSlider + theme blue */
  background-image: none !important;
  color: #fff !important;
  font-family: var(--f-sans) !important;
  font-size: var(--t-small) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: none !important; /* retire all-caps CTA shouting where we can */
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease;
}

.sc_button:hover,
.sc_button:focus-visible,
a.sc_button:hover,
a.sc_button:focus-visible,
.elementor-button:hover,
.elementor-button:focus-visible,
a.rev-btn:hover,
a.rev-btn:focus-visible,
.rs-layer.rev-btn:hover,
.rs-layer.rev-btn:focus-visible,
.wpcf7-submit:hover,
.wpcf7-submit:focus-visible,
input.wpcf7-submit:hover,
input.wpcf7-submit:focus-visible {
  background-color: var(--c-blue-press) !important;
  border-color: var(--c-blue-press) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.sc_button:active,
a.sc_button:active,
.elementor-button:active,
a.rev-btn:active,
.rs-layer.rev-btn:active,
.wpcf7-submit:active,
input.wpcf7-submit:active {
  background-color: var(--c-blue-press) !important;
  border-color: var(--c-blue-press) !important;
  transform: translateY(1px);
}

.sc_button:focus-visible,
a.sc_button:focus-visible,
.elementor-button:focus-visible,
a.rev-btn:focus-visible,
.rs-layer.rev-btn:focus-visible,
.wpcf7-submit:focus-visible,
input.wpcf7-submit:focus-visible {
  outline: 2px solid var(--c-blue) !important;
  outline-offset: 3px;
}

.sc_button[disabled],
.sc_button.disabled,
.sc_button[aria-disabled="true"],
.elementor-button[disabled],
.wpcf7-submit[disabled],
input.wpcf7-submit[disabled],
.wpcf7-submit.disabled {
  background-color: var(--c-line) !important;
  border-color: var(--c-line) !important;
  color: var(--c-ink-muted) !important;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* CF7: ThemeREX paints the visible button on .submit-style-in (input stays transparent) */
.wpcf7 .wpcf7-submit-style .submit-style-in,
div.wpcf7 .form-style-1 .wpcf7-submit-style .submit-style-in {
  background-color: var(--c-blue) !important; /* fight --theme-color-text_link */
  background-image: none !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.wpcf7 .wpcf7-submit-style:hover .submit-style-in,
.wpcf7 .wpcf7-submit-style:focus-within .submit-style-in,
.wpcf7 .wpcf7-submit-style:active .wpcf7-submit + .submit-style-in {
  background-color: var(--c-blue-press) !important;
}

.wpcf7 .wpcf7-submit-style .wpcf7-submit {
  border-radius: 6px !important;
  font-family: var(--f-sans) !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

/* ThemeREX icon inside button stays white */
.sc_button .sc_button_icon,
.sc_button .sc_button_icon *,
.elementor-button-icon,
.elementor-button-icon i,
.elementor-button-icon svg {
  color: inherit !important;
  fill: currentColor;
}

/* Text links in content — blue, not theme grey; skip nav/logo/buttons */
.page_content_wrap .content a:not(.sc_button):not(.elementor-button):not(.rev-btn):not(.rs-layer):not([class*="logo"]):not(.menu-link),
.wpcf7-form a {
  color: var(--c-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.page_content_wrap .content a:not(.sc_button):not(.elementor-button):not(.rev-btn):not(.rs-layer):not([class*="logo"]):not(.menu-link):hover,
.wpcf7-form a:hover {
  color: var(--c-blue-press);
}

.page_content_wrap .content a:not(.sc_button):not(.elementor-button):not(.rev-btn):not(.rs-layer):not([class*="logo"]):not(.menu-link):focus-visible,
.wpcf7-form a:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * P1-06 — contrast + lime discipline
 * --c-lime (~1.4:1 on white) is shapes/slivers only — never text or
 * meaning-bearing icons, never as a fill behind text.
 * ------------------------------------------------------------------------- */

/* About image caption sits on navy-deep — must be white (our h6 rule set navy) */
.scheme_dark .elementor-heading-title,
.elementor-element-8e05c8b .elementor-heading-title,
.elementor-element-8e05c8b .elementor-widget-container {
  color: #fff !important; /* fight --c-navy heading colour on dark caption */
}

/* Footer copyright on navy-deep */
.footer_wrap,
.footer_wrap p,
.footer_wrap .elementor-widget-text-editor,
.footer_wrap .elementor-heading-title,
.elementor-element-52b4badc,
.elementor-element-52b4badc p,
.elementor-element-52b4badc .elementor-widget-container,
.elementor-element-52b4badc .elementor-heading-title {
  color: rgba(255, 255, 255, 0.92) !important; /* fight --c-ink on navy footer */
}

/* Meaning-bearing contact icons were lime — force brand blue until P2 SVG swap */
.sc_icons .icon-marker,
.sc_icons .icon-envelope-2,
.sc_icons_icon.icon-marker,
.sc_icons_icon.icon-envelope-2,
.icon-marker,
.icon-envelope-2 {
  color: var(--c-blue) !important; /* fight ThemeREX lime icon colour */
}

.sc_icons .icon-marker::before,
.sc_icons .icon-envelope-2::before,
.sc_icons_icon.icon-marker::before,
.sc_icons_icon.icon-envelope-2::before,
.icon-marker::before,
.icon-envelope-2::before {
  color: var(--c-blue) !important;
}
