/* 
NAVIGATION COMPONENT CSS
This file contains all styles for the responsive navigation bar component.
Include this file in any page where you want to use the navigation.
*/

/* NAVIGATION STYLES */
.navbar {
    background-color: var(--primary-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    position: relative;
}

/* LOGO CONTAINER (Left side) */
.nav-logo-container {
    justify-self: start;
}

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

.nav-logo {
    /* To change business name size: Modify font-size below */
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    justify-self: center;
}


.nav-menu {
    position: fixed;
    left: -100%;
    top: 100px;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    gap: 0;
    list-style: none;
    margin: 0;
}

.nav-menu.active {
    left: 0;
}

.nav-item {
    margin: 0.5rem 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: block;
    margin: 0;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* HAMBURGER MENU STYLES */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.25rem;
    justify-self: end;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger 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);
}

/* RESPONSIVE STYLES */

/* Mobile Styles (up to 480px) */
@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo-img {
        height: 56px;
    }
    
    .nav-menu {
        top: 85px;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
}

/* Tablet Styles (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-logo {
        font-size: 1.4rem;
    }
    
    .nav-logo-img {
        height: 63px;
    }
    
    .nav-menu {
        top: 95px;
    }
}

/* Desktop Styles (769px and up) */
@media (min-width: 769px) {
    .nav-logo {
        font-size: 1.8rem;
    }
    
    .nav-logo-img {
        height: 77px;
    }
    
    .nav-menu {
        top: 110px;
    }
    
    .nav-container {
        padding: 1.2rem;
    }
}

/* Large Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .nav-logo {
        font-size: 2rem;
    }
    
    .nav-logo-img {
        height: 84px;
    }
    
    .nav-menu {
        top: 120px;
    }
    
    .nav-container {
        padding: 1.5rem;
    }
}
