/* ========================================
   HEADER & NAVIGATION STYLES
   ======================================== */

/* Header Top Bar */
.header-top {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 2rem;
}

.contact-info a {
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.contact-info a:hover {
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Main Navigation */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.main-nav {
    background-color: var(--color-white);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-left: -100px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition-fast);
    display: block;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--color-primary);
    background-color: rgba(26, 58, 92, 0.05);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown .fa-chevron-down {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    list-style: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-dark);
    transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
    background-color: rgba(26, 58, 92, 0.05);
    color: var(--color-primary);
    padding-left: 2rem;
}

/* Navigation Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--color-dark);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.search-btn:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.cta-btn {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #d4af6a 100%);
    color: var(--color-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(193, 155, 95, 0.3);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #d4af6a 0%, var(--color-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 155, 95, 0.5);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.search-form {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
}

.search-submit {
    padding: 1.25rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-submit:hover {
    background-color: var(--color-primary-dark);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .nav-list > li > a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    .cta-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .logo {
        margin-left: 0 !important;
        flex: 1;
    }
    
    .logo img {
        height: 45px !important;
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 2;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-normal);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 2rem 0;
    }
    
    .nav-list > li {
        width: 100%;
    }
    
    .nav-list > li > a {
        width: 100%;
        padding: 1rem 2rem;
        border-radius: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu li a {
        padding-left: 3rem;
    }
    
    .nav-right .search-btn,
    .nav-right .cta-btn {
        display: none;
    }
    
    .nav-content {
        position: relative;
    }
}

@media (max-width: 480px) {
    .contact-info {
        gap: 1rem;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .search-modal-content {
        width: 95%;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .search-submit {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}
