/* Restored header CSS with original styling plus right-aligned language switcher */

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Preserve the logo styling exactly as before */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary); /* Use your exact brand color */
}

.logo-img {
    height: 45px;
    width: auto;
    margin-right: 10px;
    border-radius: 10px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--primary); /* Ensure the text color matches your brand */
}

/* New nav section to group links and language selector */
.nav-section {
    display: flex;
    align-items: center;
}

/* Navigation links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark); /* Exact color from your original design */
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary); /* Your primary color */
}

/* Preserve the CTA button styling */
.cta-link a.btn-primary {
    display: inline-block;
    background-color: var(--accent); /* Your gold accent color */
    color: white;
    padding: 10px 10px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-link a.btn-primary:hover {
    background-color: var(--accent-dark); /* Slightly darker on hover */
    text-decoration: none;
}

/* Mobile menu toggle - hide by default on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Media queries for responsive design */
@media (max-width: 992px) {
    .nav-section {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
        /* Hamburger menu styling is handled by responsive.css */
    }

    /* Hide desktop nav links on mobile - they'll be handled by responsive.css */
    /* Note: This is now handled in responsive.css with proper overrides */
    .nav-links {
        /* Remove display: none to allow responsive.css to handle mobile menu */
    }

    .language-switcher {
        margin-left: auto;
    }
}

/* Additional responsive fixes to ensure compatibility with your other styles */

/* Specific media query fixes for smaller screens */
@media (max-width: 767px) {
    .logo-text {
        font-size: 1.3rem; /* Slightly smaller on mobile */
    }

    .logo-img {
        height: 40px; /* Slightly smaller on mobile */
    }

    /* Ensure CTA button stays visible on mobile */
    .cta-link a.btn-primary {
        padding: 8px 15px;
        font-size: 0.95rem;
    }

    /* Position language selector for mobile */
    .language-switcher {
        position: relative;
        margin-left: 10px;
    }

    .language-toggle {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 10px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .logo-text {
        display: none; /* Hide text on very small screens */
    }

    /* Ensure logo is centered on XS screens */
    .logo {
        margin-right: auto;
    }

    /* Make language dropdown appear under the toggle on small screens */
    .language-dropdown {
        right: -10px;
    }
}

/* Language Switcher - Professional Design */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.language-toggle {
    display: flex;
    align-items: center;
    background: var(--gradient-background);
    border: 1px solid var(--bg-medium);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.language-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.language-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.language-toggle:hover::before {
    opacity: 0.05;
}

.language-toggle > * {
    position: relative;
    z-index: 1;
}

/* Professional Globe Icon */
.globe-icon {
    font-size: 1.1rem;
    margin-right: 10px;
    display: inline-block;
    transition: transform 0.4s ease;
    color: var(--primary);
    opacity: 0.8;
}

.language-toggle:hover .globe-icon {
    transform: rotate(15deg);
    opacity: 1;
}

.current-language {
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    font-weight: 600;
    color: var(--text-dark);
}

.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s ease;
    color: var(--text-medium);
    opacity: 0.7;
}

.language-toggle:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Professional Language Dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--gradient-background);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1000;
    border: 1px solid var(--bg-medium);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* When dropdown is active */
.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.language-option:hover {
    transform: translateX(4px);
}

.language-option:hover::before {
    opacity: 0.05;
}

.language-option > * {
    position: relative;
    z-index: 1;
}

.language-option.active {
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-ultra-light);
}

.language-option.active::before {
    opacity: 0.1;
}

/* Professional Flag Icons */
.flag-icon {
    margin-right: 12px;
    font-size: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}