/* LoomReach Header Styles */
/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 11, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 12px 0;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Offset for fixed header */
.site-main {
    padding-top: 80px;
}

/* Site Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    text-decoration: none;
}

.site-logo i, .site-logo svg {
    color: #6366f1;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #f8fafc;
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-dropdown-btn:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.15);
}

.lang-flag {
    display: flex;
    align-items: center;
    line-height: 1;
}

.lang-flag svg {
    display: block;
    width: 18px;
    height: 13px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
    opacity: 0.7;
}

.lang-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: fit-content;
    width: auto;
    padding: 6px;
    background: rgba(18, 20, 28, 0.98);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1002;
    overflow: visible;
    backdrop-filter: blur(10px);
}

.lang-dropdown.active .lang-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    white-space: nowrap;
}

.lang-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #f8fafc;
}

.lang-dropdown-item.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #f8fafc;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 2px 0;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .site-header {
        padding: 10px 0;
    }
    
    .header-inner {
        padding: 0 16px;
    }
    
    .site-main {
        padding-top: 60px;
    }
    
    .site-logo {
        font-size: 1.1rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header-cta .btn {
        display: none;
    }
    
    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(10, 11, 15, 0.99) 0%, rgba(18, 20, 30, 0.99) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    #main-nav.active {
        opacity: 1;
        visibility: visible;
    }
    
    #main-nav a {
        font-size: 1.25rem;
        padding: 12px 24px;
    }
    
    .mobile-cta {
        display: inline-flex !important;
    }
}

@media (max-width: 768px) {
    .page-title, h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    .container {
        padding: 0 16px !important;
    }
    
    section, .section {
        padding: 60px 0 !important;
    }
}

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

