/* =========================================================
   Chapter Block
   ========================================================= */

:root {
    --chapter-bg: #F8F4EE;
    --chapter-text: #111111;
    --chapter-eyebrow: #1E4542;
    --chapter-font-serif: Cormorant, serif;
    --chapter-font-sans: Montserrat, sans-serif;
}

/* Section wrapper ---------------------------------------- */
.chapter-block {
    background-color: var(--chapter-bg);
    width: 100%;
}

/* Chapter row -------------------------------------------- */
.chapter-block__item {
    display: flex;
    align-items: stretch;
    flex-direction: row-reverse;
    min-height: calc(100vh - 100px);
}
.chapter-block__item .chapter-block__image{ 
    border-bottom-left-radius: 150px;
}

/* Even chapters: swap image and content order */
.chapter-block__item--reverse {
    flex-direction: row !important;
}

.chapter-block__item--reverse .chapter-block__image{ 
    border-top-right-radius: 150px;
    border-bottom-left-radius: 0px;
}

/* Image column ------------------------------------------- */
.chapter-block__image {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
}

.chapter-block__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Content column ----------------------------------------- */
.chapter-block__content {
    flex: 0 0 50%;
    max-width: 800px;
    margin: auto;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    padding: 6.5rem 4rem 10.5rem;
    overflow-wrap: break-word;
}

@media (min-width: 1540px) {
    .chapter-block__content {
        padding-left: max(4rem, calc((100vw - 100%) / 2));
        padding-right: 5rem;
    }

    .chapter-block__item--reverse .chapter-block__content {
        padding-left: 5rem;
        padding-right: max(4rem, calc((100vw - 1540px) / 2));
    }
}

/* Eyebrow ----------------------------------------------- */
.chapter-block__eyebrow {
    font-family: 'Mona Sans Condensed', sans-serif;
    font-weight: 600;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--chapter-eyebrow);
}

/* Title -------------------------------------------------- */
.chapter-block__title {
    margin: 0;
    font-family: var(--chapter-font-serif);
    font-size: 62px;
    font-weight: 400;
    line-height: 1;
    color: var(--chapter-text);
}

.chapter-block__title p,
.chapter-block__title h1,
.chapter-block__title h2,
.chapter-block__title h3 {
    margin: 0;
    font-family: var(--chapter-font-serif);
    font-size: 70px;
    font-weight: 300;
    line-height: 1;
    color: var(--chapter-text);
}

.chapter-block__title em,
.chapter-block__title i {
    font-style: italic;
    font-weight: 700;
    font-family: var(--chapter-font-serif);
}

.chapter-block__title strong,
.chapter-block__title b {
    font-weight: 700;
    font-family: var(--chapter-font-serif);
}

/* Description -------------------------------------------- */
.chapter-block__description {
    margin: 0;
    font-family: var(--atb-font-sans);
    font-size: 13px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #333333;
    max-width: 95%;
}

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

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

.chapter-block__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    padding: 3.5rem 1.5rem 4.5rem;
}

.chapter-block__cta {
    display: inline-block;
    font-family: var(--chapter-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;
}

.chapter-block__cta--outline {
    color: var(--chapter-eyebrow);
    border: 1.5px solid var(--chapter-eyebrow);
    background: transparent;
}

.chapter-block__cta--outline:hover {
    background: var(--chapter-text);
    color: #ffffff;
}

.chapter-block__cta--filled {
    color: #ffffff;
    background: var(--chapter-eyebrow);
    border: 1.5px solid var(--chapter-eyebrow);
}

.chapter-block__cta--filled:hover {
    background: #163828;
    border-color: #163828;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 1541px) {
    .chapter-block__title,
    .chapter-block__title p,
    .chapter-block__title h1,
    .chapter-block__title h2,
    .chapter-block__title h3 {
        font-size: 68px;
    }
}

@media (max-width: 1540px) {
    .chapter-block__title,
    .chapter-block__title p,
    .chapter-block__title h1,
    .chapter-block__title h2,
    .chapter-block__title h3 {
        font-size: 65px;
    }
}

@media (max-width: 1024px) {
    .chapter-block__title,
    .chapter-block__title p,
    .chapter-block__title h1,
    .chapter-block__title h2,
    .chapter-block__title h3 {
        font-size: 48px;
    }

    .chapter-block__eyebrow {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .chapter-block__item,
    .chapter-block__item--reverse {
        display: block;
        min-height: auto;
    }

    .chapter-block__image,
    .chapter-block__content {
        width: 100%;
        max-width: 100%;
    }

    .chapter-block__image {
        height: 300px;
        position: sticky;
        top: var(--ch-sticky-top, 70px);
        z-index: 1;
    }

    .chapter-block__content,
    .chapter-block__item--reverse .chapter-block__content {
        padding: 3rem 2.5rem;
    }

    .chapter-block__title,
    .chapter-block__title p,
    .chapter-block__title h1,
    .chapter-block__title h2,
    .chapter-block__title h3 {
        font-size: 40px;
    }
}

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

    .chapter-block__item .chapter-block__image {
        border-bottom-left-radius: 75px;
    }

    .chapter-block__item--reverse .chapter-block__image {
        border-top-right-radius: 75px;
    }

    .chapter-block__content,
    .chapter-block__item--reverse .chapter-block__content {
        padding: 2.5rem 1.5rem;
    }

    .chapter-block__eyebrow {
        font-size: 16px;
    }

    .chapter-block__title,
    .chapter-block__title p,
    .chapter-block__title h1,
    .chapter-block__title h2,
    .chapter-block__title h3 {
        font-size: 30px;
    }

    .chapter-block__description {
        font-size: 13px;
    }

    .chapter-block__ctas {
        flex-direction: column;
        padding: 2.5rem 1.5rem 3rem;
    }

    .chapter-block__cta {
        width: 100%;
        max-width: 320px;
    }
}

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

    .chapter-block__item--reverse .chapter-block__content {
        padding-left: 5rem;
        padding-right: max(4rem, calc((100vw - 1250px) / 2));
    }
}

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

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

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

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