/* Navigation Styles */
.main-navigation {
    position: relative;
    background: transparent;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
    border-bottom: none;
}

.main-navigation.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: transparent !important;
    z-index: 1000 !important;
    box-shadow: none !important;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.25rem 0.75rem;
    margin: 0.5rem;
    text-transform: uppercase;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: block;
    border: 2px solid transparent;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #003d82;
    color: #ffffff;
    border: 2px solid #003d82;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 61, 130, 0.3);
}

.nav-link.phone-number {
    white-space: nowrap !important;
    display: inline-block;
    min-width: max-content;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.45rem 0.9rem;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    z-index: 1002;
    background: #ffffff;
    border-radius: 1rem;
    border: 2px solid #003d82;
    box-shadow: 0 8px 18px rgba(0, 61, 130, 0.2);
    font-family: 'Georgia', 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: #003d82;
}

.nav-toggle__icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle__icon span {
    width: 26px;
    height: 2px;
    background-color: #003d82;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

.nav-toggle.is-open .nav-toggle__icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.is-open .nav-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle__icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

@media (max-width: 799px) {
    .nav-toggle {
        display: inline-flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 1rem;
        margin-top: 9.8rem;
        transition: right 0.4s ease;
        z-index: 1001;
        overflow-y: auto;
        border-left: 3px solid #003d82;
        border-top: 3px solid #003d82;
        width: max-content;
        border-top-left-radius: 1rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-link {
        color: #1a1a1a;
        font-size: 1.3rem;
        width: 100%;
        box-sizing: border-box;
        border: none;
    }
    
    .nav-link:hover {
        background: #f5f5f5;
        color: #003d82;
        transform: none;
        flex-direction: row-reverse;
        border: none;
    }
    
    .nav-link.phone-number {
        margin: 0.5rem 1rem;
        white-space: nowrap !important;
        display: inline-block;
        width: auto;
        min-width: max-content;
    }
}

@media (min-width: 800px) {
    .nav-toggle {
        display: none;
    }


    
    .nav-menu {
        display: flex;
        position: static;
        width: auto;
        background: transparent;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding-top: 0;
    }

    .nav-container {
        background-color: white;
        border-bottom: 3px solid rgb(0, 0, 90);
    }
    
    .nav-menu li {
        width: auto;
    }
}