﻿/* ==== Reset cơ bản ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #fff;
    color: #333; /* chữ mặc định */
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==== Navbar cơ bản ==== */
.navbar {
    height: 130px; /* chiều cao cố định */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.container {
    max-width: 1200px;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==== Logo ==== */
.navbar-brand img {
    height: clamp(75px, 8vw, 300px); /* logo không vượt quá navbar */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* ==== Header gốc (trên hero) ==== */
.site-header-origin {
    position: absolute;
    top: 0;
    background: transparent;
    border-bottom: 1px solid rgba(26, 26, 26, 0.2); /* đen nhạt */
    z-index: 1000;
}

/* ==== Header clone (khi scroll) ==== */
.site-header-clone {
    position: fixed;
    top: 0;
    background: rgba(212, 160, 23, 0.96); /* nền vàng nâu */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1010;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

    .site-header-clone.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

/* ==== Menu Desktop ==== */
.navbar-menu {
    display: flex;
    gap: clamp(12px, 1.5vw, 30px);
    list-style: none;
}

.nav-link {
    font-weight: 900;
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
    padding: 1rem 1rem 0.5rem 1rem;
    position: relative;
    transform: translateY(3px);
    transition: all 0.3s ease;
}

    /* Hover underline */
    .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background: #fff;
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: #f1f1f1;
        transform: scale(1.1) translateY(-2px);
    }

        .nav-link:hover::after {
            width: 100%;
        }

/* ==== Toggle Mobile ==== */
.navbar-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
}

    .navbar-toggle:hover {
        color: #f1f1f1;
    }

/* ==== Header scroll clone ==== */
.site-header-origin {
    position: absolute;
    top: 0;
    width: 100%;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
}

.site-header-clone {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(212, 160, 23, 0.96);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1010;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

    .site-header-clone.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

/* ==== Responsive ==== */
@media (max-width: 1024px) {
    .navbar-menu {
        gap: clamp(12px, 2vw, 20px);
    }

    .nav-link {
        font-size: clamp(1rem, 1.5vw, 1.3rem);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }

    .navbar-brand img {
        max-height: 90%;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        background: #D4A017;
        flex-direction: column;
        padding: 0;
        gap: 0;
        transition: height 0.3s ease, padding 0.3s ease, gap 0.3s ease;
        z-index: 2000;
    }

        .navbar-menu.open {
            height: calc(100vh - 60px);
            padding-top: 20px;
            gap: 15px;
        }

    .nav-link {
        font-size: 1.2rem;
        text-align: center;
        padding: 10px;
        color: #fff;
    }

        .nav-link:hover {
            color: #000;
        }

        .nav-link::after {
            background: #000;
        }
}

/* ==== Khi mở menu mobile, khóa scroll body ==== */
.no-scroll {
    overflow: hidden;
}
