@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: auto;
    }
}

/* ===== Mobile & accessibility fixes (Oct 2026) ===== */
@media (max-width: 880px) {
  /* Header CTA: show the short "Book Call" label instead of an empty red box */
  /* (HR page keeps its full label, which already fits) */
  body:not(.page-id-6729) .nav-cta .btn span.short { display: inline !important; }
}
@media (max-width: 767px) {
  /* Discovery call: tall enough that Calendly doesn't scroll inside a small box */
  .calendly-inline-widget { height: 1100px !important; }

  /* Comparison tables (Programs + HR): swipeable, with a visible hint */
  .wrap > table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wrap > table::before { position: sticky; left: 0; }
  .compare-scroll::before, .wrap > table::before {
    content: "Swipe to compare \2192";
    display: block; margin: 0 0 10px; font-size: 13px; letter-spacing: .04em; color: #54575f;
  }

  /* Toolkit page: hide the duplicate theme header (custom header stays) */
  .page-id-10 #masthead, .page-id-10 .site-header { display: none !important; }

  /* Product pages: readable active tab + spacing under title */
  .single-product .woocommerce-tabs .tabs li.active a { color: #fff !important; }
  .single-product a.button.back { display: inline-block; margin-top: 14px; }

  /* Terms page: comfortable side margins */
  .page-id-37 .elementor-widget-wrap { padding-left: 20px !important; padding-right: 20px !important; }

  /* Prevent iOS zoom-on-focus in form fields */
  input:not([type=checkbox]):not([type=radio]):not([type=submit]), select, textarea { font-size: 16px !important; }
}
/* Contrast on grey-background pages (Discovery, Contact) */
.page-id-3630 .icw-page-sub,
.page-id-3630 .icw-footer, .page-id-3630 .icw-footer a, .page-id-3630 .icw-footer span,
.page-id-959 .icw-footer, .page-id-959 .icw-footer a, .page-id-959 .icw-footer span { color: #24262b !important; }
.page-id-959 a.icw-contact-link { color: #16181c !important; font-weight: 600; text-decoration: underline; display: inline-block; padding: 6px 0; }
