/* =========================================================
   CORBETT ULTIMUS
   WHY INVEST / LIFESTYLE
========================================================= */

.cu-why-invest {
    position: relative;

    width: 100%;

    background: #003b33;
    color: #f4f0e6;

    overflow: hidden;
}


/* =========================================================
   SUBTLE BACKGROUND
========================================================= */

.cu-why-invest::before {
    content: "";

    position: absolute;
    top: 0;
    right: -15%;

    width: 55%;
    height: 60%;

    background:
        radial-gradient(
            circle,
            rgba(200, 170, 85, .06),
            transparent 65%
        );

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.cu-why-invest__container {
    position: relative;
    z-index: 1;

    padding-top: 100px;
    padding-bottom: 105px;
}


/* =========================================================
   HEADER
========================================================= */

.cu-why-invest__header {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(260px, .65fr);

    column-gap: 100px;

    align-items: end;

    margin-bottom: 65px;
}


/* =========================================================
   EYEBROW
========================================================= */

.cu-section-eyebrow--light {
    grid-column: 1 / -1;

    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-bottom: 24px;

    color: rgba(244, 240, 230, .62);
}

.cu-section-eyebrow--light::before {
    content: "";

    width: 24px;
    height: 1px;

    margin-right: 10px;

    background: #c8aa55;
}


/* =========================================================
   TITLE
========================================================= */

.cu-why-invest__title {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(40px, 4.7vw, 68px);
    font-weight: 400;

    line-height: .96;
    letter-spacing: -.045em;

    color: #f4f0e6;
}

.cu-why-invest__title em {
    font-style: normal;

    color: #c8aa55;
}


/* =========================================================
   INTRO
========================================================= */

.cu-why-invest__intro {
    max-width: 380px;

    margin: 0;

    padding-bottom: 4px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 12px;
    line-height: 1.75;

    color: rgba(244, 240, 230, .63);
}


/* =========================================================
   LIST
========================================================= */

.cu-why-invest__list {
    width: 100%;

    border-top: 1px solid rgba(244, 240, 230, .18);
}


/* =========================================================
   ITEM
========================================================= */

.cu-invest-item {
    position: relative;

    border-bottom: 1px solid rgba(244, 240, 230, .13);
}


/* =========================================================
   TRIGGER
========================================================= */

.cu-invest-item__trigger {
    position: relative;

    display: grid;

    grid-template-columns: 70px minmax(0, 1fr) 45px;

    align-items: center;

    width: 100%;

    min-height: 72px;

    padding: 15px 0;

    border: 0;

    background: transparent;

    color: inherit;

    font: inherit;

    text-align: left;

    cursor: pointer;
}


/* =========================================================
   NUMBER
========================================================= */

.cu-invest-item__number {
    align-self: start;

    padding-top: 4px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1;

    color: #c8aa55;

    transition: opacity .3s ease;
}


/* =========================================================
   CONTENT
========================================================= */

.cu-invest-item__content {
    display: flex;
    flex-direction: column;

    gap: 0;

    padding-right: 35px;
}


/* =========================================================
   TITLE
========================================================= */

.cu-invest-item__title {
    display: block;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 18px;
    font-weight: 400;

    line-height: 1.25;

    color: rgba(244, 240, 230, .88);

    transition:
        color .35s ease,
        transform .35s ease;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.cu-invest-item__description {
    display: block;

    max-width: 680px;

    max-height: 0;

    margin-top: 0;

    overflow: hidden;

    font-family: "Space Grotesk", sans-serif;

    font-size: 10px;
    line-height: 1.7;

    color: rgba(244, 240, 230, .52);

    opacity: 0;

    transition:
        max-height .5s cubic-bezier(.16, 1, .3, 1),
        margin-top .4s ease,
        opacity .35s ease;
}


/* =========================================================
   ARROW
========================================================= */

.cu-invest-item__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border: 1px solid rgba(200, 170, 85, .45);
    border-radius: 50%;

    font-family: "Space Grotesk", sans-serif;

    font-size: 12px;

    color: #c8aa55;

    transition:
        transform .4s cubic-bezier(.16, 1, .3, 1),
        background-color .35s ease,
        color .35s ease;
}


/* =========================================================
   ACTIVE
========================================================= */

.cu-invest-item.is-active {
    background:
        linear-gradient(
            90deg,
            rgba(200, 170, 85, .035),
            transparent 75%
        );
}


.cu-invest-item.is-active .cu-invest-item__title {
    color: #f4f0e6;

    transform: translateX(4px);
}


.cu-invest-item.is-active .cu-invest-item__description {
    max-height: 100px;

    margin-top: 9px;

    opacity: 1;
}


.cu-invest-item.is-active .cu-invest-item__arrow {
    transform: rotate(45deg);

    background: #c8aa55;
    color: #003b33;
}


/* =========================================================
   HOVER
========================================================= */

.cu-invest-item__trigger:hover .cu-invest-item__title {
    color: #f4f0e6;
}

.cu-invest-item__trigger:hover .cu-invest-item__arrow {
    transform: translateX(4px);
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.cu-why-invest .cu-reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity .9s cubic-bezier(.16, 1, .3, 1),
        transform .9s cubic-bezier(.16, 1, .3, 1);
}

.cu-why-invest .cu-reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .cu-why-invest__container {
        padding-top: 75px;
        padding-bottom: 80px;
    }

    .cu-why-invest__header {
        grid-template-columns: 1fr;

        gap: 25px;

        margin-bottom: 48px;
    }

    .cu-why-invest__intro {
        max-width: 600px;
    }

    .cu-invest-item__trigger {
        grid-template-columns: 55px minmax(0, 1fr) 40px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .cu-why-invest__container {
        padding-top: 62px;
        padding-bottom: 65px;
    }

    .cu-section-eyebrow--light {
        margin-bottom: 18px;
    }

    .cu-why-invest__title {
        font-size: clamp(37px, 10.5vw, 53px);
    }

    .cu-why-invest__intro {
        font-size: 11px;
        line-height: 1.7;
    }

    .cu-why-invest__header {
        gap: 22px;

        margin-bottom: 38px;
    }

    .cu-invest-item__trigger {
        grid-template-columns: 38px minmax(0, 1fr) 30px;

        min-height: 66px;

        padding: 14px 0;
    }

    .cu-invest-item__number {
        font-size: 12px;
    }

    .cu-invest-item__content {
        padding-right: 15px;
    }

    .cu-invest-item__title {
        font-size: 15px;

        line-height: 1.3;
    }

    .cu-invest-item__description {
        font-size: 9px;

        line-height: 1.65;
    }

    .cu-invest-item__arrow {
        width: 25px;
        height: 25px;

        font-size: 10px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cu-why-invest .cu-reveal {
        opacity: 1;
        transform: none;

        transition: none;
    }

    .cu-invest-item__title,
    .cu-invest-item__description,
    .cu-invest-item__arrow {
        transition: none;
    }

}