.nav {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 20px;
    height: var(--navbar-height);
}                                         

.utility-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 20px;
    font-size: 13px;
    color: #6c757d;
    position: relative;
    z-index: 999;
}

.utility-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.utility-phone-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: end;
    max-width: 1200px;
    margin: 0 auto;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.utility-item:hover {
    color: var(--primary, #007cba);
    text-decoration: none;
}

.utility-item i {
    font-size: 14px;
    opacity: 0.8;
}

.utility-phone {
    font-weight: 600;
    color: #495057;
}

.utility-phone:hover {
    color: var(--primary, #007cba);
}

/* Separator between items */
.utility-right .utility-item:not(:last-child)::after {
    content: '|';
    margin-left: 20px;
    color: #dee2e6;
    font-weight: normal;
}

/* Dark mode alternative */
.utility-bar.dark {
    background-color: #2d3748;
    border-bottom-color: #4a5568;
    color: #a0aec0;
}

.utility-bar.dark .utility-item {
    color: #a0aec0;
}

.utility-bar.dark .utility-item:hover {
    color: #ffffff;
}

.utility-bar.dark .utility-phone {
    color: #e2e8f0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .utility-bar {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .utility-content {
        flex-direction: row;
        gap: 8px;
        text-align: center;
    }
    
    .utility-left,
    .utility-right {
        gap: 15px;
    }
    
    .utility-right .utility-item:not(:last-child)::after {
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    .utility-content {
        flex-direction: column;
        gap: 6px;
    }
    
    .utility-left,
    .utility-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .utility-right .utility-item:not(:last-child)::after {
        display: none;
    }
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100%;
    gap: 20px;
}

/* Logo - Grid Column 1 */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 2px;
}

.logo-custom {
    margin-bottom: 2px;
}

.logo-custom img {
    max-height: 30px;
    width: auto;
}

@media(min-width: 768px) {
    .logo-custom img {
    max-height: 40px;

}
}
.logo-subtitle {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* Navigation - Grid Column 2 */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    justify-self: end;
}

.nav-links li {
    margin: 0;
    padding: 0;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 30px;
    padding: 0 1rem;
    position: relative;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    display: none;
}

.nav-links .sub-menu a {
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
}

/* Menu items with children styling */
.menu-item-has-children>a::after {
    content: "\ea4e";
    font-family: 'remixicon' !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Actions - Grid Column 3 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-icon,
.hamburger {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.search-icon {
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon:hover,
.hamburger:hover {
    opacity: 0.7;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 20px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.search-bar {
    position: absolute;
    top: 100%;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    width: 300px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-bar.desktop {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px 12px 50px;
    width: 180px;
    visibility: visible;
    opacity: 1;
    transition: none;
    transform: none;
}

.search-bar form {
    margin: 0;
}

.search-bar input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    margin: 0;
    padding: 0;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.mobile-menu.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close i {
    font-size: 20px;
}

.modal-close:hover {
    background-color: #f0f0f0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    text-align: center;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 8px;
    padding: 0;
}

.mobile-nav-links a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-nav-links a:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

/* Submenu styles */
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-links li {
    position: relative;
}

.nav-links li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .sub-menu li {
    margin: 0;
    width: 100%;
    list-style: none;
}

.nav-links .sub-menu a {
    padding: 12px 20px;
    display: block;
    color: #333;
    border-radius: 0;
}

.nav-links .sub-menu a:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.nav-links .sub-menu a::after {
    display: none;
}

/* Mobile submenu styles */
.mobile-nav-links .sub-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    padding-left: 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-nav-links .sub-menu a {
    font-size: 16px;
    color: #666;
}

/* RESPONSIVE BREAKPOINTS */

/* Large screens - full comfort */
@media (min-width: 1200px) {
    .nav-container {
        gap: 40px;
    }
    
    .search-bar.desktop {
        width: 220px;
    }
}

/* Medium screens - start reducing */
@media (max-width: 1199px) and (min-width: 1000px) {
    .nav-container {
        gap: 30px;
    }
    
    .nav-links a {
        padding: 0 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-bar.desktop {
        width: 180px;
    }
}

/* Small screens - more compression */
@media (max-width: 999px) and (min-width: 901px) {
    .nav-container {
        gap: 20px;
    }
    
    .nav-links a {
        padding: 0 0.6rem;
        font-size: 0.85rem;
    }
    
    .search-bar.desktop {
        width: 160px;
    }
}

/* Desktop search positioning */
@media (min-width: 901px) {
    .nav-actions {
        position: relative;
    }

    .search-icon {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #666;
        cursor: default;
        pointer-events: none;
        z-index: 1;
    }
}

/* Tablet and below - switch to mobile search */
@media (max-width: 900px) {
    .search-bar.desktop {
        display: none;
    }

    .search-icon {
        display: flex;
        position: static;
        transform: none;
        pointer-events: auto;
        cursor: pointer;
    }
    
    /* More aggressive nav compression */
    .nav-links a {
        padding: 0 0.4rem;
        font-size: 0.8rem;
    }
}

/* Very tight tablet screens */
@media (max-width: 820px) and (min-width: 769px) {
    .nav-links a {
        padding: 0 0.3rem;
        font-size: 0.75rem;
    }
}

/* Mobile - hamburger menu */
@media (max-width: 768px) {
    .nav-container {
        display: flex; /* Switch back to flexbox for mobile */
        justify-content: space-between; /* Logo left, actions right */
        align-items: center;
    }
    
    .nav-links {
        display: none; /* Hide navigation menu */
    }
    
    .hamburger {
        display: flex;
    }
    
    .search-bar {
        right: 10px;
        width: calc(100vw - 40px);
        max-width: 300px;
    }
    
    .logo-section {
        align-items: flex-start;
    }
}