/*
 * Cụm nút liên hệ nhanh, cố định ở cạnh trái màn hình.
 * Gọi điện · Zalo · Messenger · Tư vấn
 */

.vgh-bar {
    position: fixed;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vgh-bar__btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s ease;
    -webkit-tap-highlight-color: transparent;
}

.vgh-bar__btn:hover,
.vgh-bar__btn:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
    color: #fff;
}

.vgh-bar__btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

/* Màu riêng từng kênh */
.vgh-bar__btn--phone { background: #e33529; }
.vgh-bar__btn--zalo  { background: #0068ff; }
.vgh-bar__btn--mess  { background: #0084ff; }
.vgh-bar__btn--form  { background: #1c2b46; }

/* Chữ "zalo" thay cho biểu tượng */
.vgh-bar__zalo-text {
    font-family: var(--dragon-font, "Be Vietnam Pro", sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
}

/* Vòng sóng lan toả ở nút gọi, gợi ý bấm được */
.vgh-bar__btn--phone::before,
.vgh-bar__btn--phone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(227, 53, 41, .55);
    animation: vgh-song 2.4s ease-out infinite;
    pointer-events: none;
}

.vgh-bar__btn--phone::after { animation-delay: 1.2s; }

@keyframes vgh-song {
    0%   { transform: scale(1);   opacity: .85; }
    100% { transform: scale(1.85); opacity: 0; }
}

/* Nhãn hiện khi rê chuột */
.vgh-bar__nhan {
    position: absolute;
    left: 62px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    white-space: nowrap;
    background: #221c16;
    color: #fff;
    font-family: var(--dragon-font, "Be Vietnam Pro", sans-serif);
    font-size: 13px;
    line-height: 1;
    padding: 9px 13px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
}

.vgh-bar__nhan::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #221c16;
}

.vgh-bar__btn:hover .vgh-bar__nhan,
.vgh-bar__btn:focus-visible .vgh-bar__nhan {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* --------------------------------------------------------------- Màn hẹp
   Theme đã có sẵn thanh liên hệ cố định ở đáy trên mobile — đẩy cụm nút này
   lên trên nó để không đè nhau, và thu nhỏ lại. */
@media (max-width: 849px) {
    .vgh-bar {
        left: 10px;
        top: auto;
        bottom: 84px;
        transform: none;
        gap: 10px;
    }

    .vgh-bar__btn { width: 44px; height: 44px; }
    .vgh-bar__btn svg { width: 21px; height: 21px; }
    .vgh-bar__zalo-text { font-size: 11.5px; }
    .vgh-bar__nhan { display: none; }
}

/* Người dùng tắt hiệu ứng chuyển động thì bỏ vòng sóng. */
@media (prefers-reduced-motion: reduce) {
    .vgh-bar__btn--phone::before,
    .vgh-bar__btn--phone::after { animation: none; opacity: 0; }
    .vgh-bar__btn { transition: none; }
}

@media print {
    .vgh-bar { display: none; }
}
