/* =========================================
   Services
========================================= */

.services {
    position: relative;
    padding:
        clamp(7rem, 12vw, 11rem)
        clamp(1.25rem, 5vw, 5rem);
    background-color: var(--bg-primary);
    color: var(--text-primary);

    overflow: hidden;
}
.services__inner {
    width: 100%;
    max-width: 90rem;
    margin: 0 auto;
}


/* -----------------------------------------
   Header
----------------------------------------- */

.services__header {
    margin-bottom: clamp(4rem, 8vw, 7rem);

    opacity: 0;
    transform: translateY(25px);
}

.services__eyebrow {
    margin: 0 0 1rem;

    font-family: "Manrope", sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--text-secondary);
}

.services__title {
    max-width: 16ch;
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.75rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
}


/* -----------------------------------------
   Cards
----------------------------------------- */

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid rgba(44, 45, 47, 0.18);
    border-bottom: 1px solid rgba(44, 45, 47, 0.18);
}

.service-card {
    min-height: 17rem;
    padding: 2rem clamp(1.25rem, 2vw, 2rem);

    position: relative;

    opacity: 0;
    transform: translateY(35px);
}

.service-card + .service-card {
    border-left: 1px solid rgba(44, 45, 47, 0.18);
}
.service-card__number {
    display: block;
    margin-bottom: 3.5rem;
    font-family: "Manrope", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}
.service-card__title {
    margin: 0 0 1rem;
    
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    font-weight: 400;
    line-height: 1;
}

.service-card__text {
    max-width: 25ch;
    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: 0.8rem;
    line-height: 1.7;

    color: var(--text-secondary);
}


/* -----------------------------------------
   Mobile
----------------------------------------- */

@media only screen and (max-width: 47.99rem) {

    .services__grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
        padding: 2rem 0;
    }

    .service-card + .service-card {
        border-left: 0;
        border-top: 1px solid rgba(44, 45, 47, 0.18);
    }

    .service-card__number {
        margin-bottom: 2rem;
    }

}

/* =========================================
   Short / Landscape Services
========================================= */

@media only screen
    and (max-height: 31rem)
    and (orientation: landscape) {

    .services {
        padding: 4rem 2rem;

        text-align: center;
    }

    .services__inner {
        width: 100%;
        max-width: 44rem;

        margin-inline: auto;
    }

    /* Header */
    .services__header {
        width: 100%;
        max-width: 36rem;
        margin: 0 auto 3rem;
        text-align: center;
    }
    .services__eyebrow {
        margin-bottom: 0.75rem;
        font-size: 0.6rem;
        letter-spacing: 0.14em;
    }
    .services__title {
        max-width: 16ch;
        margin-inline: auto;
        font-size: clamp(2.5rem, 10vh, 3.25rem);
        line-height: 1;
    }

    /* Cards */
    .services__grid {
        width: 100%;
        max-width: 28rem;
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .service-card {
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
        padding: 1.5rem 2rem;
        text-align: center;
    }
    .service-card + .service-card {
        border-left: 0;
        border-top: 1px solid rgba(44, 45, 47, 0.18);
    }
    .service-card__number {
        display: block;
        margin-bottom: 0.75rem;
    }
    .service-card__title {
        margin-bottom: 0.75rem;
        font-size: 1.5rem;
    }
    .service-card__text {
        max-width: 24rem;

        margin: 0 auto;

        font-size: 0.85rem;
        line-height: 1.6;
    }
}

@media only screen and (min-width: 48rem) {
    .service-card__title {
        min-height: 2.2em;
    }
}