/* =========================================================
   Purpose CTA Block
   ========================================================= */

:root {
    --pc-text: #ffffff;
    --pc-muted: rgb(255, 255, 255);
    --pc-check: #B9973D;
    --pc-font-serif: Cormorant, serif;
    --pc-font-sans: Montserrat, sans-serif;
}

/* Section wrapper — dark, full-bleed ---------------------- */
.purpose-cta-block {
    width: 100%;
    background-color: #2c2823;
    background-image: url('./background-color.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding-top: 10rem;
    margin-top: -10rem;
}

.purpose-cta-block__inner {
    display: flex;
    align-items: stretch;
    min-height: 560px;
}

/* =========================================================
   Left: content
   ========================================================= */
.purpose-cta-block__content {
    flex: 0 0 55%;
    max-width: 55%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 4rem 5rem max(4rem, calc((100vw - 1540px) / 2));
}

.purpose-cta-block__content-inner {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Heading (wysiwyg) */
.purpose-cta-block__heading {
    margin: 0;
}

.purpose-cta-block__heading p,
.purpose-cta-block__heading h1,
.purpose-cta-block__heading h2,
.purpose-cta-block__heading h3 {
    margin: 0;
    font-family: var(--pc-font-serif);
    font-size: 60px;
    font-weight: 400;
    line-height: 1.05;
    color: var(--pc-text);
}

.purpose-cta-block__heading em,
.purpose-cta-block__heading i {
    font-style: italic;
    font-weight: 700;
    font-family: var(--pc-font-serif);
}

.purpose-cta-block__heading strong,
.purpose-cta-block__heading b {
    font-weight: 700;
    font-family: var(--pc-font-serif);
}

/* Description (wysiwyg) */
.purpose-cta-block__description {
    font-family: var(--pc-font-sans);
    font-size: 13px;
    line-height: 20px;
    color: var(--pc-muted);
}

.purpose-cta-block__description p {
    margin: 0 0 0.75em;
    font-family: var(--pc-font-sans);
}

.purpose-cta-block__description p:last-child {
    margin-bottom: 0;
}

/* Feature checklist */
.purpose-cta-block__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.purpose-cta-block__feature {
    position: relative;
    padding-left: 1.75rem;
    font-family: var(--pc-font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--pc-muted);
    max-width: 480px;
}

.purpose-cta-block__feature strong {
    color: var(--pc-text);
    font-weight: 700;
}

.purpose-cta-block__feature::before {
    content: '\2713'; /* ✓ */
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--pc-check);
    font-weight: 700;
}

/* CTA buttons */
.purpose-cta-block__ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.purpose-cta-block__cta {
    display: inline-block;
    font-family: var(--pc-font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.purpose-cta-block__cta--outline {
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: transparent;
}

.purpose-cta-block__cta--outline:hover {
    background: #ffffff;
    color: #2c2823;
}

.purpose-cta-block__cta--filled {
    color: #2c2823;
    background: #ffffff;
    border: 1.5px solid #ffffff;
}

.purpose-cta-block__cta--filled:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   Right: image (full-bleed)
   ========================================================= */
.purpose-cta-block__image-side {
    flex: 1;
    position: relative;
    min-height: 560px;
}

.purpose-cta-block__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 1541px) {
    .purpose-cta-block__heading,
    .purpose-cta-block__heading p,
    .purpose-cta-block__heading h1,
    .purpose-cta-block__heading h2,
    .purpose-cta-block__heading h3 {
        font-size: 65px;
    }
}

@media (max-width: 1540px) {
    .purpose-cta-block__heading,
    .purpose-cta-block__heading p,
    .purpose-cta-block__heading h1,
    .purpose-cta-block__heading h2,
    .purpose-cta-block__heading h3 {
        font-size: 60px;
    }
}

@media (max-width: 900px) {
    .purpose-cta-block__heading p,
    .purpose-cta-block__heading h1,
    .purpose-cta-block__heading h2,
    .purpose-cta-block__heading h3 {
        font-size: 2.75rem;
    }

    .purpose-cta-block__inner {
        flex-direction: column;
        min-height: 0;
    }

    .purpose-cta-block__content,
    .purpose-cta-block__image-side {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .purpose-cta-block__content {
        padding: 20px 0;
    }

    .purpose-cta-block__image-side {
        min-height: 420px;
        order: -1; /* image on top when stacked */
    }

    .purpose-cta-block {
        padding: 20px;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .purpose-cta-block__description,
    .purpose-cta-block__description p,
    .purpose-cta-block__description li,
    .purpose-cta-block__info,
    .purpose-cta-block__info p {
        font-size: 16px !important;
        line-height: 1.75 !important;
    }

    .purpose-cta-block__heading p,
    .purpose-cta-block__heading h1,
    .purpose-cta-block__heading h2,
    .purpose-cta-block__heading h3 {
        font-size: 40px;
    }

    .purpose-cta-block__ctas {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .purpose-cta-block__cta {
        width: 100%;
    }

    .purpose-cta-block__image-side {
        min-height: 340px;
    }
}

@media (min-width: 1025px) and (max-width: 1539.98px) {
    .purpose-cta-block__content {
        padding-left: max(4rem, calc((100vw - 1250px) / 2));
    }
}

@media (max-width: 428px) {
    .purpose-cta-block__title,
    .purpose-cta-block__title *,
    .purpose-cta-block__heading,
    .purpose-cta-block__heading * {
        font-size: 32px !important;
    }
}

.purpose-cta-block__cta--amazon {
    color: #ffffff;
    background: #00A3E0;
    border: 1.5px solid #00A3E0;
}

.purpose-cta-block__cta--amazon:hover {
    background: #008CC2;
    border-color: #008CC2;
}

.purpose-cta-block__description,
.purpose-cta-block__description *,
.purpose-cta-block__info,
.purpose-cta-block__info * {
    font-family: 'Montserrat', sans-serif;
}
