/* ============================================================
   VHMOBILE - CSS dùng chung cho nginx.html và dichvu.html
   Chỉ chứa các thành phần thật sự dùng ở cả 2 trang để tránh lệch.
   ============================================================ */

:root {
    --vh-blue: #3b82f6;
    --vh-blue-dark: #1d4ed8;
    --vh-navy: #1e3a8a;
    --vh-surface: rgba(17, 24, 39, 0.72);
    --vh-border: rgba(148, 163, 184, 0.14);
    --vh-focus: #38bdf8;
}

/* Focus rõ ràng cho bàn phím, không ảnh hưởng chuột */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--vh-focus);
    outline-offset: 3px;
}

/* ===================== NÚT LIÊN HỆ NỔI ===================== */
.floating-contact {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(2, 54px);
    gap: 10px;
    z-index: 9999;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.float-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
    animation: vh-ripple 2.2s infinite;
    pointer-events: none;
}

/* Ripple bằng transform/opacity (GPU) thay vì animate box-shadow */
@keyframes vh-ripple {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

.float-btn svg {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.float-btn .zalo-text {
    position: relative;
    z-index: 1;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: -0.3px;
}

.btn-zalo { background: linear-gradient(135deg, #0088ff, #005ce6); }
.btn-call { background: linear-gradient(135deg, #22c55e, #15803d); }
.btn-fb { background: linear-gradient(135deg, #1877f2, #0c5dc7); }
.btn-tele { background: linear-gradient(135deg, #229ed9, #1c88ba); }

/* Chữ logo: mặc định vàng, có gradient nhiều màu ở trình duyệt hỗ trợ */
.logo-text {
    position: relative;
    z-index: 3;
    color: #fde047;
    text-shadow: 0 2px 3px rgba(2, 6, 23, 0.65), 0 0 16px rgba(253, 224, 71, 0.35);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .logo-text {
        background: linear-gradient(100deg,
            #a5f3fc 0%,
            #818cf8 55%,
            #c084fc 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        text-shadow: none;
        -webkit-text-stroke: 1px rgba(2, 6, 23, 0.45);
        filter: drop-shadow(0 1px 1px rgba(2, 6, 23, 0.8)) drop-shadow(0 0 12px rgba(125, 211, 252, 0.28));
    }
}

@media (max-width: 480px) {
    .floating-contact {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        grid-template-columns: repeat(2, 50px);
        gap: 8px;
    }
    .float-btn { width: 50px; height: 50px; }
}
