/*
 * Utilities & Floating Elements
 */

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold-500); }
.text-muted { color: var(--gray-600); }
.text-white { color: var(--white); }

/* Font Weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Floating Contact Buttons */
.float-contact {
    position: fixed;
    bottom: var(--space-xl);
    left: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    z-index: var(--z-fixed);
}

.float-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-spring);
}

.float-contact .btn-phone {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    animation: phone-ring 2s ease infinite;
    height: 50px;
    padding: 0 20px 0 16px;
    border-radius: 25px;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
}

.float-contact .btn-phone i {
    font-size: 20px;
}

.float-contact .btn-phone .phone-number {
    white-space: nowrap;
}

.float-contact .btn-zalo {
    background: linear-gradient(135deg, #0068ff 0%, #004ecc 100%);
    font-family: var(--font-heading);
    font-weight: 700;
    height: 50px;
    padding: 0 20px 0 14px;
    border-radius: 25px;
    gap: 8px;
    font-size: 15px;
}

.float-contact .btn-zalo .zalo-icon {
    width: 28px;
    height: 28px;
    background: #fff;
    color: #0068ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.float-contact .btn-zalo .zalo-text {
    white-space: nowrap;
}

.float-contact .btn-messenger {
    background: linear-gradient(135deg, #00c6ff 0%, #0078ff 50%, #a259ff 100%);
    font-family: var(--font-heading);
    font-weight: 700;
    height: 50px;
    padding: 0 20px 0 16px;
    border-radius: 25px;
    gap: 10px;
    font-size: 15px;
}

.float-contact .btn-messenger i {
    font-size: 22px;
}

.float-contact .btn-messenger .messenger-text {
    white-space: nowrap;
}

.float-contact a:hover {
    transform: scale(1.05);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold-500);
    transform: translateY(-4px);
}
