/* =============================================================================
   Casa Graziella — Sticky CTA Bar
   Visible on mobile when user scrolls past the hero. Desktop: hidden.
   ============================================================================= */

#cg-sticky-cta {
    display: none; /* shown only on mobile via media query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(62, 42, 34, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: .85rem 1rem;
    /* iPhone home indicator safe area */
    padding-bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

#cg-sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta__inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sticky-cta__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: .8rem;
    line-height: 1.3;
}
.sticky-cta__text strong {
    display: block;
    color: #fff;
    font-size: .9rem;
    font-family: var(--cg-font-heading);
}

.sticky-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--cg-accent-light);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .6rem 1.25rem;
    font-size: .9rem;
    font-weight: 700;
    font-family: var(--cg-font-body);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
}
.sticky-cta__btn:hover { background: var(--cg-accent); color: #fff; }
.sticky-cta__btn svg { width: 14px; height: 14px; }

.sticky-cta__close {
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    cursor: pointer;
    padding: .25rem;
    line-height: 1;
    font-size: 1.2rem;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.sticky-cta__close:hover { color: #fff; }

/* Show only on mobile */
@media (max-width: 768px) {
    #cg-sticky-cta { display: block; }
}

/* Leave room at bottom of page for sticky bar */
@media (max-width: 768px) {
    .site-footer {
        padding-bottom: calc(var(--cg-space-lg) + 4rem);
    }
}
