@charset "UTF-8";

.specialties {
    padding: clamp(60px, 6.250vw, 120px) 0;
    position: relative;
    background-color: #F8F8F8;
    background-image: url('/wp-content/uploads/2023/09/featured_services_background.jpg.webp');
    z-index: 1;
}

.no-webp .specialties {
    background-image: url('/wp-content/uploads/2023/09/featured_services_background.jpg');
}

.page-template-flexible .specialties {
    padding: clamp(25px, 2.083vw, 40px) 0 clamp(45px, 9.375vw, 180px);
}

.specialties .row.flex {
    flex-wrap: wrap;
    align-items: center;
    justify-items: flex-start;
    justify-content: flex-start;
}

.specialties .heading h2 {
    color: #2d2926;
    margin-bottom: clamp(40px, 2.917vw, 56px);
}

.specialties .btn.btn-orange {
    margin: clamp(40px, 2.917vw, 56px) auto 0;
}

.specBox {
    position: relative;
    display: block;
    padding: 0;
    text-align: center;
    overflow: hidden;
}

.specImg {
    z-index: 0;
    padding-bottom: 0;
    display: block;
    position: relative;
    height: fit-content;
    margin: 0 auto;
    width: clamp(300px, 20.573vw, 395px);
    height: clamp(365px, 25vw, 480px);
}

.specImg img {
    position: relative;
    width: clamp(300px, 20.573vw, 395px);
    height: clamp(365px, 25vw, 480px);
    border-radius: 0;
    top: 0;
    left: 0;
    transition: all .75s ease;
}

.specBox:hover .specImg img {
    filter: brightness(.6);
}

.specContent h4, .specContent h4 a {
    position: relative;
    font-size: clamp(18px, 1.146vw, 22px);
    font-weight: 500;
    letter-spacing: clamp(1.25px, 0.130vw, 2.5px);
    line-height: clamp(26px, 1.563vw, 30px);
    color: #f8f8f8;
    margin-bottom: clamp(20px, 0.885vw, 17px);
    z-index: 3;
    text-transform: uppercase;
}

.specContent h4 .smaller {
    display: block;
    font-size: 65%;
    color: #404042;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.specContent {
    position: absolute;
    font-size: clamp(12px, 0.833vw, 16px);
    line-height: clamp(20px, 1.25vw, 24px);
    text-align: center;
    height: 100%;
    top: 0;
    padding: 25px 40px;
    z-index: 5;
    color: #f8f8f8;
    width: fit-content;
    display: grid;
    align-content: space-between;
    align-items: stretch;
    justify-content: center;
    justify-items: center;
}

.specConWrap {
    opacity: 0;
    transition: all .75s ease;
}

.specBox:hover .specConWrap {
    opacity: 1;
}

.specContent .specialLink {
    display: block;
    margin: clamp(16px, 1.667vw, 32px) auto 0;
    color: #313131;
    text-transform: uppercase;
    font-weight: 500;
}

.specContent .specialLink:hover {
    color: #998662;
}

.specBox .overCon {
    position: absolute;
    color: #f8f8f8;
    background-color: rgb(56 76 93 / 50%);
        font-size: clamp(14px, 0.833vw, 16px);
    line-height: clamp(22px, 1.25vw, 24px);
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(563px, 33.333vw, 640px);
    display: grid;
    padding: 0 40px 30px;
    align-items: end;
    justify-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all .75s ease;
}

.specBox:hover .overCon {
    opacity: 1;
}

.specContent p {
    color: #404042;
    font-size: clamp(14px, 0.781vw, 15px);
}

.spBtn .btn.btn-orange {
    margin: 0;
    /* border-radius: 50px; */
}

@media ( max-width: 1024px ) {
    .specialties .row.flex {
        flex-direction: column;
    }

    .specBox {
        margin-bottom: 40px;
        max-width: 450px;
        width: 50%;
    }

    .specContent {
        clear: both;
    }

}

@media ( max-width: 768px ) {
    .specialties::after {
        display: none;
    }
}

@media ( max-width: 567px ) {    
    .specialties .heading h2::after {
        margin: 18px auto;
    }

    .specBox {
        width: 95%;
        padding: 0 20px;
    }

    .specImg {
        width: unset;
        height: unset;
    }
}