@charset "UTF-8";

img {
    vertical-align: middle;
}

.feat-services {
    padding: 0;
    background-color: var( --white );
}

.feat-services img {
    object-fit: cover;
    object-position: 38% center;
    height: 100%;
    filter: brightness(0.5);   /* Figma: 50% black overlay (×0.5 ≈ 50% black) */
    transition: filter 1.2s ease-in-out;
}

.feat-services .row.flex {
    flex-wrap: nowrap;
    gap: 0;                     /* Figma cards are flush */
}

.featLink {
    position: relative;
    display: inline-flex;
    height: clamp( 400px, 41.667vw, 800px );
    padding: 0;
    overflow: visible;
    transition: all 1.2s ease-in-out;
    /* z-index: auto; */
}

.featLink::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    top: 0;
    right: -1.5px;
    background-color: rgb(248 248 248 / 40%);
    z-index: 2;
}

.featLink:last-of-type:after {
    display: none;
}

.featLink:hover,
.featLink:focus-visible {
    text-decoration: none;
    width: min(100vw, 1920px);
    transition: all 1.2s ease-in-out;
}

/* HP-Desktop #11: keyboard focus mirrors hover expand/reveal; ring drawn above the card image */
.featLink:focus-visible::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var( --white );
    z-index: 3;
    pointer-events: none;
}

.featLink:hover img {
    filter: brightness(0.5);
    transition: filter 1.2s ease-in-out;
}

.featBox {
    padding: 0;
    width: 100%;
    height: clamp( 195px, 41.667vw, 800px );
    display: flex;
    transition: all .5s ease;
    flex-direction: column;
    justify-content: flex-end;
}

.featImg {
     position: absolute;
     width: 100%;
     height: 100%;
     object-fit: cover;
     z-index: 0;
}

.featContent {
    position: relative;
    display: flex;
    background-color: transparent;
    padding: 0 40px 40px;          /* title block: 40px left/right/bottom (Figma) */
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}

.featContent h4 {
    color: var( --white );
    font-family: var( --heading-font );          /* Stack Sans Headline (base h4 is body font) */
    font-weight: var( --heading-font-weight );   /* 500 */
    font-size: var( --h3-font-size );            /* 32 → 24 mobile */
    line-height: var( --h3-line-height );
    letter-spacing: 0;
    text-align: left;
    text-transform: none;                        /* Figma is Title Case, not uppercase */
    margin: 0;
}

.featLink .featContent .fade-in {
    display: flex;
    opacity: 0;
    color: var( --white );
    font-family: var( --overline-font );   /* Stack Sans Text SemiBold (CTA) */
    font-weight: 600;
    letter-spacing: var( --btn-letter-spc );
    transition: all 1s ease;
    margin: 0;
    flex-direction: row;
    align-items: center;
    font-size: 16px;
    text-transform: uppercase;
}

.featLink:hover .featContent .fade-in,
.featLink:focus-visible .featContent .fade-in {
    opacity: 1;
    margin: 0 32px 0 0;
    letter-spacing: clamp( 0.87px, 0.08vw, 1.54px );
    transition: all 1s ease;
    transition-delay: .5s
}

.featLink .featContent .fade-in .fas {
    margin: 0;
    transition: all 1s ease;
}

.featLink:hover .featContent .fade-in .fas,
.featLink:focus-visible .featContent .fade-in .fas {
    margin: 0 0 0 10px;
    transition: all 1s ease;
    transition-delay: .5s;
}

.ftBtn a.btn-text {
    color: var( --black );
    font-family: var( --body-font );
    font-size: clamp(14px, .833vw, 16px);
    line-height: clamp(22px, 1.25vw, 24px);
    letter-spacing: clamp(.25px, .033vw, .67px);
    font-weight: 600;
    text-transform: uppercase;
    transition: all .5s ease;
}

.ftBtn a.btn-text .fas {
    opacity: 0;
    margin-left: -10px;
    transition: all .75s ease;
}

.featBox:hover a.btn-text .fas {
    opacity: 1;
    margin-left: 5px;
    transition: all .75s ease;
}

@media ( max-width: 1024px ) {
    
    .featContent h4 {
        margin: 0;
        width: 100%;
        text-align: left;
    }

    .featLink,
    .featLink:hover,
    .featLink:focus-visible {
        width: 100%;
    }

    .featLink:nth-of-type(2)::before, .featLink:nth-of-type(4)::before {
        display: none;
    }

    .featLink::after {
        height: 3px;
        width: 100%;
        right: unset;
        top: unset;
        bottom: -1.5px;
    }
}

@media ( max-width: 567px ) {
    .featLink,
    .featBox {
        height: 414px;
        width: 100%;
    }

        .feat-services .row.flex {
        flex-wrap: wrap;
    }

    
}