/*------------------------------------*\

    Half & Half Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Half & Half Image + Text' block.
    If there is any reasons why you would need to style this separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.half-and-half + .half-and-half {
    margin-top: 0;
    padding-top: 0;
}

.half-and-half-right + .half-and-half-right,
.half-and-half-left + .half-and-half-left {
    margin-top: var(--section-margins);
}

.half-and-half-image,
.half-and-half-text {
    position: relative;
    width: 100%;
    z-index: 1;
}

.half-and-half--texture .half-and-half-text::after,
.half-and-half--texture .half-media-text__text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to right,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
}

.half-and-half--texture--dark {
    background: linear-gradient(to right,  rgba(0,0,0,1) 0%,rgba(50,50,50,1) 100%);
}

.half-and-half--texture--dark,
.half-and-half--texture--dark h2 ,
.half-and-half--texture--dark h3,
.half-and-half--texture--dark h4,
.half-and-half--texture--dark h5,
.half-and-half--texture--dark h6{
    color: #fff;
}

.half-and-half--texture--dark .half-and-half-text::after,
.half-and-half--texture--dark .half-media-text__text::after {
    background: linear-gradient(to right,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
}

.half-pattern {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    -o-object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.half-and-half-image img {
    height: 100%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    -o-object-fit: cover;
}

.half-and-half-text {
    padding: 0 22px 30px;
}

.half-and-half-image__wrap {
    height: 300px;
    position: relative;
}

.half-and-half {
    margin-bottom: 50px;
}

.half-and-half__video {
    position: absolute;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34,34,34,0.5);
}

.half-and-half__video svg {
    width: 100px;
    height: auto;
    transition: all .5s;
}

.half-and-half-image__flex {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 -9px;
}

.half-and-half-image__left,
.half-and-half-image__right {
    padding: 0 9px;
    width: 50%;
    height: 237px;
}

.half-and-half-image__right {
    margin-top: 53px;
}

.half-and-half-text__wrapper .btn {
    margin-top: 15px;
}

.half-and-half--texture--dark .half-and-half-text {
    padding-top: 50px;
}

.half-and-half--double-image + .half-and-half {
    margin-top: 0;
}

.fx-single-location {
    margin: 0 !important;

}
.fx-single-location.half-and-half-right .half-and-half-image{
    padding-right: 30px;
}
.fx-single-location.half-and-half-left .half-and-half-image{
    padding-left: 30px;
}
.fx-single-location.half-and-half-right .half-and-half-image__right{
    margin-top: 0;
}
.fx-single-location.half-and-half-right .half-and-half-image__left{
    margin-top: 53px;
}

.margin-y-0{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.half-and-half.fx-cat-family + .text-content-contact {
    margin-top: 0 ;
}
@media (min-width: 768px) {
    .half-and-half-text {
        padding: 0 52px 40px;
    }

    .half-and-half-image__wrap {
        height: 419px;
    }

    .half-and-half {
        margin-bottom: 80px;
    }

    .half-and-half__video svg {
        width: 139px;
    }

    .half-and-half-image__flex {
        margin: 0 -16px;
        padding: 0 52px;
    }

    .half-and-half-image__left,
    .half-and-half-image__right {
        padding: 0 16px;
        height: 420px;
    }

    .half-and-half-image__right {
        margin-top: 94px;
    }

    .half-and-half--texture--dark .half-and-half-text {
        padding-top: 80px;
    }
    .fx-single-location.half-and-half-right .half-and-half-image{
        padding-right: 40px;
    }
    .fx-single-location.half-and-half-left .half-and-half-image{
        padding-left: 40px;
    }
}

@media (min-width: 1200px) {

    .half-and-half {
        margin-bottom: 0;
    }

    .flex-opposite {
        flex-direction: row-reverse;
    }

    .half-and-half-image,
    .half-and-half-text {
        width: 50%;
    }

    .half-and-half-image img {
        position: absolute;
    }

    .half-and-half-text {
        padding: 99px 16px;
    }

    .half-and-half-image__wrap {
        height: 100%;
    }

    .half-and-half-left .half-and-half-text {
        padding-right: 64px;
    }

    .half-and-half-right .half-and-half-text {
        padding-left: 64px;
    }

    .half-and-half-left .half-and-half-image__wrap {
        margin-right: 16px;
    }

    .half-and-half-right .half-and-half-image__wrap {
        margin-left: 16px;
    }

    .half-and-half-image__flex {
        margin: 0 16px 0 0;
        padding: 0 0;
        height: 100%;
    }

    .half-and-half-image__left,
    .half-and-half-image__right {
        padding: 0;
        height: calc(100% - 94px);
        position: relative;
        width: calc(50% - 12px);
    }

    .half-and-half-image__right {
        margin-left: auto;
    }

    .half-and-half-image__right {
        margin-top: 94px;
    }

    .half-and-half--texture .half-and-half-text::after {
        width: calc(100% + 16px);
    }

    .half-and-half__video:hover {
        background: rgba(34,34,34,0.5);
    }

    .half-and-half__video:hover svg {
        transform: scale(1.1);
    }

    .half-and-half--texture--dark .half-and-half-text {
        padding-top: 98px;
    }
    .fx-single-location.half-and-half-right .half-and-half-image{
        padding-right: 64px;
    }
    .fx-single-location.half-and-half-left .half-and-half-image{
        padding-left: 64px;
    }
    .fx-single-location.half-and-half-right .half-and-half-image__flex {
        margin-right: 0;
    }
    .fx-single-location.half-and-half-right .half-and-half-image__left{
        margin-top: 94px;
    }

    .half-and-half-left .half-and-half-text .half-pattern {
        left: -16px;
    }
    /* .half-and-half-right .half-and-half-text .half-pattern {
        right: -16px;
        left: auto;
    } */
}

@media (min-width: 1600px) {
    .half-and-half-text {
        padding-top: 115px;
        padding-bottom: 115px;
    }

    .half-and-half__video:hover {
        background: rgba(34,34,34,0.5);
    }
         

    .half-and-half__video svg {
        width: 184px;
    }

    .half-and-half__video:hover svg {
        transform: scale(1.1);
    }

    .half-and-half.half-and-half--double-image {
        margin: 57px 0;
    }

    .half-and-half-image__left,
    .half-and-half-image__right {
        height: calc(100% - 110px);
        width: calc(50% - 16px);
    }

    .half-and-half-image__right {
        margin-top: 110px;
    }

    .half-and-half-right .half-and-half-text__wrapper p {
        padding-right: 53px;
    }

    .half-and-half--texture--dark .half-and-half-text {
        padding-top: 115px;
    }
}

/* Half Media Text With Reputation Section */

.half-media-text__image img {
    object-position: top;
}

.half-media-text__text {
    position: relative;
    padding: 0 22px;
    z-index: 1;
}

.half-and-half--texture .half-media-text__text {
    padding: 50px 22px;
}

.half-media-text__text .btn {
    z-index: 2;
}

.half-and-half--texture--dark .half-media-text__image {
    background: #000;
}

.reputation {
    margin: -25px -22px 0 -22px;
    position: relative;
    background: linear-gradient(to right,  #f3f3f3 0%,#e0e1e2 100%);
    padding: 52px 0 0 0;
    position: relative;
    z-index: 1;
}

.reputation__image {
    width: 156px;
    margin: 0 auto;
}
           
.reputation__text {
    padding: 24px 0 0 0;
    text-align: center;
}

.reputation__text h4 {
    color: #323232;
    font-size: 22px;
    font-family: 'univers57_condensed';
}

.reputation__text h4 span {
    display: block;
    color: #161616;
    font-size: 17px;
    text-transform: none;
    font-family: 'univers57_condensed';
}

.reputation__deatils {
    background: linear-gradient(to right,  rgba(255,255,255,1) 0%,rgba(255,255,255,0.25) 100%);
    padding: 27px 0 25px 0;
}

.reputation__deatils h3 {
    font-family: "Roboto", serif;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: #161616;
    font-size: 20px;
    line-height: 1.2em;
    margin-bottom: 15px;
}

.reputation__deatils h3 span {
    font-family: 'univers57_condensed';
    display: block;
    font-weight: normal;
    letter-spacing: 0.1em;
    font-size: 17px;
}

.reputation__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #161616;
    font-family: 'univers67_condensed_bold';
    text-transform: uppercase;
    background: none;
    gap: 8px;
    letter-spacing: 0.1em;
    font-size: 18px;
}

.reputation__cta span {
    position: relative;
    display: block;
    padding-right: 46px;
}

.reputation__cta span::before {
    content: '\e90d';
    font-family: 'foley-icon';
    position: absolute;
    top: 50%;
    right: 0;
    font-weight: normal;
    transform: translate(0, -50%);
    font-size: 37px;
    color: #FDBB12;
}

.half-media-text__image {
    height: 300px;
    position: relative;
}


@media (min-width: 768px) {

    .half-media-text__text {
        padding: 0 52px;
    }

    .half-and-half--texture .half-media-text__text {
        padding: 50px 52px;
    }

    .reputation {
        margin: -25px -52px 0 -52px;
        padding: 64px 52px 40px;
    }

    .reputation__flex {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .reputation__image {
        width: 140px;
        height: 168px;
        margin: 0;
    }

    .reputation__text {
        padding: 0;
        width: calc(100% - 140px);
        text-align: left;
    }

    .reputation__text h4 {
        display: flex;
        margin-bottom: 18px;
        font-size: 26px;
        gap: 14px;
        padding-left: 28px;
    }

    .reputation__text h4 span {
        font-size: 18px;
    }

    .reputation__deatils {
        padding: 25px 72px 25px 34px;
        display: flex;
        align-items: center;
        gap: 40px;

    }

    .reputation__deatils h3 {
        margin-bottom: 0;
    }

    .half-media-text__image {
        height: 420px;
    }

}

@media (min-width: 1200px) {
    .half-media-text {
        display: flex;
        flex-wrap: wrap;
    }

    .half-media-text__text {
        width: calc(50% + 16px);
        padding: 0 32px 0 63px;
        margin: 0;
    }

    .half-and-half--texture .half-media-text__text {
        padding: 50px 32px 0 63px;
    }

    .half-and-half--texture .half-media-text__text {
        padding-top: 99px;
    }

    .half-media-text__image {
        width: calc(50% - 16px);
        height: auto;
    }

    .half-media-text__image img,
    .half-media-text__image .half-and-half__video {
        max-height: calc(100% - 130px);
    }

    .reputation {
        margin: -25px 0 0 38px;
        padding: 49px 30px 28px;
    }

    .reputation h4 {
        color: #323232;
        font-size: 24px;
        font-family: 'univers57_condensed';
        display: flex;
        gap: 7px;
        align-items: center;
    }

    .reputation h4 span {
        color: #161616;
        font-size: 18px;
        text-transform: none;
        font-family: 'univers57_condensed';
    }

    .reputation__flex {
        max-width: 426px;
        margin: 0 auto;
    }

    .reputation__image {
        width: 126px;
        height: 151px;
    }

    .reputation__text {
        width: calc(100% - 126px);
        padding: 0;
    }

    .reputation__deatils {
        padding: 25px 20px;
        display: block;
    }

    .reputation__deatils h3 {
        padding-bottom: 8px;
        border-bottom: 1px solid #7C7C7C;
        width: 195px;
        margin-bottom: 8px;
    }

    .reputation__cta {
        justify-content: flex-start;
    }

    .reputation__cta:hover {
        background: none;
    }

    .half-media-text__text .btn {
        margin-top: 15px;
    }
}

@media (min-width: 1600px) {
    .half-media-text__image {
        height: auto;
    }

    .half-media-text__image img,
    .half-media-text__image .half-and-half__video {
        max-height: calc(100% - 150px);
    }

    .reputation {
        margin: -25px 0 0 71px;
        padding: 21px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .reputation h4 {
        font-size: 32px;
        padding-left: 29px;
        margin: 0;
        display: block;
    }

    .reputation h4 span {
        font-size: 20px;
        display: block;
        line-height: 1em;
        padding-left: 25px;
    }

    .reputation__flex {
        width: 426px;
        margin: 0;
    }

    .reputation__deatils {
        padding: 25px 36px;
    }

    .reputation__cta {
        font-size: 20px;
    }

    .half-media-text__text p {
        padding-right: 50px;
    }

    .half-and-half--texture .half-media-text__text {
        padding-top: 115px;
    }
}

.half-media-text {
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    .half-media-text {
        margin-bottom: 100px;
    }
}

@media (min-width: 1600px) {
    .half-media-text {
        margin-bottom: 115px;
    }
}