/* Header Redesign - Desktop & Base Styles */

/* Main Header Container */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 249, 240, 0.95);
    /* var(--white-warm) with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    /* Subtle border */
}

.header-container {
    display: flex;
    justify-content: center;
    /* Center the Logo */
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
    height: 90px;
    position: relative;
    /* For absolute positioning of menu */
}

/* Logo Styling */
.logo {
    text-align: center;
    z-index: 2;
}

.logo h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.logo span {
    display: block;
    font-size: 15px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Contact Info Section - HIDDEN GLOBALLY */
.contact-header {
    display: none !important;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.header-contact:hover {
    background: rgba(139, 115, 85, 0.1);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.header-contact i {
    font-size: 18px;
    color: var(--accent-secondary);
}

/* Hamburger Menu Redesign */
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;

    /* Desktop Positioning: Absolute Right */
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle:hover {
    background: rgba(139, 115, 85, 0.1);
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

/* Hamburger Animation States */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Side Navigation Refinements */
.side-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links a {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    background: linear-gradient(90deg, rgba(139, 115, 85, 0.1) 0%, transparent 100%);
    color: var(--accent-primary);
    transform: translateX(5px);
    /* RTL flip handled in RTL CSS usually, but here checking direction */
}

/* Mobile Header Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 20px;
        height: 70px;
        justify-content: space-between;
        /* Reset from center */

        /* Swap positions for Mobile: Logo Left, Hamburger Right */
        /* In RTL, row-reverse makes it go Left -> Right */
        flex-direction: row-reverse;
    }

    .logo h2 {
        font-size: 24px;
    }

    .logo span {
        font-size: 13px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
        margin: 0;

        /* Reset Desktop Positioning */
        position: static;
        transform: none;
    }

    .menu-toggle span {
        width: 24px;
    }

    /* Side Nav Mobile Adjustments */
    .side-nav {
        width: 280px;
        padding: 60px 20px 20px;
    }

    .nav-links a {
        font-size: 18px;
        padding: 10px 15px;
    }

    /* Ensure close button is accessible */
    .close-menu {
        top: 15px;
        left: 15px;
        padding: 10px;
    }
}

/* RTL Support */
body.rtl .nav-links a:hover {
    transform: translateX(-5px);
}