/* Header fixes to match the design in the screenshot */

/* Reset any previous styles that might be affecting the header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    z-index: 1000;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #F1F1F1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 6px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 50px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-gaman {
    font-size: 20px;
    font-weight: 700;
    color: #FF7A00;
    letter-spacing: -0.5px;
}

.logo-rehab {
    font-size: 12px;
    font-weight: 500;
    color: #00C896;
    margin-top: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
    color: #FF7A00;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF7A00;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* New Book Appointment button styles to match screenshot */
.book-btn-container {
    margin-left: 20px;
}

.book-appointment {
    background-color: #FF7A00;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
    white-space: nowrap;
    letter-spacing: 0.3px;
    outline: none;
}

.book-appointment:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.book-appointment:active {
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    border: none;
    background: transparent;
    margin-left: 20px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Active Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hide any legacy elements */
.header-cta {
    display: none !important;
}

.header-book-btn {
    display: none !important;
}

/* Hide mobile elements on desktop */
.mobile-only {
    display: none;
}

/* Mobile styles */
@media (max-width: 991px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Show mobile elements on mobile */
    .mobile-only {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        padding: 20px;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 15px;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
        display: flex;
    }
    
    body.mobile-menu-open {
        overflow: hidden;
    }
    
    .nav-link {
        font-size: 16px;
    }
    
    .mobile-only {
        display: block;
    }
    
    .mobile-book-btn {
        width: 100%;
        padding: 12px;
        background: #FF7A00;
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        margin-top: 20px;
        cursor: pointer;
        font-size: 14px;
        display: block;
        text-align: center;
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
        transition: all 0.3s ease;
    }
    
    .mobile-book-btn:hover {
        background: #ea580c;
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    }
    
    .book-btn-container {
        display: none;
    }
}