﻿/* ---------- Reset & base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Segoe UI',Roboto,"Helvetica Neue",Arial,sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    user-select: none;
}

img {
    max-width: 100%;
    display: block
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .2s
}

ul {
    list-style: none
}

:root {
    --brand: #0a4b8c; /* xanh đậm BCONS */
    --brand-dark: #063566;
    --accent: #f39c12; /* cam nhấn */
    --gray-bg: #f5f7fa;
    --gray-border: #e5e7eb;
    --text-muted: #6b7280;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

/* ---------- Top bar ---------- */
.topbar {
    border-bottom: 1px solid #333;
    background: #000;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

    .topbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px
    }

    .topbar .tagline {
        font-style: italic;
        opacity: .9;
    }

    .topbar .info {
        display: flex;
        gap: 18px;
        flex-wrap: wrap;
    }

        .topbar .info a:hover {
            color: #d4af37;
            font-weight: 500;
        }

/* ---------- Header ---------- */
.header {
    background: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px
    }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 50%;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg,var(--brand),var(--brand-dark));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 1px;
    border-radius: 50%;
}

.logo img {
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 18px;
    color: var(--brand);
    font-weight: 800
}

.logo-text p {
    font-size: 12px;
    color: var(--text-muted)
}

nav ul {
    display: flex;
    gap: 5px;
    margin-bottom: 0 !important;
}

nav a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-radius: 4px;
    position: relative;
    color: #fff;
}

    nav a:hover {
        color: #d4af37;
        /*background: var(--gray-bg)*/
    }

nav .has-drop {
    position: relative
}

    nav .has-drop .drop {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 230px;
        background: #000;
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        border-top: 3px solid #d4af37;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: all .2s;
        z-index: 10;
        display: block;
        padding-bottom: 16px;
    }

    nav .has-drop:hover .drop {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0)
    }

nav .drop a {
    padding: 16px 16px 0px 16px;
    font-weight: 500;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-border);
}

    nav .drop a:last-child {
        border-bottom: none
    }

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
}

/* ---------- Footer ---------- */
footer {
    background: #000;
    color: #ccc;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
}

.footer-col p, .footer-col li {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 6px
}

.footer-col a:hover {
    color: #d4af37;
}

.footer-col .company {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 15px
}

    .socials a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #333;
        display: grid;
        place-items: center;
        font-size: 14px;
        transition: all .2s;
    }

        .socials a:hover {
            background: #d4af37;
            color: #fff;
            transform: translateY(-2px)
        }

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #888;
}

/* ---------- Float buttons ---------- */
/*.floating-wrap {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 999999;*/ /* 👈 cao hơn header/slider */
/*display: flex;
    flex-direction: column;
    align-items: flex-end;*/ /* 👈 đảm bảo bung menu đúng hướng */
/*transition: all .4s ease;
}*/

.floating-wrap {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 👈 quan trọng */
}

    .floating-wrap.hide {
        transform: translateY(100px); /* trượt xuống */
        opacity: 0;
        pointer-events: none;
    }

/* MAIN BUTTON */
.float-main {
    width: 60px;
    height: 60px;
    background: #d4af37;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    animation: pulse 2s infinite;
}

/* ITEMS */
.float-items {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 10px; /* 👈 nằm phía trên nút main */
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all .3s ease;
}

    .float-items.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

.float-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: .3s;
}

    .float-item:hover {
        transform: translateX(-5px);
    }

    /* colors */
    .float-item.call {
        background: #28a745;
    }

    .float-item.zalo {
        background: #0084ff;
    }

    .float-item.messenger {
        background: #006aff;
    }

    .float-item.form {
        background: #d4af37;
        color: #000;
    }

/* popup */
.popup-form {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

    .popup-form.active {
        display: flex;
    }

.form-box {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    position: relative;
}

    .form-box h3 {
        margin-bottom: 15px;
        color: #d4af37;
    }

    .form-box input, textarea {
        width: 100%;
        margin-bottom: 10px;
        padding: 10px;
        border: none;
        border-radius: 6px;
    }

    .form-box button {
        width: 100%;
        padding: 10px;
        background: #d4af37;
        border: none;
        cursor: pointer;
        font-weight: bold;
    }

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
}

.ping-text {
    position: absolute;
    right: 70px;
    background: #d4af37;
    color: #000;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
}

/* pulse */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212,175,55,0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212,175,55,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212,175,55,0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width:900px) {
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        display: none;
    }

        nav ul.open {
            display: flex;
            background: #000;
        }

    nav a {
        padding: 12px 20px;
        border-bottom: 1px solid var(--gray-border);
    }

    nav .has-drop .drop {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        display: none;
    }

    nav .has-drop:hover .drop {
        display: block;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px
    }
}

@media (max-width:500px) {
    .footer-grid {
        grid-template-columns: 1fr
    }
}
