.navbar {
    background-color: var(--footer-bg);
    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;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand a {
    color: var(--footer-text);
    font-size: 1.5rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu > li > a {
    color: var(--footer-text);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu > li > a:hover {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--footer-bg);
    border: 1px solid #333;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #333;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--footer-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #222;
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--footer-text);
    margin: 3px 0;
    transition: 0.3s;
}

.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-column h3 {
    color: var(--footer-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #ccc;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 50%;
    color: var(--footer-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--footer-text);
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact p {
    margin: 0.25rem 0;
}

.footer-contact a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item strong {
    color: var(--footer-text);
    font-size: 1rem;
}

.contact-item p {
    margin: 0;
    color: #ccc;
}

.contact-item a {
    color: #ccc;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.btn-call {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--footer-text) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.btn-call:hover {
    background-color: #ff4500;
}

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom p {
    color: #888;
    margin: 0;
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu > li > a {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu > li > a {
        padding: 0.5rem 0.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 850px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu > li > a {
        padding: 0.5rem 0.4rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--footer-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        align-items: flex-start;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

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

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 1rem;
        display: flex;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        max-height: 50vh;
        overflow-y: auto;
        box-shadow: none;
        border: none;
        background-color: #111;
        margin-bottom: 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .dropdown-menu::-webkit-scrollbar-track {
        background: #222;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }

    .dropdown-menu a {
        padding-left: 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-item {
        align-items: center;
    }

    .btn-call {
        margin: 0.5rem auto 0;
    }
}