/* Who This Is For Section Styles */

.who-this-is-for {
    width: 100%;
    padding: 64px 0;
}

.who-this-is-for__container {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 90px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Header Styles */
.who-this-is-for__header {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.who-this-is-for__title {
    font-family: 'Costaline', serif;
    font-weight: 100;
    font-size: 48px;
    line-height: 1.7;
    color: #181818;
    margin: 0;
}

.who-this-is-for__description {
    max-width: 805px;
    width: 100%;
}

.who-this-is-for__description p {
    font-family: 'General Sans Variable', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: #181818;
    margin: 0;
}

/* Grid Styles */
.who-this-is-for__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 620px));
    gap: 36px 46px;
    justify-content: center;
}

/* Card Styles */
.who-this-is-for__card {
    width: 100%;
    max-width: 620px;
    aspect-ratio: 620 / 321;
    position: relative;
}

.who-this-is-for__card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Margin Vectors */
.who-this-is-for__card-image-wrapper .margin-left,
.who-this-is-for__card-image-wrapper .margin-right,
.who-this-is-for__card-image-wrapper .margin-top,
.who-this-is-for__card-image-wrapper .margin-bottom {
    position: absolute;
    z-index: 2;
}

.who-this-is-for__card-image-wrapper .margin-left {
    left: 0;
    top: 0;
    height: 100%;
    width: auto;
}

.who-this-is-for__card-image-wrapper .margin-right {
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
}

.who-this-is-for__card-image-wrapper .margin-top {
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.who-this-is-for__card-image-wrapper .margin-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.who-this-is-for__card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.who-this-is-for__card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 131px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-end;
    background: linear-gradient(8.20903deg, rgb(0, 0, 0) 16.892%, rgba(0, 0, 0, 0) 52.131%);
    z-index: 3;
}

.who-this-is-for__card:nth-child(2) .who-this-is-for__card-content {
    height: 100%;
    gap: 24px;
    background: linear-gradient(14.0434deg, rgb(0, 0, 0) 18.047%, rgba(0, 0, 0, 0) 82.978%);
}

.who-this-is-for__card-title {
    font-family: 'General Sans Variable', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: normal;
    color: #ffffff;
    margin: 0;
    max-width: 482px;
}

.who-this-is-for__card-description {
    font-family: 'General Sans Variable', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: #ffffff;
    margin: 0;
    max-width: 482px;
}

/* Hide descriptions by default; reveal on title hover, card hover, or keyboard focus */
.who-this-is-for__card-description {
    display: none;
}

.who-this-is-for__card-title:hover+.who-this-is-for__card-description,
.who-this-is-for__card-content:hover .who-this-is-for__card-description,
.who-this-is-for__card-content:focus-within .who-this-is-for__card-description {
    display: block;
}

/* Mobile Styles */
@media (max-width: 600px) {
    .who-this-is-for {
        padding: 56px 0;
    }

    .who-this-is-for__container {
        padding: 0 32px;
        gap: 56px;
    }

    .who-this-is-for__header {
        gap: 24px;
    }

    .who-this-is-for__title {
        font-size: 24px;
        width: 195px;
    }

    .who-this-is-for__description p {
        font-size: 16px;
    }

    .who-this-is-for__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 36px;
        justify-content: center;
        justify-items: center;
    }

    .who-this-is-for__card {
        width: 100%;
        max-width: 311px;
        aspect-ratio: 311 / 321;
    }

    .who-this-is-for__card-image-wrapper {
        width: 100%;
        height: 100%;
    }

    .who-this-is-for__card-content {
        width: 100%;
        gap: 24px;
        height: 321px;
        background: linear-gradient(26.5035deg, rgb(0, 0, 0) 18.047%, rgba(0, 0, 0, 0) 82.978%);
    }

    .who-this-is-for__card:nth-child(1) .who-this-is-for__card-content {
        background: linear-gradient(26.5035deg, rgb(0, 0, 0) 18.047%, rgba(0, 0, 0, 0) 82.978%);
    }

    .who-this-is-for__card:nth-child(2) .who-this-is-for__card-content,
    .who-this-is-for__card:nth-child(3) .who-this-is-for__card-content,
    .who-this-is-for__card:nth-child(4) .who-this-is-for__card-content {
        height: 131px;
        gap: 10px;
        background: linear-gradient(8.20903deg, rgb(0, 0, 0) 16.892%, rgba(0, 0, 0, 0) 52.131%);
    }

    .who-this-is-for__card:nth-child(2) .who-this-is-for__card-content {
        background: linear-gradient(5.47368deg, rgb(0, 0, 0) 7.7156%, rgba(0, 0, 0, 0) 76.836%);
    }

    .who-this-is-for__card:nth-child(3) .who-this-is-for__card-content {
        background: linear-gradient(6.88256deg, rgb(0, 0, 0) 9.2726%, rgba(0, 0, 0, 0) 79.61%);
    }

    .who-this-is-for__card:nth-child(4) .who-this-is-for__card-content {
        background: linear-gradient(8.84502deg, rgb(0, 0, 0) 11.231%, rgba(0, 0, 0, 0) 69.577%);
    }

    .who-this-is-for__card-title {
        font-size: 20px;
        max-width: 272px;
    }

    .who-this-is-for__card-description {
        font-size: 16px;
        max-width: 272px;
    }
}

/* Tablet Styles */
@media (min-width: 601px) and (max-width: 1024px) {
    .who-this-is-for__container {
        padding: 0 48px;
        gap: 56px;
    }

    .who-this-is-for__title {
        font-size: 36px;
    }

    .who-this-is-for__description p {
        font-size: 17px;
    }

    .who-this-is-for__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 36px;
        max-width: 900px;
    }

    .who-this-is-for__card {
        width: 100%;
        max-width: 450px;
        aspect-ratio: 620 / 321;
    }

    .who-this-is-for__card-image-wrapper {
        width: 100%;
        height: 100%;
    }

    .who-this-is-for__card-content {
        width: 100%;
        height: auto;
        min-height: 120px;
    }

    .who-this-is-for__card:nth-child(2) .who-this-is-for__card-content {
        height: 100%;
        min-height: unset;
    }

    .who-this-is-for__card-title {
        font-size: 20px;
    }

    .who-this-is-for__card-description {
        font-size: 16px;
    }
}