/* Directional fill hover — inspired by Webflow #21 Button Bg Hover */

.btn-fill-hover {
    position: relative;
    display: inline-block;
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
    border: none;
    cursor: pointer;
    z-index: 0;
}

.btn-fill-hover__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.btn-fill-hover__label {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: color 0.35s ease;
}

/* Enter / exit from top */
.btn-fill-hover__bg.from-top {
    transform: scaleY(0);
    transform-origin: top center;
}

.btn-fill-hover__bg.from-top.is-active {
    transform: scaleY(1);
}

/* Bottom */
.btn-fill-hover__bg.from-bottom {
    transform: scaleY(0);
    transform-origin: bottom center;
}

.btn-fill-hover__bg.from-bottom.is-active {
    transform: scaleY(1);
}

/* Left */
.btn-fill-hover__bg.from-left {
    transform: scaleX(0);
    transform-origin: left center;
}

.btn-fill-hover__bg.from-left.is-active {
    transform: scaleX(1);
}

/* Right */
.btn-fill-hover__bg.from-right {
    transform: scaleX(0);
    transform-origin: right center;
}

.btn-fill-hover__bg.from-right.is-active {
    transform: scaleX(1);
}

/* Secondary (Enquire Now) */
.btn-fill-hover--secondary {
    background-color: #b80938;
    color: #ffffff;
}

.btn-fill-hover--secondary .btn-fill-hover__bg {
    background-color: #920029;
}

/* Light (Start a Project) */
.btn-fill-hover--light {
    background-color: #ffffff;
    color: #000000;
}

.btn-fill-hover--light .btn-fill-hover__bg {
    background-color: #b80938;
}

.btn-fill-hover--light.is-hovered .btn-fill-hover__label {
    color: #ffffff;
}
