/* =========================================================
   EVERLASTING VESSELS
   What We Do Component
   ========================================================= */

.what-we-do {
    --what-we-do-background: #ffffff;
    --what-we-do-eyebrow: #6b179e;
    --what-we-do-heading: #18131d;
    --what-we-do-card-background: #ffffff;
    --what-we-do-card-title: #24152f;
    --what-we-do-card-text: #4f4854;
    --what-we-do-icon: #64129a;
    --what-we-do-icon-background: #f1e7f8;
    --what-we-do-arrow: #b9db00;
    --what-we-do-border: #e8e0ed;

    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 8vw, 7rem);
    background: var(--what-we-do-background);
}

.what-we-do::before {
    position: absolute;
    top: -9rem;
    left: 50%;
    width: 38rem;
    height: 19rem;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgb(112 31 157 / 7%) 0%,
            transparent 68%
        );
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
}

.what-we-do__container {
    position: relative;
    z-index: 1;
}

.what-we-do__header {
    max-width: 50rem;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.what-we-do__eyebrow {
    margin-bottom: 0.4rem;
    color: var(--what-we-do-eyebrow);
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1;
    transform: rotate(-2deg);
}

.what-we-do__heading {
    margin-bottom: 0;
    color: var(--what-we-do-heading);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.what-we-do__description {
    max-width: 42rem;
    margin: 1rem auto 0;
    color: var(--what-we-do-card-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* =========================================================
   Card grid
   ========================================================= */

.what-we-do__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

/* =========================================================
   Card
   ========================================================= */

.what-we-do-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 21rem;
    align-items: center;
    flex-direction: column;
    padding: 1.6rem 1rem 1.25rem;
    border: 1px solid var(--what-we-do-border);
    border-radius: 1.15rem;
    background: var(--what-we-do-card-background);
    text-align: center;
    box-shadow:
        0 0.4rem 1.25rem
        rgb(37 12 52 / 7%);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.what-we-do-card__icon {
    display: grid;
    width: 5rem;
    height: 5rem;
    flex: 0 0 auto;
    place-items: center;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--what-we-do-icon-background);
    color: var(--what-we-do-icon);
    font-size: 2.15rem;
}

.what-we-do-card__title {
    margin-bottom: 0.8rem;
    color: var(--what-we-do-card-title);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.what-we-do-card__text {
    margin-bottom: 1.25rem;
    color: var(--what-we-do-card-text);
    font-size: 0.9rem;
    line-height: 1.55;
}

.what-we-do-card__link {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    margin-top: auto;
    border-radius: 50%;
    color: var(--what-we-do-arrow);
    font-size: 1.2rem;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.what-we-do-card__link:hover {
    background: var(--what-we-do-arrow);
    color: #ffffff;
    transform: translateX(0.2rem);
}

.what-we-do-card__link:focus-visible {
    outline: 3px solid var(--what-we-do-arrow);
    outline-offset: 3px;
}

/* =========================================================
   Hover
   ========================================================= */

@media (hover: hover) {
    .what-we-do-card:hover {
        border-color: rgb(100 18 154 / 24%);
        box-shadow:
            0 1rem 2.5rem
            rgb(37 12 52 / 12%);
        transform: translateY(-0.4rem);
    }

    .what-we-do-card:hover .what-we-do-card__icon {
        transform: scale(1.04);
    }
}

/* =========================================================
   Responsive grid
   ========================================================= */

@media (max-width: 74.9375rem) {
    .what-we-do__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .what-we-do-card {
        min-height: 19rem;
        padding-inline: 1.35rem;
    }
}

@media (max-width: 47.9375rem) {
    .what-we-do {
        padding-block: 4rem;
    }

    .what-we-do__header {
        margin-bottom: 2.5rem;
    }

    .what-we-do__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .what-we-do-card {
        min-height: 18rem;
        padding: 1.4rem 1rem 1.15rem;
    }

    .what-we-do-card__icon {
        width: 4.5rem;
        height: 4.5rem;
        margin-bottom: 1rem;
        font-size: 1.9rem;
    }
}

@media (max-width: 35rem) {
    .what-we-do {
        padding-block: 3.5rem;
    }

    .what-we-do__container {
        width: 100%;
        padding-inline: 1rem;
    }

    .what-we-do__eyebrow {
        font-size: 1.8rem;
    }

    .what-we-do__heading {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .what-we-do__grid {
        grid-template-columns: 1fr;
    }

    .what-we-do-card {
        min-height: auto;
        align-items: flex-start;
        padding: 1.35rem;
        text-align: left;
    }

    .what-we-do-card__icon {
        width: 4.25rem;
        height: 4.25rem;
        font-size: 1.8rem;
    }

    .what-we-do-card__title {
        font-size: 1.1rem;
    }

    .what-we-do-card__text {
        max-width: 32rem;
    }

    .what-we-do-card__link {
        margin-top: 0;
        margin-left: auto;
    }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .what-we-do-card,
    .what-we-do-card__link {
        transition: none;
    }
}