/*
Theme Name: LumaGuard Premium
Description: Custom high-performance theme for LumaGuard Automotive
Version: 1.0
Text Domain: lumaguard
*/

/* --- GLOBAL VARIABLES (HIGH CONTRAST) --- */
:root {
    --color-bg-dark: #0a0a0a;
    --color-bg-surface: #141414;
    --color-text-main: #f5f5f5;
    --color-text-muted: #a3a3a3;
    --color-accent: #e63946; /* Điểm nhấn đỏ thể thao/công nghệ */
    --color-border: #262626;
    
    --font-heading: 'Syncopate', sans-serif; /* Hoặc font hiển thị sang trọng tương tự */
    --font-body: 'Inter', sans-serif;
    
    --header-height: 80px;
}

/* --- BASE RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- GLOBAL HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 9999; /* Khóa chặt Layer cao nhất */
}

.site-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.site-logo span {
    color: var(--color-accent);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

/* --- GLOBAL FOOTER --- */
.site-footer {
    background-color: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    padding: 40px 5%;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: auto;
}

/* Spacer để nội dung không bị Header đè lên */
.site-main {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* --- HEADER NAVIGATION UPDATES --- */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.header-cta-btn {
    background-color: var(--color-accent);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    margin-left: 20px;
    transition: background 0.3s ease;
}

.header-cta-btn:hover {
    background-color: #c92a37;
}

/* Nút Hamburger (Ẩn trên PC) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 10001;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-text-main);
    transition: all 0.3s ease;
}

/* --- MOBILE RESPONSIVE HEADER --- */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%; /* Ẩn menu ra ngoài màn hình */
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .main-navigation.active {
        right: 0; /* Trượt menu vào khi click */
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.2rem; /* Chữ to hơn trên điện thoại */
    }

    .header-cta-btn {
        margin-left: 0;
        margin-top: 20px;
        font-size: 1rem !important;
    }

    /* Hiệu ứng biến Hamburger thành dấu X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}