/* ============================================
   CTA BAND STYLES
   Reusable call-to-action section with
   animated title and button
   ============================================ */

/* Section spacing - matches index page vertical rhythm */
main>section.cta-band {
    background: #000;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    main>section.cta-band {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1024px) {
    main>section.cta-band {
        padding-top: 10rem;
        padding-bottom: 10rem;
    }
}

/* Mobile: Add extra padding for better spacing */
@media (max-width: 768px) {
    main>section.cta-band {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Base section styles */
.cta-band {
    background: #000;
}

/* Inner container with left alignment */
.cta-band__inner {
    max-width: 1200px;
    margin: 0 auto 0 -180px;
}

/* Mobile: left align everything and add padding */
@media (max-width: 768px) {
    .cta-band__inner {
        margin: 0 auto;
        text-align: left;
        padding: 0 1.5rem;
    }
}

/* Title styling */
.cta-band__title {
    color: #fff;
    text-align: left;
    font-weight: 800;
    line-height: 1.02;
    margin: 0 0 20px;
    font-size: clamp(36px, 6.5vw, 96px);
}

/* Mobile: left align title text with larger size */
@media (max-width: 768px) {
    .cta-band__title {
        text-align: left;
        font-size: clamp(48px, 12vw, 64px);
        margin: 0 0 40px;
        line-height: 1.1;
    }

    .cta-band__title .mobile-only {
        display: inline;
    }

    .cta-band__title .desktop-only {
        display: none;
    }
}

/* Desktop: hide mobile-only breaks, show desktop-only breaks */
@media (min-width: 769px) {
    .cta-band__title .mobile-only {
        display: none;
    }

    .cta-band__title .desktop-only {
        display: inline;
    }
}

/* Button styling */
.cta-band__btn {
    display: inline-block;
    margin: 0;
    background: #FFFFFF;
    color: #1760FF;
    border-radius: 9999px;
    padding: 12px 28px;
    text-decoration: none;
    border: none;
    outline: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease, color 0.22s ease;
    cursor: pointer;
}

.cta-band__btn:hover {
    background: #1760FF;
    color: #FFFFFF;
}

.cta-button-wrapper {
    text-align: left;
}

/* Mobile: left align button */
@media (max-width: 768px) {
    .cta-button-wrapper {
        text-align: left;
    }

    .cta-band__btn {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* ============================================
   ANIMATION STYLES
   ============================================ */

/* Title animation setup */
.cta-band__title.split-ready {
    overflow: hidden;
}

.cta-band__title.split-ready .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-band__title.split-ready .line.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Button animation */
.cta-button-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button-wrapper.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ─── PRE-FOOTER CTA BAND ─── */
.cs-prefooter {
    background-color: #1760FF;
    padding: 6rem 2rem;
}

.cs-prefooter__inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cs-prefooter__title {
    font-family: 'neue-haas-grotesk-display', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cs-prefooter__sub {
    font-family: 'neue-haas-grotesk-display', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.cs-prefooter__btn {
    font-family: 'neue-haas-grotesk-display', sans-serif;
    background-color: #fff !important;
    color: #1760FF !important;
    border-radius: 9999px;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent !important;
    transition: all 0.3s ease, color 0.22s ease, border-color 0.22s ease;
}

.cs-prefooter__btn:hover {
    background-color: #1760FF !important;
    color: #fff !important;
    border-color: #fff !important;
}

@media (max-width: 767px) {
    .cs-prefooter {
        padding: 4rem 1.25rem;
    }

    .cs-prefooter__title {
        font-size: 2rem;
    }

    .cs-prefooter__sub {
        font-size: 1rem;
    }

    .cs-prefooter__btn {
        width: 100%;
        max-width: 360px;
        text-align: center;
        box-sizing: border-box;
    }
}