/*****************************************/
/************* UNIVERSAL CTA *************/
/*****************************************/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #site-cta {
        width: 100%;
        min-height: min(50rem, 100svh);
        padding: var(--sectionPadding);
        background:
            radial-gradient(
                circle at 85% 18%,
                rgba(130, 205, 177, 0.14) 0,
                rgba(130, 205, 177, 0.06) 16rem,
                transparent 30rem
            ),
            linear-gradient(
                135deg,
                var(--primaryDark) 0%,
                #064936 55%,
                #0a5a43 100%
            );
        box-sizing: border-box;
        overflow: hidden;
        display: flex;
        align-items: center;
        position: relative;
        isolation: isolate;
        z-index: 1;
    }

    /*
     * Thin accent line visually separates the CTA
     * from the section above it.
     */
    #site-cta::before {
        content: "";
        width: 100%;
        height: 0.375rem;
        background-color: var(--accentColor);
        position: absolute;
        top: 0;
        left: 0;
        z-index: 5;
    }

    #site-cta .container {
        text-align: center;
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 3;
    }

    #site-cta .content {
        width: 100%;
        max-width: 42rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #site-cta .topper {
        font-size: var(--topperFontSize);
        font-weight: 700;
        line-height: 1.2em;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        margin: 0 0 0.75rem;
        color: #b8f2dc;
        display: block;
    }

    #site-cta .title {
        font-size: clamp(2.4375rem, 9vw, 4rem);
        font-weight: 900;
        line-height: 1.08em;
        text-align: inherit;
        width: 100%;
        margin: 0 0 1.25rem;
        color: var(--textLight);
    }

    #site-cta .text {
        font-size: var(--bodyFontSize);
        line-height: 1.6em;
        text-align: inherit;
        width: 100%;
        max-width: 39rem;
        margin: 0 0 2rem;
        color: var(--bodyTextColorWhite);
        opacity: 0.88;
    }

    #site-cta .button-group {
        width: 100%;
        max-width: 24rem;
        margin-bottom: 1.75rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
    }

    #site-cta .cta-button {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2em;
        text-align: center;
        text-decoration: none;
        min-height: 3.5rem;
        padding: 0.875rem 1.75rem;
        border: 0.125rem solid transparent;
        border-radius: 2rem;
        box-sizing: border-box;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;
    }

    #site-cta .cta-button-primary {
        color: #fff;
        background-color: var(--accentColor);
        border-color: var(--accentColor);
    }

    #site-cta .cta-button-call {
        color: var(--primaryDark);
        background-color: #fff;
        border-color: #fff;
    }

    #site-cta .contact-row {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.375rem;
    }

    #site-cta .contact-label {
        font-size: 0.8125rem;
        font-weight: 700;
        line-height: 1.2em;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #b8f2dc;
    }

    #site-cta .email-link {
        font-size: clamp(0.75rem, 3.7vw, 1rem);
        font-weight: 600;
        line-height: 1.5em;
        color: var(--textLight);
        overflow-wrap: anywhere;
        text-decoration-thickness: 0.0625rem;
        text-underline-offset: 0.3rem;
    }

    /************ BACKGROUND ART ************/

    #site-cta .cta-art {
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
    }

    /*
     * Faint sun in the upper-right area.
     */
    #site-cta .cta-sun {
        width: 12rem;
        height: 12rem;
        border: 0.0625rem solid rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        display: block;
        position: absolute;
        top: 8%;
        right: -6rem;
    }

    #site-cta .cta-sun::before,
    #site-cta .cta-sun::after {
        content: "";
        border: 0.0625rem solid rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #site-cta .cta-sun::before {
        width: 145%;
        height: 145%;
    }

    #site-cta .cta-sun::after {
        width: 195%;
        height: 195%;
    }

    /*
     * Large curved horizon lines at the bottom.
     */
    #site-cta .cta-horizon {
        width: 130%;
        border: 0.0625rem solid rgba(255, 255, 255, 0.07);
        border-radius: 50% 50% 0 0;
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    #site-cta .cta-horizon-one {
        height: 18rem;
        bottom: -14rem;
    }

    #site-cta .cta-horizon-two {
        height: 23rem;
        bottom: -18rem;
        opacity: 0.75;
    }

    #site-cta .cta-horizon-three {
        height: 29rem;
        bottom: -23rem;
        opacity: 0.5;
    }

    /*
     * Minimal distant birds. Each bird is created with
     * two bordered semicircles rather than an image.
     */
    #site-cta .cta-bird {
        width: 2rem;
        height: 0.75rem;
        display: block;
        position: absolute;
        opacity: 0.16;
    }

    #site-cta .cta-bird::before,
    #site-cta .cta-bird::after {
        content: "";
        width: 1rem;
        height: 0.5rem;
        border-top: 0.125rem solid #fff;
        border-radius: 50% 50% 0 0;
        position: absolute;
        top: 0;
    }

    #site-cta .cta-bird::before {
        left: 0.0625rem;
        transform: rotate(12deg);
        transform-origin: right center;
    }

    #site-cta .cta-bird::after {
        right: 0.0625rem;
        transform: rotate(-12deg);
        transform-origin: left center;
    }

    #site-cta .cta-bird-one {
        top: 17%;
        right: 13%;
    }

    #site-cta .cta-bird-two {
        width: 1.5rem;
        top: 23%;
        right: 25%;
        transform: scale(0.75);
    }

    #site-cta .cta-bird-three {
        display: none;
    }

    #site-cta .cta-watermark {
        display: none;
    }

    #site-cta .cta-side {
        display: none;
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #site-cta {
        min-height: min(48rem, 85svh);
    }

    #site-cta .content {
        max-width: 45rem;
    }

    #site-cta .title {
        max-width: 43rem;
    }

    #site-cta .button-group {
        width: auto;
        max-width: none;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    #site-cta .cta-button {
        min-width: 13rem;
    }

    /*
     * Phone CTA is mobile-only.
     */
    #site-cta .cta-button-call {
        display: none;
    }

    #site-cta .email-link {
        font-size: 1rem;
        overflow-wrap: normal;
    }

    #site-cta .cta-sun {
        width: 18rem;
        height: 18rem;
        top: 8%;
        right: -5rem;
    }

    #site-cta .cta-horizon-one {
        height: 22rem;
        bottom: -17rem;
    }

    #site-cta .cta-horizon-two {
        height: 29rem;
        bottom: -23rem;
    }

    #site-cta .cta-horizon-three {
        height: 36rem;
        bottom: -29rem;
    }

    #site-cta .cta-bird-one {
        top: 20%;
        right: 18%;
    }

    #site-cta .cta-bird-two {
        top: 26%;
        right: 28%;
    }

    #site-cta .cta-bird-three {
        display: block;
        top: 16%;
        right: 33%;
        transform: scale(0.55);
    }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #site-cta {
        min-height: 40rem;
        padding-top: 5rem;
        padding-bottom: 5rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    #site-cta .container {
        text-align: left;
        justify-content: space-between;
        gap: 5rem;
    }

    #site-cta .content {
        max-width: 43rem;
        align-items: flex-start;
    }

    #site-cta .title {
        font-size: clamp(3.25rem, 4.5vw, 4.75rem);
        max-width: 45rem;
    }

    #site-cta .text {
        max-width: 38rem;
    }

    #site-cta .button-group {
        justify-content: flex-start;
    }

    #site-cta .contact-row {
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    #site-cta .contact-label {
        padding-right: 0.75rem;
        border-right: 0.0625rem solid rgba(255, 255, 255, 0.3);
    }

    #site-cta .cta-side {
        width: 19rem;
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        z-index: 3;
    }

    #site-cta .side-label {
        font-size: 0.75rem;
        font-weight: 700;
        line-height: 1.2em;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: #b8f2dc;
    }

    #site-cta .side-line {
        width: 4rem;
        height: 0.25rem;
        margin: 1.25rem 0;
        background-color: var(--accentColor);
        display: block;
    }

    #site-cta .side-text {
        font-size: clamp(1.5rem, 2.4vw, 2.25rem);
        font-weight: 800;
        line-height: 1.35em;
        color: var(--textLight);
    }

    #site-cta .cta-watermark {
        font-size: clamp(16rem, 27vw, 28rem);
        font-weight: 900;
        line-height: 0.75em;
        letter-spacing: -0.08em;
        color: rgba(255, 255, 255, 0.025);
        display: block;
        position: absolute;
        right: -1rem;
        bottom: -1rem;
        z-index: 0;
        user-select: none;
    }

    #site-cta .cta-sun {
        width: 24rem;
        height: 24rem;
        top: -4rem;
        right: 4%;
    }

    #site-cta .cta-bird-one {
        top: 23%;
        right: 20%;
    }

    #site-cta .cta-bird-two {
        top: 29%;
        right: 28%;
    }

    #site-cta .cta-bird-three {
        top: 19%;
        right: 34%;
    }

    #site-cta .cta-horizon {
        width: 115%;
    }
}

/* Large Desktop - 1440px */
@media only screen and (min-width: 90rem) {
    #site-cta .container {
        gap: 8rem;
    }

    #site-cta .cta-side {
        width: 23rem;
    }
}

/* Hover-capable devices only */
@media (hover: hover) and (pointer: fine) {
    #site-cta .cta-button-primary {
        transition:
            color 0.3s,
            background-color 0.3s,
            border-color 0.3s;
    }

    #site-cta .cta-button-primary:hover {
        color: var(--primaryDark);
        background-color: #fff;
        border-color: #fff;
    }

    #site-cta .email-link {
        transition: color 0.3s;
    }

    #site-cta .email-link:hover {
        color: #b8f2dc;
    }
}

/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #site-cta {
        background:
            radial-gradient(
                circle at 85% 18%,
                rgba(130, 205, 177, 0.1) 0,
                rgba(130, 205, 177, 0.03) 16rem,
                transparent 30rem
            ),
            linear-gradient(
                135deg,
                #031a13 0%,
                #052b21 55%,
                #073629 100%
            );
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #site-cta .cta-button-primary,
    #site-cta .email-link {
        transition: none;
    }
}