/**
 * WhatsApp CTA Bar - Portfolio Single Pages
 * Fixed bottom bar with call to action
 */

.citysi-whatsapp-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: slideUpBar 0.5s ease-out;
}

@keyframes slideUpBar {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.citysi-whatsapp-cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.citysi-whatsapp-cta-icon {
    font-size: 32px;
    color: #ffffff;
    flex-shrink: 0;
}

.citysi-whatsapp-cta-text {
    flex: 1;
    color: #ffffff;
}

.citysi-whatsapp-cta-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #ffffff;
    line-height: 1.2;
}

.citysi-whatsapp-cta-subtitle {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.citysi-whatsapp-cta-button {
    background: #ffffff;
    color: #25D366;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.citysi-whatsapp-cta-button:hover {
    background: #f0f0f0;
    color: #128C7E;
    transform: scale(1.05);
}

.citysi-whatsapp-cta-button i {
    font-size: 20px;
}

/* Close button removed - bar always visible */

/* Add bottom padding to body to prevent content being hidden */
body.has-whatsapp-cta {
    padding-bottom: 90px;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .citysi-whatsapp-cta-bar {
        padding: 15px 15px;
    }

    .citysi-whatsapp-cta-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .citysi-whatsapp-cta-icon {
        font-size: 28px;
    }

    .citysi-whatsapp-cta-title {
        font-size: 16px;
    }

    .citysi-whatsapp-cta-subtitle {
        font-size: 13px;
    }

    .citysi-whatsapp-cta-button {
        padding: 12px 28px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    body.has-whatsapp-cta {
        padding-bottom: 140px;
    }
}

@media only screen and (max-width: 480px) {
    .citysi-whatsapp-cta-title {
        font-size: 15px;
    }

    .citysi-whatsapp-cta-subtitle {
        font-size: 12px;
    }

    .citysi-whatsapp-cta-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Adjust for mobile devices with notch/safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .citysi-whatsapp-cta-bar {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }
}

/* Print: hide the bar */
@media print {
    .citysi-whatsapp-cta-bar {
        display: none !important;
    }
}
