/* =============================================
   HEADER / NAVBAR
   ============================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 18px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

header.scrolled {
    background: rgba(12, 18, 10, 0.92);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
                0 1px 0 rgba(199, 164, 106, 0.08);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.logo .brand-name {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--sand);
    transition: var(--transition);
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

header.scrolled .logo {
    color: var(--white);
}

header.scrolled .logo .brand-name {
    color: var(--sand);
}

/* ---- Glassmorphism Nav Container ---- */
nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    padding: 6px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 24px rgba(0,0,0,0.15),
                inset 0 1px 0 rgba(255,255,255,0.06);
}

nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.25s ease;
    font-size: 14px;
    letter-spacing: 0.2px;
    position: relative;
}

nav a:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

nav a:active {
    transform: scale(0.97);
}

/* Scrolled nav styling — stays dark */
header.scrolled nav {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-color: rgba(199, 164, 106, 0.12);
}

header.scrolled nav a {
    color: rgba(255,255,255,0.85);
}

header.scrolled nav a:hover {
    background: rgba(199,164,106,0.15);
    color: var(--sand-light);
}

/* ---- CTA Button ---- */
.nav-cta {
    background: linear-gradient(135deg, var(--sand), #b8944e) !important;
    color: var(--white) !important;
    margin-left: 6px;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(199,164,106,0.3),
                inset 0 1px 0 rgba(255,255,255,0.15);
    border: 1px solid rgba(199,164,106,0.4) !important;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--sand-light), var(--sand)) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(199,164,106,0.45),
                inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.1);
}

header.scrolled .mobile-menu-btn {
    color: var(--white);
}

/* ---- Mobile Nav Panel ---- */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, rgba(12, 18, 10, 0.97), rgba(25, 38, 22, 0.97));
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(199, 164, 106, 0.1);
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-header .logo {
    font-size: 22px;
}

.mobile-nav-header .logo img {
    height: 40px;
}

.mobile-nav-header .logo .brand-name {
    font-size: 22px;
    letter-spacing: 2px;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    background: rgba(199, 164, 106, 0.2);
    border-color: rgba(199, 164, 106, 0.3);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-links a i {
    color: var(--sand);
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    background: rgba(199, 164, 106, 0.12);
    color: var(--white);
}

.mobile-nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
    padding: 16px 18px;
    font-size: 15px;
}

.mobile-nav-footer {
    margin-top: auto;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-footer p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ---- Header entrance animation ---- */
@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    animation: headerSlideIn 0.6s ease-out 0.2s both;
}
