/* ==========================================================================
   PasYon — Design System & Header CSS
   Exact match for UAE Manpower Solutions theme (Navy slate, Rich Gold/Orange)
   ========================================================================== */

:root {
    /* Color Palette matching the user's reference image exactly */
    --color-primary-orange: #0062E1;
    --color-primary-orange-hover: #1A75FF;
    --color-orange-glow: rgba(0, 98, 225, 0.35);
    
    --color-dark-navy: #0B1727;
    --color-dark-navy-light: #122136;
    --color-slate-overlay: rgba(11, 23, 39, 0.86);
    --color-card-bg: rgba(255, 255, 255, 0.06);
    --color-card-border: rgba(255, 255, 255, 0.15);
    
    --color-text-white: #FFFFFF;
    --color-text-grey: #D1DDEB;
    --color-text-muted: #8F9FA3;
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Layout & Transitions */
    --container-width: 1320px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 90px;
}

/* Base Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.theme-dark-navy {
    font-family: var(--font-body);
    background-color: var(--color-dark-navy);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-bar {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    padding: 10px 0;
    position: relative;
    z-index: 1050;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-grey);
}

.top-bar-left .uae-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-bar-left .uae-badge i {
    color: var(--color-primary-orange);
    font-size: 14px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #C1D0E0;
}

.top-link i {
    color: var(--color-primary-orange);
}

.top-link:hover {
    color: var(--color-primary-orange);
}

.top-bar-right .divider {
    color: rgba(255, 255, 255, 0.2);
}

.lang-selector {
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-selector .active-lang {
    color: var(--color-primary-orange);
}

/* ==========================================================================
   Main Header / Navbar
   ========================================================================== */
.site-header {
    position: fixed;
    top: 39px; /* Distance from top bar */
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1040;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    top: 0;
    height: 76px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--color-primary-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 98, 225, 0.4);
    transform: rotate(-3deg);
    transition: var(--transition-smooth);
}

.brand-logo:hover .logo-icon {
    transform: rotate(0deg) scale(1.05);
}

.logo-icon .icon-p {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 26px;
    color: #FFFFFF;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--color-dark-navy);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    color: var(--color-primary-orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Main Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-dark-navy);
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-orange);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary-orange);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown-icon {
    font-size: 11px;
    margin-left: 4px;
    transition: transform 0.25s ease;
}

/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    min-width: 340px;
    max-width: 400px;
    background: linear-gradient(150deg, #0A192F 0%, #060F1E 100%);
    border: 1px solid rgba(0, 98, 225, 0.35);
    border-top: 4px solid #0062E1;
    border-radius: 10px;
    padding: 6px 0;
    box-shadow: 0 20px 45px rgba(2, 8, 16, 0.75), 0 0 30px rgba(0, 98, 225, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    backdrop-filter: blur(12px);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
    color: var(--color-primary-orange);
}

.dropdown-menu li {
    position: relative;
    list-style: none;
}

.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.dropdown-menu li a {
    display: block;
    padding: 14px 24px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    color: #CBD5E1;
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: all 0.25s ease;
}

.dropdown-menu li a:hover {
    background: linear-gradient(90deg, rgba(0, 98, 225, 0.15) 0%, rgba(0, 98, 225, 0.02) 100%);
    color: #0062E1;
    border-left: 4px solid #0062E1;
    padding-left: 28px;
    text-shadow: 0 0 12px rgba(0, 98, 225, 0.35);
}

/* Header Action Button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 98, 225, 0.12);
    border: 1.5px solid var(--color-primary-orange);
    color: var(--color-primary-orange);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.header-cta-btn i {
    transition: transform 0.25s ease;
}

.header-cta-btn:hover {
    background: var(--color-primary-orange);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(0, 98, 225, 0.4);
    transform: translateY(-1px);
}

.header-cta-btn:hover i {
    transform: translateX(4px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.mobile-nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--color-text-white);
    transition: var(--transition-smooth);
}

/* Responsive Design for Header & Top Bar */
@media (max-width: 1024px) {
    .top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .top-bar-inner {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        text-align: center;
    }
    
    .top-bar-left, .top-bar-right {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-header {
        top: 64px;
    }
    
    .site-header.scrolled {
        top: 0 !important;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #0C1828;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 40px 30px;
        transition: left 0.4s ease;
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 18px;
        display: block;
        width: 100%;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .header-cta-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Keep Top Header active in mobile view, but hide ONLY the phone number */
    .top-bar {
        display: block !important;
        padding: 6px 0;
        font-size: 11px;
    }
    
    .phone-link,
    .phone-divider {
        display: none !important;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 5px;
        padding: 0 12px;
    }
    
    .top-bar-left .uae-badge {
        font-size: 11px;
        line-height: 1.35;
        text-align: center;
        justify-content: center;
    }

    .top-bar-right {
        justify-content: center;
        gap: 12px;
        font-size: 11px;
    }

    .top-link {
        font-size: 11px;
    }
    
    .lang-selector {
        font-size: 11px;
    }
    
    .site-header {
        top: 58px;
        height: 64px;
    }
    
    .site-header.scrolled {
        top: 0 !important;
        height: 60px;
    }
    
    /* Compact Responsive Sizing for Tablet Brand Logo */
    .brand-logo {
        gap: 0 !important;
    }
    .brand-logo-img {
        max-height: 32px !important;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    .brand-logo-img {
        max-height: 25px !important;
        width: auto !important;
    }
}
