/* Mobile-only navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--brand-dark);
    border-radius: 99px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

@media (max-width: 700px) {
    /* Allow dropdown to extend outside the rounded navbar */
    .navbar,
    .navbar.menu-open {
        overflow: visible;
    }

    .navbar .container {
        position: relative;
        min-height: 72px;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        padding: 0.7rem 22px;
        overflow: visible;
    }

    .nav-toggle {
        display: inline-flex;
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 40;
        pointer-events: auto;
    }

    .logo {
        position: relative;
        z-index: 1;
    }

    .logo img {
        height: 64px;
        padding-top: 4px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        padding: 0.85rem 0.9rem;
        margin: 0;
        list-style: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-md);
        z-index: 25;
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.55rem 0.25rem;
    }

    .nav-links .cta-link {
        text-align: center;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Doctor Grid Mobile */
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .doctor-image {
        height: 320px;
    }
}
