@charset "UTF-8";

.specialties {
    position: relative;
    background-color: var(--white);
    background-image: url('/wp-content/uploads/2026/02/feat_services_bg_pattern_full.svg');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
}

.specialties.staff {
    background-image: none;
    background-color: #F0F1F1;
}

.specialties.staff .container {
    padding: clamp(100px, 7.292vw, 140px) 0;
}

.specialties .container {
    position: relative;
    width: min( 85.417vw, 1640px );
    padding: clamp( 100px, 8.542vw, 164px ) 0 clamp( 100px, 7.292vw, 140px );
    background-color: transparent;
    margin: 0 auto;
}

.specialties .container > div {
    padding: 0;
}

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

.specialties .heading {
    margin-bottom: 36px;
}

.specialties .row.flex {
    flex-wrap: nowrap;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: 16px;
    overflow: visible;
}

.specialties.staff .row.flex {
    align-items: flex-start;
}

.specialties .heading h1 {
    color: var( --white );
    font-size: clamp( 26px, 2.083vw, 40px );
    line-height: clamp( 34px, 2.5vw, 48px );
    font-weight: 600;
    margin-bottom: 56px;
}

.specialties .heading h2:after {
    content: '';
    margin: 8px auto;
    height: 4px;
    width: 60px;
    display: none;
    background-color: var( --secondary-color );
}

.specBox {
    position: relative;
    display: block;
    /* width: 25%; */
    height: fit-content;
    padding: 0;
    text-align: center;
    overflow: visible;
    transform: translateY(0);
    transition: all .75s ease;
    margin-bottom: 0px;
}

.specialties.staff .specBox {
    width: min(13.542vw, 260px);
}

/* Hide the hard-coded "Our Featured Services / View All" box on staff sections.
   It is always the LAST .specBox in .row.flex (appended after the specs loop),
   so target it structurally — not by position — to stay robust as staff are added/removed. */
.specialties.staff .row.flex .specBox:last-child {
    display: none;
}

.specBox:hover {
    transform: translateY(-24px);
}

.specialties.staff .specBox:hover {
    transform: unset;
}

.specBox:nth-of-type(4) .spWrap {
    background-color: #32647B;
}

.specialties.staff .specBox:nth-of-type(4) .spWrap {
    background-color: unset;
}

.specBox:nth-of-type(4) .spWrap a.specialLink {
    text-decoration: none;
}

.specBox:nth-of-type(4) .spWrap a.specialLink {
    font-size: 16px;
    font-family: var(--body-font);
    text-transform: uppercase;
    letter-spacing: var(--letter-space);
    display: flex;
    gap: 16px;
    align-items: center;
}

.specBox:nth-of-type(4) .spWrap a.specialLink img {
    width: 16px;
    height: 12px;
}

.specBox:nth-of-type(4) .specContent h4,
.specBox:nth-of-type(4) .specContent h4 a {
    font-size: var(--h2-font-size);
    font-family: var(--heading-font);
    line-height: 175%;
    text-align: left;
}

.specBox:nth-of-type(4) .specContent h4 {
    padding-left: 32px;
    padding-bottom: 0;
}

.specialties.beforeAfter .specBox {
    margin-bottom: 0px;
}

.specialties.beforeAfter .spWrap {
    padding: 0px;
    background-color: transparent;
}

.specBox .spWrap {
    position: relative;
    display: flex;
    background-color: transparent;
    color: var( --white );
    border-radius: 0;
    height: min(27.083vw, 520px);
    width: 100%;
    padding: 0;
    /* box-shadow: 0px 15px 30px #0000000D; */
    align-items: flex-start;
    z-index: auto;
    flex-direction: column;
    justify-content: end;
}

.specialties.staff .specBox .spWrap {
    height: unset;
}

.specialties.beforeAfter .specImg {
    padding-bottom: 0px;
}

.specImg {
    position: absolute;
    width: 100%;
    height: clamp( 338px, 27.083vw, 520px);
    z-index: 0;
    padding-bottom: 4px;
    overflow: hidden;
}

.specialties.staff .specImg {
    height: unset;
    position: relative;
}

.specialties.beforeAfter .specImg img {
    width: clamp(200px, 20.729vw, 398px);
    height: clamp(111px, 11.563vw, 222px);
}

.specImg a {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
}

.specialties.staff .specImg a {
    position: relative;
}

.specImg img {
    width: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    height: 100%;
    width: 100%;
}

.specialties.staff .specImg img {
    width: min(13.542vw, 260px);
    height: auto;
    border-radius: 50%;
    object-fit: unset;
}

.specContent h4, .specContent h4 a {
    position: relative;
    font-family: var( --body-font );
    font-size: clamp(22px, 1.25vw, 24px);
    font-weight: 400;
    letter-spacing: normal;
    line-height: clamp(28px, 1.563vw, 30px);
    color: var( --white );
    margin-bottom: 0;
    z-index: 3;
    text-transform: unset;
}

.specialties.staff .specContent h4,
.specialties.staff .specContent h4 a,
.specialties.staff .specBox:nth-of-type(4) .specContent h4,
.specialties.staff .specBox:nth-of-type(4) .specContent h4 a{
    color: var(--black);
    font-weight: 500;
    font-family: var(--body-font);
    font-size: clamp(22px, 1.25vw, 24px);
    line-height: clamp(28px, 1.563vw, 30px);
    text-align: center;
    padding-left: unset;
}

.specContent h4 {
    /* border-bottom: 4px solid rgb(234 233 228 / 100%); */
    padding-bottom: 16px;
    /* margin-bottom: 16px; */
}

.specialties.staff .specContent h4 {
    padding-bottom: 8px;
}

.specContent h4 .smaller {
    display: block;
    font-size: 65%;
    color: var( --black );
    font-family: var( --body-font );
    font-weight: 500;
}

.specBox .specContent {
    position: relative;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    padding: 8px 0 0;
    z-index: 5;
    color: var( --white );
    /* background-color: var(--black); */
    width: 100%;
}

.specialties.staff .specBox .specContent {
    padding: clamp(13px, 1.094vw, 21px) 0 0;
    color: var(--black);
}

.specialLink {
    position: relative;
    display: block;
    font-family: var( --heading-font );
    background-color: transparent;
    margin: 0;
    color: var( --white );
    text-transform: initial;
    font-weight: 400;
    font-size: clamp( 18px, 1.25vw, 24px );
    width: fit-content;
    letter-spacing: normal;
    padding: 32px;
    z-index: 2;
}

.specialties.staff .specialLink {
    padding: 0;
}

a.specialLink::after {
    content: '\f054';
    display: none;
    font-family: 'Font Awesome 5 Free';
    margin-left: 0;
    opacity: 0;
    transition: all .5s ease;
}

.specBox:hover a.specialLink::after,
a.specialLink:hover::after {
    margin-left: 5px;
    opacity: 1;
}

.specContent .specialLink:hover {
    color: var( --black );
    text-decoration: none;
}

.specBox .overCon {
    position: absolute;
    color: var( --white );
    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: var( --black );
    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;
        column-gap: 34px;
        height: fit-content;
    }

    .specialties.staff .row.flex {
        display: flex;
        align-items: center;
        gap: 48px;
    }

    .specialties.beforeAfter .specImg img {
        width: 100%;
        height: auto;
    }

    .specialties.beforeAfter .specBox:hover {
        margin-bottom: 0px;
    }

    .specBox {
        /* margin-bottom: 40px; */
        max-width: 326px;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .specialties.staff .specBox {
        aspect-ratio: unset;
        width: 100%;
        max-width: 260px;
    }

    .specBox .spWrap {
        height: 100%;
        justify-content: end;
    }

    .specImg {
        /* height: fit-content; */
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: block;
    }

    .specialties.staff .specImg img {
        width: 100%;
        height: auto;
        border-radius: 50%;
        object-fit: unset;
    }

    .specContent {
        clear: both;
    }

}

@media ( max-width: 768px ) {

}

@media ( max-width: 567px ) {
    .specialties .container {
        margin-bottom: 0
    }

    .specContent .specialLink {
        font-size: 16px;
    }

    .specialties .heading h2::after {
        margin: 18px auto;
    }

    .specialties a.btn.btn-orange {
        margin-top: 56px;
    }

    .specBox {
        width: 300px;
        padding: 0 0;
    }

    .specContent h4,
    .specContent h4 a {
        font-size: 22px;
    }
}