

/* ===================================================== */
/* CUSTOM FIXED NAVBAR STYLES                            */
/* ===================================================== */
.custom-header {
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-warm);
    transition: all 0.3s ease;
}

/* Spacer to prevent page content from hiding behind the fixed header */
.header-spacer {
    height: 125px; /* Adjust based on your logo height */
    width: 100%;
    display: block;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
}

/* --- Left Side (Logo) --- */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-link img {
    height: 100px;
    width: auto;
}

/* --- Center Side (Search) --- */
.nav-center {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.custom-search-form {
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border-warm);
    transition: all 0.3s ease;
}

.custom-search-form:focus-within {
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 140, 75, 0.15); /* Orange focus ring */
    border: 1px solid var(--primary);
}

.custom-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 0.95rem;
    outline: none;
    color: var(--text-primary);
}

.custom-search-input::placeholder {
    color: var(--text-light);
}

.custom-search-submit {
    background: var(--primary-gradient); /* Orange Gradient */
    color: var(--text-on-primary);
    border: none;
    border-radius: 50px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-search-submit:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* --- Right Side (Links & Language) --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

/* Fancy underline animation on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- Custom Language Dropdown --- */
.lang-pill-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border-warm);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-pill-btn:hover {
    border-color: var(--primary);
    background: var(--surface);
}

.lang-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* --- Pure CSS Dropdowns --- */
.custom-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-warm);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.dropdown-right {
    left: auto;
    right: 0;
}

/* Show dropdown on hover (Desktop) */
.custom-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 140, 75, 0.1); /* Soft Orange Hover */
    color: var(--primary);
    padding-left: 20px; 
}

/* --- Mobile Elements (Hidden by default) --- */
.mobile-menu-btn, .mobile-search-btn, .mobile-only {
    display: none;
}

/* ===================================================== */
/* MOBILE RESPONSIVE DESIGN                              */
/* ===================================================== */
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .header-spacer {
        height: 85px; /* Smaller spacer on mobile */
    }

    .nav-container {
        padding: 10px 15px;
    }

    .logo-link img {
        height: 60px; /* Smaller logo on mobile */
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0;
    }

    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary-gradient);
        color: var(--text-on-primary);
        border-radius: 50%;
        text-decoration: none;
        transition: transform 0.2s;
    }

    .mobile-search-btn:hover {
        transform: scale(1.05);
    }

    .nav-right {
        gap: 12px;
    }

    .lang-pill-btn {
        padding: 6px 12px;
    }
}

/* ===================================================== */
/* MOBILE DRAWER ANIMATIONS                              */
/* ===================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 26, 0.6); /* Dark navy transparent */
    backdrop-filter: blur(3px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-drawer {
    position: fixed;
    top: 0; left: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: var(--white);
    z-index: 1002;
    box-shadow: 5px 0 30px rgba(0,0,0,0.1);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    left: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-warm);
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform 0.3s;
}

.drawer-close-btn:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.drawer-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drawer-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.drawer-link:hover {
    background: rgba(255, 140, 75, 0.1); /* Soft Orange */
    color: var(--primary);
    padding-left: 20px;
}