/* Home page closing call to action (home.html, .home-cta). Same look as the services page
   closing band (services-cta.css): the brand blue gradient, drifting lights and a white
   button. It differs in layout: centred copy with a large faint emblem behind it. */
.home-cta {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    background: linear-gradient(160deg, var(--kd-brand), var(--kd-brand-darkest));
    color: #FFFFFF;
    isolation: isolate;
}

@media (min-width: 1024px) {
    .home-cta {
        padding: 7rem 0;
    }
}

/* Two soft lights drifting slowly behind the content */
.home-cta::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: -2;
    background:
        radial-gradient(26% 26% at 30% 35%, rgba(16, 185, 129, 0.3), transparent 70%),
        radial-gradient(26% 26% at 70% 65%, rgba(14, 165, 233, 0.24), transparent 70%);
    animation: home-cta-drift 28s linear infinite reverse;
}

@keyframes home-cta-drift {
    to {
        transform: rotate(360deg);
    }
}

.home-cta__mark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: min(32rem, 90vw);
    height: auto;
    opacity: 0.05;
    transform: translate(-50%, -58%);
    pointer-events: none;
}

.home-cta__inner {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .home-cta__inner {
        padding: 0 1.5rem;
    }
}

.home-cta__copy {
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.home-cta__kicker {
    margin: 0 0 1rem;
    color: var(--kd-mint-soft);
    font-size: 0.95rem;
    font-weight: 600;
}

.home-cta__title {
    margin: 0;
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.home-cta__title span {
    color: var(--kd-mint-soft);
    white-space: nowrap;
}

.home-cta__text {
    margin: 1.25rem auto 0;
    max-width: 34rem;
    color: var(--kd-on-dark);
    font-size: 1.125rem;
    line-height: 1.65;
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.75rem;
    margin-top: 2.25rem;
}

.home-cta__btn {
    padding: 1rem 1.6rem;
    border-radius: 14px;
    background: #FFFFFF;
    color: var(--kd-brand-darkest);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -16px rgba(0, 0, 0, 0.55);
}

.home-cta__link {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}

.home-cta__link span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.home-cta__link:hover span {
    transform: translateX(4px);
}

.home-cta__btn:focus-visible,
.home-cta__link:focus-visible {
    outline: 2px solid var(--kd-mint-soft);
    outline-offset: 4px;
}

/* Scroll reveal (home-cta.js adds .is-js, then .is-in as the section comes into view) */
.home-cta.is-js [data-home-cta-reveal] {
    opacity: 0;
    transform: translateY(28px);
}

.home-cta.is-js.is-in [data-home-cta-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .home-cta::before {
        animation: none;
    }

    .home-cta.is-js [data-home-cta-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
