/* Project page closing CTA — fig 6741:9215 / CTA5-Start (6881:13538).
   A 1430x600 white card with a 690x600 photo flush to its left edge and the
   copy column starting 95px past it. The mock draws the card 599 tall against
   a 600 photo; that 1px is a slip in the file, so both are 600 here. */

.project-cta-start {
    --cta-start-h: 600px;
    --cta-start-media: 690px;
}

.project-cta-start__card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--cta-start-h);
    background: #fff;
    border-radius: 40px;
    box-shadow: 4px 4px 14px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* the photo is taken out of flow: left in it, its 3:4 intrinsic ratio sets the
   card height (920 at 690 wide) instead of the mock's 600 */
.project-cta-start__media {
    position: relative;
    flex: 0 0 var(--cta-start-media);
    align-self: stretch;
    width: var(--cta-start-media);
    margin: 0;
}

.project-cta-start__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* the mock lifts the crop 86px inside an 860-tall frame, so the visible
       window sits just above the photo's middle */
    object-position: center 45%;
}

/* 95px from the photo, 96px from the card's right edge (fig) */
.project-cta-start__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    /* the sides were 96 right against 95 left, which pushed the copy a pixel
       off centre in a block that reads as centred */
    padding: 40px 95px;
}

.project-cta-start__title {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: normal;
    color: #171B1C;
}

.project-cta-start__text {
    max-width: 549px;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    color: #5F5F5F;
}

.project-cta-start__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 116px;
    background: #171B1C;
    border: 0;
    border-radius: 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.project-cta-start__btn:hover,
.project-cta-start__btn:focus-visible {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.project-cta-start__btn:focus-visible {
    outline: 2px solid #FF6B00;
    outline-offset: 3px;
}

.project-cta-start__btn img {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* below the mock width the fixed 690 media and the 116px button padding stop
   fitting long before the card does */
@media (max-width: 1200px) {
    .project-cta-start {
        --cta-start-media: 45%;
    }

    .project-cta-start__body {
        padding: 40px clamp(24px, 4vw, 96px);
    }

    .project-cta-start__btn {
        padding: 12px clamp(28px, 7vw, 116px);
    }
}

@media (max-width: 900px) {
    .project-cta-start__card {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        border-radius: 30px;
    }

    .project-cta-start__media {
        flex: 0 0 auto;
        width: 100%;
        height: 260px;
    }

    .project-cta-start__body {
        padding: 28px clamp(20px, 5vw, 40px) 36px;
    }

    .project-cta-start__title {
        font-size: clamp(24px, 4.2vw, 36px);
    }

    .project-cta-start__btn {
        width: 100%;
        padding: 14px 20px;
    }
}
