/* Site-wide button style (2026-11): dark pill + sky arrow circle, as on the
   redesigned About page. Loaded last on every page.
   body:not(#bt-none) adds ID-level specificity and !important is deliberate: the legacy CSS styles these classes with long
   selectors and its own !important rules, and this file has to win everywhere.
   Not included on purpose: header "Hire a team" (.bth-cta), menu toggle,
   filter tabs, carousel arrows, FAQ toggles, popup close buttons.
   .page-id-2849 = LAMF landing page, whose buttons use a plain .btn class in the page content (links only: span.btn are mock UI in a product illustration). */

html body:not(#bt-none) :is(.btp-btn, .primary-btn, .primary-btn--blk, .secondary-btn, .ctaBtn, .bitp-btn, a.bcs-btn, .bcs-rev__cta, .fsr-done-btn, .loadMoreBtn, .page-id-2849 a.btn),
html body:not(#bt-none) :is(.wpcf7-submit, .gform_button, .comment-form .submit) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 14px !important;
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: #0a1b33 !important;
  background-image: none !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-align: left;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Links and <button>s get the arrow circle */
html body:not(#bt-none) :is(.btp-btn, .primary-btn, .primary-btn--blk, .secondary-btn, .ctaBtn, .bitp-btn, a.bcs-btn, .bcs-rev__cta, .fsr-done-btn, .loadMoreBtn, .page-id-2849 a.btn) {
  padding: 6px 6px 6px 28px !important;
  width: auto !important; /* legacy CSS gives some buttons fixed widths that wrap the label */
  max-width: 100%;
  white-space: nowrap;
}
html body:not(#bt-none) :is(.btp-btn, .primary-btn, .primary-btn--blk, .secondary-btn, .ctaBtn, .bitp-btn, a.bcs-btn, .bcs-rev__cta, .fsr-done-btn, .loadMoreBtn, .page-id-2849 a.btn)::after {
  content: "" !important;
  display: block !important;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #90caf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 10L10 4M10 4H5M10 4V9' stroke='%230a1b33' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  position: static !important;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Old inline icons/arrows are replaced by the circle above */
html body:not(#bt-none) :is(.btp-btn, .primary-btn, .primary-btn--blk, .secondary-btn, .ctaBtn, .bitp-btn, a.bcs-btn, .bcs-rev__cta, .fsr-done-btn, .loadMoreBtn, .page-id-2849 a.btn) > :is(svg, i, img, font-awesome-icon, span[aria-hidden="true"]) {
  display: none !important;
}
html body:not(#bt-none) :is(.btp-btn, .primary-btn, .primary-btn--blk, .secondary-btn, .ctaBtn, .bitp-btn, a.bcs-btn, .bcs-rev__cta, .fsr-done-btn, .loadMoreBtn, .page-id-2849 a.btn)::before {
  content: none !important;
}

/* Form submits: an <input> can't hold a child, so the same circle + arrow
   are drawn as background layers (circle centre = 28px from the right edge) */
html body:not(#bt-none) :is(.wpcf7-submit, .gform_button, .comment-form .submit) {
  width: auto !important;
  align-self: flex-start; /* forms laid out as flex columns would stretch it */
  padding: 0 62px 0 28px !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 10L10 4M10 4H5M10 4V9' stroke='%230a1b33' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    radial-gradient(circle 22px at calc(100% - 28px) 50%, #90caf9 21.5px, transparent 22px) !important;
  background-repeat: no-repeat !important;
  background-position: right 21px center, 0 0 !important;
  background-size: 14px 14px, 100% 100% !important;
}

/* JS wraps each submit in .bt-submit (js/bt-buttons.js): the wrapper draws the
   circle so it can rotate on hover, and the input drops its static drawn one */
.bt-submit {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  vertical-align: middle;
}
.bt-submit::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 44px; height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: #90caf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 10L10 4M10 4H5M10 4V9' stroke='%230a1b33' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.bt-submit:hover::after,
.bt-submit:focus-within::after { transform: rotate(45deg); }
.bt-submit:has(> :disabled)::after { opacity: 0.45; transform: none; }
html body:not(#bt-none) .bt-submit > :is(.wpcf7-submit, .gform_button, .submit) {
  background-image: none !important;
}

/* States */
html body:not(#bt-none) :is(.btp-btn, .primary-btn, .primary-btn--blk, .secondary-btn, .ctaBtn, .bitp-btn, a.bcs-btn, .bcs-rev__cta, .fsr-done-btn, .loadMoreBtn, .page-id-2849 a.btn, .wpcf7-submit, .gform_button, .comment-form .submit):is(:hover, :focus-visible) {
  background-color: #00428a !important;
  color: #fff !important;
}
html body:not(#bt-none) :is(.btp-btn, .primary-btn, .primary-btn--blk, .secondary-btn, .ctaBtn, .bitp-btn, a.bcs-btn, .bcs-rev__cta, .fsr-done-btn, .loadMoreBtn, .page-id-2849 a.btn):hover::after {
  transform: rotate(45deg);
}
html body:not(#bt-none) :is(.btp-btn, .primary-btn, .primary-btn--blk, .secondary-btn, .ctaBtn, .bitp-btn, a.bcs-btn, .bcs-rev__cta, .fsr-done-btn, .loadMoreBtn, .page-id-2849 a.btn, .wpcf7-submit, .gform_button, .comment-form .submit):focus-visible {
  outline: 3px solid #90caf9 !important;
  outline-offset: 3px !important;
}
html body:not(#bt-none) :is(.wpcf7-submit, .gform_button):disabled {
  background-color: #0a1b33 !important;
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  html body:not(#bt-none) :is(.btp-btn, .primary-btn, .primary-btn--blk, .secondary-btn, .ctaBtn, .bitp-btn, a.bcs-btn, .bcs-rev__cta, .fsr-done-btn, .loadMoreBtn, .page-id-2849 a.btn) {
    padding-left: 22px !important;
    font-size: 0.875rem !important;
    white-space: normal;
  }
  .bt-submit { display: flex; width: 100%; }
  /* long submit labels (e.g. "Let's catch up over a virtual coffee") wrap instead of overflowing */
  html body:not(#bt-none) :is(.wpcf7-submit, .gform_button, .comment-form .submit) {
    width: 100% !important;
    white-space: normal;
    height: auto !important;
    padding: 10px 62px 10px 22px !important;
    font-size: 0.875rem !important;
    line-height: 1.3 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bt-submit::after { transition: none; }
  html body:not(#bt-none) :is(.btp-btn, .primary-btn, .primary-btn--blk, .secondary-btn, .ctaBtn, .bitp-btn, a.bcs-btn, .bcs-rev__cta, .fsr-done-btn, .loadMoreBtn, .page-id-2849 a.btn)::after { transition: none; }
}

/* Buttons the legacy CSS centres with margin auto (singleService.css, home.css, blogs.css).
   Auto margins do nothing on an inline-flex box, so these become a shrink-wrapped block and
   their own legacy margins (per breakpoint) centre them again. Doubled class = beats the base rule. */
html body:not(#bt-none) :is(
  .servSngl .ensrServSec .ctaBtn.ctaBtn,
  .servSngl .abtServSec .abtServRow .abtColOne .ctaBtn.ctaBtn,
  .our-services .serviceRow .serviceCardGrp .serviceCard .ctaBtn.ctaBtn,
  .cta-banner .ctaBg .ctaBannerWrap a.ctaBtn.ctaBtn,
  .blogs .blgCardGrp .blogCard .ctaBtn.ctaBtn,
  .blogWrap .loadMoreBtn.loadMoreBtn
) {
  display: flex !important;
  width: fit-content !important;
}
