/* Sticky CTA — mobile/tablet conversion bar (gc-sticky-cta prefix)
   Visible on <=1199px to complement scroll-spy.js (>=1200px).
   Fades up from bottom once user has scrolled past the hero. */

.gc-sticky-cta,
.gc-sticky-cta * {
    box-sizing: border-box;
}

.gc-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 253, 245, 0.94);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(calc(100% + 12px));
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1199px) {
    .gc-sticky-cta { display: block; }
}

.gc-sticky-cta[data-visible="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.gc-sticky-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 13px 20px;
    background: #1B4332; /* var(--forest) — GrantCompass brand forest */
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12), 0 4px 12px rgba(27, 67, 50, 0.28);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.gc-sticky-cta__btn:hover {
    background: #143728; /* var(--forest-dk) */
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.14), 0 6px 16px rgba(20, 55, 40, 0.32);
}

.gc-sticky-cta__btn:focus-visible {
    outline: 3px solid #C4532B;
    outline-offset: 2px;
}

.gc-sticky-cta__btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12), 0 2px 6px rgba(20, 55, 40, 0.22);
}

.gc-sticky-cta__arrow {
    font-size: 1.15em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.gc-sticky-cta__btn:hover .gc-sticky-cta__arrow {
    transform: translateX(3px);
}

/* Prevent last section / footer content from being obscured */
@media (max-width: 1199px) {
    body.has-sticky-cta {
        padding-bottom: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gc-sticky-cta {
        transition: opacity 0.15s ease;
    }
    .gc-sticky-cta[data-visible="true"] {
        transform: translateY(0);
    }
    .gc-sticky-cta__arrow,
    .gc-sticky-cta__btn {
        transition: none;
    }
}

/* Hide when printing */
@media print {
    .gc-sticky-cta { display: none !important; }
}
