/**
 * TCCC Site Hub — CTA System (Mobile Sticky + Desktop Floating)
 *
 * Extracted from tccc-site-hub.php SECTION 3.1 inline <style> on 2026-05-07 (Phase A4 mechanical extract).
 * HTML output still PHP-driven (variable interpolation: $current_phone, $line_url, $booking_url).
 *
 * Phase C TODO: token swap when child theme tokens.css is enqueued
 *   - background #1a1a2e → var(--cta-bar-bg)
 *   - phone red #c0392b / #a93226 → var(--cta-phone) / hover
 *   - line green #048a3d / #037832 → var(--cta-line) / hover
 *   - booking blue #1a6fb5 / #155d99 → var(--cta-booking) / hover
 *   - text #fff → var(--cta-text)
 *
 * @since 1.3.1 (extracted from inline)
 */

.tccc-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a2e;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: transform .3s ease;
}

.tccc-sticky-cta.tccc-hidden {
    transform: translateY(100%);
}

.tccc-sticky-cta__inner {
    display: flex;
    align-items: stretch;
    height: 56px;
}

.tccc-sticky-cta__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px 4px;
    position: relative;
    transition: background .2s ease;
}

.tccc-sticky-cta__btn:hover,
.tccc-sticky-cta__btn:active {
    background: rgba(255, 255, 255, .1);
}

.tccc-sticky-cta__btn--phone {
    background: #c0392b;
}

.tccc-sticky-cta__btn--phone:hover {
    background: #a93226;
}

.tccc-sticky-cta__btn--line {
    background: #048a3d;
}

.tccc-sticky-cta__btn--line:hover {
    background: #037832;
}

.tccc-sticky-cta__btn--booking {
    background: #1a6fb5;
}

.tccc-sticky-cta__btn--booking:hover {
    background: #155d99;
}

.tccc-sticky-cta__icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.tccc-sticky-cta__label {
    font-size: 11px;
    white-space: nowrap;
}

.tccc-sticky-cta__close,
.tccc-float-cta__close {
    position: absolute;
    top: -28px;
    right: 8px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 100000;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .tccc-sticky-cta {
        display: none !important;
    }
}

.tccc-float-cta {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99998;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.tccc-float-cta__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    border: none;
}

.tccc-float-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}

.tccc-float-cta__btn--phone {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.tccc-float-cta__btn--line {
    background: linear-gradient(135deg, #048a3d, #037832);
}

.tccc-float-cta__btn--booking {
    background: linear-gradient(135deg, #1a6fb5, #155d99);
}

.tccc-float-cta__icon {
    font-size: 18px;
}

.tccc-float-cta__label-text {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width .3s ease, opacity .3s ease;
    opacity: 0;
}

.tccc-float-cta:hover .tccc-float-cta__label-text,
.tccc-float-cta__btn:hover .tccc-float-cta__label-text {
    max-width: 200px;
    opacity: 1;
}

.tccc-float-cta__close {
    position: static;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    border: none;
    align-self: flex-end;
}

.tccc-float-cta__close:hover {
    background: rgba(0, 0, 0, .7);
}

@media (max-width: 768px) {
    .tccc-float-cta {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.tccc-sticky-active {
        padding-bottom: 56px;
    }
    body.tccc-sticky-active #footer {
        margin-bottom: 56px;
    }
}
