/* ========================================
   HOANG PHUC GLOBAL HEADER STYLES
   Used across all pages
======================================== */

/* ========== HIDE FLATSOME DEFAULT ELEMENTS ========== */
#header,
.header-wrapper,
.top-divider,
.header-top,
.header-main,
.header-bottom,
#button-contact-vr,
.phone-bar,
#contact-vr,
#zalo-vr,
#messenger-vr {
    display: none !important;
}

/* ========== TOP BAR ========== */
.hp-top-bar {
    background: #1a1a1a;
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 1001;
}

.hp-top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.hp-top-bar-content .phone-icon {
    color: #fff;
}

.hp-top-bar-content a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-style: normal;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
}

.hp-top-bar-content a:hover {
    color: #d4af37;
}

/* ========== HEADER ========== */
.hp-header {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 50px;
    transition: all 0.3s ease;
}

.hp-header.scrolled {
    position: fixed;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
}

/* For non-homepage, header should be fixed dark */
.hp-main-page~.hp-header,
body:not(.home) .hp-header {
    position: relative;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
}

.hp-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hp-logo img {
    height: 70px;
    width: auto;
}

.hp-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hp-logo-text span {
    display: block;
    font-size: 16px;
    color: #fff;
    letter-spacing: 4px;
    font-weight: 400;
}

/* Navigation */
.hp-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hp-nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.hp-nav-menu li a:hover,
.hp-nav-menu li a.active {
    color: #d4af37;
}

.hp-nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.hp-nav-menu li a:hover::after,
.hp-nav-menu li a.active::after {
    width: 100%;
}

/* Social Icons */
.hp-social-icons {
    display: flex;
    gap: 15px;
}

.hp-social-icons a {
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hp-social-icons a:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
}

/* ========== SIDE CONTACT BUTTONS ========== */
.hp-side-contact {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hp-contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hp-contact-btn img {
    width: 30px;
    height: 30px;
}

.hp-contact-btn.zalo {
    background: #0068ff;
}

.hp-contact-btn.phone {
    background: #25D366;
    color: #fff;
    font-size: 22px;
}

.hp-contact-btn.messenger {
    background: linear-gradient(135deg, #00B2FF, #006AFF);
}

.hp-contact-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* ========== MOBILE HAMBURGER ========== */
.hp-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border: 0;
    background: transparent;
}

.hp-hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hp-nav-menu li a:focus-visible,
.hp-social-icons a:focus-visible,
.hp-hamburger:focus-visible,
.hp-top-bar-content a:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
    border-radius: 4px;
}

body.hp-menu-open {
    overflow: hidden;
}

/* ========== MAIN CONTENT ADJUSTMENTS ========== */
#main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Non-homepage main content needs padding for fixed header */
.hp-main-page {
    padding-top: 120px !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hp-header {
        padding: 15px 30px;
    }

    .hp-nav-menu {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hp-header {
        padding: 10px 20px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hp-hamburger {
        display: flex;
    }

    .hp-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right 0.3s ease;
    }

    .hp-nav.open {
        right: 0;
    }

    .hp-nav-menu {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hp-social-icons {
        margin-top: 30px;
    }

    .hp-side-contact {
        left: 10px;
    }

    .hp-contact-btn {
        width: 45px;
        height: 45px;
    }

    .hp-logo-text {
        font-size: 16px;
    }

    .hp-logo-text span {
        font-size: 10px;
    }

    .hp-main-page {
        padding-top: 100px !important;
    }
}

@media (max-width: 480px) {
    .hp-top-bar-content {
        font-size: 11px;
    }

    .hp-main-page {
        padding-top: 90px !important;
    }
}
