/**
 * Underline hover for Elementor buttons.
 *
 * Add CSS class `m-btn-underline` on the Button widget (Advanced → CSS Classes).
 * The bottom border shrinks to 30% width on hover and eases back to 100%.
 */

.m-btn-underline .elementor-button {
    position: relative;
    border-bottom-color: transparent !important;
}

.m-btn-underline .elementor-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.m-btn-underline .elementor-button:hover::after,
.m-btn-underline .elementor-button:focus-visible::after {
    transform: scaleX(0.3);
}

@media (prefers-reduced-motion: reduce) {
    .m-btn-underline .elementor-button::after {
        transition: none;
    }
}

/**
 * Full-width hero image with a short parallax travel.
 *
 * Add `m-hero-parallax` to the container around the image, or to the spacer
 * whose background is the image. The frame follows the file. The photo is
 * about 10% taller than the frame so the center can move.
 * `m-hero-fade` fades the homepage underwater image in when it enters.
 */
.m-hero-parallax {
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 0;
}

.m-hero-parallax:not(.elementor-widget-spacer) {
    aspect-ratio: var(--hero-ratio, 16 / 9);
}

.m-hero-parallax:not(.elementor-widget-spacer) > .elementor-element,
.m-hero-parallax:not(.elementor-widget-spacer) .elementor-widget-container,
.m-hero-parallax:not(.elementor-widget-spacer) .elementor-spacer,
.m-hero-parallax:not(.elementor-widget-spacer) .elementor-spacer-inner {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.m-hero-parallax.elementor-widget-spacer {
    height: auto;
    min-height: 0;
}

.m-hero-parallax.elementor-widget-spacer .elementor-spacer-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto !important;
    aspect-ratio: var(--hero-ratio, 16 / 9);
}

.m-hero-parallax > img,
.m-hero-parallax img.e-image-base,
.m-hero-parallax .m-hero-parallax__img {
    position: absolute !important;
    top: 50%;
    left: 0;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
    --parallax: 0px;
    transform: translate3d(0, calc(-50% + var(--parallax)), 0);
}

.m-hero-fade .m-hero-parallax__img {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.m-hero-fade.is-inview .m-hero-parallax__img {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .m-hero-parallax > img,
    .m-hero-parallax img.e-image-base,
    .m-hero-parallax .m-hero-parallax__img,
    .m-hero-fade .m-hero-parallax__img {
        opacity: 1;
        transform: translate3d(0, -50%, 0);
        transition: none;
    }
}

.bw-series-glyph {
    font-feature-settings: "ss11" 1, "ss13" 1;
}

.elementor-page .m-product-container__sidebar-head h1,
.elementor-page .m-product-grid__title.-label,
.elementor-page .m-category-intro__eyebrow,
.elementor-page .m-faq__eyebrow,
.elementor-page .m-category-intro__button {
    letter-spacing: 0;
    text-transform: none;
}
