/* Motion for buttons and links, kept light. Everything animates transform, opacity or a gradient's size; hover only on devices that hover; reduced motion turns it all off.
   Buttons: a soft lift, a slow sheen across the filled ones, the arrow nudging forward. Links: the underline draws in from the left. */
:is(.brxe-button, a, button).st-btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out),
    transform var(--dur-micro) var(--ease-out), box-shadow 320ms var(--ease-out);
}
:is(.brxe-button, a, button).st-btn--arrow::after { transition: transform 320ms var(--ease-out); }

:is(.brxe-button, a, button):is(.st-btn--primary, .st-btn--light)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, var(--sheen, color-mix(in oklab, var(--color-on-deep) 26%, transparent)) 50%, transparent 65%);
  transform: translateX(-130%);
}
:is(.brxe-button, a, button).st-btn--light { --sheen: color-mix(in oklab, var(--color-accent) 16%, transparent); }

@media (hover: hover) and (pointer: fine) {
  :is(.brxe-button, a, button).st-btn:hover { transform: translateY(-1px); }
  :is(.brxe-button, a, button).st-btn:is(.st-btn--primary, .st-btn--light):hover { box-shadow: 0 8px 22px color-mix(in oklab, var(--color-deep) 26%, transparent); }
  :is(.brxe-button, a, button):is(.st-btn--primary, .st-btn--light):hover::before { transform: translateX(130%); transition: transform 800ms var(--ease-out); }
  :is(.brxe-button, a, button).st-btn--arrow:hover::after { transform: translateX(4px); }
}
:is(.brxe-button, a, button).st-btn:active { transform: scale(0.97); box-shadow: none; }

/* The older buttons that remain (form submit, legacy sections) lift the same way. */
@media (hover: hover) and (pointer: fine) {
  .st-contact__form .fluentform .ff-btn.ff-btn-submit:hover,
  #brx-content .brxe-button.bricks-button:hover { transform: translateY(-1px); }
}
.st-contact__form .fluentform .ff-btn.ff-btn-submit:active,
#brx-content .brxe-button.bricks-button:active { transform: scale(0.97); }

/* Links: a faint underline at rest, the full one drawn in on hover or keyboard focus. */
:is(
  .st-contacts__link, .st-footer__link, .st-footer__line a, .st-pagehero__crumbs a, .st-reviews__all,
  .brxe-nav-menu.st-footer__menu .bricks-nav-menu a, .brxe-text-link.st-header__phone, #brx-content .brxe-text a, #brx-content .brxe-text-basic a
) {
  text-decoration: none; padding-bottom: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(color-mix(in oklab, currentColor 38%, transparent), color-mix(in oklab, currentColor 38%, transparent));
  background-position: 0 100%, 0 100%; background-repeat: no-repeat; background-size: 0% 1px, 100% 1px;
  transition: background-size 420ms var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.st-post__more, .st-post__title { text-decoration: none; }
.st-post__more {
  background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0% 1px;
  transition: background-size 420ms var(--ease-out);
}
.st-post__more .st-post__arrow { transition: transform 320ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  :is(
    .st-contacts__link, .st-footer__link, .st-footer__line a, .st-pagehero__crumbs a, .st-reviews__all,
    .brxe-nav-menu.st-footer__menu .bricks-nav-menu a, .brxe-text-link.st-header__phone, #brx-content .brxe-text a, #brx-content .brxe-text-basic a
  ):hover { background-size: 100% 1px, 100% 1px; }
  .st-post__link:hover .st-post__more { background-size: 100% 1px; }
  .st-post__link:hover .st-post__arrow { transform: translateX(4px); }
}
:is(
  .st-contacts__link, .st-footer__link, .st-footer__line a, .st-pagehero__crumbs a, .st-reviews__all,
  .brxe-nav-menu.st-footer__menu .bricks-nav-menu a, .brxe-text-link.st-header__phone, #brx-content .brxe-text a, #brx-content .brxe-text-basic a
):focus-visible { background-size: 100% 1px, 100% 1px; }

@media (prefers-reduced-motion: reduce) {
  :is(.brxe-button, a, button).st-btn, :is(.brxe-button, a, button).st-btn--arrow::after, :is(.brxe-button, a, button)::before,
  .st-post__more, .st-post__more .st-post__arrow,
  :is(.st-contacts__link, .st-footer__link, .st-footer__line a, .st-pagehero__crumbs a, .st-reviews__all, .brxe-text-link.st-header__phone) { transition: none; }
  :is(.brxe-button, a, button).st-btn:hover { transform: none; }
}
