/* website/static/website/demos/kph/css/hamburger.css */

@media (max-width: 1080px) {
    nav { 
        flex-wrap: wrap; 
        justify-content: space-between; 
        align-items: center; 
        padding: 15px; 
        position: relative; 
        width: 100%; 
    }
    
    .hamburger { 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
        width: 28px; 
        height: 20px; 
        cursor: pointer; 
        background: none; 
        border: none; 
        margin-left: auto; 
        z-index: 1001; 
        transition: all 0.3s ease; 
    }
    
    .hamburger span { 
        display: block; 
        height: 3px; 
        width: 100%; 
        background: var(--text-dark); 
        border-radius: 3px; 
        transition: all 0.3s ease; 
    }
    
    .hamburger.toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.nav-links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--white);
    padding: 20px 15px 20px 30px;
    gap: 5px;
    margin-top: 0;

    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    overflow-y: auto;
	overflow-x: visible;
}

.nav-links .cta-button .btn-appointment {
    padding: 12px 20px;
    font-size: 0.85rem;
}
  
    .nav-links.nav-active { right: 0; }
    .nav-links li { width: 100%; list-style: none; }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        color: var(--text-dark);
        font-weight: 500;
        text-decoration: none;
        border-radius: 8px; 
        border-left: 4px solid transparent; 
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background-color: #f8f9fa;
        border-left: 3px solid #e0e0e0;
        color: var(--primary);
    }

    .nav-links a.active {
        background-color: #f0f6ff; 
        color: var(--primary);
        font-weight: 600;
        border-left: 3px solid var(--primary); 
    }

    .nav-links a::before,
    .nav-links a.active::after {
        display: none !important;
    }
    
.cta-button { display: none; }
.nav-links.nav-active .cta-button { display: block; padding: 15px 5px; }
}

@media (min-width: 1081px) { .hamburger { display: none; } }
