/* Modern navigation styles */
.main-nav {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}
.nav-container {
    max-width: none;
    margin: 0;
    padding-left: 1.5rem;
    /* Reserve space for the appointment link even when hidden */
    padding-right: 12rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: var(--nav-height);
}

/* Ensure the logo anchors to the left side */
.logo-link {
    margin-right: auto;
    display: flex;
    align-items: center;
}
.logo {
    height: 80px;
    width: auto;
}
.cmp-navigation__group {
    list-style: none;
    display: flex;
    margin: 0;
    margin-left: auto;
    padding: 0;
    gap: 1rem;
    align-items: center;
}

#nav-links {
    margin-left: auto;
    justify-content: flex-end;
    align-self: flex-end;
    margin-bottom: 0.5rem;
}
.cmp-navigation__item-link {
    text-decoration: none;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    transition: background-color 0.3s, color 0.3s;
}
.cmp-navigation__item-link:hover {
    color: #1f4d2f;
    background-color: #f5f5f5;
}
.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 0;
    min-width: 200px;
}
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile toggle */
.dropdown.open .dropdown-menu {
    display: block;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: relative;
    transition: transform 0.3s;
}
.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.mobile-menu-btn.active .menu-icon { background-color: transparent; }
.mobile-menu-btn.active .menu-icon::before { transform: rotate(45deg); top: 0; }
.mobile-menu-btn.active .menu-icon::after { transform: rotate(-45deg); top: 0; }
@media (max-width: 768px) {
    .nav-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .mobile-menu-btn { display: block; }
    #nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 260px;
        height: calc(100vh - var(--nav-height));
        background: #fff;
        flex-direction: column;
        padding: 0 1rem 1rem;
        margin-left: 0;
        align-self: flex-start;
        margin-bottom: 0;
        padding-top: 0;
        box-shadow: -2px 0 8px rgba(0,0,0,0.1);
        justify-content: flex-start;
        transition: right 0.3s;
    }
    #nav-links.show-mobile { right: 0; }
    .dropdown-menu { position: static; box-shadow: none; }
    .appointment-link { display: none; }
}

.appointment-link {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    background: linear-gradient(135deg, #264600, #1f4d2f);
    color: #dfdfd8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 1101;
    animation: gentle-bounce 2.5s ease-in-out infinite;
    transition: background 0.3s ease;
}

.appointment-link:hover {
    background: linear-gradient(135deg, #1f4d2f, #264600);
}


@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
